@storybook/test 8.6.7 → 8.6.9
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -24,7 +24,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
24
24
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&it.return!=null&&it.return()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o=="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i2<len;i2++)arr2[i2]=arr[i2];return arr2}var elementRoles3=[],keys2=_rolesMap.default.keys();for(i=0;i<keys2.length;i++)if(key=keys2[i],role=_rolesMap.default.get(key),role)for(concepts=[].concat(role.baseConcepts,role.relatedConcepts),k2=0;k2<concepts.length;k2++)relation=concepts[k2],relation.module==="HTML"&&function(){var concept=relation.concept;if(concept){var elementRoleRelation=elementRoles3.find(function(relation2){return(0,_lite.dequal)(relation2,concept)}),roles3;elementRoleRelation?roles3=elementRoleRelation[1]:roles3=[];for(var isUnique=!0,_i=0;_i<roles3.length;_i++)if(roles3[_i]===key){isUnique=!1;break}isUnique&&roles3.push(key),elementRoles3.push([concept,roles3])}}();var key,role,concepts,relation,k2,i,elementRoleMap={entries:function(){return elementRoles3},forEach:function(fn3){var thisArg=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(elementRoles3),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,elementRoles3)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=elementRoles3.find(function(tuple){return key2.name===tuple[0].name&&(0,_lite.dequal)(key2.attributes,tuple[0].attributes)});return item&&item[1]},has:function(key2){return!!elementRoleMap.get(key2)},keys:function(){return elementRoles3.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key2=_ref2[0];return key2})},values:function(){return elementRoles3.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0,_iterationDecorator.default)(elementRoleMap,elementRoleMap.entries());exports2.default=_default2}});var require_roleElementMap2=__commonJS({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/roleElementMap.js"(exports2){"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});exports2.default=void 0;var _iterationDecorator=_interopRequireDefault(require_iterationDecorator2()),_rolesMap=_interopRequireDefault(require_rolesMap2());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _slicedToArray(arr,i2){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i2)||_unsupportedIterableToArray(arr,i2)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
25
25
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(arr,i2){var _i=arr==null?null:typeof Symbol<"u"&&arr[Symbol.iterator]||arr["@@iterator"];if(_i!=null){var _arr=[],_n=!0,_d=!1,_s,_e;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!(i2&&_arr.length===i2));_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return!=null&&_i.return()}finally{if(_d)throw _e}}return _arr}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length=="number"){it&&(o=it);var i2=0,F=function(){};return{s:F,n:function(){return i2>=o.length?{done:!0}:{done:!1,value:o[i2++]}},e:function(_e2){throw _e2},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
26
26
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var normalCompletion=!0,didErr=!1,err;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(_e3){didErr=!0,err=_e3},f:function(){try{!normalCompletion&&it.return!=null&&it.return()}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o=="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i2=0,arr2=new Array(len);i2<len;i2++)arr2[i2]=arr[i2];return arr2}var roleElement=[],keys2=_rolesMap.default.keys();for(i=0;i<keys2.length;i++)if(key=keys2[i],role=_rolesMap.default.get(key),relationConcepts=[],role){for(concepts=[].concat(role.baseConcepts,role.relatedConcepts),k2=0;k2<concepts.length;k2++)relation=concepts[k2],relation.module==="HTML"&&(concept=relation.concept,concept!=null&&relationConcepts.push(concept));relationConcepts.length>0&&roleElement.push([key,relationConcepts])}var key,role,relationConcepts,concepts,relation,concept,k2,i,roleElementMap={entries:function(){return roleElement},forEach:function(fn3){var thisArg=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_iterator=_createForOfIteratorHelper(roleElement),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=_slicedToArray(_step.value,2),_key=_step$value[0],values=_step$value[1];fn3.call(thisArg,values,_key,roleElement)}}catch(err){_iterator.e(err)}finally{_iterator.f()}},get:function(key2){var item=roleElement.find(function(tuple){return tuple[0]===key2});return item&&item[1]},has:function(key2){return!!roleElementMap.get(key2)},keys:function(){return roleElement.map(function(_ref){var _ref2=_slicedToArray(_ref,1),key2=_ref2[0];return key2})},values:function(){return roleElement.map(function(_ref3){var _ref4=_slicedToArray(_ref3,2),values2=_ref4[1];return values2})}},_default2=(0,_iterationDecorator.default)(roleElementMap,roleElementMap.entries());exports2.default=_default2}});var require_lib2=__commonJS({"../../node_modules/@testing-library/dom/node_modules/aria-query/lib/index.js"(exports2){"use strict";Object.defineProperty(exports2,"__esModule",{value:!0});exports2.roles=exports2.roleElements=exports2.elementRoles=exports2.dom=exports2.aria=void 0;var _ariaPropsMap=_interopRequireDefault(require_ariaPropsMap2()),_domMap=_interopRequireDefault(require_domMap2()),_rolesMap=_interopRequireDefault(require_rolesMap2()),_elementRoleMap=_interopRequireDefault(require_elementRoleMap2()),_roleElementMap=_interopRequireDefault(require_roleElementMap2());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var aria=_ariaPropsMap.default;exports2.aria=aria;var dom=_domMap.default;exports2.dom=dom;var roles3=_rolesMap.default;exports2.roles=roles3;var elementRoles3=_elementRoleMap.default;exports2.elementRoles=elementRoles3;var roleElements2=_roleElementMap.default;exports2.roleElements=roleElements2}});var require_lz_string=__commonJS({"../../node_modules/lz-string/libs/lz-string.js"(exports2,module2){"use strict";var LZString=function(){var f3=String.fromCharCode,keyStrBase64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",keyStrUriSafe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",baseReverseDic={};function getBaseValue(alphabet,character){if(!baseReverseDic[alphabet]){baseReverseDic[alphabet]={};for(var i=0;i<alphabet.length;i++)baseReverseDic[alphabet][alphabet.charAt(i)]=i}return baseReverseDic[alphabet][character]}var LZString2={compressToBase64:function(input2){if(input2==null)return"";var res=LZString2._compress(input2,6,function(a2){return keyStrBase64.charAt(a2)});switch(res.length%4){default:case 0:return res;case 1:return res+"===";case 2:return res+"==";case 3:return res+"="}},decompressFromBase64:function(input2){return input2==null?"":input2==""?null:LZString2._decompress(input2.length,32,function(index){return getBaseValue(keyStrBase64,input2.charAt(index))})},compressToUTF16:function(input2){return input2==null?"":LZString2._compress(input2,15,function(a2){return f3(a2+32)})+" "},decompressFromUTF16:function(compressed){return compressed==null?"":compressed==""?null:LZString2._decompress(compressed.length,16384,function(index){return compressed.charCodeAt(index)-32})},compressToUint8Array:function(uncompressed){for(var compressed=LZString2.compress(uncompressed),buf=new Uint8Array(compressed.length*2),i=0,TotalLen=compressed.length;i<TotalLen;i++){var current_value=compressed.charCodeAt(i);buf[i*2]=current_value>>>8,buf[i*2+1]=current_value%256}return buf},decompressFromUint8Array:function(compressed){if(compressed==null)return LZString2.decompress(compressed);for(var buf=new Array(compressed.length/2),i=0,TotalLen=buf.length;i<TotalLen;i++)buf[i]=compressed[i*2]*256+compressed[i*2+1];var result=[];return buf.forEach(function(c){result.push(f3(c))}),LZString2.decompress(result.join(""))},compressToEncodedURIComponent:function(input2){return input2==null?"":LZString2._compress(input2,6,function(a2){return keyStrUriSafe.charAt(a2)})},decompressFromEncodedURIComponent:function(input2){return input2==null?"":input2==""?null:(input2=input2.replace(/ /g,"+"),LZString2._decompress(input2.length,32,function(index){return getBaseValue(keyStrUriSafe,input2.charAt(index))}))},compress:function(uncompressed){return LZString2._compress(uncompressed,16,function(a2){return f3(a2)})},_compress:function(uncompressed,bitsPerChar,getCharFromInt){if(uncompressed==null)return"";var i,value,context_dictionary={},context_dictionaryToCreate={},context_c="",context_wc="",context_w="",context_enlargeIn=2,context_dictSize=3,context_numBits=2,context_data=[],context_data_val=0,context_data_position=0,ii;for(ii=0;ii<uncompressed.length;ii+=1)if(context_c=uncompressed.charAt(ii),Object.prototype.hasOwnProperty.call(context_dictionary,context_c)||(context_dictionary[context_c]=context_dictSize++,context_dictionaryToCreate[context_c]=!0),context_wc=context_w+context_c,Object.prototype.hasOwnProperty.call(context_dictionary,context_wc))context_w=context_wc;else{if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++)context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++;for(value=context_w.charCodeAt(0),i=0;i<8;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}else{for(value=1,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=0;for(value=context_w.charCodeAt(0),i=0;i<16;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),context_dictionary[context_wc]=context_dictSize++,context_w=String(context_c)}if(context_w!==""){if(Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)){if(context_w.charCodeAt(0)<256){for(i=0;i<context_numBits;i++)context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++;for(value=context_w.charCodeAt(0),i=0;i<8;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}else{for(value=1,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=0;for(value=context_w.charCodeAt(0),i=0;i<16;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1}context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++),delete context_dictionaryToCreate[context_w]}else for(value=context_dictionary[context_w],i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;context_enlargeIn--,context_enlargeIn==0&&(context_enlargeIn=Math.pow(2,context_numBits),context_numBits++)}for(value=2,i=0;i<context_numBits;i++)context_data_val=context_data_val<<1|value&1,context_data_position==bitsPerChar-1?(context_data_position=0,context_data.push(getCharFromInt(context_data_val)),context_data_val=0):context_data_position++,value=value>>1;for(;;)if(context_data_val=context_data_val<<1,context_data_position==bitsPerChar-1){context_data.push(getCharFromInt(context_data_val));break}else context_data_position++;return context_data.join("")},decompress:function(compressed){return compressed==null?"":compressed==""?null:LZString2._decompress(compressed.length,32768,function(index){return compressed.charCodeAt(index)})},_decompress:function(length,resetValue,getNextValue){var dictionary=[],next,enlargeIn=4,dictSize=4,numBits=3,entry="",result=[],i,w2,bits,resb,maxpower,power,c,data={val:getNextValue(0),position:resetValue,index:1};for(i=0;i<3;i+=1)dictionary[i]=i;for(bits=0,maxpower=Math.pow(2,2),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(next=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f3(bits);break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;c=f3(bits);break;case 2:return""}for(dictionary[3]=c,w2=c,result.push(c);;){if(data.index>length)return"";for(bits=0,maxpower=Math.pow(2,numBits),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;switch(c=bits){case 0:for(bits=0,maxpower=Math.pow(2,8),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f3(bits),c=dictSize-1,enlargeIn--;break;case 1:for(bits=0,maxpower=Math.pow(2,16),power=1;power!=maxpower;)resb=data.val&data.position,data.position>>=1,data.position==0&&(data.position=resetValue,data.val=getNextValue(data.index++)),bits|=(resb>0?1:0)*power,power<<=1;dictionary[dictSize++]=f3(bits),c=dictSize-1,enlargeIn--;break;case 2:return result.join("")}if(enlargeIn==0&&(enlargeIn=Math.pow(2,numBits),numBits++),dictionary[c])entry=dictionary[c];else if(c===dictSize)entry=w2+w2.charAt(0);else return null;result.push(entry),dictionary[dictSize++]=w2+entry.charAt(0),enlargeIn--,w2=entry,enlargeIn==0&&(enlargeIn=Math.pow(2,numBits),numBits++)}}};return LZString2}();typeof define=="function"&&define.amd?define(function(){return LZString}):typeof module2<"u"&&module2!=null?module2.exports=LZString:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return LZString})}});var index_exports={};__export(index_exports,{buildQueries:()=>buildQueries2,clearAllMocks:()=>clearAllMocks,configure:()=>configure2,createEvent:()=>createEvent3,expect:()=>expect3,findAllByAltText:()=>findAllByAltText2,findAllByDisplayValue:()=>findAllByDisplayValue2,findAllByLabelText:()=>findAllByLabelText2,findAllByPlaceholderText:()=>findAllByPlaceholderText2,findAllByRole:()=>findAllByRole2,findAllByTestId:()=>findAllByTestId2,findAllByText:()=>findAllByText2,findAllByTitle:()=>findAllByTitle2,findByAltText:()=>findByAltText2,findByDisplayValue:()=>findByDisplayValue2,findByLabelText:()=>findByLabelText2,findByPlaceholderText:()=>findByPlaceholderText2,findByRole:()=>findByRole2,findByTestId:()=>findByTestId2,findByText:()=>findByText2,findByTitle:()=>findByTitle2,fireEvent:()=>fireEvent2,fn:()=>fn2,getAllByAltText:()=>getAllByAltText2,getAllByDisplayValue:()=>getAllByDisplayValue2,getAllByLabelText:()=>getAllByLabelText2,getAllByPlaceholderText:()=>getAllByPlaceholderText2,getAllByRole:()=>getAllByRole2,getAllByTestId:()=>getAllByTestId2,getAllByText:()=>getAllByText2,getAllByTitle:()=>getAllByTitle2,getByAltText:()=>getByAltText2,getByDisplayValue:()=>getByDisplayValue2,getByLabelText:()=>getByLabelText2,getByPlaceholderText:()=>getByPlaceholderText2,getByRole:()=>getByRole2,getByTestId:()=>getByTestId2,getByText:()=>getByText2,getByTitle:()=>getByTitle2,getConfig:()=>getConfig3,getDefaultNormalizer:()=>getDefaultNormalizer2,getElementError:()=>getElementError2,getNodeText:()=>getNodeText2,getQueriesForElement:()=>getQueriesForElement2,getRoles:()=>getRoles2,getSuggestedQuery:()=>getSuggestedQuery2,isInaccessible:()=>isInaccessible2,isMockFunction:()=>isMockFunction,logDOM:()=>logDOM2,logRoles:()=>logRoles2,mocked:()=>mocked,mocks:()=>mocks,onMockCall:()=>onMockCall,prettyDOM:()=>prettyDOM2,prettyFormat:()=>prettyFormat2,queries:()=>queries2,queryAllByAltText:()=>queryAllByAltText2,queryAllByAttribute:()=>queryAllByAttribute2,queryAllByDisplayValue:()=>queryAllByDisplayValue2,queryAllByLabelText:()=>queryAllByLabelText2,queryAllByPlaceholderText:()=>queryAllByPlaceholderText2,queryAllByRole:()=>queryAllByRole2,queryAllByTestId:()=>queryAllByTestId2,queryAllByText:()=>queryAllByText2,queryAllByTitle:()=>queryAllByTitle2,queryByAltText:()=>queryByAltText2,queryByAttribute:()=>queryByAttribute2,queryByDisplayValue:()=>queryByDisplayValue2,queryByLabelText:()=>queryByLabelText2,queryByPlaceholderText:()=>queryByPlaceholderText2,queryByRole:()=>queryByRole2,queryByTestId:()=>queryByTestId2,queryByText:()=>queryByText2,queryByTitle:()=>queryByTitle2,queryHelpers:()=>queryHelpers2,resetAllMocks:()=>resetAllMocks,restoreAllMocks:()=>restoreAllMocks,screen:()=>screen2,spyOn:()=>spyOn2,traverseArgs:()=>traverseArgs,userEvent:()=>userEvent2,waitFor:()=>waitFor2,waitForElementToBeRemoved:()=>waitForElementToBeRemoved2,within:()=>within});module.exports=__toCommonJS(index_exports);var import_global=require("@storybook/global"),import_instrumenter2=require("@storybook/instrumenter");var __defProp2=Object.defineProperty,__getOwnPropNames2=Object.getOwnPropertyNames,__name=(target,value)=>__defProp2(target,"name",{value,configurable:!0}),__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames2(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},require_util=__commonJS2({"(disabled):util"(){}}),utils_exports={};__export2(utils_exports,{addChainableMethod:()=>addChainableMethod,addLengthGuard:()=>addLengthGuard,addMethod:()=>addMethod,addProperty:()=>addProperty,checkError:()=>check_error_exports,compareByInspect:()=>compareByInspect,eql:()=>deep_eql_default,expectTypes:()=>expectTypes,flag:()=>flag,getActual:()=>getActual,getMessage:()=>getMessage2,getName:()=>getName,getOperator:()=>getOperator,getOwnEnumerableProperties:()=>getOwnEnumerableProperties,getOwnEnumerablePropertySymbols:()=>getOwnEnumerablePropertySymbols,getPathInfo:()=>getPathInfo,hasProperty:()=>hasProperty,inspect:()=>inspect2,isNaN:()=>isNaN22,isNumeric:()=>isNumeric,isProxyEnabled:()=>isProxyEnabled,isRegExp:()=>isRegExp2,objDisplay:()=>objDisplay,overwriteChainableMethod:()=>overwriteChainableMethod,overwriteMethod:()=>overwriteMethod,overwriteProperty:()=>overwriteProperty,proxify:()=>proxify,test:()=>test,transferFlags:()=>transferFlags,type:()=>type});var check_error_exports={};__export2(check_error_exports,{compatibleConstructor:()=>compatibleConstructor,compatibleInstance:()=>compatibleInstance,compatibleMessage:()=>compatibleMessage,getConstructorName:()=>getConstructorName,getMessage:()=>getMessage});function isErrorInstance(obj){return obj instanceof Error||Object.prototype.toString.call(obj)==="[object Error]"}__name(isErrorInstance,"isErrorInstance");function isRegExp(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"}__name(isRegExp,"isRegExp");function compatibleInstance(thrown,errorLike){return isErrorInstance(errorLike)&&thrown===errorLike}__name(compatibleInstance,"compatibleInstance");function compatibleConstructor(thrown,errorLike){return isErrorInstance(errorLike)?thrown.constructor===errorLike.constructor||thrown instanceof errorLike.constructor:(typeof errorLike=="object"||typeof errorLike=="function")&&errorLike.prototype?thrown.constructor===errorLike||thrown instanceof errorLike:!1}__name(compatibleConstructor,"compatibleConstructor");function compatibleMessage(thrown,errMatcher){let comparisonString=typeof thrown=="string"?thrown:thrown.message;return isRegExp(errMatcher)?errMatcher.test(comparisonString):typeof errMatcher=="string"?comparisonString.indexOf(errMatcher)!==-1:!1}__name(compatibleMessage,"compatibleMessage");function getConstructorName(errorLike){let constructorName=errorLike;return isErrorInstance(errorLike)?constructorName=errorLike.constructor.name:typeof errorLike=="function"&&(constructorName=errorLike.name,constructorName===""&&(constructorName=new errorLike().name||constructorName)),constructorName}__name(getConstructorName,"getConstructorName");function getMessage(errorLike){let msg="";return errorLike&&errorLike.message?msg=errorLike.message:typeof errorLike=="string"&&(msg=errorLike),msg}__name(getMessage,"getMessage");function flag(obj,key,value){var flags=obj.__flags||(obj.__flags=Object.create(null));if(arguments.length===3)flags[key]=value;else return flags[key]}__name(flag,"flag");function test(obj,args){var negate=flag(obj,"negate"),expr=args[0];return negate?!expr:expr}__name(test,"test");function type(obj){if(typeof obj>"u")return"undefined";if(obj===null)return"null";let stringTag=obj[Symbol.toStringTag];return typeof stringTag=="string"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type,"type");var canElideFrames="captureStackTrace"in Error,AssertionError=class _AssertionError extends Error{static{__name(this,"AssertionError")}message;get name(){return"AssertionError"}get ok(){return!1}constructor(message="Unspecified AssertionError",props,ssf){super(message),this.message=message,canElideFrames&&Error.captureStackTrace(this,ssf||_AssertionError);for(let key in props)key in this||(this[key]=props[key])}toJSON(stack){return{...this,name:this.name,message:this.message,ok:!1,stack:stack!==!1?this.stack:void 0}}};function expectTypes(obj,types){var flagMsg=flag(obj,"message"),ssfi=flag(obj,"ssfi");flagMsg=flagMsg?flagMsg+": ":"",obj=flag(obj,"object"),types=types.map(function(t){return t.toLowerCase()}),types.sort();var str=types.map(function(t,index){var art=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an":"a",or=types.length>1&&index===types.length-1?"or ":"";return or+art+" "+t}).join(", "),objType=type(obj).toLowerCase();if(!types.some(function(expected){return objType===expected}))throw new AssertionError(flagMsg+"object tested must be "+str+", but "+objType+" given",void 0,ssfi)}__name(expectTypes,"expectTypes");function getActual(obj,args){return args.length>4?args[4]:obj._obj}__name(getActual,"getActual");var ansiColors={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"]},styles={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},truncator="\u2026";function colorise(value,styleType){let color=ansiColors[styles[styleType]]||ansiColors[styleType]||"";return color?`\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`:String(value)}__name(colorise,"colorise");function normaliseOptions({showHidden=!1,depth=2,colors=!1,customInspect=!0,showProxy=!1,maxArrayLength=1/0,breakLength=1/0,seen=[],truncate:truncate22=1/0,stylize=String}={},inspect32){let options={showHidden:!!showHidden,depth:Number(depth),colors:!!colors,customInspect:!!customInspect,showProxy:!!showProxy,maxArrayLength:Number(maxArrayLength),breakLength:Number(breakLength),truncate:Number(truncate22),seen,inspect:inspect32,stylize};return options.colors&&(options.stylize=colorise),options}__name(normaliseOptions,"normaliseOptions");function isHighSurrogate(char){return char>="\uD800"&&char<="\uDBFF"}__name(isHighSurrogate,"isHighSurrogate");function truncate(string,length,tail=truncator){string=String(string);let tailLength=tail.length,stringLength=string.length;if(tailLength>length&&stringLength>tailLength)return tail;if(stringLength>length&&stringLength>tailLength){let end=length-tailLength;return end>0&&isHighSurrogate(string[end-1])&&(end=end-1),`${string.slice(0,end)}${tail}`}return string}__name(truncate,"truncate");function inspectList(list,options,inspectItem,separator=", "){inspectItem=inspectItem||options.inspect;let size=list.length;if(size===0)return"";let originalLength=options.truncate,output="",peek="",truncated="";for(let i=0;i<size;i+=1){let last=i+1===list.length,secondToLast=i+2===list.length;truncated=`${truncator}(${list.length-i})`;let value=list[i];options.truncate=originalLength-output.length-(last?0:separator.length);let string=peek||inspectItem(value,options)+(last?"":separator),nextLength=output.length+string.length,truncatedLength=nextLength+truncated.length;if(last&&nextLength>originalLength&&output.length+truncated.length<=originalLength||!last&&!secondToLast&&truncatedLength>originalLength||(peek=last?"":inspectItem(list[i+1],options)+(secondToLast?"":separator),!last&&secondToLast&&truncatedLength>originalLength&&nextLength+peek.length>originalLength))break;if(output+=string,!last&&!secondToLast&&nextLength+peek.length>=originalLength){truncated=`${truncator}(${list.length-i-1})`;break}truncated=""}return`${output}${truncated}`}__name(inspectList,"inspectList");function quoteComplexKey(key){return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?key:JSON.stringify(key).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}__name(quoteComplexKey,"quoteComplexKey");function inspectProperty([key,value],options){return options.truncate-=2,typeof key=="string"?key=quoteComplexKey(key):typeof key!="number"&&(key=`[${options.inspect(key,options)}]`),options.truncate-=key.length,value=options.inspect(value,options),`${key}: ${value}`}__name(inspectProperty,"inspectProperty");function inspectArray(array,options){let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return"[]";options.truncate-=4;let listContents=inspectList(array,options);options.truncate-=listContents.length;let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty)),`[ ${listContents}${propertyContents?`, ${propertyContents}`:""} ]`}__name(inspectArray,"inspectArray");var getArrayName=__name(array=>typeof Buffer=="function"&&array instanceof Buffer?"Buffer":array[Symbol.toStringTag]?array[Symbol.toStringTag]:array.constructor.name,"getArrayName");function inspectTypedArray(array,options){let name=getArrayName(array);options.truncate-=name.length+4;let nonIndexProperties=Object.keys(array).slice(array.length);if(!array.length&&!nonIndexProperties.length)return`${name}[]`;let output="";for(let i=0;i<array.length;i++){let string=`${options.stylize(truncate(array[i],options.truncate),"number")}${i===array.length-1?"":", "}`;if(options.truncate-=string.length,array[i]!==array.length&&options.truncate<=3){output+=`${truncator}(${array.length-array[i]+1})`;break}output+=string}let propertyContents="";return nonIndexProperties.length&&(propertyContents=inspectList(nonIndexProperties.map(key=>[key,array[key]]),options,inspectProperty)),`${name}[ ${output}${propertyContents?`, ${propertyContents}`:""} ]`}__name(inspectTypedArray,"inspectTypedArray");function inspectDate(dateObject,options){let stringRepresentation=dateObject.toJSON();if(stringRepresentation===null)return"Invalid Date";let split=stringRepresentation.split("T"),date=split[0];return options.stylize(`${date}T${truncate(split[1],options.truncate-date.length-1)}`,"date")}__name(inspectDate,"inspectDate");function inspectFunction(func,options){let functionType=func[Symbol.toStringTag]||"Function",name=func.name;return name?options.stylize(`[${functionType} ${truncate(name,options.truncate-11)}]`,"special"):options.stylize(`[${functionType}]`,"special")}__name(inspectFunction,"inspectFunction");function inspectMapEntry([key,value],options){return options.truncate-=4,key=options.inspect(key,options),options.truncate-=key.length,value=options.inspect(value,options),`${key} => ${value}`}__name(inspectMapEntry,"inspectMapEntry");function mapToEntries(map){let entries=[];return map.forEach((value,key)=>{entries.push([key,value])}),entries}__name(mapToEntries,"mapToEntries");function inspectMap(map,options){return map.size-1<=0?"Map{}":(options.truncate-=7,`Map{ ${inspectList(mapToEntries(map),options,inspectMapEntry)} }`)}__name(inspectMap,"inspectMap");var isNaN2=Number.isNaN||(i=>i!==i);function inspectNumber(number,options){return isNaN2(number)?options.stylize("NaN","number"):number===1/0?options.stylize("Infinity","number"):number===-1/0?options.stylize("-Infinity","number"):number===0?options.stylize(1/number===1/0?"+0":"-0","number"):options.stylize(truncate(String(number),options.truncate),"number")}__name(inspectNumber,"inspectNumber");function inspectBigInt(number,options){let nums=truncate(number.toString(),options.truncate-1);return nums!==truncator&&(nums+="n"),options.stylize(nums,"bigint")}__name(inspectBigInt,"inspectBigInt");function inspectRegExp(value,options){let flags=value.toString().split("/")[2],sourceLength=options.truncate-(2+flags.length),source=value.source;return options.stylize(`/${truncate(source,sourceLength)}/${flags}`,"regexp")}__name(inspectRegExp,"inspectRegExp");function arrayFromSet(set2){let values=[];return set2.forEach(value=>{values.push(value)}),values}__name(arrayFromSet,"arrayFromSet");function inspectSet(set2,options){return set2.size===0?"Set{}":(options.truncate-=7,`Set{ ${inspectList(arrayFromSet(set2),options)} }`)}__name(inspectSet,"inspectSet");var stringEscapeChars=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),escapeCharacters={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},hex=16,unicodeLength=4;function escape(char){return escapeCharacters[char]||`\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`}__name(escape,"escape");function inspectString(string,options){return stringEscapeChars.test(string)&&(string=string.replace(stringEscapeChars,escape)),options.stylize(`'${truncate(string,options.truncate-2)}'`,"string")}__name(inspectString,"inspectString");function inspectSymbol(value){return"description"in Symbol.prototype?value.description?`Symbol(${value.description})`:"Symbol()":value.toString()}__name(inspectSymbol,"inspectSymbol");var getPromiseValue=__name(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails,kPending,kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue=__name((value,options)=>{let[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{<pending>}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`},"getPromiseValue"))}catch{}var promise_default=getPromiseValue;function inspectObject(object,options){let properties=Object.getOwnPropertyNames(object),symbols=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(object):[];if(properties.length===0&&symbols.length===0)return"{}";if(options.truncate-=4,options.seen=options.seen||[],options.seen.includes(object))return"[Circular]";options.seen.push(object);let propertyContents=inspectList(properties.map(key=>[key,object[key]]),options,inspectProperty),symbolContents=inspectList(symbols.map(key=>[key,object[key]]),options,inspectProperty);options.seen.pop();let sep="";return propertyContents&&symbolContents&&(sep=", "),`{ ${propertyContents}${sep}${symbolContents} }`}__name(inspectObject,"inspectObject");var toStringTag=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function inspectClass(value,options){let name="";return toStringTag&&toStringTag in value&&(name=value[toStringTag]),name=name||value.constructor.name,(!name||name==="_class")&&(name="<Anonymous Class>"),options.truncate-=name.length,`${name}${inspectObject(value,options)}`}__name(inspectClass,"inspectClass");function inspectArguments(args,options){return args.length===0?"Arguments[]":(options.truncate-=13,`Arguments[ ${inspectList(args,options)} ]`)}__name(inspectArguments,"inspectArguments");var errorKeys=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function inspectObject2(error,options){let properties=Object.getOwnPropertyNames(error).filter(key=>errorKeys.indexOf(key)===-1),name=error.name;options.truncate-=name.length;let message="";if(typeof error.message=="string"?message=truncate(error.message,options.truncate):properties.unshift("message"),message=message?`: ${message}`:"",options.truncate-=message.length+5,options.seen=options.seen||[],options.seen.includes(error))return"[Circular]";options.seen.push(error);let propertyContents=inspectList(properties.map(key=>[key,error[key]]),options,inspectProperty);return`${name}${message}${propertyContents?` { ${propertyContents} }`:""}`}__name(inspectObject2,"inspectObject");function inspectAttribute([key,value],options){return options.truncate-=3,value?`${options.stylize(String(key),"yellow")}=${options.stylize(`"${value}"`,"string")}`:`${options.stylize(String(key),"yellow")}`}__name(inspectAttribute,"inspectAttribute");function inspectHTMLCollection(collection,options){return inspectList(collection,options,inspectHTML,`
|
27
|
-
`)}__name(inspectHTMLCollection,"inspectHTMLCollection");function inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(`</${name}>`,"special");options.truncate-=name.length*2+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList(properties.map(key=>[key,element.getAttribute(key)]),options,inspectAttribute," ")),options.truncate-=propertyContents.length;let truncate22=options.truncate,children=inspectHTMLCollection(element.children,options);return children&&children.length>truncate22&&(children=`${truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}__name(inspectHTML,"inspectHTML");var symbolsSupported=typeof Symbol=="function"&&typeof Symbol.for=="function",chaiInspect=symbolsSupported?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect=!1;try{let nodeUtil=require_util();nodeInspect=nodeUtil.inspect?nodeUtil.inspect.custom:!1}catch{nodeInspect=!1}var constructorMap=new WeakMap,stringTagMap={},baseTypesMap={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:inspectArray,Date:inspectDate,Map:inspectMap,Set:inspectSet,RegExp:inspectRegExp,Promise:promise_default,WeakSet:(value,options)=>options.stylize("WeakSet{\u2026}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{\u2026}","special"),Arguments:inspectArguments,Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:inspectObject2,HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection},inspectCustom=__name((value,options,type32)=>chaiInspect in value&&typeof value[chaiInspect]=="function"?value[chaiInspect](options):nodeInspect&&nodeInspect in value&&typeof value[nodeInspect]=="function"?value[nodeInspect](options.depth,options):"inspect"in value&&typeof value.inspect=="function"?value.inspect(options.depth,options):"constructor"in value&&constructorMap.has(value.constructor)?constructorMap.get(value.constructor)(value,options):stringTagMap[type32]?stringTagMap[type32](value,options):"","inspectCustom"),toString=Object.prototype.toString;function inspect(value,opts={}){let options=normaliseOptions(opts,inspect),{customInspect}=options,type32=value===null?"null":typeof value;if(type32==="object"&&(type32=toString.call(value).slice(8,-1)),type32 in baseTypesMap)return baseTypesMap[type32](value,options);if(customInspect&&value){let output=inspectCustom(value,options,type32);if(output)return typeof output=="string"?output:inspect(output,options)}let proto=value?Object.getPrototypeOf(value):!1;return proto===Object.prototype||proto===null?inspectObject(value,options):value&&typeof HTMLElement=="function"&&value instanceof HTMLElement?inspectHTML(value,options):"constructor"in value?value.constructor!==Object?inspectClass(value,options):inspectObject(value,options):value===Object(value)?inspectObject(value,options):options.stylize(String(value),type32)}__name(inspect,"inspect");var config={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function inspect2(obj,showHidden,depth,colors){var options={colors,depth:typeof depth>"u"?2:depth,showHidden,truncate:config.truncateThreshold?config.truncateThreshold:1/0};return inspect(obj,options)}__name(inspect2,"inspect");function objDisplay(obj){var str=inspect2(obj),type32=Object.prototype.toString.call(obj);if(config.truncateThreshold&&str.length>=config.truncateThreshold){if(type32==="[object Function]")return!obj.name||obj.name===""?"[Function]":"[Function: "+obj.name+"]";if(type32==="[object Array]")return"[ Array("+obj.length+") ]";if(type32==="[object Object]"){var keys2=Object.keys(obj),kstr=keys2.length>2?keys2.splice(0,2).join(", ")+", ...":keys2.join(", ");return"{ Object ("+kstr+") }"}else return str}else return str}__name(objDisplay,"objDisplay");function getMessage2(obj,args){var negate=flag(obj,"negate"),val=flag(obj,"object"),expected=args[3],actual=getActual(obj,args),msg=negate?args[2]:args[1],flagMsg=flag(obj,"message");return typeof msg=="function"&&(msg=msg()),msg=msg||"",msg=msg.replace(/#\{this\}/g,function(){return objDisplay(val)}).replace(/#\{act\}/g,function(){return objDisplay(actual)}).replace(/#\{exp\}/g,function(){return objDisplay(expected)}),flagMsg?flagMsg+": "+msg:msg}__name(getMessage2,"getMessage");function transferFlags(assertion,object,includeAll){var flags=assertion.__flags||(assertion.__flags=Object.create(null));object.__flags||(object.__flags=Object.create(null)),includeAll=arguments.length===3?includeAll:!0;for(var flag3 in flags)(includeAll||flag3!=="object"&&flag3!=="ssfi"&&flag3!=="lockSsfi"&&flag3!="message")&&(object.__flags[flag3]=flags[flag3])}__name(transferFlags,"transferFlags");function type2(obj){if(typeof obj>"u")return"undefined";if(obj===null)return"null";let stringTag=obj[Symbol.toStringTag];return typeof stringTag=="string"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type2,"type");function FakeMap(){this._key="chai/deep-eql__"+Math.random()+Date.now()}__name(FakeMap,"FakeMap");FakeMap.prototype={get:__name(function(key){return key[this._key]},"get"),set:__name(function(key,value){Object.isExtensible(key)&&Object.defineProperty(key,this._key,{value,configurable:!0})},"set")};var MemoizeMap=typeof WeakMap=="function"?WeakMap:FakeMap;function memoizeCompare(leftHandOperand,rightHandOperand,memoizeMap){if(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))return null;var leftHandMap=memoizeMap.get(leftHandOperand);if(leftHandMap){var result=leftHandMap.get(rightHandOperand);if(typeof result=="boolean")return result}return null}__name(memoizeCompare,"memoizeCompare");function memoizeSet(leftHandOperand,rightHandOperand,memoizeMap,result){if(!(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))){var leftHandMap=memoizeMap.get(leftHandOperand);leftHandMap?leftHandMap.set(rightHandOperand,result):(leftHandMap=new MemoizeMap,leftHandMap.set(rightHandOperand,result),memoizeMap.set(leftHandOperand,leftHandMap))}}__name(memoizeSet,"memoizeSet");var deep_eql_default=deepEqual;function deepEqual(leftHandOperand,rightHandOperand,options){if(options&&options.comparator)return extensiveDeepEqual(leftHandOperand,rightHandOperand,options);var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);return simpleResult!==null?simpleResult:extensiveDeepEqual(leftHandOperand,rightHandOperand,options)}__name(deepEqual,"deepEqual");function simpleEqual(leftHandOperand,rightHandOperand){return leftHandOperand===rightHandOperand?leftHandOperand!==0||1/leftHandOperand===1/rightHandOperand:leftHandOperand!==leftHandOperand&&rightHandOperand!==rightHandOperand?!0:isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand)?!1:null}__name(simpleEqual,"simpleEqual");function extensiveDeepEqual(leftHandOperand,rightHandOperand,options){options=options||{},options.memoize=options.memoize===!1?!1:options.memoize||new MemoizeMap;var comparator=options&&options.comparator,memoizeResultLeft=memoizeCompare(leftHandOperand,rightHandOperand,options.memoize);if(memoizeResultLeft!==null)return memoizeResultLeft;var memoizeResultRight=memoizeCompare(rightHandOperand,leftHandOperand,options.memoize);if(memoizeResultRight!==null)return memoizeResultRight;if(comparator){var comparatorResult=comparator(leftHandOperand,rightHandOperand);if(comparatorResult===!1||comparatorResult===!0)return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,comparatorResult),comparatorResult;var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);if(simpleResult!==null)return simpleResult}var leftHandType=type2(leftHandOperand);if(leftHandType!==type2(rightHandOperand))return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!1),!1;memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!0);var result=extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options);return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,result),result}__name(extensiveDeepEqual,"extensiveDeepEqual");function extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options){switch(leftHandType){case"String":case"Number":case"Boolean":case"Date":return deepEqual(leftHandOperand.valueOf(),rightHandOperand.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return leftHandOperand===rightHandOperand;case"Error":return keysEqual(leftHandOperand,rightHandOperand,["name","message","code"],options);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return iterableEqual(leftHandOperand,rightHandOperand,options);case"RegExp":return regexpEqual(leftHandOperand,rightHandOperand);case"Generator":return generatorEqual(leftHandOperand,rightHandOperand,options);case"DataView":return iterableEqual(new Uint8Array(leftHandOperand.buffer),new Uint8Array(rightHandOperand.buffer),options);case"ArrayBuffer":return iterableEqual(new Uint8Array(leftHandOperand),new Uint8Array(rightHandOperand),options);case"Set":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Map":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return leftHandOperand.equals(rightHandOperand);case"Temporal.Duration":return leftHandOperand.total("nanoseconds")===rightHandOperand.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return leftHandOperand.toString()===rightHandOperand.toString();default:return objectEqual(leftHandOperand,rightHandOperand,options)}}__name(extensiveDeepEqualByType,"extensiveDeepEqualByType");function regexpEqual(leftHandOperand,rightHandOperand){return leftHandOperand.toString()===rightHandOperand.toString()}__name(regexpEqual,"regexpEqual");function entriesEqual(leftHandOperand,rightHandOperand,options){try{if(leftHandOperand.size!==rightHandOperand.size)return!1;if(leftHandOperand.size===0)return!0}catch{return!1}var leftHandItems=[],rightHandItems=[];return leftHandOperand.forEach(__name(function(key,value){leftHandItems.push([key,value])},"gatherEntries")),rightHandOperand.forEach(__name(function(key,value){rightHandItems.push([key,value])},"gatherEntries")),iterableEqual(leftHandItems.sort(),rightHandItems.sort(),options)}__name(entriesEqual,"entriesEqual");function iterableEqual(leftHandOperand,rightHandOperand,options){var length=leftHandOperand.length;if(length!==rightHandOperand.length)return!1;if(length===0)return!0;for(var index=-1;++index<length;)if(deepEqual(leftHandOperand[index],rightHandOperand[index],options)===!1)return!1;return!0}__name(iterableEqual,"iterableEqual");function generatorEqual(leftHandOperand,rightHandOperand,options){return iterableEqual(getGeneratorEntries(leftHandOperand),getGeneratorEntries(rightHandOperand),options)}__name(generatorEqual,"generatorEqual");function hasIteratorFunction(target){return typeof Symbol<"u"&&typeof target=="object"&&typeof Symbol.iterator<"u"&&typeof target[Symbol.iterator]=="function"}__name(hasIteratorFunction,"hasIteratorFunction");function getIteratorEntries(target){if(hasIteratorFunction(target))try{return getGeneratorEntries(target[Symbol.iterator]())}catch{return[]}return[]}__name(getIteratorEntries,"getIteratorEntries");function getGeneratorEntries(generator){for(var generatorResult=generator.next(),accumulator=[generatorResult.value];generatorResult.done===!1;)generatorResult=generator.next(),accumulator.push(generatorResult.value);return accumulator}__name(getGeneratorEntries,"getGeneratorEntries");function getEnumerableKeys(target){var keys2=[];for(var key in target)keys2.push(key);return keys2}__name(getEnumerableKeys,"getEnumerableKeys");function getEnumerableSymbols(target){for(var keys2=[],allKeys=Object.getOwnPropertySymbols(target),i=0;i<allKeys.length;i+=1){var key=allKeys[i];Object.getOwnPropertyDescriptor(target,key).enumerable&&keys2.push(key)}return keys2}__name(getEnumerableSymbols,"getEnumerableSymbols");function keysEqual(leftHandOperand,rightHandOperand,keys2,options){var length=keys2.length;if(length===0)return!0;for(var i=0;i<length;i+=1)if(deepEqual(leftHandOperand[keys2[i]],rightHandOperand[keys2[i]],options)===!1)return!1;return!0}__name(keysEqual,"keysEqual");function objectEqual(leftHandOperand,rightHandOperand,options){var leftHandKeys=getEnumerableKeys(leftHandOperand),rightHandKeys=getEnumerableKeys(rightHandOperand),leftHandSymbols=getEnumerableSymbols(leftHandOperand),rightHandSymbols=getEnumerableSymbols(rightHandOperand);if(leftHandKeys=leftHandKeys.concat(leftHandSymbols),rightHandKeys=rightHandKeys.concat(rightHandSymbols),leftHandKeys.length&&leftHandKeys.length===rightHandKeys.length)return iterableEqual(mapSymbols(leftHandKeys).sort(),mapSymbols(rightHandKeys).sort())===!1?!1:keysEqual(leftHandOperand,rightHandOperand,leftHandKeys,options);var leftHandEntries=getIteratorEntries(leftHandOperand),rightHandEntries=getIteratorEntries(rightHandOperand);return leftHandEntries.length&&leftHandEntries.length===rightHandEntries.length?(leftHandEntries.sort(),rightHandEntries.sort(),iterableEqual(leftHandEntries,rightHandEntries,options)):leftHandKeys.length===0&&leftHandEntries.length===0&&rightHandKeys.length===0&&rightHandEntries.length===0}__name(objectEqual,"objectEqual");function isPrimitive(value){return value===null||typeof value!="object"}__name(isPrimitive,"isPrimitive");function mapSymbols(arr){return arr.map(__name(function(entry){return typeof entry=="symbol"?entry.toString():entry},"mapSymbol"))}__name(mapSymbols,"mapSymbols");function hasProperty(obj,name){return typeof obj>"u"||obj===null?!1:name in Object(obj)}__name(hasProperty,"hasProperty");function parsePath(path){return path.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(value=>{if(value==="constructor"||value==="__proto__"||value==="prototype")return{};let mArr=/^\[(\d+)\]$/.exec(value),parsed=null;return mArr?parsed={i:parseFloat(mArr[1])}:parsed={p:value.replace(/\\([.[\]])/g,"$1")},parsed})}__name(parsePath,"parsePath");function internalGetPathValue(obj,parsed,pathDepth){let temporaryValue=obj,res=null;pathDepth=typeof pathDepth>"u"?parsed.length:pathDepth;for(let i=0;i<pathDepth;i++){let part=parsed[i];temporaryValue&&(typeof part.p>"u"?temporaryValue=temporaryValue[part.i]:temporaryValue=temporaryValue[part.p],i===pathDepth-1&&(res=temporaryValue))}return res}__name(internalGetPathValue,"internalGetPathValue");function getPathInfo(obj,path){let parsed=parsePath(path),last=parsed[parsed.length-1],info={parent:parsed.length>1?internalGetPathValue(obj,parsed,parsed.length-1):obj,name:last.p||last.i,value:internalGetPathValue(obj,parsed)};return info.exists=hasProperty(info.parent,info.name),info}__name(getPathInfo,"getPathInfo");function Assertion(obj,msg,ssfi,lockSsfi){return flag(this,"ssfi",ssfi||Assertion),flag(this,"lockSsfi",lockSsfi),flag(this,"object",obj),flag(this,"message",msg),flag(this,"eql",config.deepEqual||deep_eql_default),proxify(this)}__name(Assertion,"Assertion");Object.defineProperty(Assertion,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack},set:function(value){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack=value}});Object.defineProperty(Assertion,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff},set:function(value){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff=value}});Assertion.addProperty=function(name,fn3){addProperty(this.prototype,name,fn3)};Assertion.addMethod=function(name,fn3){addMethod(this.prototype,name,fn3)};Assertion.addChainableMethod=function(name,fn3,chainingBehavior){addChainableMethod(this.prototype,name,fn3,chainingBehavior)};Assertion.overwriteProperty=function(name,fn3){overwriteProperty(this.prototype,name,fn3)};Assertion.overwriteMethod=function(name,fn3){overwriteMethod(this.prototype,name,fn3)};Assertion.overwriteChainableMethod=function(name,fn3,chainingBehavior){overwriteChainableMethod(this.prototype,name,fn3,chainingBehavior)};Assertion.prototype.assert=function(expr,msg,negateMsg,expected,_actual,showDiff){var ok=test(this,arguments);if(showDiff!==!1&&(showDiff=!0),expected===void 0&&_actual===void 0&&(showDiff=!1),config.showDiff!==!0&&(showDiff=!1),!ok){msg=getMessage2(this,arguments);var actual=getActual(this,arguments),assertionErrorObjectProperties={actual,expected,showDiff},operator=getOperator(this,arguments);throw operator&&(assertionErrorObjectProperties.operator=operator),new AssertionError(msg,assertionErrorObjectProperties,config.includeStack?this.assert:flag(this,"ssfi"))}};Object.defineProperty(Assertion.prototype,"_obj",{get:function(){return flag(this,"object")},set:function(val){flag(this,"object",val)}});function isProxyEnabled(){return config.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}__name(isProxyEnabled,"isProxyEnabled");function addProperty(ctx,name,getter){getter=getter===void 0?function(){}:getter,Object.defineProperty(ctx,name,{get:__name(function propertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",propertyGetter);var result=getter.call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"propertyGetter"),configurable:!0})}__name(addProperty,"addProperty");var fnLengthDesc=Object.getOwnPropertyDescriptor(function(){},"length");function addLengthGuard(fn3,assertionName,isChainable){return fnLengthDesc.configurable&&Object.defineProperty(fn3,"length",{get:function(){throw Error(isChainable?"Invalid Chai property: "+assertionName+'.length. Due to a compatibility issue, "length" cannot directly follow "'+assertionName+'". Use "'+assertionName+'.lengthOf" instead.':"Invalid Chai property: "+assertionName+'.length. See docs for proper usage of "'+assertionName+'".')}}),fn3}__name(addLengthGuard,"addLengthGuard");function getProperties(object){var result=Object.getOwnPropertyNames(object);function addProperty2(property){result.indexOf(property)===-1&&result.push(property)}__name(addProperty2,"addProperty");for(var proto=Object.getPrototypeOf(object);proto!==null;)Object.getOwnPropertyNames(proto).forEach(addProperty2),proto=Object.getPrototypeOf(proto);return result}__name(getProperties,"getProperties");var builtins=["__flags","__methods","_obj","assert"];function proxify(obj,nonChainableMethodName){return isProxyEnabled()?new Proxy(obj,{get:__name(function proxyGetter(target,property){if(typeof property=="string"&&config.proxyExcludedKeys.indexOf(property)===-1&&!Reflect.has(target,property)){if(nonChainableMethodName)throw Error("Invalid Chai property: "+nonChainableMethodName+"."+property+'. See docs for proper usage of "'+nonChainableMethodName+'".');var suggestion=null,suggestionDistance=4;throw getProperties(target).forEach(function(prop){if(!Object.prototype.hasOwnProperty(prop)&&builtins.indexOf(prop)===-1){var dist=stringDistanceCapped(property,prop,suggestionDistance);dist<suggestionDistance&&(suggestion=prop,suggestionDistance=dist)}}),Error(suggestion!==null?"Invalid Chai property: "+property+'. Did you mean "'+suggestion+'"?':"Invalid Chai property: "+property)}return builtins.indexOf(property)===-1&&!flag(target,"lockSsfi")&&flag(target,"ssfi",proxyGetter),Reflect.get(target,property)},"proxyGetter")}):obj}__name(proxify,"proxify");function stringDistanceCapped(strA,strB,cap){if(Math.abs(strA.length-strB.length)>=cap)return cap;for(var memo=[],i=0;i<=strA.length;i++)memo[i]=Array(strB.length+1).fill(0),memo[i][0]=i;for(var j=0;j<strB.length;j++)memo[0][j]=j;for(var i=1;i<=strA.length;i++)for(var ch=strA.charCodeAt(i-1),j=1;j<=strB.length;j++){if(Math.abs(i-j)>=cap){memo[i][j]=cap;continue}memo[i][j]=Math.min(memo[i-1][j]+1,memo[i][j-1]+1,memo[i-1][j-1]+(ch===strB.charCodeAt(j-1)?0:1))}return memo[strA.length][strB.length]}__name(stringDistanceCapped,"stringDistanceCapped");function addMethod(ctx,name,method){var methodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",methodWrapper);var result=method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"methodWrapper");addLengthGuard(methodWrapper,name,!1),ctx[name]=proxify(methodWrapper,name)}__name(addMethod,"addMethod");function overwriteProperty(ctx,name,getter){var _get=Object.getOwnPropertyDescriptor(ctx,name),_super=__name(function(){},"_super");_get&&typeof _get.get=="function"&&(_super=_get.get),Object.defineProperty(ctx,name,{get:__name(function overwritingPropertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",overwritingPropertyGetter);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=getter(_super).call(this);if(flag(this,"lockSsfi",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingPropertyGetter"),configurable:!0})}__name(overwriteProperty,"overwriteProperty");function overwriteMethod(ctx,name,method){var _method=ctx[name],_super=__name(function(){throw new Error(name+" is not a function")},"_super");_method&&typeof _method=="function"&&(_super=_method);var overwritingMethodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",overwritingMethodWrapper);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=method(_super).apply(this,arguments);if(flag(this,"lockSsfi",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingMethodWrapper");addLengthGuard(overwritingMethodWrapper,name,!1),ctx[name]=proxify(overwritingMethodWrapper,name)}__name(overwriteMethod,"overwriteMethod");var canSetPrototype=typeof Object.setPrototypeOf=="function",testFn=__name(function(){},"testFn"),excludeNames=Object.getOwnPropertyNames(testFn).filter(function(name){var propDesc=Object.getOwnPropertyDescriptor(testFn,name);return typeof propDesc!="object"?!0:!propDesc.configurable}),call=Function.prototype.call,apply=Function.prototype.apply;function addChainableMethod(ctx,name,method,chainingBehavior){typeof chainingBehavior!="function"&&(chainingBehavior=__name(function(){},"chainingBehavior"));var chainableBehavior={method,chainingBehavior};ctx.__methods||(ctx.__methods={}),ctx.__methods[name]=chainableBehavior,Object.defineProperty(ctx,name,{get:__name(function(){chainableBehavior.chainingBehavior.call(this);var chainableMethodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",chainableMethodWrapper);var result=chainableBehavior.method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"chainableMethodWrapper");if(addLengthGuard(chainableMethodWrapper,name,!0),canSetPrototype){var prototype=Object.create(this);prototype.call=call,prototype.apply=apply,Object.setPrototypeOf(chainableMethodWrapper,prototype)}else{var asserterNames=Object.getOwnPropertyNames(ctx);asserterNames.forEach(function(asserterName){if(excludeNames.indexOf(asserterName)===-1){var pd=Object.getOwnPropertyDescriptor(ctx,asserterName);Object.defineProperty(chainableMethodWrapper,asserterName,pd)}})}return transferFlags(this,chainableMethodWrapper),proxify(chainableMethodWrapper)},"chainableMethodGetter"),configurable:!0})}__name(addChainableMethod,"addChainableMethod");function overwriteChainableMethod(ctx,name,method,chainingBehavior){var chainableBehavior=ctx.__methods[name],_chainingBehavior=chainableBehavior.chainingBehavior;chainableBehavior.chainingBehavior=__name(function(){var result=chainingBehavior(_chainingBehavior).call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingChainableMethodGetter");var _method=chainableBehavior.method;chainableBehavior.method=__name(function(){var result=method(_method).apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingChainableMethodWrapper")}__name(overwriteChainableMethod,"overwriteChainableMethod");function compareByInspect(a2,b){return inspect2(a2)<inspect2(b)?-1:1}__name(compareByInspect,"compareByInspect");function getOwnEnumerablePropertySymbols(obj){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(obj).filter(function(sym){return Object.getOwnPropertyDescriptor(obj,sym).enumerable})}__name(getOwnEnumerablePropertySymbols,"getOwnEnumerablePropertySymbols");function getOwnEnumerableProperties(obj){return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj))}__name(getOwnEnumerableProperties,"getOwnEnumerableProperties");function _isNaN(value){return value!==value}__name(_isNaN,"_isNaN");var isNaN22=Number.isNaN||_isNaN;function isObjectType(obj){var objectType=type(obj),objectTypes=["Array","Object","Function"];return objectTypes.indexOf(objectType)!==-1}__name(isObjectType,"isObjectType");function getOperator(obj,args){var operator=flag(obj,"operator"),negate=flag(obj,"negate"),expected=args[3],msg=negate?args[2]:args[1];if(operator)return operator;if(typeof msg=="function"&&(msg=msg()),msg=msg||"",!!msg&&!/\shave\s/.test(msg)){var isObject2=isObjectType(expected);return/\snot\s/.test(msg)?isObject2?"notDeepStrictEqual":"notStrictEqual":isObject2?"deepStrictEqual":"strictEqual"}}__name(getOperator,"getOperator");function getName(fn3){return fn3.name}__name(getName,"getName");function isRegExp2(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"}__name(isRegExp2,"isRegExp");function isNumeric(obj){return["Number","BigInt"].includes(type(obj))}__name(isNumeric,"isNumeric");var{flag:flag2}=utils_exports;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(chain){Assertion.addProperty(chain)});Assertion.addProperty("not",function(){flag2(this,"negate",!0)});Assertion.addProperty("deep",function(){flag2(this,"deep",!0)});Assertion.addProperty("nested",function(){flag2(this,"nested",!0)});Assertion.addProperty("own",function(){flag2(this,"own",!0)});Assertion.addProperty("ordered",function(){flag2(this,"ordered",!0)});Assertion.addProperty("any",function(){flag2(this,"any",!0),flag2(this,"all",!1)});Assertion.addProperty("all",function(){flag2(this,"all",!0),flag2(this,"any",!1)});var functionTypes={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function an(type32,msg){msg&&flag2(this,"message",msg),type32=type32.toLowerCase();var obj=flag2(this,"object"),article=~["a","e","i","o","u"].indexOf(type32.charAt(0))?"an ":"a ";let detectedType=type(obj).toLowerCase();functionTypes.function.includes(type32)?this.assert(functionTypes[type32].includes(detectedType),"expected #{this} to be "+article+type32,"expected #{this} not to be "+article+type32):this.assert(type32===detectedType,"expected #{this} to be "+article+type32,"expected #{this} not to be "+article+type32)}__name(an,"an");Assertion.addChainableMethod("an",an);Assertion.addChainableMethod("a",an);function SameValueZero(a2,b){return isNaN22(a2)&&isNaN22(b)||a2===b}__name(SameValueZero,"SameValueZero");function includeChainingBehavior(){flag2(this,"contains",!0)}__name(includeChainingBehavior,"includeChainingBehavior");function include(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),negate=flag2(this,"negate"),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),descriptor=isDeep?"deep ":"",isEql=isDeep?flag2(this,"eql"):SameValueZero;flagMsg=flagMsg?flagMsg+": ":"";var included=!1;switch(objType){case"string":included=obj.indexOf(val)!==-1;break;case"weakset":if(isDeep)throw new AssertionError(flagMsg+"unable to use .deep.include with WeakSet",void 0,ssfi);included=obj.has(val);break;case"map":obj.forEach(function(item){included=included||isEql(item,val)});break;case"set":isDeep?obj.forEach(function(item){included=included||isEql(item,val)}):included=obj.has(val);break;case"array":isDeep?included=obj.some(function(item){return isEql(item,val)}):included=obj.indexOf(val)!==-1;break;default:if(val!==Object(val))throw new AssertionError(flagMsg+"the given combination of arguments ("+objType+" and "+type(val).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 "+type(val).toLowerCase(),void 0,ssfi);var props=Object.keys(val),firstErr=null,numErrs=0;if(props.forEach(function(prop){var propAssertion=new Assertion(obj);if(transferFlags(this,propAssertion,!0),flag2(propAssertion,"lockSsfi",!0),!negate||props.length===1){propAssertion.property(prop,val[prop]);return}try{propAssertion.property(prop,val[prop])}catch(err){if(!check_error_exports.compatibleConstructor(err,AssertionError))throw err;firstErr===null&&(firstErr=err),numErrs++}},this),negate&&props.length>1&&numErrs===props.length)throw firstErr;return}this.assert(included,"expected #{this} to "+descriptor+"include "+inspect2(val),"expected #{this} to not "+descriptor+"include "+inspect2(val))}__name(include,"include");Assertion.addChainableMethod("include",include,includeChainingBehavior);Assertion.addChainableMethod("contain",include,includeChainingBehavior);Assertion.addChainableMethod("contains",include,includeChainingBehavior);Assertion.addChainableMethod("includes",include,includeChainingBehavior);Assertion.addProperty("ok",function(){this.assert(flag2(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});Assertion.addProperty("true",function(){this.assert(flag2(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!flag2(this,"negate"))});Assertion.addProperty("numeric",function(){let object=flag2(this,"object");this.assert(["Number","BigInt"].includes(type(object)),"expected #{this} to be numeric","expected #{this} to not be numeric",!flag2(this,"negate"))});Assertion.addProperty("callable",function(){let val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),message=flag2(this,"message"),msg=message?`${message}: `:"",negate=flag2(this,"negate"),assertionMessage=negate?`${msg}expected ${inspect2(val)} not to be a callable function`:`${msg}expected ${inspect2(val)} to be a callable function`,isCallable3=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(type(val));if(isCallable3&&negate||!isCallable3&&!negate)throw new AssertionError(assertionMessage,void 0,ssfi)});Assertion.addProperty("false",function(){this.assert(flag2(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!flag2(this,"negate"))});Assertion.addProperty("null",function(){this.assert(flag2(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});Assertion.addProperty("undefined",function(){this.assert(flag2(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});Assertion.addProperty("NaN",function(){this.assert(isNaN22(flag2(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function assertExist(){var val=flag2(this,"object");this.assert(val!=null,"expected #{this} to exist","expected #{this} to not exist")}__name(assertExist,"assertExist");Assertion.addProperty("exist",assertExist);Assertion.addProperty("exists",assertExist);Assertion.addProperty("empty",function(){var val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),itemsCount;switch(flagMsg=flagMsg?flagMsg+": ":"",type(val).toLowerCase()){case"array":case"string":itemsCount=val.length;break;case"map":case"set":itemsCount=val.size;break;case"weakmap":case"weakset":throw new AssertionError(flagMsg+".empty was passed a weak collection",void 0,ssfi);case"function":var msg=flagMsg+".empty was passed a function "+getName(val);throw new AssertionError(msg.trim(),void 0,ssfi);default:if(val!==Object(val))throw new AssertionError(flagMsg+".empty was passed non-string primitive "+inspect2(val),void 0,ssfi);itemsCount=Object.keys(val).length}this.assert(itemsCount===0,"expected #{this} to be empty","expected #{this} not to be empty")});function checkArguments(){var obj=flag2(this,"object"),type32=type(obj);this.assert(type32==="Arguments","expected #{this} to be arguments but got "+type32,"expected #{this} to not be arguments")}__name(checkArguments,"checkArguments");Assertion.addProperty("arguments",checkArguments);Assertion.addProperty("Arguments",checkArguments);function assertEqual(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");if(flag2(this,"deep")){var prevLockSsfi=flag2(this,"lockSsfi");flag2(this,"lockSsfi",!0),this.eql(val),flag2(this,"lockSsfi",prevLockSsfi)}else this.assert(val===obj,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",val,this._obj,!0)}__name(assertEqual,"assertEqual");Assertion.addMethod("equal",assertEqual);Assertion.addMethod("equals",assertEqual);Assertion.addMethod("eq",assertEqual);function assertEql(obj,msg){msg&&flag2(this,"message",msg);var eql=flag2(this,"eql");this.assert(eql(obj,flag2(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",obj,this._obj,!0)}__name(assertEql,"assertEql");Assertion.addMethod("eql",assertEql);Assertion.addMethod("eqls",assertEql);function assertAbove(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase();if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")throw new AssertionError(msgPrefix+"the argument to above must be a date",void 0,ssfi);if(!isNumeric(n)&&(doLength||isNumeric(obj)))throw new AssertionError(msgPrefix+"the argument to above must be a number",void 0,ssfi);if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;throw new AssertionError(msgPrefix+"expected "+printObj+" to be a number or a date",void 0,ssfi)}if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>n,"expected #{this} to have a "+descriptor+" above #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj>n,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",n)}__name(assertAbove,"assertAbove");Assertion.addMethod("above",assertAbove);Assertion.addMethod("gt",assertAbove);Assertion.addMethod("greaterThan",assertAbove);function assertLeast(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to least must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to least must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=n,"expected #{this} to have a "+descriptor+" at least #{exp} but got #{act}","expected #{this} to have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj>=n,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",n)}__name(assertLeast,"assertLeast");Assertion.addMethod("least",assertLeast);Assertion.addMethod("gte",assertLeast);Assertion.addMethod("greaterThanOrEqual",assertLeast);function assertBelow(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to below must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to below must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount<n,"expected #{this} to have a "+descriptor+" below #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj<n,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",n)}__name(assertBelow,"assertBelow");Assertion.addMethod("below",assertBelow);Assertion.addMethod("lt",assertBelow);Assertion.addMethod("lessThan",assertBelow);function assertMost(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to most must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to most must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount<=n,"expected #{this} to have a "+descriptor+" at most #{exp} but got #{act}","expected #{this} to have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj<=n,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",n)}__name(assertMost,"assertMost");Assertion.addMethod("most",assertMost);Assertion.addMethod("lte",assertMost);Assertion.addMethod("lessThanOrEqual",assertMost);Assertion.addMethod("within",function(start,finish,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),startType=type(start).toLowerCase(),finishType=type(finish).toLowerCase(),errorMessage,shouldThrow=!0,range=startType==="date"&&finishType==="date"?start.toISOString()+".."+finish.toISOString():start+".."+finish;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&(startType!=="date"||finishType!=="date"))errorMessage=msgPrefix+"the arguments to within must be dates";else if((!isNumeric(start)||!isNumeric(finish))&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the arguments to within must be numbers";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=start&&itemsCount<=finish,"expected #{this} to have a "+descriptor+" within "+range,"expected #{this} to not have a "+descriptor+" within "+range)}else this.assert(obj>=start&&obj<=finish,"expected #{this} to be within "+range,"expected #{this} to not be within "+range)});function assertInstanceOf(constructor,msg){msg&&flag2(this,"message",msg);var target=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message");try{var isInstanceOf=target instanceof constructor}catch(err){throw err instanceof TypeError?(flagMsg=flagMsg?flagMsg+": ":"",new AssertionError(flagMsg+"The instanceof assertion needs a constructor but "+type(constructor)+" was given.",void 0,ssfi)):err}var name=getName(constructor);name==null&&(name="an unnamed constructor"),this.assert(isInstanceOf,"expected #{this} to be an instance of "+name,"expected #{this} to not be an instance of "+name)}__name(assertInstanceOf,"assertInstanceOf");Assertion.addMethod("instanceof",assertInstanceOf);Assertion.addMethod("instanceOf",assertInstanceOf);function assertProperty(name,val,msg){msg&&flag2(this,"message",msg);var isNested=flag2(this,"nested"),isOwn=flag2(this,"own"),flagMsg=flag2(this,"message"),obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),nameType=typeof name;if(flagMsg=flagMsg?flagMsg+": ":"",isNested){if(nameType!=="string")throw new AssertionError(flagMsg+"the argument to property must be a string when using nested syntax",void 0,ssfi)}else if(nameType!=="string"&&nameType!=="number"&&nameType!=="symbol")throw new AssertionError(flagMsg+"the argument to property must be a string, number, or symbol",void 0,ssfi);if(isNested&&isOwn)throw new AssertionError(flagMsg+'The "nested" and "own" flags cannot be combined.',void 0,ssfi);if(obj==null)throw new AssertionError(flagMsg+"Target cannot be null or undefined.",void 0,ssfi);var isDeep=flag2(this,"deep"),negate=flag2(this,"negate"),pathInfo=isNested?getPathInfo(obj,name):null,value=isNested?pathInfo.value:obj[name],isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2,descriptor="";isDeep&&(descriptor+="deep "),isOwn&&(descriptor+="own "),isNested&&(descriptor+="nested "),descriptor+="property ";var hasProperty2;isOwn?hasProperty2=Object.prototype.hasOwnProperty.call(obj,name):isNested?hasProperty2=pathInfo.exists:hasProperty2=hasProperty(obj,name),(!negate||arguments.length===1)&&this.assert(hasProperty2,"expected #{this} to have "+descriptor+inspect2(name),"expected #{this} to not have "+descriptor+inspect2(name)),arguments.length>1&&this.assert(hasProperty2&&isEql(val,value),"expected #{this} to have "+descriptor+inspect2(name)+" of #{exp}, but got #{act}","expected #{this} to not have "+descriptor+inspect2(name)+" of #{act}",val,value),flag2(this,"object",value)}__name(assertProperty,"assertProperty");Assertion.addMethod("property",assertProperty);function assertOwnProperty(name,value,msg){flag2(this,"own",!0),assertProperty.apply(this,arguments)}__name(assertOwnProperty,"assertOwnProperty");Assertion.addMethod("ownProperty",assertOwnProperty);Assertion.addMethod("haveOwnProperty",assertOwnProperty);function assertOwnPropertyDescriptor(name,descriptor,msg){typeof descriptor=="string"&&(msg=descriptor,descriptor=null),msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),actualDescriptor=Object.getOwnPropertyDescriptor(Object(obj),name),eql=flag2(this,"eql");actualDescriptor&&descriptor?this.assert(eql(descriptor,actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to match "+inspect2(descriptor)+", got "+inspect2(actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to not match "+inspect2(descriptor),descriptor,actualDescriptor,!0):this.assert(actualDescriptor,"expected #{this} to have an own property descriptor for "+inspect2(name),"expected #{this} to not have an own property descriptor for "+inspect2(name)),flag2(this,"object",actualDescriptor)}__name(assertOwnPropertyDescriptor,"assertOwnPropertyDescriptor");Assertion.addMethod("ownPropertyDescriptor",assertOwnPropertyDescriptor);Assertion.addMethod("haveOwnPropertyDescriptor",assertOwnPropertyDescriptor);function assertLengthChain(){flag2(this,"doLength",!0)}__name(assertLengthChain,"assertLengthChain");function assertLength(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),descriptor="length",itemsCount;switch(objType){case"map":case"set":descriptor="size",itemsCount=obj.size;break;default:new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),itemsCount=obj.length}this.assert(itemsCount==n,"expected #{this} to have a "+descriptor+" of #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" of #{act}",n,itemsCount)}__name(assertLength,"assertLength");Assertion.addChainableMethod("length",assertLength,assertLengthChain);Assertion.addChainableMethod("lengthOf",assertLength,assertLengthChain);function assertMatch(re,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(re.exec(obj),"expected #{this} to match "+re,"expected #{this} not to match "+re)}__name(assertMatch,"assertMatch");Assertion.addMethod("match",assertMatch);Assertion.addMethod("matches",assertMatch);Assertion.addMethod("string",function(str,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).is.a("string"),this.assert(~obj.indexOf(str),"expected #{this} to contain "+inspect2(str),"expected #{this} to not contain "+inspect2(str))});function assertKeys(keys2){var obj=flag2(this,"object"),objType=type(obj),keysType=type(keys2),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),str,deepStr="",actual,ok=!0,flagMsg=flag2(this,"message");flagMsg=flagMsg?flagMsg+": ":"";var mixedArgsMsg=flagMsg+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(objType==="Map"||objType==="Set")deepStr=isDeep?"deeply ":"",actual=[],obj.forEach(function(val,key){actual.push(key)}),keysType!=="Array"&&(keys2=Array.prototype.slice.call(arguments));else{switch(actual=getOwnEnumerableProperties(obj),keysType){case"Array":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);break;case"Object":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);keys2=Object.keys(keys2);break;default:keys2=Array.prototype.slice.call(arguments)}keys2=keys2.map(function(val){return typeof val=="symbol"?val:String(val)})}if(!keys2.length)throw new AssertionError(flagMsg+"keys required",void 0,ssfi);var len=keys2.length,any=flag2(this,"any"),all=flag2(this,"all"),expected=keys2,isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2;if(!any&&!all&&(all=!0),any&&(ok=expected.some(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})})),all&&(ok=expected.every(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})}),flag2(this,"contains")||(ok=ok&&keys2.length==actual.length)),len>1){keys2=keys2.map(function(key){return inspect2(key)});var last=keys2.pop();all&&(str=keys2.join(", ")+", and "+last),any&&(str=keys2.join(", ")+", or "+last)}else str=inspect2(keys2[0]);str=(len>1?"keys ":"key ")+str,str=(flag2(this,"contains")?"contain ":"have ")+str,this.assert(ok,"expected #{this} to "+deepStr+str,"expected #{this} to not "+deepStr+str,expected.slice(0).sort(compareByInspect),actual.sort(compareByInspect),!0)}__name(assertKeys,"assertKeys");Assertion.addMethod("keys",assertKeys);Assertion.addMethod("key",assertKeys);function assertThrows(errorLike,errMsgMatcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),negate=flag2(this,"negate")||!1;new Assertion(obj,flagMsg,ssfi,!0).is.a("function"),(isRegExp2(errorLike)||typeof errorLike=="string")&&(errMsgMatcher=errorLike,errorLike=null);let caughtErr,errorWasThrown=!1;try{obj()}catch(err){errorWasThrown=!0,caughtErr=err}var everyArgIsUndefined=errorLike===void 0&&errMsgMatcher===void 0,everyArgIsDefined=!!(errorLike&&errMsgMatcher),errorLikeFail=!1,errMsgMatcherFail=!1;if(everyArgIsUndefined||!everyArgIsUndefined&&!negate){var errorLikeString="an error";errorLike instanceof Error?errorLikeString="#{exp}":errorLike&&(errorLikeString=check_error_exports.getConstructorName(errorLike));let actual=caughtErr;if(caughtErr instanceof Error)actual=caughtErr.toString();else if(typeof caughtErr=="string")actual=caughtErr;else if(caughtErr&&(typeof caughtErr=="object"||typeof caughtErr=="function"))try{actual=check_error_exports.getConstructorName(caughtErr)}catch{}this.assert(errorWasThrown,"expected #{this} to throw "+errorLikeString,"expected #{this} to not throw an error but #{act} was thrown",errorLike&&errorLike.toString(),actual)}if(errorLike&&caughtErr){if(errorLike instanceof Error){var isCompatibleInstance=check_error_exports.compatibleInstance(caughtErr,errorLike);isCompatibleInstance===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr&&!negate?" but #{act} was thrown":""),errorLike.toString(),caughtErr.toString()))}var isCompatibleConstructor=check_error_exports.compatibleConstructor(caughtErr,errorLike);isCompatibleConstructor===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)))}if(caughtErr&&errMsgMatcher!==void 0&&errMsgMatcher!==null){var placeholder="including";isRegExp2(errMsgMatcher)&&(placeholder="matching");var isCompatibleMessage=check_error_exports.compatibleMessage(caughtErr,errMsgMatcher);isCompatibleMessage===negate&&(everyArgIsDefined&&negate?errMsgMatcherFail=!0:this.assert(negate,"expected #{this} to throw error "+placeholder+" #{exp} but got #{act}","expected #{this} to throw error not "+placeholder+" #{exp}",errMsgMatcher,check_error_exports.getMessage(caughtErr)))}errorLikeFail&&errMsgMatcherFail&&this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)),flag2(this,"object",caughtErr)}__name(assertThrows,"assertThrows");Assertion.addMethod("throw",assertThrows);Assertion.addMethod("throws",assertThrows);Assertion.addMethod("Throw",assertThrows);function respondTo(method,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),itself=flag2(this,"itself"),context=typeof obj=="function"&&!itself?obj.prototype[method]:obj[method];this.assert(typeof context=="function","expected #{this} to respond to "+inspect2(method),"expected #{this} to not respond to "+inspect2(method))}__name(respondTo,"respondTo");Assertion.addMethod("respondTo",respondTo);Assertion.addMethod("respondsTo",respondTo);Assertion.addProperty("itself",function(){flag2(this,"itself",!0)});function satisfy(matcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),result=matcher(obj);this.assert(result,"expected #{this} to satisfy "+objDisplay(matcher),"expected #{this} to not satisfy"+objDisplay(matcher),!flag2(this,"negate"),result)}__name(satisfy,"satisfy");Assertion.addMethod("satisfy",satisfy);Assertion.addMethod("satisfies",satisfy);function closeTo(expected,delta,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).is.numeric;let message="A `delta` value is required for `closeTo`";if(delta==null)throw new AssertionError(flagMsg?`${flagMsg}: ${message}`:message,void 0,ssfi);if(new Assertion(delta,flagMsg,ssfi,!0).is.numeric,message="A `expected` value is required for `closeTo`",expected==null)throw new AssertionError(flagMsg?`${flagMsg}: ${message}`:message,void 0,ssfi);new Assertion(expected,flagMsg,ssfi,!0).is.numeric;let abs=__name(x2=>x2<0n?-x2:x2,"abs");this.assert(abs(obj-expected)<=delta,"expected #{this} to be close to "+expected+" +/- "+delta,"expected #{this} not to be close to "+expected+" +/- "+delta)}__name(closeTo,"closeTo");Assertion.addMethod("closeTo",closeTo);Assertion.addMethod("approximately",closeTo);function isSubsetOf(_subset,_superset,cmp,contains,ordered){let superset=Array.from(_superset),subset=Array.from(_subset);if(!contains){if(subset.length!==superset.length)return!1;superset=superset.slice()}return subset.every(function(elem,idx){if(ordered)return cmp?cmp(elem,superset[idx]):elem===superset[idx];if(!cmp){var matchIdx=superset.indexOf(elem);return matchIdx===-1?!1:(contains||superset.splice(matchIdx,1),!0)}return superset.some(function(elem2,matchIdx2){return cmp(elem,elem2)?(contains||superset.splice(matchIdx2,1),!0):!1})})}__name(isSubsetOf,"isSubsetOf");Assertion.addMethod("members",function(subset,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).to.be.iterable,new Assertion(subset,flagMsg,ssfi,!0).to.be.iterable;var contains=flag2(this,"contains"),ordered=flag2(this,"ordered"),subject,failMsg,failNegateMsg;contains?(subject=ordered?"an ordered superset":"a superset",failMsg="expected #{this} to be "+subject+" of #{exp}",failNegateMsg="expected #{this} to not be "+subject+" of #{exp}"):(subject=ordered?"ordered members":"members",failMsg="expected #{this} to have the same "+subject+" as #{exp}",failNegateMsg="expected #{this} to not have the same "+subject+" as #{exp}");var cmp=flag2(this,"deep")?flag2(this,"eql"):void 0;this.assert(isSubsetOf(subset,obj,cmp,contains,ordered),failMsg,failNegateMsg,subset,obj,!0)});Assertion.addProperty("iterable",function(msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(obj!=null&&obj[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",obj)});function oneOf(list,msg){msg&&flag2(this,"message",msg);var expected=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),contains=flag2(this,"contains"),isDeep=flag2(this,"deep"),eql=flag2(this,"eql");new Assertion(list,flagMsg,ssfi,!0).to.be.an("array"),contains?this.assert(list.some(function(possibility){return expected.indexOf(possibility)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",list,expected):isDeep?this.assert(list.some(function(possibility){return eql(expected,possibility)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",list,expected):this.assert(list.indexOf(expected)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",list,expected)}__name(oneOf,"oneOf");Assertion.addMethod("oneOf",oneOf);function assertChanges(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","change"),flag2(this,"realDelta",final!==initial),this.assert(initial!==final,"expected "+msgObj+" to change","expected "+msgObj+" to not change")}__name(assertChanges,"assertChanges");Assertion.addMethod("change",assertChanges);Assertion.addMethod("changes",assertChanges);function assertIncreases(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","increase"),flag2(this,"realDelta",final-initial),this.assert(final-initial>0,"expected "+msgObj+" to increase","expected "+msgObj+" to not increase")}__name(assertIncreases,"assertIncreases");Assertion.addMethod("increase",assertIncreases);Assertion.addMethod("increases",assertIncreases);function assertDecreases(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","decrease"),flag2(this,"realDelta",initial-final),this.assert(final-initial<0,"expected "+msgObj+" to decrease","expected "+msgObj+" to not decrease")}__name(assertDecreases,"assertDecreases");Assertion.addMethod("decrease",assertDecreases);Assertion.addMethod("decreases",assertDecreases);function assertDelta(delta,msg){msg&&flag2(this,"message",msg);var msgObj=flag2(this,"deltaMsgObj"),initial=flag2(this,"initialDeltaValue"),final=flag2(this,"finalDeltaValue"),behavior2=flag2(this,"deltaBehavior"),realDelta=flag2(this,"realDelta"),expression;behavior2==="change"?expression=Math.abs(final-initial)===Math.abs(delta):expression=realDelta===Math.abs(delta),this.assert(expression,"expected "+msgObj+" to "+behavior2+" by "+delta,"expected "+msgObj+" to not "+behavior2+" by "+delta)}__name(assertDelta,"assertDelta");Assertion.addMethod("by",assertDelta);Assertion.addProperty("extensible",function(){var obj=flag2(this,"object"),isExtensible=obj===Object(obj)&&Object.isExtensible(obj);this.assert(isExtensible,"expected #{this} to be extensible","expected #{this} to not be extensible")});Assertion.addProperty("sealed",function(){var obj=flag2(this,"object"),isSealed=obj===Object(obj)?Object.isSealed(obj):!0;this.assert(isSealed,"expected #{this} to be sealed","expected #{this} to not be sealed")});Assertion.addProperty("frozen",function(){var obj=flag2(this,"object"),isFrozen=obj===Object(obj)?Object.isFrozen(obj):!0;this.assert(isFrozen,"expected #{this} to be frozen","expected #{this} to not be frozen")});Assertion.addProperty("finite",function(msg){var obj=flag2(this,"object");this.assert(typeof obj=="number"&&isFinite(obj),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function expect(val,message){return new Assertion(val,message)}__name(expect,"expect");expect.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"expect.fail()",new AssertionError(message,{actual,expected,operator},expect.fail)};var should_exports={};__export2(should_exports,{Should:()=>Should,should:()=>should});function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new Assertion(this.valueOf(),null,shouldGetter):new Assertion(this,null,shouldGetter)}__name(shouldGetter,"shouldGetter");function shouldSetter(value){Object.defineProperty(this,"should",{value,enumerable:!0,configurable:!0,writable:!0})}__name(shouldSetter,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:shouldSetter,get:shouldGetter,configurable:!0});var should2={};return should2.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"should.fail()",new AssertionError(message,{actual,expected,operator},should2.fail)},should2.equal=function(actual,expected,message){new Assertion(actual,message).to.equal(expected)},should2.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.Throw(errt,errs)},should2.exist=function(val,msg){new Assertion(val,msg).to.exist},should2.not={},should2.not.equal=function(actual,expected,msg){new Assertion(actual,msg).to.not.equal(expected)},should2.not.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.not.Throw(errt,errs)},should2.not.exist=function(val,msg){new Assertion(val,msg).to.not.exist},should2.throw=should2.Throw,should2.not.throw=should2.not.Throw,should2}__name(loadShould,"loadShould");var should=loadShould,Should=loadShould;function assert(express,errmsg){var test22=new Assertion(null,null,assert,!0);test22.assert(express,errmsg,"[ negation message unavailable ]")}__name(assert,"assert");assert.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"assert.fail()",new AssertionError(message,{actual,expected,operator},assert.fail)};assert.isOk=function(val,msg){new Assertion(val,msg,assert.isOk,!0).is.ok};assert.isNotOk=function(val,msg){new Assertion(val,msg,assert.isNotOk,!0).is.not.ok};assert.equal=function(act,exp,msg){var test22=new Assertion(act,msg,assert.equal,!0);test22.assert(exp==flag(test22,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",exp,act,!0)};assert.notEqual=function(act,exp,msg){var test22=new Assertion(act,msg,assert.notEqual,!0);test22.assert(exp!=flag(test22,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",exp,act,!0)};assert.strictEqual=function(act,exp,msg){new Assertion(act,msg,assert.strictEqual,!0).to.equal(exp)};assert.notStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.notStrictEqual,!0).to.not.equal(exp)};assert.deepEqual=assert.deepStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.deepEqual,!0).to.eql(exp)};assert.notDeepEqual=function(act,exp,msg){new Assertion(act,msg,assert.notDeepEqual,!0).to.not.eql(exp)};assert.isAbove=function(val,abv,msg){new Assertion(val,msg,assert.isAbove,!0).to.be.above(abv)};assert.isAtLeast=function(val,atlst,msg){new Assertion(val,msg,assert.isAtLeast,!0).to.be.least(atlst)};assert.isBelow=function(val,blw,msg){new Assertion(val,msg,assert.isBelow,!0).to.be.below(blw)};assert.isAtMost=function(val,atmst,msg){new Assertion(val,msg,assert.isAtMost,!0).to.be.most(atmst)};assert.isTrue=function(val,msg){new Assertion(val,msg,assert.isTrue,!0).is.true};assert.isNotTrue=function(val,msg){new Assertion(val,msg,assert.isNotTrue,!0).to.not.equal(!0)};assert.isFalse=function(val,msg){new Assertion(val,msg,assert.isFalse,!0).is.false};assert.isNotFalse=function(val,msg){new Assertion(val,msg,assert.isNotFalse,!0).to.not.equal(!1)};assert.isNull=function(val,msg){new Assertion(val,msg,assert.isNull,!0).to.equal(null)};assert.isNotNull=function(val,msg){new Assertion(val,msg,assert.isNotNull,!0).to.not.equal(null)};assert.isNaN=function(val,msg){new Assertion(val,msg,assert.isNaN,!0).to.be.NaN};assert.isNotNaN=function(value,message){new Assertion(value,message,assert.isNotNaN,!0).not.to.be.NaN};assert.exists=function(val,msg){new Assertion(val,msg,assert.exists,!0).to.exist};assert.notExists=function(val,msg){new Assertion(val,msg,assert.notExists,!0).to.not.exist};assert.isUndefined=function(val,msg){new Assertion(val,msg,assert.isUndefined,!0).to.equal(void 0)};assert.isDefined=function(val,msg){new Assertion(val,msg,assert.isDefined,!0).to.not.equal(void 0)};assert.isCallable=function(value,message){new Assertion(value,message,assert.isCallable,!0).is.callable};assert.isNotCallable=function(value,message){new Assertion(value,message,assert.isNotCallable,!0).is.not.callable};assert.isObject=function(val,msg){new Assertion(val,msg,assert.isObject,!0).to.be.a("object")};assert.isNotObject=function(val,msg){new Assertion(val,msg,assert.isNotObject,!0).to.not.be.a("object")};assert.isArray=function(val,msg){new Assertion(val,msg,assert.isArray,!0).to.be.an("array")};assert.isNotArray=function(val,msg){new Assertion(val,msg,assert.isNotArray,!0).to.not.be.an("array")};assert.isString=function(val,msg){new Assertion(val,msg,assert.isString,!0).to.be.a("string")};assert.isNotString=function(val,msg){new Assertion(val,msg,assert.isNotString,!0).to.not.be.a("string")};assert.isNumber=function(val,msg){new Assertion(val,msg,assert.isNumber,!0).to.be.a("number")};assert.isNotNumber=function(val,msg){new Assertion(val,msg,assert.isNotNumber,!0).to.not.be.a("number")};assert.isNumeric=function(val,msg){new Assertion(val,msg,assert.isNumeric,!0).is.numeric};assert.isNotNumeric=function(val,msg){new Assertion(val,msg,assert.isNotNumeric,!0).is.not.numeric};assert.isFinite=function(val,msg){new Assertion(val,msg,assert.isFinite,!0).to.be.finite};assert.isBoolean=function(val,msg){new Assertion(val,msg,assert.isBoolean,!0).to.be.a("boolean")};assert.isNotBoolean=function(val,msg){new Assertion(val,msg,assert.isNotBoolean,!0).to.not.be.a("boolean")};assert.typeOf=function(val,type32,msg){new Assertion(val,msg,assert.typeOf,!0).to.be.a(type32)};assert.notTypeOf=function(value,type32,message){new Assertion(value,message,assert.notTypeOf,!0).to.not.be.a(type32)};assert.instanceOf=function(val,type32,msg){new Assertion(val,msg,assert.instanceOf,!0).to.be.instanceOf(type32)};assert.notInstanceOf=function(val,type32,msg){new Assertion(val,msg,assert.notInstanceOf,!0).to.not.be.instanceOf(type32)};assert.include=function(exp,inc,msg){new Assertion(exp,msg,assert.include,!0).include(inc)};assert.notInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notInclude,!0).not.include(inc)};assert.deepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepInclude,!0).deep.include(inc)};assert.notDeepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepInclude,!0).not.deep.include(inc)};assert.nestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.nestedInclude,!0).nested.include(inc)};assert.notNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notNestedInclude,!0).not.nested.include(inc)};assert.deepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepNestedInclude,!0).deep.nested.include(inc)};assert.notDeepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepNestedInclude,!0).not.deep.nested.include(inc)};assert.ownInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.ownInclude,!0).own.include(inc)};assert.notOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notOwnInclude,!0).not.own.include(inc)};assert.deepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepOwnInclude,!0).deep.own.include(inc)};assert.notDeepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepOwnInclude,!0).not.deep.own.include(inc)};assert.match=function(exp,re,msg){new Assertion(exp,msg,assert.match,!0).to.match(re)};assert.notMatch=function(exp,re,msg){new Assertion(exp,msg,assert.notMatch,!0).to.not.match(re)};assert.property=function(obj,prop,msg){new Assertion(obj,msg,assert.property,!0).to.have.property(prop)};assert.notProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notProperty,!0).to.not.have.property(prop)};assert.propertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.propertyVal,!0).to.have.property(prop,val)};assert.notPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notPropertyVal,!0).to.not.have.property(prop,val)};assert.deepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepPropertyVal,!0).to.have.deep.property(prop,val)};assert.notDeepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepPropertyVal,!0).to.not.have.deep.property(prop,val)};assert.ownProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.ownProperty,!0).to.have.own.property(prop)};assert.notOwnProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notOwnProperty,!0).to.not.have.own.property(prop)};assert.ownPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.ownPropertyVal,!0).to.have.own.property(prop,value)};assert.notOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notOwnPropertyVal,!0).to.not.have.own.property(prop,value)};assert.deepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.deepOwnPropertyVal,!0).to.have.deep.own.property(prop,value)};assert.notDeepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(prop,value)};assert.nestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.nestedProperty,!0).to.have.nested.property(prop)};assert.notNestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notNestedProperty,!0).to.not.have.nested.property(prop)};assert.nestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.nestedPropertyVal,!0).to.have.nested.property(prop,val)};assert.notNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notNestedPropertyVal,!0).to.not.have.nested.property(prop,val)};assert.deepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepNestedPropertyVal,!0).to.have.deep.nested.property(prop,val)};assert.notDeepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(prop,val)};assert.lengthOf=function(exp,len,msg){new Assertion(exp,msg,assert.lengthOf,!0).to.have.lengthOf(len)};assert.hasAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyKeys,!0).to.have.any.keys(keys2)};assert.hasAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllKeys,!0).to.have.all.keys(keys2)};assert.containsAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllKeys,!0).to.contain.all.keys(keys2)};assert.doesNotHaveAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyKeys,!0).to.not.have.any.keys(keys2)};assert.doesNotHaveAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllKeys,!0).to.not.have.all.keys(keys2)};assert.hasAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyDeepKeys,!0).to.have.any.deep.keys(keys2)};assert.hasAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllDeepKeys,!0).to.have.all.deep.keys(keys2)};assert.containsAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllDeepKeys,!0).to.contain.all.deep.keys(keys2)};assert.doesNotHaveAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(keys2)};assert.doesNotHaveAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(keys2)};assert.throws=function(fn3,errorLike,errMsgMatcher,msg){(typeof errorLike=="string"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null);var assertErr=new Assertion(fn3,msg,assert.throws,!0).to.throw(errorLike,errMsgMatcher);return flag(assertErr,"object")};assert.doesNotThrow=function(fn3,errorLike,errMsgMatcher,message){(typeof errorLike=="string"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),new Assertion(fn3,message,assert.doesNotThrow,!0).to.not.throw(errorLike,errMsgMatcher)};assert.operator=function(val,operator,val2,msg){var ok;switch(operator){case"==":ok=val==val2;break;case"===":ok=val===val2;break;case">":ok=val>val2;break;case">=":ok=val>=val2;break;case"<":ok=val<val2;break;case"<=":ok=val<=val2;break;case"!=":ok=val!=val2;break;case"!==":ok=val!==val2;break;default:throw msg=msg&&msg+": ",new AssertionError(msg+'Invalid operator "'+operator+'"',void 0,assert.operator)}var test22=new Assertion(ok,msg,assert.operator,!0);test22.assert(flag(test22,"object")===!0,"expected "+inspect2(val)+" to be "+operator+" "+inspect2(val2),"expected "+inspect2(val)+" to not be "+operator+" "+inspect2(val2))};assert.closeTo=function(act,exp,delta,msg){new Assertion(act,msg,assert.closeTo,!0).to.be.closeTo(exp,delta)};assert.approximately=function(act,exp,delta,msg){new Assertion(act,msg,assert.approximately,!0).to.be.approximately(exp,delta)};assert.sameMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameMembers,!0).to.have.same.members(set2)};assert.notSameMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameMembers,!0).to.not.have.same.members(set2)};assert.sameDeepMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameDeepMembers,!0).to.have.same.deep.members(set2)};assert.notSameDeepMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameDeepMembers,!0).to.not.have.same.deep.members(set2)};assert.sameOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameOrderedMembers,!0).to.have.same.ordered.members(set2)};assert.notSameOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameOrderedMembers,!0).to.not.have.same.ordered.members(set2)};assert.sameDeepOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(set2)};assert.notSameDeepOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(set2)};assert.includeMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeMembers,!0).to.include.members(subset)};assert.notIncludeMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeMembers,!0).to.not.include.members(subset)};assert.includeDeepMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeDeepMembers,!0).to.include.deep.members(subset)};assert.notIncludeDeepMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeDeepMembers,!0).to.not.include.deep.members(subset)};assert.includeOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeOrderedMembers,!0).to.include.ordered.members(subset)};assert.notIncludeOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeOrderedMembers,!0).to.not.include.ordered.members(subset)};assert.includeDeepOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(subset)};assert.notIncludeDeepOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(subset)};assert.oneOf=function(inList,list,msg){new Assertion(inList,msg,assert.oneOf,!0).to.be.oneOf(list)};assert.isIterable=function(obj,msg){if(obj==null||!obj[Symbol.iterator])throw msg=msg?`${msg} expected ${inspect2(obj)} to be an iterable`:`expected ${inspect2(obj)} to be an iterable`,new AssertionError(msg,void 0,assert.isIterable)};assert.changes=function(fn3,obj,prop,msg){arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.changes,!0).to.change(obj,prop)};assert.changesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.changesBy,!0).to.change(obj,prop).by(delta)};assert.doesNotChange=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotChange,!0).to.not.change(obj,prop)};assert.changesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.changesButNotBy,!0).to.change(obj,prop).but.not.by(delta)};assert.increases=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.increases,!0).to.increase(obj,prop)};assert.increasesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.increasesBy,!0).to.increase(obj,prop).by(delta)};assert.doesNotIncrease=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotIncrease,!0).to.not.increase(obj,prop)};assert.increasesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.increasesButNotBy,!0).to.increase(obj,prop).but.not.by(delta)};assert.decreases=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.decreases,!0).to.decrease(obj,prop)};assert.decreasesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.decreasesBy,!0).to.decrease(obj,prop).by(delta)};assert.doesNotDecrease=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotDecrease,!0).to.not.decrease(obj,prop)};assert.doesNotDecreaseBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);return new Assertion(fn3,msg,assert.doesNotDecreaseBy,!0).to.not.decrease(obj,prop).by(delta)};assert.decreasesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.decreasesButNotBy,!0).to.decrease(obj,prop).but.not.by(delta)};assert.ifError=function(val){if(val)throw val};assert.isExtensible=function(obj,msg){new Assertion(obj,msg,assert.isExtensible,!0).to.be.extensible};assert.isNotExtensible=function(obj,msg){new Assertion(obj,msg,assert.isNotExtensible,!0).to.not.be.extensible};assert.isSealed=function(obj,msg){new Assertion(obj,msg,assert.isSealed,!0).to.be.sealed};assert.isNotSealed=function(obj,msg){new Assertion(obj,msg,assert.isNotSealed,!0).to.not.be.sealed};assert.isFrozen=function(obj,msg){new Assertion(obj,msg,assert.isFrozen,!0).to.be.frozen};assert.isNotFrozen=function(obj,msg){new Assertion(obj,msg,assert.isNotFrozen,!0).to.not.be.frozen};assert.isEmpty=function(val,msg){new Assertion(val,msg,assert.isEmpty,!0).to.be.empty};assert.isNotEmpty=function(val,msg){new Assertion(val,msg,assert.isNotEmpty,!0).to.not.be.empty};__name(function alias(name,as){return assert[as]=assert[name],alias},"alias")("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");var used=[];function use(fn3){let exports2={AssertionError,util:utils_exports,config,expect,assert,Assertion,...should_exports};return~used.indexOf(fn3)||(fn3(exports2,utils_exports),used.push(fn3)),exports2}__name(use,"use");var matchers_exports={};__export(matchers_exports,{toBeChecked:()=>toBeChecked,toBeDisabled:()=>toBeDisabled,toBeEmpty:()=>toBeEmpty,toBeEmptyDOMElement:()=>toBeEmptyDOMElement,toBeEnabled:()=>toBeEnabled,toBeInTheDOM:()=>toBeInTheDOM,toBeInTheDocument:()=>toBeInTheDocument,toBeInvalid:()=>toBeInvalid,toBePartiallyChecked:()=>toBePartiallyChecked,toBeRequired:()=>toBeRequired,toBeValid:()=>toBeValid,toBeVisible:()=>toBeVisible,toContainElement:()=>toContainElement,toContainHTML:()=>toContainHTML,toHaveAccessibleDescription:()=>toHaveAccessibleDescription,toHaveAccessibleErrorMessage:()=>toHaveAccessibleErrorMessage,toHaveAccessibleName:()=>toHaveAccessibleName,toHaveAttribute:()=>toHaveAttribute,toHaveClass:()=>toHaveClass,toHaveDescription:()=>toHaveDescription,toHaveDisplayValue:()=>toHaveDisplayValue,toHaveErrorMessage:()=>toHaveErrorMessage,toHaveFocus:()=>toHaveFocus,toHaveFormValues:()=>toHaveFormValues,toHaveRole:()=>toHaveRole,toHaveStyle:()=>toHaveStyle,toHaveTextContent:()=>toHaveTextContent,toHaveValue:()=>toHaveValue});var import_redent=__toESM(require_redent(),1);function $parcel$defineInteropFlag(a2){Object.defineProperty(a2,"__esModule",{value:!0,configurable:!0})}function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $009ddb00d3ec72b8$exports={};$parcel$defineInteropFlag($009ddb00d3ec72b8$exports);$parcel$export($009ddb00d3ec72b8$exports,"default",()=>$009ddb00d3ec72b8$export$2e2bcd8739ae039);var $009ddb00d3ec72b8$export$2e2bcd8739ae039=class extends Error{constructor(filename,msg,lineno,column,css){super(filename+":"+lineno+":"+column+": "+msg),this.reason=msg,this.filename=filename,this.line=lineno,this.column=column,this.source=css}},$0865a9fb4cc365fe$exports={};$parcel$defineInteropFlag($0865a9fb4cc365fe$exports);$parcel$export($0865a9fb4cc365fe$exports,"default",()=>$0865a9fb4cc365fe$export$2e2bcd8739ae039);var $0865a9fb4cc365fe$export$2e2bcd8739ae039=class{constructor(start,end,source){this.start=start,this.end=end,this.source=source}},$b2e137848b48cf4f$exports={};$parcel$export($b2e137848b48cf4f$exports,"CssTypes",()=>$b2e137848b48cf4f$export$9be5dd6e61d5d73a);var $b2e137848b48cf4f$export$9be5dd6e61d5d73a;(function(CssTypes){CssTypes.stylesheet="stylesheet",CssTypes.rule="rule",CssTypes.declaration="declaration",CssTypes.comment="comment",CssTypes.container="container",CssTypes.charset="charset",CssTypes.document="document",CssTypes.customMedia="custom-media",CssTypes.fontFace="font-face",CssTypes.host="host",CssTypes.import="import",CssTypes.keyframes="keyframes",CssTypes.keyframe="keyframe",CssTypes.layer="layer",CssTypes.media="media",CssTypes.namespace="namespace",CssTypes.page="page",CssTypes.startingStyle="starting-style",CssTypes.supports="supports"})($b2e137848b48cf4f$export$9be5dd6e61d5d73a||($b2e137848b48cf4f$export$9be5dd6e61d5d73a={}));var $d708735ed1303b43$var$commentre=/\/\*[^]*?(?:\*\/|$)/g,$d708735ed1303b43$export$98e6a39c04603d36=(css,options)=>{options=options||{};let lineno=1,column=1;function updatePosition(str){let lines=str.match(/\n/g);lines&&(lineno+=lines.length);let i=str.lastIndexOf(`
|
27
|
+
`)}__name(inspectHTMLCollection,"inspectHTMLCollection");function inspectHTML(element,options){let properties=element.getAttributeNames(),name=element.tagName.toLowerCase(),head=options.stylize(`<${name}`,"special"),headClose=options.stylize(">","special"),tail=options.stylize(`</${name}>`,"special");options.truncate-=name.length*2+5;let propertyContents="";properties.length>0&&(propertyContents+=" ",propertyContents+=inspectList(properties.map(key=>[key,element.getAttribute(key)]),options,inspectAttribute," ")),options.truncate-=propertyContents.length;let truncate22=options.truncate,children=inspectHTMLCollection(element.children,options);return children&&children.length>truncate22&&(children=`${truncator}(${element.children.length})`),`${head}${propertyContents}${headClose}${children}${tail}`}__name(inspectHTML,"inspectHTML");var symbolsSupported=typeof Symbol=="function"&&typeof Symbol.for=="function",chaiInspect=symbolsSupported?Symbol.for("chai/inspect"):"@@chai/inspect",nodeInspect=!1;try{let nodeUtil=require_util();nodeInspect=nodeUtil.inspect?nodeUtil.inspect.custom:!1}catch{nodeInspect=!1}var constructorMap=new WeakMap,stringTagMap={},baseTypesMap={undefined:(value,options)=>options.stylize("undefined","undefined"),null:(value,options)=>options.stylize("null","null"),boolean:(value,options)=>options.stylize(String(value),"boolean"),Boolean:(value,options)=>options.stylize(String(value),"boolean"),number:inspectNumber,Number:inspectNumber,bigint:inspectBigInt,BigInt:inspectBigInt,string:inspectString,String:inspectString,function:inspectFunction,Function:inspectFunction,symbol:inspectSymbol,Symbol:inspectSymbol,Array:inspectArray,Date:inspectDate,Map:inspectMap,Set:inspectSet,RegExp:inspectRegExp,Promise:promise_default,WeakSet:(value,options)=>options.stylize("WeakSet{\u2026}","special"),WeakMap:(value,options)=>options.stylize("WeakMap{\u2026}","special"),Arguments:inspectArguments,Int8Array:inspectTypedArray,Uint8Array:inspectTypedArray,Uint8ClampedArray:inspectTypedArray,Int16Array:inspectTypedArray,Uint16Array:inspectTypedArray,Int32Array:inspectTypedArray,Uint32Array:inspectTypedArray,Float32Array:inspectTypedArray,Float64Array:inspectTypedArray,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:inspectObject2,HTMLCollection:inspectHTMLCollection,NodeList:inspectHTMLCollection},inspectCustom=__name((value,options,type32)=>chaiInspect in value&&typeof value[chaiInspect]=="function"?value[chaiInspect](options):nodeInspect&&nodeInspect in value&&typeof value[nodeInspect]=="function"?value[nodeInspect](options.depth,options):"inspect"in value&&typeof value.inspect=="function"?value.inspect(options.depth,options):"constructor"in value&&constructorMap.has(value.constructor)?constructorMap.get(value.constructor)(value,options):stringTagMap[type32]?stringTagMap[type32](value,options):"","inspectCustom"),toString=Object.prototype.toString;function inspect(value,opts={}){let options=normaliseOptions(opts,inspect),{customInspect}=options,type32=value===null?"null":typeof value;if(type32==="object"&&(type32=toString.call(value).slice(8,-1)),type32 in baseTypesMap)return baseTypesMap[type32](value,options);if(customInspect&&value){let output=inspectCustom(value,options,type32);if(output)return typeof output=="string"?output:inspect(output,options)}let proto=value?Object.getPrototypeOf(value):!1;return proto===Object.prototype||proto===null?inspectObject(value,options):value&&typeof HTMLElement=="function"&&value instanceof HTMLElement?inspectHTML(value,options):"constructor"in value?value.constructor!==Object?inspectClass(value,options):inspectObject(value,options):value===Object(value)?inspectObject(value,options):options.stylize(String(value),type32)}__name(inspect,"inspect");var config={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function inspect2(obj,showHidden,depth,colors){var options={colors,depth:typeof depth>"u"?2:depth,showHidden,truncate:config.truncateThreshold?config.truncateThreshold:1/0};return inspect(obj,options)}__name(inspect2,"inspect");function objDisplay(obj){var str=inspect2(obj),type32=Object.prototype.toString.call(obj);if(config.truncateThreshold&&str.length>=config.truncateThreshold){if(type32==="[object Function]")return!obj.name||obj.name===""?"[Function]":"[Function: "+obj.name+"]";if(type32==="[object Array]")return"[ Array("+obj.length+") ]";if(type32==="[object Object]"){var keys2=Object.keys(obj),kstr=keys2.length>2?keys2.splice(0,2).join(", ")+", ...":keys2.join(", ");return"{ Object ("+kstr+") }"}else return str}else return str}__name(objDisplay,"objDisplay");function getMessage2(obj,args){var negate=flag(obj,"negate"),val=flag(obj,"object"),expected=args[3],actual=getActual(obj,args),msg=negate?args[2]:args[1],flagMsg=flag(obj,"message");return typeof msg=="function"&&(msg=msg()),msg=msg||"",msg=msg.replace(/#\{this\}/g,function(){return objDisplay(val)}).replace(/#\{act\}/g,function(){return objDisplay(actual)}).replace(/#\{exp\}/g,function(){return objDisplay(expected)}),flagMsg?flagMsg+": "+msg:msg}__name(getMessage2,"getMessage");function transferFlags(assertion,object,includeAll){var flags=assertion.__flags||(assertion.__flags=Object.create(null));object.__flags||(object.__flags=Object.create(null)),includeAll=arguments.length===3?includeAll:!0;for(var flag3 in flags)(includeAll||flag3!=="object"&&flag3!=="ssfi"&&flag3!=="lockSsfi"&&flag3!="message")&&(object.__flags[flag3]=flags[flag3])}__name(transferFlags,"transferFlags");function type2(obj){if(typeof obj>"u")return"undefined";if(obj===null)return"null";let stringTag=obj[Symbol.toStringTag];return typeof stringTag=="string"?stringTag:Object.prototype.toString.call(obj).slice(8,-1)}__name(type2,"type");function FakeMap(){this._key="chai/deep-eql__"+Math.random()+Date.now()}__name(FakeMap,"FakeMap");FakeMap.prototype={get:__name(function(key){return key[this._key]},"get"),set:__name(function(key,value){Object.isExtensible(key)&&Object.defineProperty(key,this._key,{value,configurable:!0})},"set")};var MemoizeMap=typeof WeakMap=="function"?WeakMap:FakeMap;function memoizeCompare(leftHandOperand,rightHandOperand,memoizeMap){if(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))return null;var leftHandMap=memoizeMap.get(leftHandOperand);if(leftHandMap){var result=leftHandMap.get(rightHandOperand);if(typeof result=="boolean")return result}return null}__name(memoizeCompare,"memoizeCompare");function memoizeSet(leftHandOperand,rightHandOperand,memoizeMap,result){if(!(!memoizeMap||isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand))){var leftHandMap=memoizeMap.get(leftHandOperand);leftHandMap?leftHandMap.set(rightHandOperand,result):(leftHandMap=new MemoizeMap,leftHandMap.set(rightHandOperand,result),memoizeMap.set(leftHandOperand,leftHandMap))}}__name(memoizeSet,"memoizeSet");var deep_eql_default=deepEqual;function deepEqual(leftHandOperand,rightHandOperand,options){if(options&&options.comparator)return extensiveDeepEqual(leftHandOperand,rightHandOperand,options);var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);return simpleResult!==null?simpleResult:extensiveDeepEqual(leftHandOperand,rightHandOperand,options)}__name(deepEqual,"deepEqual");function simpleEqual(leftHandOperand,rightHandOperand){return leftHandOperand===rightHandOperand?leftHandOperand!==0||1/leftHandOperand===1/rightHandOperand:leftHandOperand!==leftHandOperand&&rightHandOperand!==rightHandOperand?!0:isPrimitive(leftHandOperand)||isPrimitive(rightHandOperand)?!1:null}__name(simpleEqual,"simpleEqual");function extensiveDeepEqual(leftHandOperand,rightHandOperand,options){options=options||{},options.memoize=options.memoize===!1?!1:options.memoize||new MemoizeMap;var comparator=options&&options.comparator,memoizeResultLeft=memoizeCompare(leftHandOperand,rightHandOperand,options.memoize);if(memoizeResultLeft!==null)return memoizeResultLeft;var memoizeResultRight=memoizeCompare(rightHandOperand,leftHandOperand,options.memoize);if(memoizeResultRight!==null)return memoizeResultRight;if(comparator){var comparatorResult=comparator(leftHandOperand,rightHandOperand);if(comparatorResult===!1||comparatorResult===!0)return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,comparatorResult),comparatorResult;var simpleResult=simpleEqual(leftHandOperand,rightHandOperand);if(simpleResult!==null)return simpleResult}var leftHandType=type2(leftHandOperand);if(leftHandType!==type2(rightHandOperand))return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!1),!1;memoizeSet(leftHandOperand,rightHandOperand,options.memoize,!0);var result=extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options);return memoizeSet(leftHandOperand,rightHandOperand,options.memoize,result),result}__name(extensiveDeepEqual,"extensiveDeepEqual");function extensiveDeepEqualByType(leftHandOperand,rightHandOperand,leftHandType,options){switch(leftHandType){case"String":case"Number":case"Boolean":case"Date":return deepEqual(leftHandOperand.valueOf(),rightHandOperand.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return leftHandOperand===rightHandOperand;case"Error":return keysEqual(leftHandOperand,rightHandOperand,["name","message","code"],options);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return iterableEqual(leftHandOperand,rightHandOperand,options);case"RegExp":return regexpEqual(leftHandOperand,rightHandOperand);case"Generator":return generatorEqual(leftHandOperand,rightHandOperand,options);case"DataView":return iterableEqual(new Uint8Array(leftHandOperand.buffer),new Uint8Array(rightHandOperand.buffer),options);case"ArrayBuffer":return iterableEqual(new Uint8Array(leftHandOperand),new Uint8Array(rightHandOperand),options);case"Set":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Map":return entriesEqual(leftHandOperand,rightHandOperand,options);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return leftHandOperand.equals(rightHandOperand);case"Temporal.Duration":return leftHandOperand.total("nanoseconds")===rightHandOperand.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return leftHandOperand.toString()===rightHandOperand.toString();default:return objectEqual(leftHandOperand,rightHandOperand,options)}}__name(extensiveDeepEqualByType,"extensiveDeepEqualByType");function regexpEqual(leftHandOperand,rightHandOperand){return leftHandOperand.toString()===rightHandOperand.toString()}__name(regexpEqual,"regexpEqual");function entriesEqual(leftHandOperand,rightHandOperand,options){try{if(leftHandOperand.size!==rightHandOperand.size)return!1;if(leftHandOperand.size===0)return!0}catch{return!1}var leftHandItems=[],rightHandItems=[];return leftHandOperand.forEach(__name(function(key,value){leftHandItems.push([key,value])},"gatherEntries")),rightHandOperand.forEach(__name(function(key,value){rightHandItems.push([key,value])},"gatherEntries")),iterableEqual(leftHandItems.sort(),rightHandItems.sort(),options)}__name(entriesEqual,"entriesEqual");function iterableEqual(leftHandOperand,rightHandOperand,options){var length=leftHandOperand.length;if(length!==rightHandOperand.length)return!1;if(length===0)return!0;for(var index=-1;++index<length;)if(deepEqual(leftHandOperand[index],rightHandOperand[index],options)===!1)return!1;return!0}__name(iterableEqual,"iterableEqual");function generatorEqual(leftHandOperand,rightHandOperand,options){return iterableEqual(getGeneratorEntries(leftHandOperand),getGeneratorEntries(rightHandOperand),options)}__name(generatorEqual,"generatorEqual");function hasIteratorFunction(target){return typeof Symbol<"u"&&typeof target=="object"&&typeof Symbol.iterator<"u"&&typeof target[Symbol.iterator]=="function"}__name(hasIteratorFunction,"hasIteratorFunction");function getIteratorEntries(target){if(hasIteratorFunction(target))try{return getGeneratorEntries(target[Symbol.iterator]())}catch{return[]}return[]}__name(getIteratorEntries,"getIteratorEntries");function getGeneratorEntries(generator){for(var generatorResult=generator.next(),accumulator=[generatorResult.value];generatorResult.done===!1;)generatorResult=generator.next(),accumulator.push(generatorResult.value);return accumulator}__name(getGeneratorEntries,"getGeneratorEntries");function getEnumerableKeys(target){var keys2=[];for(var key in target)keys2.push(key);return keys2}__name(getEnumerableKeys,"getEnumerableKeys");function getEnumerableSymbols(target){for(var keys2=[],allKeys=Object.getOwnPropertySymbols(target),i=0;i<allKeys.length;i+=1){var key=allKeys[i];Object.getOwnPropertyDescriptor(target,key).enumerable&&keys2.push(key)}return keys2}__name(getEnumerableSymbols,"getEnumerableSymbols");function keysEqual(leftHandOperand,rightHandOperand,keys2,options){var length=keys2.length;if(length===0)return!0;for(var i=0;i<length;i+=1)if(deepEqual(leftHandOperand[keys2[i]],rightHandOperand[keys2[i]],options)===!1)return!1;return!0}__name(keysEqual,"keysEqual");function objectEqual(leftHandOperand,rightHandOperand,options){var leftHandKeys=getEnumerableKeys(leftHandOperand),rightHandKeys=getEnumerableKeys(rightHandOperand),leftHandSymbols=getEnumerableSymbols(leftHandOperand),rightHandSymbols=getEnumerableSymbols(rightHandOperand);if(leftHandKeys=leftHandKeys.concat(leftHandSymbols),rightHandKeys=rightHandKeys.concat(rightHandSymbols),leftHandKeys.length&&leftHandKeys.length===rightHandKeys.length)return iterableEqual(mapSymbols(leftHandKeys).sort(),mapSymbols(rightHandKeys).sort())===!1?!1:keysEqual(leftHandOperand,rightHandOperand,leftHandKeys,options);var leftHandEntries=getIteratorEntries(leftHandOperand),rightHandEntries=getIteratorEntries(rightHandOperand);return leftHandEntries.length&&leftHandEntries.length===rightHandEntries.length?(leftHandEntries.sort(),rightHandEntries.sort(),iterableEqual(leftHandEntries,rightHandEntries,options)):leftHandKeys.length===0&&leftHandEntries.length===0&&rightHandKeys.length===0&&rightHandEntries.length===0}__name(objectEqual,"objectEqual");function isPrimitive(value){return value===null||typeof value!="object"}__name(isPrimitive,"isPrimitive");function mapSymbols(arr){return arr.map(__name(function(entry){return typeof entry=="symbol"?entry.toString():entry},"mapSymbol"))}__name(mapSymbols,"mapSymbols");function hasProperty(obj,name){return typeof obj>"u"||obj===null?!1:name in Object(obj)}__name(hasProperty,"hasProperty");function parsePath(path){return path.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(value=>{if(value==="constructor"||value==="__proto__"||value==="prototype")return{};let mArr=/^\[(\d+)\]$/.exec(value),parsed=null;return mArr?parsed={i:parseFloat(mArr[1])}:parsed={p:value.replace(/\\([.[\]])/g,"$1")},parsed})}__name(parsePath,"parsePath");function internalGetPathValue(obj,parsed,pathDepth){let temporaryValue=obj,res=null;pathDepth=typeof pathDepth>"u"?parsed.length:pathDepth;for(let i=0;i<pathDepth;i++){let part=parsed[i];temporaryValue&&(typeof part.p>"u"?temporaryValue=temporaryValue[part.i]:temporaryValue=temporaryValue[part.p],i===pathDepth-1&&(res=temporaryValue))}return res}__name(internalGetPathValue,"internalGetPathValue");function getPathInfo(obj,path){let parsed=parsePath(path),last=parsed[parsed.length-1],info={parent:parsed.length>1?internalGetPathValue(obj,parsed,parsed.length-1):obj,name:last.p||last.i,value:internalGetPathValue(obj,parsed)};return info.exists=hasProperty(info.parent,info.name),info}__name(getPathInfo,"getPathInfo");function Assertion(obj,msg,ssfi,lockSsfi){return flag(this,"ssfi",ssfi||Assertion),flag(this,"lockSsfi",lockSsfi),flag(this,"object",obj),flag(this,"message",msg),flag(this,"eql",config.deepEqual||deep_eql_default),proxify(this)}__name(Assertion,"Assertion");Object.defineProperty(Assertion,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack},set:function(value){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),config.includeStack=value}});Object.defineProperty(Assertion,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff},set:function(value){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),config.showDiff=value}});Assertion.addProperty=function(name,fn3){addProperty(this.prototype,name,fn3)};Assertion.addMethod=function(name,fn3){addMethod(this.prototype,name,fn3)};Assertion.addChainableMethod=function(name,fn3,chainingBehavior){addChainableMethod(this.prototype,name,fn3,chainingBehavior)};Assertion.overwriteProperty=function(name,fn3){overwriteProperty(this.prototype,name,fn3)};Assertion.overwriteMethod=function(name,fn3){overwriteMethod(this.prototype,name,fn3)};Assertion.overwriteChainableMethod=function(name,fn3,chainingBehavior){overwriteChainableMethod(this.prototype,name,fn3,chainingBehavior)};Assertion.prototype.assert=function(expr,msg,negateMsg,expected,_actual,showDiff){var ok=test(this,arguments);if(showDiff!==!1&&(showDiff=!0),expected===void 0&&_actual===void 0&&(showDiff=!1),config.showDiff!==!0&&(showDiff=!1),!ok){msg=getMessage2(this,arguments);var actual=getActual(this,arguments),assertionErrorObjectProperties={actual,expected,showDiff},operator=getOperator(this,arguments);throw operator&&(assertionErrorObjectProperties.operator=operator),new AssertionError(msg,assertionErrorObjectProperties,config.includeStack?this.assert:flag(this,"ssfi"))}};Object.defineProperty(Assertion.prototype,"_obj",{get:function(){return flag(this,"object")},set:function(val){flag(this,"object",val)}});function isProxyEnabled(){return config.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}__name(isProxyEnabled,"isProxyEnabled");function addProperty(ctx,name,getter){getter=getter===void 0?function(){}:getter,Object.defineProperty(ctx,name,{get:__name(function propertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",propertyGetter);var result=getter.call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"propertyGetter"),configurable:!0})}__name(addProperty,"addProperty");var fnLengthDesc=Object.getOwnPropertyDescriptor(function(){},"length");function addLengthGuard(fn3,assertionName,isChainable){return fnLengthDesc.configurable&&Object.defineProperty(fn3,"length",{get:function(){throw Error(isChainable?"Invalid Chai property: "+assertionName+'.length. Due to a compatibility issue, "length" cannot directly follow "'+assertionName+'". Use "'+assertionName+'.lengthOf" instead.':"Invalid Chai property: "+assertionName+'.length. See docs for proper usage of "'+assertionName+'".')}}),fn3}__name(addLengthGuard,"addLengthGuard");function getProperties(object){var result=Object.getOwnPropertyNames(object);function addProperty2(property){result.indexOf(property)===-1&&result.push(property)}__name(addProperty2,"addProperty");for(var proto=Object.getPrototypeOf(object);proto!==null;)Object.getOwnPropertyNames(proto).forEach(addProperty2),proto=Object.getPrototypeOf(proto);return result}__name(getProperties,"getProperties");var builtins=["__flags","__methods","_obj","assert"];function proxify(obj,nonChainableMethodName){return isProxyEnabled()?new Proxy(obj,{get:__name(function proxyGetter(target,property){if(typeof property=="string"&&config.proxyExcludedKeys.indexOf(property)===-1&&!Reflect.has(target,property)){if(nonChainableMethodName)throw Error("Invalid Chai property: "+nonChainableMethodName+"."+property+'. See docs for proper usage of "'+nonChainableMethodName+'".');var suggestion=null,suggestionDistance=4;throw getProperties(target).forEach(function(prop){if(!Object.prototype.hasOwnProperty(prop)&&builtins.indexOf(prop)===-1){var dist=stringDistanceCapped(property,prop,suggestionDistance);dist<suggestionDistance&&(suggestion=prop,suggestionDistance=dist)}}),Error(suggestion!==null?"Invalid Chai property: "+property+'. Did you mean "'+suggestion+'"?':"Invalid Chai property: "+property)}return builtins.indexOf(property)===-1&&!flag(target,"lockSsfi")&&flag(target,"ssfi",proxyGetter),Reflect.get(target,property)},"proxyGetter")}):obj}__name(proxify,"proxify");function stringDistanceCapped(strA,strB,cap){if(Math.abs(strA.length-strB.length)>=cap)return cap;var memo=[];for(let i=0;i<=strA.length;i++)memo[i]=Array(strB.length+1).fill(0),memo[i][0]=i;for(let j=0;j<strB.length;j++)memo[0][j]=j;for(let i=1;i<=strA.length;i++){var ch=strA.charCodeAt(i-1);for(let j=1;j<=strB.length;j++){if(Math.abs(i-j)>=cap){memo[i][j]=cap;continue}memo[i][j]=Math.min(memo[i-1][j]+1,memo[i][j-1]+1,memo[i-1][j-1]+(ch===strB.charCodeAt(j-1)?0:1))}}return memo[strA.length][strB.length]}__name(stringDistanceCapped,"stringDistanceCapped");function addMethod(ctx,name,method){var methodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",methodWrapper);var result=method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"methodWrapper");addLengthGuard(methodWrapper,name,!1),ctx[name]=proxify(methodWrapper,name)}__name(addMethod,"addMethod");function overwriteProperty(ctx,name,getter){var _get=Object.getOwnPropertyDescriptor(ctx,name),_super=__name(function(){},"_super");_get&&typeof _get.get=="function"&&(_super=_get.get),Object.defineProperty(ctx,name,{get:__name(function overwritingPropertyGetter(){!isProxyEnabled()&&!flag(this,"lockSsfi")&&flag(this,"ssfi",overwritingPropertyGetter);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=getter(_super).call(this);if(flag(this,"lockSsfi",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingPropertyGetter"),configurable:!0})}__name(overwriteProperty,"overwriteProperty");function overwriteMethod(ctx,name,method){var _method=ctx[name],_super=__name(function(){throw new Error(name+" is not a function")},"_super");_method&&typeof _method=="function"&&(_super=_method);var overwritingMethodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",overwritingMethodWrapper);var origLockSsfi=flag(this,"lockSsfi");flag(this,"lockSsfi",!0);var result=method(_super).apply(this,arguments);if(flag(this,"lockSsfi",origLockSsfi),result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingMethodWrapper");addLengthGuard(overwritingMethodWrapper,name,!1),ctx[name]=proxify(overwritingMethodWrapper,name)}__name(overwriteMethod,"overwriteMethod");var canSetPrototype=typeof Object.setPrototypeOf=="function",testFn=__name(function(){},"testFn"),excludeNames=Object.getOwnPropertyNames(testFn).filter(function(name){var propDesc=Object.getOwnPropertyDescriptor(testFn,name);return typeof propDesc!="object"?!0:!propDesc.configurable}),call=Function.prototype.call,apply=Function.prototype.apply;function addChainableMethod(ctx,name,method,chainingBehavior){typeof chainingBehavior!="function"&&(chainingBehavior=__name(function(){},"chainingBehavior"));var chainableBehavior={method,chainingBehavior};ctx.__methods||(ctx.__methods={}),ctx.__methods[name]=chainableBehavior,Object.defineProperty(ctx,name,{get:__name(function(){chainableBehavior.chainingBehavior.call(this);var chainableMethodWrapper=__name(function(){flag(this,"lockSsfi")||flag(this,"ssfi",chainableMethodWrapper);var result=chainableBehavior.method.apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"chainableMethodWrapper");if(addLengthGuard(chainableMethodWrapper,name,!0),canSetPrototype){var prototype=Object.create(this);prototype.call=call,prototype.apply=apply,Object.setPrototypeOf(chainableMethodWrapper,prototype)}else{var asserterNames=Object.getOwnPropertyNames(ctx);asserterNames.forEach(function(asserterName){if(excludeNames.indexOf(asserterName)===-1){var pd=Object.getOwnPropertyDescriptor(ctx,asserterName);Object.defineProperty(chainableMethodWrapper,asserterName,pd)}})}return transferFlags(this,chainableMethodWrapper),proxify(chainableMethodWrapper)},"chainableMethodGetter"),configurable:!0})}__name(addChainableMethod,"addChainableMethod");function overwriteChainableMethod(ctx,name,method,chainingBehavior){var chainableBehavior=ctx.__methods[name],_chainingBehavior=chainableBehavior.chainingBehavior;chainableBehavior.chainingBehavior=__name(function(){var result=chainingBehavior(_chainingBehavior).call(this);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingChainableMethodGetter");var _method=chainableBehavior.method;chainableBehavior.method=__name(function(){var result=method(_method).apply(this,arguments);if(result!==void 0)return result;var newAssertion=new Assertion;return transferFlags(this,newAssertion),newAssertion},"overwritingChainableMethodWrapper")}__name(overwriteChainableMethod,"overwriteChainableMethod");function compareByInspect(a2,b){return inspect2(a2)<inspect2(b)?-1:1}__name(compareByInspect,"compareByInspect");function getOwnEnumerablePropertySymbols(obj){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(obj).filter(function(sym){return Object.getOwnPropertyDescriptor(obj,sym).enumerable})}__name(getOwnEnumerablePropertySymbols,"getOwnEnumerablePropertySymbols");function getOwnEnumerableProperties(obj){return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj))}__name(getOwnEnumerableProperties,"getOwnEnumerableProperties");var isNaN22=Number.isNaN;function isObjectType(obj){var objectType=type(obj),objectTypes=["Array","Object","Function"];return objectTypes.indexOf(objectType)!==-1}__name(isObjectType,"isObjectType");function getOperator(obj,args){var operator=flag(obj,"operator"),negate=flag(obj,"negate"),expected=args[3],msg=negate?args[2]:args[1];if(operator)return operator;if(typeof msg=="function"&&(msg=msg()),msg=msg||"",!!msg&&!/\shave\s/.test(msg)){var isObject2=isObjectType(expected);return/\snot\s/.test(msg)?isObject2?"notDeepStrictEqual":"notStrictEqual":isObject2?"deepStrictEqual":"strictEqual"}}__name(getOperator,"getOperator");function getName(fn3){return fn3.name}__name(getName,"getName");function isRegExp2(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"}__name(isRegExp2,"isRegExp");function isNumeric(obj){return["Number","BigInt"].includes(type(obj))}__name(isNumeric,"isNumeric");var{flag:flag2}=utils_exports;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(chain){Assertion.addProperty(chain)});Assertion.addProperty("not",function(){flag2(this,"negate",!0)});Assertion.addProperty("deep",function(){flag2(this,"deep",!0)});Assertion.addProperty("nested",function(){flag2(this,"nested",!0)});Assertion.addProperty("own",function(){flag2(this,"own",!0)});Assertion.addProperty("ordered",function(){flag2(this,"ordered",!0)});Assertion.addProperty("any",function(){flag2(this,"any",!0),flag2(this,"all",!1)});Assertion.addProperty("all",function(){flag2(this,"all",!0),flag2(this,"any",!1)});var functionTypes={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function an(type32,msg){msg&&flag2(this,"message",msg),type32=type32.toLowerCase();var obj=flag2(this,"object"),article=~["a","e","i","o","u"].indexOf(type32.charAt(0))?"an ":"a ";let detectedType=type(obj).toLowerCase();functionTypes.function.includes(type32)?this.assert(functionTypes[type32].includes(detectedType),"expected #{this} to be "+article+type32,"expected #{this} not to be "+article+type32):this.assert(type32===detectedType,"expected #{this} to be "+article+type32,"expected #{this} not to be "+article+type32)}__name(an,"an");Assertion.addChainableMethod("an",an);Assertion.addChainableMethod("a",an);function SameValueZero(a2,b){return isNaN22(a2)&&isNaN22(b)||a2===b}__name(SameValueZero,"SameValueZero");function includeChainingBehavior(){flag2(this,"contains",!0)}__name(includeChainingBehavior,"includeChainingBehavior");function include(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),negate=flag2(this,"negate"),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),descriptor=isDeep?"deep ":"",isEql=isDeep?flag2(this,"eql"):SameValueZero;flagMsg=flagMsg?flagMsg+": ":"";var included=!1;switch(objType){case"string":included=obj.indexOf(val)!==-1;break;case"weakset":if(isDeep)throw new AssertionError(flagMsg+"unable to use .deep.include with WeakSet",void 0,ssfi);included=obj.has(val);break;case"map":obj.forEach(function(item){included=included||isEql(item,val)});break;case"set":isDeep?obj.forEach(function(item){included=included||isEql(item,val)}):included=obj.has(val);break;case"array":isDeep?included=obj.some(function(item){return isEql(item,val)}):included=obj.indexOf(val)!==-1;break;default:if(val!==Object(val))throw new AssertionError(flagMsg+"the given combination of arguments ("+objType+" and "+type(val).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 "+type(val).toLowerCase(),void 0,ssfi);var props=Object.keys(val),firstErr=null,numErrs=0;if(props.forEach(function(prop){var propAssertion=new Assertion(obj);if(transferFlags(this,propAssertion,!0),flag2(propAssertion,"lockSsfi",!0),!negate||props.length===1){propAssertion.property(prop,val[prop]);return}try{propAssertion.property(prop,val[prop])}catch(err){if(!check_error_exports.compatibleConstructor(err,AssertionError))throw err;firstErr===null&&(firstErr=err),numErrs++}},this),negate&&props.length>1&&numErrs===props.length)throw firstErr;return}this.assert(included,"expected #{this} to "+descriptor+"include "+inspect2(val),"expected #{this} to not "+descriptor+"include "+inspect2(val))}__name(include,"include");Assertion.addChainableMethod("include",include,includeChainingBehavior);Assertion.addChainableMethod("contain",include,includeChainingBehavior);Assertion.addChainableMethod("contains",include,includeChainingBehavior);Assertion.addChainableMethod("includes",include,includeChainingBehavior);Assertion.addProperty("ok",function(){this.assert(flag2(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});Assertion.addProperty("true",function(){this.assert(flag2(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!flag2(this,"negate"))});Assertion.addProperty("numeric",function(){let object=flag2(this,"object");this.assert(["Number","BigInt"].includes(type(object)),"expected #{this} to be numeric","expected #{this} to not be numeric",!flag2(this,"negate"))});Assertion.addProperty("callable",function(){let val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),message=flag2(this,"message"),msg=message?`${message}: `:"",negate=flag2(this,"negate"),assertionMessage=negate?`${msg}expected ${inspect2(val)} not to be a callable function`:`${msg}expected ${inspect2(val)} to be a callable function`,isCallable3=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(type(val));if(isCallable3&&negate||!isCallable3&&!negate)throw new AssertionError(assertionMessage,void 0,ssfi)});Assertion.addProperty("false",function(){this.assert(flag2(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!flag2(this,"negate"))});Assertion.addProperty("null",function(){this.assert(flag2(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});Assertion.addProperty("undefined",function(){this.assert(flag2(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});Assertion.addProperty("NaN",function(){this.assert(isNaN22(flag2(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function assertExist(){var val=flag2(this,"object");this.assert(val!=null,"expected #{this} to exist","expected #{this} to not exist")}__name(assertExist,"assertExist");Assertion.addProperty("exist",assertExist);Assertion.addProperty("exists",assertExist);Assertion.addProperty("empty",function(){var val=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),itemsCount;switch(flagMsg=flagMsg?flagMsg+": ":"",type(val).toLowerCase()){case"array":case"string":itemsCount=val.length;break;case"map":case"set":itemsCount=val.size;break;case"weakmap":case"weakset":throw new AssertionError(flagMsg+".empty was passed a weak collection",void 0,ssfi);case"function":var msg=flagMsg+".empty was passed a function "+getName(val);throw new AssertionError(msg.trim(),void 0,ssfi);default:if(val!==Object(val))throw new AssertionError(flagMsg+".empty was passed non-string primitive "+inspect2(val),void 0,ssfi);itemsCount=Object.keys(val).length}this.assert(itemsCount===0,"expected #{this} to be empty","expected #{this} not to be empty")});function checkArguments(){var obj=flag2(this,"object"),type32=type(obj);this.assert(type32==="Arguments","expected #{this} to be arguments but got "+type32,"expected #{this} to not be arguments")}__name(checkArguments,"checkArguments");Assertion.addProperty("arguments",checkArguments);Assertion.addProperty("Arguments",checkArguments);function assertEqual(val,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");if(flag2(this,"deep")){var prevLockSsfi=flag2(this,"lockSsfi");flag2(this,"lockSsfi",!0),this.eql(val),flag2(this,"lockSsfi",prevLockSsfi)}else this.assert(val===obj,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",val,this._obj,!0)}__name(assertEqual,"assertEqual");Assertion.addMethod("equal",assertEqual);Assertion.addMethod("equals",assertEqual);Assertion.addMethod("eq",assertEqual);function assertEql(obj,msg){msg&&flag2(this,"message",msg);var eql=flag2(this,"eql");this.assert(eql(obj,flag2(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",obj,this._obj,!0)}__name(assertEql,"assertEql");Assertion.addMethod("eql",assertEql);Assertion.addMethod("eqls",assertEql);function assertAbove(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase();if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")throw new AssertionError(msgPrefix+"the argument to above must be a date",void 0,ssfi);if(!isNumeric(n)&&(doLength||isNumeric(obj)))throw new AssertionError(msgPrefix+"the argument to above must be a number",void 0,ssfi);if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;throw new AssertionError(msgPrefix+"expected "+printObj+" to be a number or a date",void 0,ssfi)}if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>n,"expected #{this} to have a "+descriptor+" above #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj>n,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",n)}__name(assertAbove,"assertAbove");Assertion.addMethod("above",assertAbove);Assertion.addMethod("gt",assertAbove);Assertion.addMethod("greaterThan",assertAbove);function assertLeast(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to least must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to least must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=n,"expected #{this} to have a "+descriptor+" at least #{exp} but got #{act}","expected #{this} to have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj>=n,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",n)}__name(assertLeast,"assertLeast");Assertion.addMethod("least",assertLeast);Assertion.addMethod("gte",assertLeast);Assertion.addMethod("greaterThanOrEqual",assertLeast);function assertBelow(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to below must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to below must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount<n,"expected #{this} to have a "+descriptor+" below #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" below #{exp}",n,itemsCount)}else this.assert(obj<n,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",n)}__name(assertBelow,"assertBelow");Assertion.addMethod("below",assertBelow);Assertion.addMethod("lt",assertBelow);Assertion.addMethod("lessThan",assertBelow);function assertMost(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),nType=type(n).toLowerCase(),errorMessage,shouldThrow=!0;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&nType!=="date")errorMessage=msgPrefix+"the argument to most must be a date";else if(!isNumeric(n)&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the argument to most must be a number";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount<=n,"expected #{this} to have a "+descriptor+" at most #{exp} but got #{act}","expected #{this} to have a "+descriptor+" above #{exp}",n,itemsCount)}else this.assert(obj<=n,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",n)}__name(assertMost,"assertMost");Assertion.addMethod("most",assertMost);Assertion.addMethod("lte",assertMost);Assertion.addMethod("lessThanOrEqual",assertMost);Assertion.addMethod("within",function(start,finish,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),doLength=flag2(this,"doLength"),flagMsg=flag2(this,"message"),msgPrefix=flagMsg?flagMsg+": ":"",ssfi=flag2(this,"ssfi"),objType=type(obj).toLowerCase(),startType=type(start).toLowerCase(),finishType=type(finish).toLowerCase(),errorMessage,shouldThrow=!0,range=startType==="date"&&finishType==="date"?start.toISOString()+".."+finish.toISOString():start+".."+finish;if(doLength&&objType!=="map"&&objType!=="set"&&new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),!doLength&&objType==="date"&&(startType!=="date"||finishType!=="date"))errorMessage=msgPrefix+"the arguments to within must be dates";else if((!isNumeric(start)||!isNumeric(finish))&&(doLength||isNumeric(obj)))errorMessage=msgPrefix+"the arguments to within must be numbers";else if(!doLength&&objType!=="date"&&!isNumeric(obj)){var printObj=objType==="string"?"'"+obj+"'":obj;errorMessage=msgPrefix+"expected "+printObj+" to be a number or a date"}else shouldThrow=!1;if(shouldThrow)throw new AssertionError(errorMessage,void 0,ssfi);if(doLength){var descriptor="length",itemsCount;objType==="map"||objType==="set"?(descriptor="size",itemsCount=obj.size):itemsCount=obj.length,this.assert(itemsCount>=start&&itemsCount<=finish,"expected #{this} to have a "+descriptor+" within "+range,"expected #{this} to not have a "+descriptor+" within "+range)}else this.assert(obj>=start&&obj<=finish,"expected #{this} to be within "+range,"expected #{this} to not be within "+range)});function assertInstanceOf(constructor,msg){msg&&flag2(this,"message",msg);var target=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message");try{var isInstanceOf=target instanceof constructor}catch(err){throw err instanceof TypeError?(flagMsg=flagMsg?flagMsg+": ":"",new AssertionError(flagMsg+"The instanceof assertion needs a constructor but "+type(constructor)+" was given.",void 0,ssfi)):err}var name=getName(constructor);name==null&&(name="an unnamed constructor"),this.assert(isInstanceOf,"expected #{this} to be an instance of "+name,"expected #{this} to not be an instance of "+name)}__name(assertInstanceOf,"assertInstanceOf");Assertion.addMethod("instanceof",assertInstanceOf);Assertion.addMethod("instanceOf",assertInstanceOf);function assertProperty(name,val,msg){msg&&flag2(this,"message",msg);var isNested=flag2(this,"nested"),isOwn=flag2(this,"own"),flagMsg=flag2(this,"message"),obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),nameType=typeof name;if(flagMsg=flagMsg?flagMsg+": ":"",isNested){if(nameType!=="string")throw new AssertionError(flagMsg+"the argument to property must be a string when using nested syntax",void 0,ssfi)}else if(nameType!=="string"&&nameType!=="number"&&nameType!=="symbol")throw new AssertionError(flagMsg+"the argument to property must be a string, number, or symbol",void 0,ssfi);if(isNested&&isOwn)throw new AssertionError(flagMsg+'The "nested" and "own" flags cannot be combined.',void 0,ssfi);if(obj==null)throw new AssertionError(flagMsg+"Target cannot be null or undefined.",void 0,ssfi);var isDeep=flag2(this,"deep"),negate=flag2(this,"negate"),pathInfo=isNested?getPathInfo(obj,name):null,value=isNested?pathInfo.value:obj[name],isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2,descriptor="";isDeep&&(descriptor+="deep "),isOwn&&(descriptor+="own "),isNested&&(descriptor+="nested "),descriptor+="property ";var hasProperty2;isOwn?hasProperty2=Object.prototype.hasOwnProperty.call(obj,name):isNested?hasProperty2=pathInfo.exists:hasProperty2=hasProperty(obj,name),(!negate||arguments.length===1)&&this.assert(hasProperty2,"expected #{this} to have "+descriptor+inspect2(name),"expected #{this} to not have "+descriptor+inspect2(name)),arguments.length>1&&this.assert(hasProperty2&&isEql(val,value),"expected #{this} to have "+descriptor+inspect2(name)+" of #{exp}, but got #{act}","expected #{this} to not have "+descriptor+inspect2(name)+" of #{act}",val,value),flag2(this,"object",value)}__name(assertProperty,"assertProperty");Assertion.addMethod("property",assertProperty);function assertOwnProperty(_name,_value,_msg){flag2(this,"own",!0),assertProperty.apply(this,arguments)}__name(assertOwnProperty,"assertOwnProperty");Assertion.addMethod("ownProperty",assertOwnProperty);Assertion.addMethod("haveOwnProperty",assertOwnProperty);function assertOwnPropertyDescriptor(name,descriptor,msg){typeof descriptor=="string"&&(msg=descriptor,descriptor=null),msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),actualDescriptor=Object.getOwnPropertyDescriptor(Object(obj),name),eql=flag2(this,"eql");actualDescriptor&&descriptor?this.assert(eql(descriptor,actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to match "+inspect2(descriptor)+", got "+inspect2(actualDescriptor),"expected the own property descriptor for "+inspect2(name)+" on #{this} to not match "+inspect2(descriptor),descriptor,actualDescriptor,!0):this.assert(actualDescriptor,"expected #{this} to have an own property descriptor for "+inspect2(name),"expected #{this} to not have an own property descriptor for "+inspect2(name)),flag2(this,"object",actualDescriptor)}__name(assertOwnPropertyDescriptor,"assertOwnPropertyDescriptor");Assertion.addMethod("ownPropertyDescriptor",assertOwnPropertyDescriptor);Assertion.addMethod("haveOwnPropertyDescriptor",assertOwnPropertyDescriptor);function assertLengthChain(){flag2(this,"doLength",!0)}__name(assertLengthChain,"assertLengthChain");function assertLength(n,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),objType=type(obj).toLowerCase(),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),descriptor="length",itemsCount;switch(objType){case"map":case"set":descriptor="size",itemsCount=obj.size;break;default:new Assertion(obj,flagMsg,ssfi,!0).to.have.property("length"),itemsCount=obj.length}this.assert(itemsCount==n,"expected #{this} to have a "+descriptor+" of #{exp} but got #{act}","expected #{this} to not have a "+descriptor+" of #{act}",n,itemsCount)}__name(assertLength,"assertLength");Assertion.addChainableMethod("length",assertLength,assertLengthChain);Assertion.addChainableMethod("lengthOf",assertLength,assertLengthChain);function assertMatch(re,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(re.exec(obj),"expected #{this} to match "+re,"expected #{this} not to match "+re)}__name(assertMatch,"assertMatch");Assertion.addMethod("match",assertMatch);Assertion.addMethod("matches",assertMatch);Assertion.addMethod("string",function(str,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).is.a("string"),this.assert(~obj.indexOf(str),"expected #{this} to contain "+inspect2(str),"expected #{this} to not contain "+inspect2(str))});function assertKeys(keys2){var obj=flag2(this,"object"),objType=type(obj),keysType=type(keys2),ssfi=flag2(this,"ssfi"),isDeep=flag2(this,"deep"),str,deepStr="",actual,ok=!0,flagMsg=flag2(this,"message");flagMsg=flagMsg?flagMsg+": ":"";var mixedArgsMsg=flagMsg+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(objType==="Map"||objType==="Set")deepStr=isDeep?"deeply ":"",actual=[],obj.forEach(function(val,key){actual.push(key)}),keysType!=="Array"&&(keys2=Array.prototype.slice.call(arguments));else{switch(actual=getOwnEnumerableProperties(obj),keysType){case"Array":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);break;case"Object":if(arguments.length>1)throw new AssertionError(mixedArgsMsg,void 0,ssfi);keys2=Object.keys(keys2);break;default:keys2=Array.prototype.slice.call(arguments)}keys2=keys2.map(function(val){return typeof val=="symbol"?val:String(val)})}if(!keys2.length)throw new AssertionError(flagMsg+"keys required",void 0,ssfi);var len=keys2.length,any=flag2(this,"any"),all=flag2(this,"all"),expected=keys2,isEql=isDeep?flag2(this,"eql"):(val1,val2)=>val1===val2;if(!any&&!all&&(all=!0),any&&(ok=expected.some(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})})),all&&(ok=expected.every(function(expectedKey){return actual.some(function(actualKey){return isEql(expectedKey,actualKey)})}),flag2(this,"contains")||(ok=ok&&keys2.length==actual.length)),len>1){keys2=keys2.map(function(key){return inspect2(key)});var last=keys2.pop();all&&(str=keys2.join(", ")+", and "+last),any&&(str=keys2.join(", ")+", or "+last)}else str=inspect2(keys2[0]);str=(len>1?"keys ":"key ")+str,str=(flag2(this,"contains")?"contain ":"have ")+str,this.assert(ok,"expected #{this} to "+deepStr+str,"expected #{this} to not "+deepStr+str,expected.slice(0).sort(compareByInspect),actual.sort(compareByInspect),!0)}__name(assertKeys,"assertKeys");Assertion.addMethod("keys",assertKeys);Assertion.addMethod("key",assertKeys);function assertThrows(errorLike,errMsgMatcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),ssfi=flag2(this,"ssfi"),flagMsg=flag2(this,"message"),negate=flag2(this,"negate")||!1;new Assertion(obj,flagMsg,ssfi,!0).is.a("function"),(isRegExp2(errorLike)||typeof errorLike=="string")&&(errMsgMatcher=errorLike,errorLike=null);let caughtErr,errorWasThrown=!1;try{obj()}catch(err){errorWasThrown=!0,caughtErr=err}var everyArgIsUndefined=errorLike===void 0&&errMsgMatcher===void 0,everyArgIsDefined=!!(errorLike&&errMsgMatcher),errorLikeFail=!1,errMsgMatcherFail=!1;if(everyArgIsUndefined||!everyArgIsUndefined&&!negate){var errorLikeString="an error";errorLike instanceof Error?errorLikeString="#{exp}":errorLike&&(errorLikeString=check_error_exports.getConstructorName(errorLike));let actual=caughtErr;if(caughtErr instanceof Error)actual=caughtErr.toString();else if(typeof caughtErr=="string")actual=caughtErr;else if(caughtErr&&(typeof caughtErr=="object"||typeof caughtErr=="function"))try{actual=check_error_exports.getConstructorName(caughtErr)}catch{}this.assert(errorWasThrown,"expected #{this} to throw "+errorLikeString,"expected #{this} to not throw an error but #{act} was thrown",errorLike&&errorLike.toString(),actual)}if(errorLike&&caughtErr){if(errorLike instanceof Error){var isCompatibleInstance=check_error_exports.compatibleInstance(caughtErr,errorLike);isCompatibleInstance===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr&&!negate?" but #{act} was thrown":""),errorLike.toString(),caughtErr.toString()))}var isCompatibleConstructor=check_error_exports.compatibleConstructor(caughtErr,errorLike);isCompatibleConstructor===negate&&(everyArgIsDefined&&negate?errorLikeFail=!0:this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)))}if(caughtErr&&errMsgMatcher!==void 0&&errMsgMatcher!==null){var placeholder="including";isRegExp2(errMsgMatcher)&&(placeholder="matching");var isCompatibleMessage=check_error_exports.compatibleMessage(caughtErr,errMsgMatcher);isCompatibleMessage===negate&&(everyArgIsDefined&&negate?errMsgMatcherFail=!0:this.assert(negate,"expected #{this} to throw error "+placeholder+" #{exp} but got #{act}","expected #{this} to throw error not "+placeholder+" #{exp}",errMsgMatcher,check_error_exports.getMessage(caughtErr)))}errorLikeFail&&errMsgMatcherFail&&this.assert(negate,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(caughtErr?" but #{act} was thrown":""),errorLike instanceof Error?errorLike.toString():errorLike&&check_error_exports.getConstructorName(errorLike),caughtErr instanceof Error?caughtErr.toString():caughtErr&&check_error_exports.getConstructorName(caughtErr)),flag2(this,"object",caughtErr)}__name(assertThrows,"assertThrows");Assertion.addMethod("throw",assertThrows);Assertion.addMethod("throws",assertThrows);Assertion.addMethod("Throw",assertThrows);function respondTo(method,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),itself=flag2(this,"itself"),context=typeof obj=="function"&&!itself?obj.prototype[method]:obj[method];this.assert(typeof context=="function","expected #{this} to respond to "+inspect2(method),"expected #{this} to not respond to "+inspect2(method))}__name(respondTo,"respondTo");Assertion.addMethod("respondTo",respondTo);Assertion.addMethod("respondsTo",respondTo);Assertion.addProperty("itself",function(){flag2(this,"itself",!0)});function satisfy(matcher,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),result=matcher(obj);this.assert(result,"expected #{this} to satisfy "+objDisplay(matcher),"expected #{this} to not satisfy"+objDisplay(matcher),!flag2(this,"negate"),result)}__name(satisfy,"satisfy");Assertion.addMethod("satisfy",satisfy);Assertion.addMethod("satisfies",satisfy);function closeTo(expected,delta,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).is.numeric;let message="A `delta` value is required for `closeTo`";if(delta==null)throw new AssertionError(flagMsg?`${flagMsg}: ${message}`:message,void 0,ssfi);if(new Assertion(delta,flagMsg,ssfi,!0).is.numeric,message="A `expected` value is required for `closeTo`",expected==null)throw new AssertionError(flagMsg?`${flagMsg}: ${message}`:message,void 0,ssfi);new Assertion(expected,flagMsg,ssfi,!0).is.numeric;let abs=__name(x2=>x2<0n?-x2:x2,"abs"),strip=__name(number=>parseFloat(parseFloat(number).toPrecision(12)),"strip");this.assert(strip(abs(obj-expected))<=delta,"expected #{this} to be close to "+expected+" +/- "+delta,"expected #{this} not to be close to "+expected+" +/- "+delta)}__name(closeTo,"closeTo");Assertion.addMethod("closeTo",closeTo);Assertion.addMethod("approximately",closeTo);function isSubsetOf(_subset,_superset,cmp,contains,ordered){let superset=Array.from(_superset),subset=Array.from(_subset);if(!contains){if(subset.length!==superset.length)return!1;superset=superset.slice()}return subset.every(function(elem,idx){if(ordered)return cmp?cmp(elem,superset[idx]):elem===superset[idx];if(!cmp){var matchIdx=superset.indexOf(elem);return matchIdx===-1?!1:(contains||superset.splice(matchIdx,1),!0)}return superset.some(function(elem2,matchIdx2){return cmp(elem,elem2)?(contains||superset.splice(matchIdx2,1),!0):!1})})}__name(isSubsetOf,"isSubsetOf");Assertion.addMethod("members",function(subset,msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(obj,flagMsg,ssfi,!0).to.be.iterable,new Assertion(subset,flagMsg,ssfi,!0).to.be.iterable;var contains=flag2(this,"contains"),ordered=flag2(this,"ordered"),subject,failMsg,failNegateMsg;contains?(subject=ordered?"an ordered superset":"a superset",failMsg="expected #{this} to be "+subject+" of #{exp}",failNegateMsg="expected #{this} to not be "+subject+" of #{exp}"):(subject=ordered?"ordered members":"members",failMsg="expected #{this} to have the same "+subject+" as #{exp}",failNegateMsg="expected #{this} to not have the same "+subject+" as #{exp}");var cmp=flag2(this,"deep")?flag2(this,"eql"):void 0;this.assert(isSubsetOf(subset,obj,cmp,contains,ordered),failMsg,failNegateMsg,subset,obj,!0)});Assertion.addProperty("iterable",function(msg){msg&&flag2(this,"message",msg);var obj=flag2(this,"object");this.assert(obj!=null&&obj[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",obj)});function oneOf(list,msg){msg&&flag2(this,"message",msg);var expected=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi"),contains=flag2(this,"contains"),isDeep=flag2(this,"deep"),eql=flag2(this,"eql");new Assertion(list,flagMsg,ssfi,!0).to.be.an("array"),contains?this.assert(list.some(function(possibility){return expected.indexOf(possibility)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",list,expected):isDeep?this.assert(list.some(function(possibility){return eql(expected,possibility)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",list,expected):this.assert(list.indexOf(expected)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",list,expected)}__name(oneOf,"oneOf");Assertion.addMethod("oneOf",oneOf);function assertChanges(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","change"),flag2(this,"realDelta",final!==initial),this.assert(initial!==final,"expected "+msgObj+" to change","expected "+msgObj+" to not change")}__name(assertChanges,"assertChanges");Assertion.addMethod("change",assertChanges);Assertion.addMethod("changes",assertChanges);function assertIncreases(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","increase"),flag2(this,"realDelta",final-initial),this.assert(final-initial>0,"expected "+msgObj+" to increase","expected "+msgObj+" to not increase")}__name(assertIncreases,"assertIncreases");Assertion.addMethod("increase",assertIncreases);Assertion.addMethod("increases",assertIncreases);function assertDecreases(subject,prop,msg){msg&&flag2(this,"message",msg);var fn3=flag2(this,"object"),flagMsg=flag2(this,"message"),ssfi=flag2(this,"ssfi");new Assertion(fn3,flagMsg,ssfi,!0).is.a("function");var initial;prop?(new Assertion(subject,flagMsg,ssfi,!0).to.have.property(prop),initial=subject[prop]):(new Assertion(subject,flagMsg,ssfi,!0).is.a("function"),initial=subject()),new Assertion(initial,flagMsg,ssfi,!0).is.a("number"),fn3();var final=prop==null?subject():subject[prop],msgObj=prop==null?initial:"."+prop;flag2(this,"deltaMsgObj",msgObj),flag2(this,"initialDeltaValue",initial),flag2(this,"finalDeltaValue",final),flag2(this,"deltaBehavior","decrease"),flag2(this,"realDelta",initial-final),this.assert(final-initial<0,"expected "+msgObj+" to decrease","expected "+msgObj+" to not decrease")}__name(assertDecreases,"assertDecreases");Assertion.addMethod("decrease",assertDecreases);Assertion.addMethod("decreases",assertDecreases);function assertDelta(delta,msg){msg&&flag2(this,"message",msg);var msgObj=flag2(this,"deltaMsgObj"),initial=flag2(this,"initialDeltaValue"),final=flag2(this,"finalDeltaValue"),behavior2=flag2(this,"deltaBehavior"),realDelta=flag2(this,"realDelta"),expression;behavior2==="change"?expression=Math.abs(final-initial)===Math.abs(delta):expression=realDelta===Math.abs(delta),this.assert(expression,"expected "+msgObj+" to "+behavior2+" by "+delta,"expected "+msgObj+" to not "+behavior2+" by "+delta)}__name(assertDelta,"assertDelta");Assertion.addMethod("by",assertDelta);Assertion.addProperty("extensible",function(){var obj=flag2(this,"object"),isExtensible=obj===Object(obj)&&Object.isExtensible(obj);this.assert(isExtensible,"expected #{this} to be extensible","expected #{this} to not be extensible")});Assertion.addProperty("sealed",function(){var obj=flag2(this,"object"),isSealed=obj===Object(obj)?Object.isSealed(obj):!0;this.assert(isSealed,"expected #{this} to be sealed","expected #{this} to not be sealed")});Assertion.addProperty("frozen",function(){var obj=flag2(this,"object"),isFrozen=obj===Object(obj)?Object.isFrozen(obj):!0;this.assert(isFrozen,"expected #{this} to be frozen","expected #{this} to not be frozen")});Assertion.addProperty("finite",function(_msg){var obj=flag2(this,"object");this.assert(typeof obj=="number"&&isFinite(obj),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function compareSubset(expected,actual){return expected===actual?!0:typeof actual!=typeof expected?!1:typeof expected!="object"||expected===null?expected===actual:actual?Array.isArray(expected)?Array.isArray(actual)?expected.every(function(exp){return actual.some(function(act){return compareSubset(exp,act)})}):!1:expected instanceof Date?actual instanceof Date?expected.getTime()===actual.getTime():!1:Object.keys(expected).every(function(key){var expectedValue=expected[key],actualValue=actual[key];return typeof expectedValue=="object"&&expectedValue!==null&&actualValue!==null?compareSubset(expectedValue,actualValue):typeof expectedValue=="function"?expectedValue(actualValue):actualValue===expectedValue}):!1}__name(compareSubset,"compareSubset");Assertion.addMethod("containSubset",function(expected){let actual=flag(this,"object"),showDiff=config.showDiff;this.assert(compareSubset(expected,actual),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",expected,actual,showDiff)});function expect(val,message){return new Assertion(val,message)}__name(expect,"expect");expect.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"expect.fail()",new AssertionError(message,{actual,expected,operator},expect.fail)};var should_exports={};__export2(should_exports,{Should:()=>Should,should:()=>should});function loadShould(){function shouldGetter(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new Assertion(this.valueOf(),null,shouldGetter):new Assertion(this,null,shouldGetter)}__name(shouldGetter,"shouldGetter");function shouldSetter(value){Object.defineProperty(this,"should",{value,enumerable:!0,configurable:!0,writable:!0})}__name(shouldSetter,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:shouldSetter,get:shouldGetter,configurable:!0});var should2={};return should2.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"should.fail()",new AssertionError(message,{actual,expected,operator},should2.fail)},should2.equal=function(actual,expected,message){new Assertion(actual,message).to.equal(expected)},should2.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.Throw(errt,errs)},should2.exist=function(val,msg){new Assertion(val,msg).to.exist},should2.not={},should2.not.equal=function(actual,expected,msg){new Assertion(actual,msg).to.not.equal(expected)},should2.not.Throw=function(fn3,errt,errs,msg){new Assertion(fn3,msg).to.not.Throw(errt,errs)},should2.not.exist=function(val,msg){new Assertion(val,msg).to.not.exist},should2.throw=should2.Throw,should2.not.throw=should2.not.Throw,should2}__name(loadShould,"loadShould");var should=loadShould,Should=loadShould;function assert(express,errmsg){var test22=new Assertion(null,null,assert,!0);test22.assert(express,errmsg,"[ negation message unavailable ]")}__name(assert,"assert");assert.fail=function(actual,expected,message,operator){throw arguments.length<2&&(message=actual,actual=void 0),message=message||"assert.fail()",new AssertionError(message,{actual,expected,operator},assert.fail)};assert.isOk=function(val,msg){new Assertion(val,msg,assert.isOk,!0).is.ok};assert.isNotOk=function(val,msg){new Assertion(val,msg,assert.isNotOk,!0).is.not.ok};assert.equal=function(act,exp,msg){var test22=new Assertion(act,msg,assert.equal,!0);test22.assert(exp==flag(test22,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",exp,act,!0)};assert.notEqual=function(act,exp,msg){var test22=new Assertion(act,msg,assert.notEqual,!0);test22.assert(exp!=flag(test22,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",exp,act,!0)};assert.strictEqual=function(act,exp,msg){new Assertion(act,msg,assert.strictEqual,!0).to.equal(exp)};assert.notStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.notStrictEqual,!0).to.not.equal(exp)};assert.deepEqual=assert.deepStrictEqual=function(act,exp,msg){new Assertion(act,msg,assert.deepEqual,!0).to.eql(exp)};assert.notDeepEqual=function(act,exp,msg){new Assertion(act,msg,assert.notDeepEqual,!0).to.not.eql(exp)};assert.isAbove=function(val,abv,msg){new Assertion(val,msg,assert.isAbove,!0).to.be.above(abv)};assert.isAtLeast=function(val,atlst,msg){new Assertion(val,msg,assert.isAtLeast,!0).to.be.least(atlst)};assert.isBelow=function(val,blw,msg){new Assertion(val,msg,assert.isBelow,!0).to.be.below(blw)};assert.isAtMost=function(val,atmst,msg){new Assertion(val,msg,assert.isAtMost,!0).to.be.most(atmst)};assert.isTrue=function(val,msg){new Assertion(val,msg,assert.isTrue,!0).is.true};assert.isNotTrue=function(val,msg){new Assertion(val,msg,assert.isNotTrue,!0).to.not.equal(!0)};assert.isFalse=function(val,msg){new Assertion(val,msg,assert.isFalse,!0).is.false};assert.isNotFalse=function(val,msg){new Assertion(val,msg,assert.isNotFalse,!0).to.not.equal(!1)};assert.isNull=function(val,msg){new Assertion(val,msg,assert.isNull,!0).to.equal(null)};assert.isNotNull=function(val,msg){new Assertion(val,msg,assert.isNotNull,!0).to.not.equal(null)};assert.isNaN=function(val,msg){new Assertion(val,msg,assert.isNaN,!0).to.be.NaN};assert.isNotNaN=function(value,message){new Assertion(value,message,assert.isNotNaN,!0).not.to.be.NaN};assert.exists=function(val,msg){new Assertion(val,msg,assert.exists,!0).to.exist};assert.notExists=function(val,msg){new Assertion(val,msg,assert.notExists,!0).to.not.exist};assert.isUndefined=function(val,msg){new Assertion(val,msg,assert.isUndefined,!0).to.equal(void 0)};assert.isDefined=function(val,msg){new Assertion(val,msg,assert.isDefined,!0).to.not.equal(void 0)};assert.isCallable=function(value,message){new Assertion(value,message,assert.isCallable,!0).is.callable};assert.isNotCallable=function(value,message){new Assertion(value,message,assert.isNotCallable,!0).is.not.callable};assert.isObject=function(val,msg){new Assertion(val,msg,assert.isObject,!0).to.be.a("object")};assert.isNotObject=function(val,msg){new Assertion(val,msg,assert.isNotObject,!0).to.not.be.a("object")};assert.isArray=function(val,msg){new Assertion(val,msg,assert.isArray,!0).to.be.an("array")};assert.isNotArray=function(val,msg){new Assertion(val,msg,assert.isNotArray,!0).to.not.be.an("array")};assert.isString=function(val,msg){new Assertion(val,msg,assert.isString,!0).to.be.a("string")};assert.isNotString=function(val,msg){new Assertion(val,msg,assert.isNotString,!0).to.not.be.a("string")};assert.isNumber=function(val,msg){new Assertion(val,msg,assert.isNumber,!0).to.be.a("number")};assert.isNotNumber=function(val,msg){new Assertion(val,msg,assert.isNotNumber,!0).to.not.be.a("number")};assert.isNumeric=function(val,msg){new Assertion(val,msg,assert.isNumeric,!0).is.numeric};assert.isNotNumeric=function(val,msg){new Assertion(val,msg,assert.isNotNumeric,!0).is.not.numeric};assert.isFinite=function(val,msg){new Assertion(val,msg,assert.isFinite,!0).to.be.finite};assert.isBoolean=function(val,msg){new Assertion(val,msg,assert.isBoolean,!0).to.be.a("boolean")};assert.isNotBoolean=function(val,msg){new Assertion(val,msg,assert.isNotBoolean,!0).to.not.be.a("boolean")};assert.typeOf=function(val,type32,msg){new Assertion(val,msg,assert.typeOf,!0).to.be.a(type32)};assert.notTypeOf=function(value,type32,message){new Assertion(value,message,assert.notTypeOf,!0).to.not.be.a(type32)};assert.instanceOf=function(val,type32,msg){new Assertion(val,msg,assert.instanceOf,!0).to.be.instanceOf(type32)};assert.notInstanceOf=function(val,type32,msg){new Assertion(val,msg,assert.notInstanceOf,!0).to.not.be.instanceOf(type32)};assert.include=function(exp,inc,msg){new Assertion(exp,msg,assert.include,!0).include(inc)};assert.notInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notInclude,!0).not.include(inc)};assert.deepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepInclude,!0).deep.include(inc)};assert.notDeepInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepInclude,!0).not.deep.include(inc)};assert.nestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.nestedInclude,!0).nested.include(inc)};assert.notNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notNestedInclude,!0).not.nested.include(inc)};assert.deepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepNestedInclude,!0).deep.nested.include(inc)};assert.notDeepNestedInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepNestedInclude,!0).not.deep.nested.include(inc)};assert.ownInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.ownInclude,!0).own.include(inc)};assert.notOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notOwnInclude,!0).not.own.include(inc)};assert.deepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.deepOwnInclude,!0).deep.own.include(inc)};assert.notDeepOwnInclude=function(exp,inc,msg){new Assertion(exp,msg,assert.notDeepOwnInclude,!0).not.deep.own.include(inc)};assert.match=function(exp,re,msg){new Assertion(exp,msg,assert.match,!0).to.match(re)};assert.notMatch=function(exp,re,msg){new Assertion(exp,msg,assert.notMatch,!0).to.not.match(re)};assert.property=function(obj,prop,msg){new Assertion(obj,msg,assert.property,!0).to.have.property(prop)};assert.notProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notProperty,!0).to.not.have.property(prop)};assert.propertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.propertyVal,!0).to.have.property(prop,val)};assert.notPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notPropertyVal,!0).to.not.have.property(prop,val)};assert.deepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepPropertyVal,!0).to.have.deep.property(prop,val)};assert.notDeepPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepPropertyVal,!0).to.not.have.deep.property(prop,val)};assert.ownProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.ownProperty,!0).to.have.own.property(prop)};assert.notOwnProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notOwnProperty,!0).to.not.have.own.property(prop)};assert.ownPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.ownPropertyVal,!0).to.have.own.property(prop,value)};assert.notOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notOwnPropertyVal,!0).to.not.have.own.property(prop,value)};assert.deepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.deepOwnPropertyVal,!0).to.have.deep.own.property(prop,value)};assert.notDeepOwnPropertyVal=function(obj,prop,value,msg){new Assertion(obj,msg,assert.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(prop,value)};assert.nestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.nestedProperty,!0).to.have.nested.property(prop)};assert.notNestedProperty=function(obj,prop,msg){new Assertion(obj,msg,assert.notNestedProperty,!0).to.not.have.nested.property(prop)};assert.nestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.nestedPropertyVal,!0).to.have.nested.property(prop,val)};assert.notNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notNestedPropertyVal,!0).to.not.have.nested.property(prop,val)};assert.deepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.deepNestedPropertyVal,!0).to.have.deep.nested.property(prop,val)};assert.notDeepNestedPropertyVal=function(obj,prop,val,msg){new Assertion(obj,msg,assert.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(prop,val)};assert.lengthOf=function(exp,len,msg){new Assertion(exp,msg,assert.lengthOf,!0).to.have.lengthOf(len)};assert.hasAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyKeys,!0).to.have.any.keys(keys2)};assert.hasAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllKeys,!0).to.have.all.keys(keys2)};assert.containsAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllKeys,!0).to.contain.all.keys(keys2)};assert.doesNotHaveAnyKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyKeys,!0).to.not.have.any.keys(keys2)};assert.doesNotHaveAllKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllKeys,!0).to.not.have.all.keys(keys2)};assert.hasAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAnyDeepKeys,!0).to.have.any.deep.keys(keys2)};assert.hasAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.hasAllDeepKeys,!0).to.have.all.deep.keys(keys2)};assert.containsAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.containsAllDeepKeys,!0).to.contain.all.deep.keys(keys2)};assert.doesNotHaveAnyDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(keys2)};assert.doesNotHaveAllDeepKeys=function(obj,keys2,msg){new Assertion(obj,msg,assert.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(keys2)};assert.throws=function(fn3,errorLike,errMsgMatcher,msg){(typeof errorLike=="string"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null);var assertErr=new Assertion(fn3,msg,assert.throws,!0).to.throw(errorLike,errMsgMatcher);return flag(assertErr,"object")};assert.doesNotThrow=function(fn3,errorLike,errMsgMatcher,message){(typeof errorLike=="string"||errorLike instanceof RegExp)&&(errMsgMatcher=errorLike,errorLike=null),new Assertion(fn3,message,assert.doesNotThrow,!0).to.not.throw(errorLike,errMsgMatcher)};assert.operator=function(val,operator,val2,msg){var ok;switch(operator){case"==":ok=val==val2;break;case"===":ok=val===val2;break;case">":ok=val>val2;break;case">=":ok=val>=val2;break;case"<":ok=val<val2;break;case"<=":ok=val<=val2;break;case"!=":ok=val!=val2;break;case"!==":ok=val!==val2;break;default:throw msg=msg&&msg+": ",new AssertionError(msg+'Invalid operator "'+operator+'"',void 0,assert.operator)}var test22=new Assertion(ok,msg,assert.operator,!0);test22.assert(flag(test22,"object")===!0,"expected "+inspect2(val)+" to be "+operator+" "+inspect2(val2),"expected "+inspect2(val)+" to not be "+operator+" "+inspect2(val2))};assert.closeTo=function(act,exp,delta,msg){new Assertion(act,msg,assert.closeTo,!0).to.be.closeTo(exp,delta)};assert.approximately=function(act,exp,delta,msg){new Assertion(act,msg,assert.approximately,!0).to.be.approximately(exp,delta)};assert.sameMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameMembers,!0).to.have.same.members(set2)};assert.notSameMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameMembers,!0).to.not.have.same.members(set2)};assert.sameDeepMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameDeepMembers,!0).to.have.same.deep.members(set2)};assert.notSameDeepMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameDeepMembers,!0).to.not.have.same.deep.members(set2)};assert.sameOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameOrderedMembers,!0).to.have.same.ordered.members(set2)};assert.notSameOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameOrderedMembers,!0).to.not.have.same.ordered.members(set2)};assert.sameDeepOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(set2)};assert.notSameDeepOrderedMembers=function(set1,set2,msg){new Assertion(set1,msg,assert.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(set2)};assert.includeMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeMembers,!0).to.include.members(subset)};assert.notIncludeMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeMembers,!0).to.not.include.members(subset)};assert.includeDeepMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeDeepMembers,!0).to.include.deep.members(subset)};assert.notIncludeDeepMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeDeepMembers,!0).to.not.include.deep.members(subset)};assert.includeOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeOrderedMembers,!0).to.include.ordered.members(subset)};assert.notIncludeOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeOrderedMembers,!0).to.not.include.ordered.members(subset)};assert.includeDeepOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(subset)};assert.notIncludeDeepOrderedMembers=function(superset,subset,msg){new Assertion(superset,msg,assert.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(subset)};assert.oneOf=function(inList,list,msg){new Assertion(inList,msg,assert.oneOf,!0).to.be.oneOf(list)};assert.isIterable=function(obj,msg){if(obj==null||!obj[Symbol.iterator])throw msg=msg?`${msg} expected ${inspect2(obj)} to be an iterable`:`expected ${inspect2(obj)} to be an iterable`,new AssertionError(msg,void 0,assert.isIterable)};assert.changes=function(fn3,obj,prop,msg){arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.changes,!0).to.change(obj,prop)};assert.changesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.changesBy,!0).to.change(obj,prop).by(delta)};assert.doesNotChange=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotChange,!0).to.not.change(obj,prop)};assert.changesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.changesButNotBy,!0).to.change(obj,prop).but.not.by(delta)};assert.increases=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.increases,!0).to.increase(obj,prop)};assert.increasesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.increasesBy,!0).to.increase(obj,prop).by(delta)};assert.doesNotIncrease=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotIncrease,!0).to.not.increase(obj,prop)};assert.increasesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.increasesButNotBy,!0).to.increase(obj,prop).but.not.by(delta)};assert.decreases=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.decreases,!0).to.decrease(obj,prop)};assert.decreasesBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.decreasesBy,!0).to.decrease(obj,prop).by(delta)};assert.doesNotDecrease=function(fn3,obj,prop,msg){return arguments.length===3&&typeof obj=="function"&&(msg=prop,prop=null),new Assertion(fn3,msg,assert.doesNotDecrease,!0).to.not.decrease(obj,prop)};assert.doesNotDecreaseBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);return new Assertion(fn3,msg,assert.doesNotDecreaseBy,!0).to.not.decrease(obj,prop).by(delta)};assert.decreasesButNotBy=function(fn3,obj,prop,delta,msg){if(arguments.length===4&&typeof obj=="function"){var tmpMsg=delta;delta=prop,msg=tmpMsg}else arguments.length===3&&(delta=prop,prop=null);new Assertion(fn3,msg,assert.decreasesButNotBy,!0).to.decrease(obj,prop).but.not.by(delta)};assert.ifError=function(val){if(val)throw val};assert.isExtensible=function(obj,msg){new Assertion(obj,msg,assert.isExtensible,!0).to.be.extensible};assert.isNotExtensible=function(obj,msg){new Assertion(obj,msg,assert.isNotExtensible,!0).to.not.be.extensible};assert.isSealed=function(obj,msg){new Assertion(obj,msg,assert.isSealed,!0).to.be.sealed};assert.isNotSealed=function(obj,msg){new Assertion(obj,msg,assert.isNotSealed,!0).to.not.be.sealed};assert.isFrozen=function(obj,msg){new Assertion(obj,msg,assert.isFrozen,!0).to.be.frozen};assert.isNotFrozen=function(obj,msg){new Assertion(obj,msg,assert.isNotFrozen,!0).to.not.be.frozen};assert.isEmpty=function(val,msg){new Assertion(val,msg,assert.isEmpty,!0).to.be.empty};assert.isNotEmpty=function(val,msg){new Assertion(val,msg,assert.isNotEmpty,!0).to.not.be.empty};assert.containsSubset=function(val,exp,msg){new Assertion(val,msg).to.containSubset(exp)};assert.doesNotContainSubset=function(val,exp,msg){new Assertion(val,msg).to.not.containSubset(exp)};var aliases=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[name,as]of aliases)assert[as]=assert[name];var used=[];function use(fn3){let exports2={use,AssertionError,util:utils_exports,config,expect,assert,Assertion,...should_exports};return~used.indexOf(fn3)||(fn3(exports2,utils_exports),used.push(fn3)),exports2}__name(use,"use");var matchers_exports={};__export(matchers_exports,{toBeChecked:()=>toBeChecked,toBeDisabled:()=>toBeDisabled,toBeEmpty:()=>toBeEmpty,toBeEmptyDOMElement:()=>toBeEmptyDOMElement,toBeEnabled:()=>toBeEnabled,toBeInTheDOM:()=>toBeInTheDOM,toBeInTheDocument:()=>toBeInTheDocument,toBeInvalid:()=>toBeInvalid,toBePartiallyChecked:()=>toBePartiallyChecked,toBeRequired:()=>toBeRequired,toBeValid:()=>toBeValid,toBeVisible:()=>toBeVisible,toContainElement:()=>toContainElement,toContainHTML:()=>toContainHTML,toHaveAccessibleDescription:()=>toHaveAccessibleDescription,toHaveAccessibleErrorMessage:()=>toHaveAccessibleErrorMessage,toHaveAccessibleName:()=>toHaveAccessibleName,toHaveAttribute:()=>toHaveAttribute,toHaveClass:()=>toHaveClass,toHaveDescription:()=>toHaveDescription,toHaveDisplayValue:()=>toHaveDisplayValue,toHaveErrorMessage:()=>toHaveErrorMessage,toHaveFocus:()=>toHaveFocus,toHaveFormValues:()=>toHaveFormValues,toHaveRole:()=>toHaveRole,toHaveStyle:()=>toHaveStyle,toHaveTextContent:()=>toHaveTextContent,toHaveValue:()=>toHaveValue});var import_redent=__toESM(require_redent(),1);function $parcel$defineInteropFlag(a2){Object.defineProperty(a2,"__esModule",{value:!0,configurable:!0})}function $parcel$export(e,n,v,s){Object.defineProperty(e,n,{get:v,set:s,enumerable:!0,configurable:!0})}var $009ddb00d3ec72b8$exports={};$parcel$defineInteropFlag($009ddb00d3ec72b8$exports);$parcel$export($009ddb00d3ec72b8$exports,"default",()=>$009ddb00d3ec72b8$export$2e2bcd8739ae039);var $009ddb00d3ec72b8$export$2e2bcd8739ae039=class extends Error{constructor(filename,msg,lineno,column,css){super(filename+":"+lineno+":"+column+": "+msg),this.reason=msg,this.filename=filename,this.line=lineno,this.column=column,this.source=css}},$0865a9fb4cc365fe$exports={};$parcel$defineInteropFlag($0865a9fb4cc365fe$exports);$parcel$export($0865a9fb4cc365fe$exports,"default",()=>$0865a9fb4cc365fe$export$2e2bcd8739ae039);var $0865a9fb4cc365fe$export$2e2bcd8739ae039=class{constructor(start,end,source){this.start=start,this.end=end,this.source=source}},$b2e137848b48cf4f$exports={};$parcel$export($b2e137848b48cf4f$exports,"CssTypes",()=>$b2e137848b48cf4f$export$9be5dd6e61d5d73a);var $b2e137848b48cf4f$export$9be5dd6e61d5d73a;(function(CssTypes){CssTypes.stylesheet="stylesheet",CssTypes.rule="rule",CssTypes.declaration="declaration",CssTypes.comment="comment",CssTypes.container="container",CssTypes.charset="charset",CssTypes.document="document",CssTypes.customMedia="custom-media",CssTypes.fontFace="font-face",CssTypes.host="host",CssTypes.import="import",CssTypes.keyframes="keyframes",CssTypes.keyframe="keyframe",CssTypes.layer="layer",CssTypes.media="media",CssTypes.namespace="namespace",CssTypes.page="page",CssTypes.startingStyle="starting-style",CssTypes.supports="supports"})($b2e137848b48cf4f$export$9be5dd6e61d5d73a||($b2e137848b48cf4f$export$9be5dd6e61d5d73a={}));var $d708735ed1303b43$var$commentre=/\/\*[^]*?(?:\*\/|$)/g,$d708735ed1303b43$export$98e6a39c04603d36=(css,options)=>{options=options||{};let lineno=1,column=1;function updatePosition(str){let lines=str.match(/\n/g);lines&&(lineno+=lines.length);let i=str.lastIndexOf(`
|
28
28
|
`);column=~i?str.length-i:column+str.length}function position(){let start={line:lineno,column};return function(node){return node.position=new $0865a9fb4cc365fe$export$2e2bcd8739ae039(start,{line:lineno,column},options?.source||""),whitespace(),node}}let errorsList=[];function error(msg){let err=new $009ddb00d3ec72b8$export$2e2bcd8739ae039(options?.source||"",msg,lineno,column,css);if(options?.silent)errorsList.push(err);else throw err}function stylesheet(){let rulesList=rules();return{type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.stylesheet,stylesheet:{source:options?.source,rules:rulesList,parsingErrors:errorsList}}}function open(){return match(/^{\s*/)}function close(){return match(/^}/)}function rules(){let node,rules2=[];for(whitespace(),comments(rules2);css.length&&css.charAt(0)!=="}"&&(node=atrule()||rule());)node&&(rules2.push(node),comments(rules2));return rules2}function match(re){let m3=re.exec(css);if(!m3)return;let str=m3[0];return updatePosition(str),css=css.slice(str.length),m3}function whitespace(){match(/^\s*/)}function comments(rules2){let c;for(rules2=rules2||[];c=comment();)c&&rules2.push(c);return rules2}function comment(){let pos=position();if(css.charAt(0)!=="/"||css.charAt(1)!=="*")return;let m3=match(/^\/\*[^]*?\*\//);return m3?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment,comment:m3[0].slice(2,-2)}):error("End of comment missing")}function findClosingParenthese(str,start,depth){let ptr=start+1,found=!1,closeParentheses=str.indexOf(")",ptr);for(;!found&&closeParentheses!==-1;){let nextParentheses=str.indexOf("(",ptr);nextParentheses!==-1&&nextParentheses<closeParentheses?(ptr=findClosingParenthese(str,nextParentheses+1,depth+1)+1,closeParentheses=str.indexOf(")",ptr)):found=!0}return found&&closeParentheses!==-1?closeParentheses:-1}function selector(){let m3=match(/^([^{]+)/);if(!m3)return;let res=$d708735ed1303b43$var$trim(m3[0]).replace($d708735ed1303b43$var$commentre,"");if(res.indexOf(",")===-1)return[res];let ptr=0,startParentheses=res.indexOf("(",ptr);for(;startParentheses!==-1;){let closeParentheses=findClosingParenthese(res,startParentheses,0);if(closeParentheses===-1)break;ptr=closeParentheses+1,res=res.substring(0,startParentheses)+res.substring(startParentheses,closeParentheses).replace(/,/g,"\u200C")+res.substring(closeParentheses),startParentheses=res.indexOf("(",ptr)}return res=res.replace(/("|')(?:\\\1|.)*?\1/g,m4=>m4.replace(/,/g,"\u200C")),res.split(",").map(s=>$d708735ed1303b43$var$trim(s.replace(/\u200C/g,",")))}function declaration(){let pos=position(),propMatch=match(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!propMatch)return;let propValue=$d708735ed1303b43$var$trim(propMatch[0]);if(!match(/^:\s*/))return error("property missing ':'");let val=match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ret=pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.declaration,property:propValue.replace($d708735ed1303b43$var$commentre,""),value:val?$d708735ed1303b43$var$trim(val[0]).replace($d708735ed1303b43$var$commentre,""):""});return match(/^[;\s]*/),ret}function declarations(){let decls=[];if(!open())return error("missing '{'");comments(decls);let decl;for(;decl=declaration();)decl&&(decls.push(decl),comments(decls));return close()?decls:error("missing '}'")}function keyframe(){let m3,vals=[],pos=position();for(;m3=match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)vals.push(m3[1]),match(/^,\s*/);if(vals.length)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe,values:vals,declarations:declarations()||[]})}function atkeyframes(){let pos=position(),m1=match(/^@([-\w]+)?keyframes\s*/);if(!m1)return;let vendor=m1[1],m22=match(/^([-\w]+)\s*/);if(!m22)return error("@keyframes missing name");let name=m22[1];if(!open())return error("@keyframes missing '{'");let frame,frames=comments();for(;frame=keyframe();)frames.push(frame),frames=frames.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframes,name,vendor,keyframes:frames}):error("@keyframes missing '}'")}function atsupports(){let pos=position(),m3=match(/^@supports *([^{]+)/);if(!m3)return;let supports=$d708735ed1303b43$var$trim(m3[1]);if(!open())return error("@supports missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.supports,supports,rules:style}):error("@supports missing '}'")}function athost(){let pos=position();if(!match(/^@host\s*/))return;if(!open())return error("@host missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.host,rules:style}):error("@host missing '}'")}function atcontainer(){let pos=position(),m3=match(/^@container *([^{]+)/);if(!m3)return;let container=$d708735ed1303b43$var$trim(m3[1]);if(!open())return error("@container missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.container,container,rules:style}):error("@container missing '}'")}function atlayer(){let pos=position(),m3=match(/^@layer *([^{;@]+)/);if(!m3)return;let layer=$d708735ed1303b43$var$trim(m3[1]);if(!open())return match(/^[;\s]*/),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer});let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer,layer,rules:style}):error("@layer missing '}'")}function atmedia(){let pos=position(),m3=match(/^@media *([^{]+)/);if(!m3)return;let media=$d708735ed1303b43$var$trim(m3[1]);if(!open())return error("@media missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.media,media,rules:style}):error("@media missing '}'")}function atcustommedia(){let pos=position(),m3=match(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(m3)return pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia,name:$d708735ed1303b43$var$trim(m3[1]),media:$d708735ed1303b43$var$trim(m3[2])})}function atpage(){let pos=position();if(!match(/^@page */))return;let sel=selector()||[];if(!open())return error("@page missing '{'");let decls=comments(),decl;for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.page,selectors:sel,declarations:decls}):error("@page missing '}'")}function atdocument(){let pos=position(),m3=match(/^@([-\w]+)?document *([^{]+)/);if(!m3)return;let vendor=$d708735ed1303b43$var$trim(m3[1]),doc=$d708735ed1303b43$var$trim(m3[2]);if(!open())return error("@document missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.document,document:doc,vendor,rules:style}):error("@document missing '}'")}function atfontface(){let pos=position();if(!match(/^@font-face\s*/))return;if(!open())return error("@font-face missing '{'");let decls=comments(),decl;for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.fontFace,declarations:decls}):error("@font-face missing '}'")}function atstartingstyle(){let pos=position();if(!match(/^@starting-style\s*/))return;if(!open())return error("@starting-style missing '{'");let style=comments().concat(rules());return close()?pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.startingStyle,rules:style}):error("@starting-style missing '}'")}let atimport=_compileAtrule("import"),atcharset=_compileAtrule("charset"),atnamespace=_compileAtrule("namespace");function _compileAtrule(name){let re=new RegExp("^@"+name+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let pos=position(),m3=match(re);if(!m3)return;let ret={type:name};return ret[name]=m3[1].trim(),pos(ret)}}function atrule(){if(css[0]==="@")return atkeyframes()||atmedia()||atcustommedia()||atsupports()||atimport()||atcharset()||atnamespace()||atdocument()||atpage()||athost()||atfontface()||atcontainer()||atstartingstyle()||atlayer()}function rule(){let pos=position(),sel=selector();return sel?(comments(),pos({type:$b2e137848b48cf4f$export$9be5dd6e61d5d73a.rule,selectors:sel,declarations:declarations()||[]})):error("selector missing")}return $d708735ed1303b43$var$addParent(stylesheet())};function $d708735ed1303b43$var$trim(str){return str?str.trim():""}function $d708735ed1303b43$var$addParent(obj,parent){let isNode=obj&&typeof obj.type=="string",childParent=isNode?obj:parent;for(let k2 in obj){let value=obj[k2];Array.isArray(value)?value.forEach(v=>{$d708735ed1303b43$var$addParent(v,childParent)}):value&&typeof value=="object"&&$d708735ed1303b43$var$addParent(value,childParent)}return isNode&&Object.defineProperty(obj,"parent",{configurable:!0,writable:!0,enumerable:!1,value:parent||null}),obj}var $d708735ed1303b43$export$2e2bcd8739ae039=$d708735ed1303b43$export$98e6a39c04603d36;var $149c1bd638913645$export$98e6a39c04603d36=$d708735ed1303b43$export$2e2bcd8739ae039;var toStr=Object.prototype.toString;function isCallable(fn3){return typeof fn3=="function"||toStr.call(fn3)==="[object Function]"}function toInteger(value){var number=Number(value);return isNaN(number)?0:number===0||!isFinite(number)?number:(number>0?1:-1)*Math.floor(Math.abs(number))}var maxSafeInteger=Math.pow(2,53)-1;function toLength(value){var len=toInteger(value);return Math.min(Math.max(len,0),maxSafeInteger)}function arrayFrom(arrayLike,mapFn){var C3=Array,items=Object(arrayLike);if(arrayLike==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof mapFn<"u"&&!isCallable(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var len=toLength(items.length),A=isCallable(C3)?Object(new C3(len)):new Array(len),k2=0,kValue;k2<len;)kValue=items[k2],mapFn?A[k2]=mapFn(kValue,k2):A[k2]=kValue,k2+=1;return A.length=len,A}function _typeof(o){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key)}function _toPrimitive(input2,hint){if(_typeof(input2)!=="object"||input2===null)return input2;var prim=input2[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input2,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input2)}var SetLike=function(){function SetLike3(){var items=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_classCallCheck(this,SetLike3),_defineProperty(this,"items",void 0),this.items=items}return _createClass(SetLike3,[{key:"add",value:function(value){return this.has(value)===!1&&this.items.push(value),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(value){var previousLength=this.items.length;return this.items=this.items.filter(function(item){return item!==value}),previousLength!==this.items.length}},{key:"forEach",value:function(callbackfn){var _this=this;this.items.forEach(function(item){callbackfn(item,item,_this)})}},{key:"has",value:function(value){return this.items.indexOf(value)!==-1}},{key:"size",get:function(){return this.items.length}}]),SetLike3}(),SetLike_default=typeof Set>"u"?Set:SetLike;function getLocalName(element){var _element$localName;return(_element$localName=element.localName)!==null&&_element$localName!==void 0?_element$localName:element.tagName.toLowerCase()}var localNameToRoleMappings={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"},prohibitedAttributes={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function hasGlobalAriaAttributes(element,role){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(attributeName){var _prohibitedAttributes;return element.hasAttribute(attributeName)&&!((_prohibitedAttributes=prohibitedAttributes[role])!==null&&_prohibitedAttributes!==void 0&&_prohibitedAttributes.has(attributeName))})}function ignorePresentationalRole(element,implicitRole){return hasGlobalAriaAttributes(element,implicitRole)}function getRole(element){var explicitRole=getExplicitRole(element);if(explicitRole===null||presentationRoles.indexOf(explicitRole)!==-1){var implicitRole=getImplicitRole(element);if(presentationRoles.indexOf(explicitRole||"")===-1||ignorePresentationalRole(element,implicitRole||""))return implicitRole}return explicitRole}function getImplicitRole(element){var mappedByTag=localNameToRoleMappings[getLocalName(element)];if(mappedByTag!==void 0)return mappedByTag;switch(getLocalName(element)){case"a":case"area":case"link":if(element.hasAttribute("href"))return"link";break;case"img":return element.getAttribute("alt")===""&&!ignorePresentationalRole(element,"img")?"presentation":"img";case"input":{var _ref=element,type5=_ref.type;switch(type5){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return type5;case"range":return"slider";case"email":case"tel":case"text":case"url":return element.hasAttribute("list")?"combobox":"textbox";case"search":return element.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return element.hasAttribute("multiple")||element.size>1?"listbox":"combobox"}return null}function getExplicitRole(element){var role=element.getAttribute("role");if(role!==null){var explicitRole=role.trim().split(" ")[0];if(explicitRole.length>0)return explicitRole}return null}var presentationRoles=["presentation","none"];function isElement(node){return node!==null&&node.nodeType===node.ELEMENT_NODE}function isHTMLTableCaptionElement(node){return isElement(node)&&getLocalName(node)==="caption"}function isHTMLInputElement(node){return isElement(node)&&getLocalName(node)==="input"}function isHTMLOptGroupElement(node){return isElement(node)&&getLocalName(node)==="optgroup"}function isHTMLSelectElement(node){return isElement(node)&&getLocalName(node)==="select"}function isHTMLTableElement(node){return isElement(node)&&getLocalName(node)==="table"}function isHTMLTextAreaElement(node){return isElement(node)&&getLocalName(node)==="textarea"}function safeWindow(node){var _ref=node.ownerDocument===null?node:node.ownerDocument,defaultView=_ref.defaultView;if(defaultView===null)throw new TypeError("no window available");return defaultView}function isHTMLFieldSetElement(node){return isElement(node)&&getLocalName(node)==="fieldset"}function isHTMLLegendElement(node){return isElement(node)&&getLocalName(node)==="legend"}function isHTMLSlotElement(node){return isElement(node)&&getLocalName(node)==="slot"}function isSVGElement(node){return isElement(node)&&node.ownerSVGElement!==void 0}function isSVGSVGElement(node){return isElement(node)&&getLocalName(node)==="svg"}function isSVGTitleElement(node){return isSVGElement(node)&&getLocalName(node)==="title"}function queryIdRefs(node,attributeName){if(isElement(node)&&node.hasAttribute(attributeName)){var ids=node.getAttribute(attributeName).split(" "),root=node.getRootNode?node.getRootNode():node.ownerDocument;return ids.map(function(id){return root.getElementById(id)}).filter(function(element){return element!==null})}return[]}function hasAnyConcreteRoles(node,roles3){return isElement(node)?roles3.indexOf(getRole(node))!==-1:!1}function asFlatString(s){return s.trim().replace(/\s\s+/g," ")}function isHidden(node,getComputedStyleImplementation){if(!isElement(node))return!1;if(node.hasAttribute("hidden")||node.getAttribute("aria-hidden")==="true")return!0;var style=getComputedStyleImplementation(node);return style.getPropertyValue("display")==="none"||style.getPropertyValue("visibility")==="hidden"}function isControl(node){return hasAnyConcreteRoles(node,["button","combobox","listbox","textbox"])||hasAbstractRole(node,"range")}function hasAbstractRole(node,role){if(!isElement(node))return!1;switch(role){case"range":return hasAnyConcreteRoles(node,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(role,"'. This is likely a bug :("))}}function querySelectorAllSubtree(element,selectors){var elements=arrayFrom(element.querySelectorAll(selectors));return queryIdRefs(element,"aria-owns").forEach(function(root){elements.push.apply(elements,arrayFrom(root.querySelectorAll(selectors)))}),elements}function querySelectedOptions(listbox){return isHTMLSelectElement(listbox)?listbox.selectedOptions||querySelectorAllSubtree(listbox,"[selected]"):querySelectorAllSubtree(listbox,'[aria-selected="true"]')}function isMarkedPresentational(node){return hasAnyConcreteRoles(node,presentationRoles)}function isNativeHostLanguageTextAlternativeElement(node){return isHTMLTableCaptionElement(node)}function allowsNameFromContent(node){return hasAnyConcreteRoles(node,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function isDescendantOfNativeHostLanguageTextAlternativeElement(node){return!1}function getValueOfTextbox(element){return isHTMLInputElement(element)||isHTMLTextAreaElement(element)?element.value:element.textContent||""}function getTextualContent(declaration){var content=declaration.getPropertyValue("content");return/^["'].*["']$/.test(content)?content.slice(1,-1):""}function isLabelableElement(element){var localName=getLocalName(element);return localName==="button"||localName==="input"&&element.getAttribute("type")!=="hidden"||localName==="meter"||localName==="output"||localName==="progress"||localName==="select"||localName==="textarea"}function findLabelableElement(element){if(isLabelableElement(element))return element;var labelableElement=null;return element.childNodes.forEach(function(childNode){if(labelableElement===null&&isElement(childNode)){var descendantLabelableElement=findLabelableElement(childNode);descendantLabelableElement!==null&&(labelableElement=descendantLabelableElement)}}),labelableElement}function getControlOfLabel(label){if(label.control!==void 0)return label.control;var htmlFor=label.getAttribute("for");return htmlFor!==null?label.ownerDocument.getElementById(htmlFor):findLabelableElement(label)}function getLabels(element){var labelsProperty=element.labels;if(labelsProperty===null)return labelsProperty;if(labelsProperty!==void 0)return arrayFrom(labelsProperty);if(!isLabelableElement(element))return null;var document2=element.ownerDocument;return arrayFrom(document2.querySelectorAll("label")).filter(function(label){return getControlOfLabel(label)===element})}function getSlotContents(slot){var assignedNodes=slot.assignedNodes();return assignedNodes.length===0?arrayFrom(slot.childNodes):assignedNodes}function computeTextAlternative(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},consultedNodes=new SetLike_default,window2=safeWindow(root),_options$compute=options.compute,compute=_options$compute===void 0?"name":_options$compute,_options$computedStyl=options.computedStyleSupportsPseudoElements,computedStyleSupportsPseudoElements=_options$computedStyl===void 0?options.getComputedStyle!==void 0:_options$computedStyl,_options$getComputedS=options.getComputedStyle,getComputedStyle=_options$getComputedS===void 0?window2.getComputedStyle.bind(window2):_options$getComputedS,_options$hidden=options.hidden,hidden=_options$hidden===void 0?!1:_options$hidden;function computeMiscTextAlternative(node,context){var accumulatedText="";if(isElement(node)&&computedStyleSupportsPseudoElements){var pseudoBefore=getComputedStyle(node,"::before"),beforeContent=getTextualContent(pseudoBefore);accumulatedText="".concat(beforeContent," ").concat(accumulatedText)}var childNodes=isHTMLSlotElement(node)?getSlotContents(node):arrayFrom(node.childNodes).concat(queryIdRefs(node,"aria-owns"));if(childNodes.forEach(function(child){var result=computeTextAlternative3(child,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),display2=isElement(child)?getComputedStyle(child).getPropertyValue("display"):"inline",separator=display2!=="inline"?" ":"";accumulatedText+="".concat(separator).concat(result).concat(separator)}),isElement(node)&&computedStyleSupportsPseudoElements){var pseudoAfter=getComputedStyle(node,"::after"),afterContent=getTextualContent(pseudoAfter);accumulatedText="".concat(accumulatedText," ").concat(afterContent)}return accumulatedText.trim()}function useAttribute(element,attributeName){var attribute=element.getAttributeNode(attributeName);return attribute!==null&&!consultedNodes.has(attribute)&&attribute.value.trim()!==""?(consultedNodes.add(attribute),attribute.value):null}function computeTooltipAttributeValue(node){return isElement(node)?useAttribute(node,"title"):null}function computeElementTextAlternative(node){if(!isElement(node))return null;if(isHTMLFieldSetElement(node)){consultedNodes.add(node);for(var children=arrayFrom(node.childNodes),i=0;i<children.length;i+=1){var child=children[i];if(isHTMLLegendElement(child))return computeTextAlternative3(child,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(isHTMLTableElement(node)){consultedNodes.add(node);for(var _children=arrayFrom(node.childNodes),_i=0;_i<_children.length;_i+=1){var _child=_children[_i];if(isHTMLTableCaptionElement(_child))return computeTextAlternative3(_child,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(isSVGSVGElement(node)){consultedNodes.add(node);for(var _children2=arrayFrom(node.childNodes),_i2=0;_i2<_children2.length;_i2+=1){var _child2=_children2[_i2];if(isSVGTitleElement(_child2))return _child2.textContent}return null}else if(getLocalName(node)==="img"||getLocalName(node)==="area"){var nameFromAlt=useAttribute(node,"alt");if(nameFromAlt!==null)return nameFromAlt}else if(isHTMLOptGroupElement(node)){var nameFromLabel=useAttribute(node,"label");if(nameFromLabel!==null)return nameFromLabel}if(isHTMLInputElement(node)&&(node.type==="button"||node.type==="submit"||node.type==="reset")){var nameFromValue=useAttribute(node,"value");if(nameFromValue!==null)return nameFromValue;if(node.type==="submit")return"Submit";if(node.type==="reset")return"Reset"}var labels=getLabels(node);if(labels!==null&&labels.length!==0)return consultedNodes.add(node),arrayFrom(labels).map(function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(label){return label.length>0}).join(" ");if(isHTMLInputElement(node)&&node.type==="image"){var _nameFromAlt=useAttribute(node,"alt");if(_nameFromAlt!==null)return _nameFromAlt;var nameFromTitle=useAttribute(node,"title");return nameFromTitle!==null?nameFromTitle:"Submit Query"}if(hasAnyConcreteRoles(node,["button"])){var nameFromSubTree=computeMiscTextAlternative(node,{isEmbeddedInLabel:!1,isReferenced:!1});if(nameFromSubTree!=="")return nameFromSubTree}return null}function computeTextAlternative3(current,context){if(consultedNodes.has(current))return"";if(!hidden&&isHidden(current,getComputedStyle)&&!context.isReferenced)return consultedNodes.add(current),"";var labelAttributeNode=isElement(current)?current.getAttributeNode("aria-labelledby"):null,labelElements=labelAttributeNode!==null&&!consultedNodes.has(labelAttributeNode)?queryIdRefs(current,"aria-labelledby"):[];if(compute==="name"&&!context.isReferenced&&labelElements.length>0)return consultedNodes.add(labelAttributeNode),labelElements.map(function(element){return computeTextAlternative3(element,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var skipToStep2E=context.recursion&&isControl(current)&&compute==="name";if(!skipToStep2E){var ariaLabel=(isElement(current)&¤t.getAttribute("aria-label")||"").trim();if(ariaLabel!==""&&compute==="name")return consultedNodes.add(current),ariaLabel;if(!isMarkedPresentational(current)){var elementTextAlternative=computeElementTextAlternative(current);if(elementTextAlternative!==null)return consultedNodes.add(current),elementTextAlternative}}if(hasAnyConcreteRoles(current,["menu"]))return consultedNodes.add(current),"";if(skipToStep2E||context.isEmbeddedInLabel||context.isReferenced){if(hasAnyConcreteRoles(current,["combobox","listbox"])){consultedNodes.add(current);var selectedOptions=querySelectedOptions(current);return selectedOptions.length===0?isHTMLInputElement(current)?current.value:"":arrayFrom(selectedOptions).map(function(selectedOption){return computeTextAlternative3(selectedOption,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(hasAbstractRole(current,"range"))return consultedNodes.add(current),current.hasAttribute("aria-valuetext")?current.getAttribute("aria-valuetext"):current.hasAttribute("aria-valuenow")?current.getAttribute("aria-valuenow"):current.getAttribute("value")||"";if(hasAnyConcreteRoles(current,["textbox"]))return consultedNodes.add(current),getValueOfTextbox(current)}if(allowsNameFromContent(current)||isElement(current)&&context.isReferenced||isNativeHostLanguageTextAlternativeElement(current)||isDescendantOfNativeHostLanguageTextAlternativeElement(current)){var accumulatedText2F=computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});if(accumulatedText2F!=="")return consultedNodes.add(current),accumulatedText2F}if(current.nodeType===current.TEXT_NODE)return consultedNodes.add(current),current.textContent||"";if(context.recursion)return consultedNodes.add(current),computeMiscTextAlternative(current,{isEmbeddedInLabel:context.isEmbeddedInLabel,isReferenced:!1});var tooltipAttributeValue=computeTooltipAttributeValue(current);return tooltipAttributeValue!==null?(consultedNodes.add(current),tooltipAttributeValue):(consultedNodes.add(current),"")}return asFlatString(computeTextAlternative3(root,{isEmbeddedInLabel:!1,isReferenced:compute==="description",recursion:!1}))}function _typeof2(o){"@babel/helpers - typeof";return _typeof2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof2(o)}function ownKeys(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r2=1;r2<arguments.length;r2++){var t=arguments[r2]!=null?arguments[r2]:{};r2%2?ownKeys(Object(t),!0).forEach(function(r3){_defineProperty2(e,r3,t[r3])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3))})}return e}function _defineProperty2(obj,key,value){return key=_toPropertyKey2(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey2(arg){var key=_toPrimitive2(arg,"string");return _typeof2(key)==="symbol"?key:String(key)}function _toPrimitive2(input2,hint){if(_typeof2(input2)!=="object"||input2===null)return input2;var prim=input2[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input2,hint||"default");if(_typeof2(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input2)}function computeAccessibleDescription(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},description=queryIdRefs(root,"aria-describedby").map(function(element){return computeTextAlternative(element,_objectSpread(_objectSpread({},options),{},{compute:"description"}))}).join(" ");if(description===""){var ariaDescription=root.getAttribute("aria-description");description=ariaDescription===null?"":ariaDescription}if(description===""){var title=root.getAttribute("title");description=title===null?"":title}return description}function prohibitsNaming(node){return hasAnyConcreteRoles(node,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function computeAccessibleName(root){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return prohibitsNaming(root)?"":computeTextAlternative(root,options)}var import_aria_query=__toESM(require_lib(),1),import_chalk=__toESM(require_source(),1),import_isEqualWith=__toESM(require_isEqualWith(),1),import_css=__toESM(require_css_escape(),1),GenericTypeError=class extends Error{constructor(expectedString,received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn);let withType="";try{withType=context.utils.printWithType("Received",received,context.utils.printReceived)}catch{}this.message=[context.utils.matcherHint(`${context.isNot?".not":""}.${matcherFn.name}`,"received",""),"",`${context.utils.RECEIVED_COLOR("received")} value must ${expectedString}.`,withType].join(`
|
29
29
|
`)}},HtmlElementTypeError=class extends GenericTypeError{constructor(...args){super("be an HTMLElement or an SVGElement",...args)}},NodeTypeError=class extends GenericTypeError{constructor(...args){super("be a Node",...args)}};function checkHasWindow(htmlElement,ErrorClass,...args){if(!htmlElement||!htmlElement.ownerDocument||!htmlElement.ownerDocument.defaultView)throw new ErrorClass(htmlElement,...args)}function checkNode(node,...args){checkHasWindow(node,NodeTypeError,...args);let window2=node.ownerDocument.defaultView;if(!(node instanceof window2.Node))throw new NodeTypeError(node,...args)}function checkHtmlElement(htmlElement,...args){checkHasWindow(htmlElement,HtmlElementTypeError,...args);let window2=htmlElement.ownerDocument.defaultView;if(!(htmlElement instanceof window2.HTMLElement)&&!(htmlElement instanceof window2.SVGElement))throw new HtmlElementTypeError(htmlElement,...args)}var InvalidCSSError=class extends Error{constructor(received,matcherFn,context){super(),Error.captureStackTrace&&Error.captureStackTrace(this,matcherFn),this.message=[received.message,"",context.utils.RECEIVED_COLOR("Failing css:"),context.utils.RECEIVED_COLOR(`${received.css}`)].join(`
|
30
30
|
`)}};function parseCSS(css,...args){let ast=$149c1bd638913645$export$98e6a39c04603d36(`selector { ${css} }`,{silent:!0}).stylesheet;if(ast.parsingErrors&&ast.parsingErrors.length>0){let{reason,line}=ast.parsingErrors[0];throw new InvalidCSSError({css,message:`Syntax error parsing expected css: ${reason} on line: ${line}`},...args)}return ast.rules[0].declarations.filter(d2=>d2.type==="declaration").reduce((obj,{property,value})=>Object.assign(obj,{[property]:value}),{})}function display(context,value){return typeof value=="string"?value:context.utils.stringify(value)}function getMessage3(context,matcher,expectedLabel,expectedValue,receivedLabel,receivedValue){return[`${matcher}
|