UNPKG

react-testing-library

Version:

Simple and complete React DOM testing utilities that encourage good testing practices.

1 lines 71.1 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e=e||self).ReactTestingLibrary={},e.React,e.ReactDom)}(this,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}var l=i(function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,n,r){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),i=new A(r||[]);return o._invoke=function(e,t,n){var r=s;return function(a,o){if(r===f)throw new Error("Generator is already running");if(r===d){if("throw"===a)throw o;return B()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=x(i,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===s)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?d:"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(e,n,i),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var s="suspendedStart",f="executing",d="completed",p={};function y(){}function b(){}function h(){}var v={};v[o]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(I([])));g&&g!==n&&r.call(g,o)&&(v=g);var w=h.prototype=y.prototype=Object.create(v);function E(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function T(e){var t;this._invoke=function(n,a){function o(){return new Promise(function(t,o){!function t(n,a,o,i){var l=c(e[n],e,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,o,i)},function(e){t("throw",e,o,i)}):Promise.resolve(s).then(function(e){u.value=e,o(u)},function(e){return t("throw",e,o,i)})}i(l.arg)}(n,a,t,o)})}return t=t?t.then(o,o):o()}}function x(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=c(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,p;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function I(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:B}}function B(){return{value:t,done:!0}}return b.prototype=w.constructor=h,h.constructor=b,h[l]=b.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(T.prototype),T.prototype[i]=function(){return this},e.AsyncIterator=T,e.async=function(t,n,r,a){var o=new T(u(t,n,r,a));return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},E(w),w[l]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return l.type="throw",l.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}});function u(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){u(o,r,a,i,l,"next",e)}function l(e){u(o,r,a,i,l,"throw",e)}i(void 0)})}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){return(d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&f(a,n.prototype),a}).apply(null,arguments)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)})(e)}var y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},b=i(function(e){var t={};for(var n in y)y.hasOwnProperty(n)&&(t[y[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in r)if(r.hasOwnProperty(a)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);var o=r[a].channels,i=r[a].labels;delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:o}),Object.defineProperty(r[a],"labels",{value:i})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(r,a,o),l=Math.max(r,a,o),u=l-i;return l===i?t=0:r===l?t=(a-o)/u:a===l?t=2+(o-r)/u:o===l&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+l)/2,[t,100*(l===i?0:n<=.5?u/(l+i):u/(2-l-i)),100*n]},r.rgb.hsv=function(e){var t,n,r,a,o,i=e[0]/255,l=e[1]/255,u=e[2]/255,c=Math.max(i,l,u),s=c-Math.min(i,l,u),f=function(e){return(c-e)/6/s+.5};return 0===s?a=o=0:(o=s/c,t=f(i),n=f(l),r=f(u),i===c?a=r-n:l===c?a=1/3+t-r:u===c&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[r.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},r.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(1-t,1-n,1-r);return[100*((1-t-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*a]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,a,o,i=1/0;for(var l in y)if(y.hasOwnProperty(l)){var u=y[l],c=(a=e,o=u,Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));c<i&&(i=c,r=l)}return r},r.keyword.rgb=function(e){return y[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],a=t[1],o=t[2];return a/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,r,a,o,i=e[0]/360,l=e[1]/100,u=e[2]/100;if(0===l)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+l):u+l-u*l),a=[0,0,0];for(var c=0;c<3;c++)(r=i+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[c]=255*o;return a},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=o<=1?o:2-o,[t,100*(0===r?2*a/(o+a):2*n/(r+n)),100*((r+n)/2)]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*r*(1-n),l=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,a){case 0:return[r,u,i];case 1:return[l,r,i];case 2:return[i,r,u];case 3:return[i,l,r];case 4:return[u,i,r];case 5:return[r,i,l]}},r.hsv.hsl=function(e){var t,n,r=e[0],a=e[1]/100,o=e[2]/100,i=Math.max(o,.01),l=(2-a)*o;return n=a*i,[r,100*(n=(n/=(t=(2-a)*i)<=1?t:2-t)||0),100*(l/=2)]},r.hwb.rgb=function(e){var t,n,r,a,o,i,l,u=e[0]/360,c=e[1]/100,s=e[2]/100,f=c+s;switch(f>1&&(c/=f,s/=f),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),a=c+r*((n=1-s)-c),t){default:case 6:case 0:o=n,i=a,l=c;break;case 1:o=a,i=n,l=c;break;case 2:o=c,i=n,l=a;break;case 3:o=c,i=a,l=n;break;case 4:o=a,i=c,l=n;break;case 5:o=n,i=c,l=a}return[255*o,255*i,255*l]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},r.xyz.rgb=function(e){var t,n,r,a=e[0]/100,o=e[1]/100,i=e[2]/100;return n=-.9689*a+1.8758*o+.0415*i,r=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),i=Math.pow(t,3),l=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},r.lch.lab=function(e){var t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(n,r),a),i=Math.min(Math.min(n,r),a),l=o-i;return t=l<=0?0:o===n?(r-a)/l%6:o===r?2+(a-n)/l:4+(n-r)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?i/(1-l):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a,o=[0,0,0],i=t%1*6,l=i%1,u=1-l;switch(Math.floor(i)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return a=(1-n)*r,[255*(n*o[0]+a),255*(n*o[1]+a),255*(n*o[2]+a)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});b.rgb,b.hsl,b.hsv,b.hwb,b.cmyk,b.xyz,b.lab,b.lch,b.hex,b.keyword,b.ansi16,b.ansi256,b.hcg,b.apple,b.gray;function h(e){var t=function(){for(var e={},t=Object.keys(b),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),a=Object.keys(b[r]),o=a.length,i=0;i<o;i++){var l=a[i],u=t[l];-1===u.distance&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(l))}return t}function v(e,t){return function(n){return t(e(n))}}function m(e,t){for(var n=[t[e].parent,e],r=b[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),r=v(b[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}var g={};Object.keys(b).forEach(function(e){g[e]={},Object.defineProperty(g[e],"channels",{value:b[e].channels}),Object.defineProperty(g[e],"labels",{value:b[e].labels});var t=function(e){for(var t=h(e),n={},r=Object.keys(t),a=r.length,o=0;o<a;o++){var i=r[o];null!==t[i].parent&&(n[i]=m(i,t))}return n}(e);Object.keys(t).forEach(function(n){var r=t[n];g[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a<r;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),g[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var w=g,E=i(function(e){var t=function(e,t){return function(){return"["+(e.apply(w,arguments)+t)+"m"}},n=function(e,t){return function(){var n=e.apply(w,arguments);return"["+(38+t)+";5;"+n+"m"}},r=function(e,t){return function(){var n=e.apply(w,arguments);return"["+(38+t)+";2;"+n[0]+";"+n[1]+";"+n[2]+"m"}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(var o=0,i=Object.keys(a);o<i.length;o++){for(var l=i[o],u=a[l],c=0,s=Object.keys(u);c<s.length;c++){var f=s[c],d=u[f];a[f]={open:"["+d[0]+"m",close:"["+d[1]+"m"},u[f]=a[f],e.set(d[0],d[1])}Object.defineProperty(a,l,{value:u,enumerable:!1}),Object.defineProperty(a,"codes",{value:e,enumerable:!1})}var p=function(e){return e},y=function(e,t,n){return[e,t,n]};a.color.close="",a.bgColor.close="",a.color.ansi={ansi:t(p,0)},a.color.ansi256={ansi256:n(p,0)},a.color.ansi16m={rgb:r(y,0)},a.bgColor.ansi={ansi:t(p,10)},a.bgColor.ansi256={ansi256:n(p,10)},a.bgColor.ansi16m={rgb:r(y,10)};for(var b=0,h=Object.keys(w);b<h.length;b++){var v=h[b];if("object"==typeof w[v]){var m=w[v];"ansi16"===v&&(v="ansi"),"ansi16"in m&&(a.color.ansi[v]=t(m.ansi16,0),a.bgColor.ansi[v]=t(m.ansi16,10)),"ansi256"in m&&(a.color.ansi256[v]=n(m.ansi256,0),a.bgColor.ansi256[v]=n(m.ansi256,10)),"rgb"in m&&(a.color.ansi16m[v]=r(m.rgb,0),a.bgColor.ansi16m[v]=r(m.rgb,10))}}return a}})}),T=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printIteratorEntries=function(e,t,n,r,a,o,i){void 0===i&&(i=": ");var l="",u=e.next();if(!u.done){l+=t.spacingOuter;for(var c=n+t.indent;!u.done;){l+=c+o(u.value[0],t,c,r,a)+i+o(u.value[1],t,c,r,a),(u=e.next()).done?t.min||(l+=","):l+=","+t.spacingInner}l+=t.spacingOuter+n}return l},t.printIteratorValues=function(e,t,n,r,a,o){var i="",l=e.next();if(!l.done){i+=t.spacingOuter;for(var u=n+t.indent;!l.done;)i+=u+o(l.value,t,u,r,a),(l=e.next()).done?t.min||(i+=","):i+=","+t.spacingInner;i+=t.spacingOuter+n}return i},t.printListItems=function(e,t,n,r,a,o){var i="";if(e.length){i+=t.spacingOuter;for(var l=n+t.indent,u=0;u<e.length;u++)i+=l+o(e[u],t,l,r,a),u<e.length-1?i+=","+t.spacingInner:t.min||(i+=",");i+=t.spacingOuter+n}return i},t.printObjectProperties=function(e,t,r,a,o,i){var l="",u=n(e);if(u.length){l+=t.spacingOuter;for(var c=r+t.indent,s=0;s<u.length;s++){var f=u[s];l+=c+i(f,t,c,a,o)+": "+i(e[f],t,c,a,o),s<u.length-1?l+=","+t.spacingInner:t.min||(l+=",")}l+=t.spacingOuter+r}return l};var n=function(e){var t=Object.keys(e).sort();return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(function(n){Object.getOwnPropertyDescriptor(e,n).enumerable&&t.push(n)}),t}});o(T);T.printIteratorEntries,T.printIteratorValues,T.printListItems,T.printObjectProperties;var x=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.test=t.serialize=void 0;var n=(a["jest-symbol-do-not-touch"]||a.Symbol).for("jest.asymmetricMatcher"),r=function(e,t,n,r,a,o){var i=e.toString();return"ArrayContaining"===i||"ArrayNotContaining"===i?++r>t.maxDepth?"["+i+"]":i+" ["+(0,T.printListItems)(e.sample,t,n,r,a,o)+"]":"ObjectContaining"===i||"ObjectNotContaining"===i?++r>t.maxDepth?"["+i+"]":i+" {"+(0,T.printObjectProperties)(e.sample,t,n,r,a,o)+"}":"StringMatching"===i||"StringNotMatching"===i?i+" "+o(e.sample,t,n,r,a):"StringContaining"===i||"StringNotContaining"===i?i+" "+o(e.sample,t,n,r,a):e.toAsymmetricMatcher()};t.serialize=r;var o=function(e){return e&&e.$$typeof===n};t.test=o,t.default={serialize:r,test:o}});o(x);x.test,x.serialize;var M=function(e){e=Object.assign({onlyFirst:!1},e);var t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")},O=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.serialize=t.test=void 0;var n=a(M),r=a(E);function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){return"string"==typeof e&&!!e.match((0,n.default)())};t.test=o;var i=function(e,t,a,o,i,l){return l(e.replace((0,n.default)(),function(e){switch(e){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),t,a,o,i)};t.serialize=i,t.default={serialize:i,test:o}});o(O);O.serialize,O.test;var A=i(function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.serialize=t.test=void 0;var r=["DOMStringMap","NamedNodeMap"],a=/^(HTML\w*Collection|NodeList)$/,o=function(e){return e&&e.constructor&&e.constructor.name&&(t=e.constructor.name,-1!==r.indexOf(t)||a.test(t));var t};t.test=o;var i=function(e,t){return e[t.name]=t.value,e},l=function(e,t,a,o,l,u){var c=e.constructor.name;return++o>t.maxDepth?"["+c+"]":(t.min?"":c+" ")+(-1!==r.indexOf(c)?"{"+(0,T.printObjectProperties)("NamedNodeMap"===c?Array.prototype.reduce.call(e,i,{}):function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),a.forEach(function(t){n(e,t,r[t])})}return e}({},e),t,a,o,l,u)+"}":"["+(0,T.printListItems)(Array.from(e),t,a,o,l,u)+"]")};t.serialize=l,t.default={serialize:l,test:o}});o(A);A.serialize,A.test;var I=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}});o(I);var B=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printElementAsLeaf=t.printElement=t.printComment=t.printText=t.printChildren=t.printProps=void 0;var n,r=(n=I)&&n.__esModule?n:{default:n};t.printProps=function(e,t,n,r,a,o,i){var l=r+n.indent,u=n.colors;return e.map(function(e){var c=t[e],s=i(c,n,l,a,o);return"string"!=typeof c&&(-1!==s.indexOf("\n")&&(s=n.spacingOuter+l+s+n.spacingOuter+r),s="{"+s+"}"),n.spacingInner+r+u.prop.open+e+u.prop.close+"="+u.value.open+s+u.value.close}).join("")},t.printChildren=function(e,t,n,r,o,i){return e.map(function(e){return t.spacingOuter+n+("string"==typeof e?a(e,t):i(e,t,n,r,o))}).join("")};var a=function(e,t){var n=t.colors.content;return n.open+(0,r.default)(e)+n.close};t.printText=a,t.printComment=function(e,t){var n=t.colors.comment;return n.open+"\x3c!--"+(0,r.default)(e)+"--\x3e"+n.close},t.printElement=function(e,t,n,r,a){var o=r.colors.tag;return o.open+"<"+e+(t&&o.close+t+r.spacingOuter+a+o.open)+(n?">"+o.close+n+r.spacingOuter+a+o.open+"</"+e:(t&&!r.min?"":" ")+"/")+">"+o.close},t.printElementAsLeaf=function(e,t){var n=t.colors.tag;return n.open+"<"+e+n.close+" …"+n.open+" />"+n.close}});o(B);B.printElementAsLeaf,B.printElement,B.printComment,B.printText,B.printChildren,B.printProps;var _=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.serialize=t.test=void 0;var n=3,r=8,a=11,o=/^((HTML|SVG)\w*)?Element$/,i=function(e){return e&&e.constructor&&e.constructor.name&&(t=e.nodeType,i=e.constructor.name,1===t&&o.test(i)||t===n&&"Text"===i||t===r&&"Comment"===i||t===a&&"DocumentFragment"===i);var t,i};function l(e){return e.nodeType===a}t.test=i;var u=function(e,t,a,o,i,u){if(function(e){return e.nodeType===n}(e))return(0,B.printText)(e.data,t);if(function(e){return e.nodeType===r}(e))return(0,B.printComment)(e.data,t);var c=l(e)?"DocumentFragment":e.tagName.toLowerCase();return++o>t.maxDepth?(0,B.printElementAsLeaf)(c,t):(0,B.printElement)(c,(0,B.printProps)(l(e)?[]:Array.from(e.attributes).map(function(e){return e.name}).sort(),l(e)?[]:Array.from(e.attributes).reduce(function(e,t){return e[t.name]=t.value,e},{}),t,a+t.indent,o,i,u),(0,B.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),t,a+t.indent,o,i,u),t,a)};t.serialize=u,t.default={serialize:u,test:i}});o(_);_.serialize,_.test;var j=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.test=t.serialize=void 0;var n=function(e){return"Immutable."+e},r=function(e){return"["+e+"]"},a=function(e,t,a,o,i,l,u){return++o>t.maxDepth?r(n(u)):n(u)+" ["+(0,T.printIteratorValues)(e.values(),t,a,o,i,l)+"]"},o=function(e,t,o,i,l,u){return e["@@__IMMUTABLE_MAP__@@"]?function(e,t,a,o,i,l,u){return++o>t.maxDepth?r(n(u)):n(u)+" {"+(0,T.printIteratorEntries)(e.entries(),t,a,o,i,l)+"}"}(e,t,o,i,l,u,e["@@__IMMUTABLE_ORDERED__@@"]?"OrderedMap":"Map"):e["@@__IMMUTABLE_LIST__@@"]?a(e,t,o,i,l,u,"List"):e["@@__IMMUTABLE_SET__@@"]?a(e,t,o,i,l,u,e["@@__IMMUTABLE_ORDERED__@@"]?"OrderedSet":"Set"):e["@@__IMMUTABLE_STACK__@@"]?a(e,t,o,i,l,u,"Stack"):e["@@__IMMUTABLE_SEQ__@@"]?function(e,t,a,o,i,l){var u=n("Seq");return++o>t.maxDepth?r(u):e["@@__IMMUTABLE_KEYED__@@"]?u+" {"+(e._iter||e._object?(0,T.printIteratorEntries)(e.entries(),t,a,o,i,l):"…")+"}":u+" ["+(e._iter||e._array||e._collection||e._iterable?(0,T.printIteratorValues)(e.values(),t,a,o,i,l):"…")+"]"}(e,t,o,i,l,u):function(e,t,a,o,i,l){var u=n(e._name||"Record");return++o>t.maxDepth?r(u):u+" {"+(0,T.printIteratorEntries)(function(e){var t=0;return{next:function(){if(t<e._keys.length){var n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0}}}}(e),t,a,o,i,l)+"}"}(e,t,o,i,l,u)};t.serialize=o;var i=function(e){return e&&(!0===e["@@__IMMUTABLE_ITERABLE__@@"]||!0===e["@@__IMMUTABLE_RECORD__@@"])};t.test=i,t.default={serialize:o,test:i}});o(j);j.test,j.serialize;var k=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116;function h(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case s:case f:case o:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case u:return e;default:return t}}case b:case y:case a:return t}}}function v(e){return h(e)===f}t.typeOf=h,t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=b,t.Memo=y,t.Portal=a,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===l||e===i||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d)},t.isAsyncMode=function(e){return v(e)||h(e)===s},t.isConcurrentMode=v,t.isContextConsumer=function(e){return h(e)===c},t.isContextProvider=function(e){return h(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return h(e)===d},t.isFragment=function(e){return h(e)===o},t.isLazy=function(e){return h(e)===b},t.isMemo=function(e){return h(e)===y},t.isPortal=function(e){return h(e)===a},t.isProfiler=function(e){return h(e)===l},t.isStrictMode=function(e){return h(e)===i},t.isSuspense=function(e){return h(e)===p}});o(k);k.typeOf,k.AsyncMode,k.ConcurrentMode,k.ContextConsumer,k.ContextProvider,k.Element,k.ForwardRef,k.Fragment,k.Lazy,k.Memo,k.Portal,k.Profiler,k.StrictMode,k.Suspense,k.isValidElementType,k.isAsyncMode,k.isConcurrentMode,k.isContextConsumer,k.isContextProvider,k.isElement,k.isForwardRef,k.isFragment,k.isLazy,k.isMemo,k.isPortal,k.isProfiler,k.isStrictMode,k.isSuspense;var S=i(function(){});o(S);S.typeOf,S.AsyncMode,S.ConcurrentMode,S.ContextConsumer,S.ContextProvider,S.Element,S.ForwardRef,S.Fragment,S.Lazy,S.Memo,S.Portal,S.Profiler,S.StrictMode,S.Suspense,S.isValidElementType,S.isAsyncMode,S.isConcurrentMode,S.isContextConsumer,S.isContextProvider,S.isElement,S.isForwardRef,S.isFragment,S.isLazy,S.isMemo,S.isPortal,S.isProfiler,S.isStrictMode,S.isSuspense;var P=i(function(e){e.exports=k}),D=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.test=t.serialize=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(P),r=function(e,t){return void 0===t&&(t=[]),Array.isArray(e)?e.forEach(function(e){r(e,t)}):null!=e&&!1!==e&&t.push(e),t},a=function(e){var t=e.type;if("string"==typeof t)return t;if("function"==typeof t)return t.displayName||t.name||"Unknown";if(n.isFragment(e))return"React.Fragment";if(n.isSuspense(e))return"React.Suspense";if("object"==typeof t&&null!==t){if(n.isContextProvider(e))return"Context.Provider";if(n.isContextConsumer(e))return"Context.Consumer";if(n.isForwardRef(e)){var r=t.render.displayName||t.render.name||"";return""!==r?"ForwardRef("+r+")":"ForwardRef"}if(n.isMemo(t)){var a=t.type.displayName||t.type.name||"";return""!==a?"Memo("+a+")":"Memo"}}return"UNDEFINED"},o=function(e,t,n,o,i,l){return++o>t.maxDepth?(0,B.printElementAsLeaf)(a(e),t):(0,B.printElement)(a(e),(0,B.printProps)(function(e){var t=e.props;return Object.keys(t).filter(function(e){return"children"!==e&&void 0!==t[e]}).sort()}(e),e.props,t,n+t.indent,o,i,l),(0,B.printChildren)(r(e.props.children),t,n+t.indent,o,i,l),t,n)};t.serialize=o;var i=function(e){return e&&n.isElement(e)};t.test=i,t.default={serialize:o,test:i}});o(D);D.test,D.serialize;var C=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.test=t.serialize=void 0;var n=(a["jest-symbol-do-not-touch"]||a.Symbol).for("react.test.json"),r=function(e,t,n,r,a,o){return++r>t.maxDepth?(0,B.printElementAsLeaf)(e.type,t):(0,B.printElement)(e.type,e.props?(0,B.printProps)(function(e){var t=e.props;return t?Object.keys(t).filter(function(e){return void 0!==t[e]}).sort():[]}(e),e.props,t,n+t.indent,r,a,o):"",e.children?(0,B.printChildren)(e.children,t,n+t.indent,r,a,o):"",t,n)};t.serialize=r;var o=function(e){return e&&e.$$typeof===n};t.test=o,t.default={serialize:r,test:o}});o(C);C.test,C.serialize;var L=o(i(function(e){var t=s(E),n=s(x),r=s(O),o=s(A),i=s(_),l=s(j),u=s(D),c=s(C);function s(e){return e&&e.__esModule?e:{default:e}}var f=a["jest-symbol-do-not-touch"]||a.Symbol,d=Object.prototype.toString,y=Date.prototype.toISOString,b=Error.prototype.toString,h=RegExp.prototype.toString,v=f.prototype.toString,m=function(e){return"function"==typeof e.constructor&&e.constructor.name||"Object"},g=function(e){return"undefined"!=typeof window&&e===window},w=/^Symbol\((.*)\)(.*)$/,M=/\n/gi,I=function(e){var t,n;function r(t,n){var r=e.call(this,t)||this;return r.stack=n,r.name=r.constructor.name,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(p(Error));function B(e,t){return t?"[Function "+(e.name||"anonymous")+"]":"[Function]"}function k(e){return v.call(e).replace(w,"Symbol($1)")}function S(e){return"["+b.call(e)+"]"}function P(e,t,n,r){if(!0===e||!1===e)return""+e;if(void 0===e)return"undefined";if(null===e)return"null";var a=typeof e;if("number"===a)return function(e){return Object.is(e,-0)?"-0":String(e)}(e);if("bigint"===a)return function(e){return String(e+"n")}(e);if("string"===a)return r?'"'+e.replace(/"|\\/g,"\\$&")+'"':'"'+e+'"';if("function"===a)return B(e,t);if("symbol"===a)return k(e);var o=d.call(e);return"[object WeakMap]"===o?"WeakMap {}":"[object WeakSet]"===o?"WeakSet {}":"[object Function]"===o||"[object GeneratorFunction]"===o?B(e,t):"[object Symbol]"===o?k(e):"[object Date]"===o?isNaN(+e)?"Date { NaN }":y.call(e):"[object Error]"===o?S(e):"[object RegExp]"===o?n?h.call(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):h.call(e):e instanceof Error?S(e):null}function L(e,t,n,r,a,o){if(-1!==a.indexOf(e))return"[Circular]";(a=a.slice()).push(e);var i=++r>t.maxDepth,l=t.min;if(t.callToJSON&&!i&&e.toJSON&&"function"==typeof e.toJSON&&!o)return N(e.toJSON(),t,n,r,a,!0);var u=d.call(e);return"[object Arguments]"===u?i?"[Arguments]":(l?"":"Arguments ")+"["+(0,T.printListItems)(e,t,n,r,a,N)+"]":function(e){return"[object Array]"===e||"[object ArrayBuffer]"===e||"[object DataView]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object Int8Array]"===e||"[object Int16Array]"===e||"[object Int32Array]"===e||"[object Uint8Array]"===e||"[object Uint8ClampedArray]"===e||"[object Uint16Array]"===e||"[object Uint32Array]"===e}(u)?i?"["+e.constructor.name+"]":(l?"":e.constructor.name+" ")+"["+(0,T.printListItems)(e,t,n,r,a,N)+"]":"[object Map]"===u?i?"[Map]":"Map {"+(0,T.printIteratorEntries)(e.entries(),t,n,r,a,N," => ")+"}":"[object Set]"===u?i?"[Set]":"Set {"+(0,T.printIteratorValues)(e.values(),t,n,r,a,N)+"}":i||g(e)?"["+m(e)+"]":(l?"":m(e)+" ")+"{"+(0,T.printObjectProperties)(e,t,n,r,a,N)+"}"}function F(e,t,n,r,a,o){var i;try{i=function(e){return null!=e.serialize}(e)?e.serialize(t,n,r,a,o,N):e.print(t,function(e){return N(e,n,r,a,o)},function(e){var t=r+n.indent;return t+e.replace(M,"\n"+t)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new I(e.message,e.stack)}if("string"!=typeof i)throw new Error('pretty-format: Plugin must return type "string" but instead returned "'+typeof i+'".');return i}function z(e,t){for(var n=0;n<e.length;n++)try{if(e[n].test(t))return e[n]}catch(e){throw new I(e.message,e.stack)}return null}function N(e,t,n,r,a,o){var i=z(t.plugins,e);if(null!==i)return F(i,e,t,n,r,a);var l=P(e,t.printFunctionName,t.escapeRegex,t.escapeString);return null!==l?l:L(e,t,n,r,a,o)}var q={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},R=Object.keys(q),V={callToJSON:!0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printFunctionName:!0,theme:q};var U=function(e){return R.reduce(function(n,r){var a=e.theme&&void 0!==e.theme[r]?e.theme[r]:q[r],o=t.default[a];if(!o||"string"!=typeof o.close||"string"!=typeof o.open)throw new Error('pretty-format: Option "theme" has a key "'+r+'" whose value "'+a+'" is undefined in ansi-styles.');return n[r]=o,n},Object.create(null))},W=function(e){return e&&void 0!==e.printFunctionName?e.printFunctionName:V.printFunctionName},$=function(e){return e&&void 0!==e.escapeRegex?e.escapeRegex:V.escapeRegex},G=function(e){return e&&void 0!==e.escapeString?e.escapeString:V.escapeString},Q=function(e){return{callToJSON:e&&void 0!==e.callToJSON?e.callToJSON:V.callToJSON,colors:e&&e.highlight?U(e):R.reduce(function(e,t){return e[t]={close:"",open:""},e},Object.create(null)),escapeRegex:$(e),escapeString:G(e),indent:e&&e.min?"":(t=e&&void 0!==e.indent?e.indent:V.indent,new Array(t+1).join(" ")),maxDepth:e&&void 0!==e.maxDepth?e.maxDepth:V.maxDepth,min:e&&void 0!==e.min?e.min:V.min,plugins:e&&void 0!==e.plugins?e.plugins:V.plugins,printFunctionName:W(e),spacingInner:e&&e.min?" ":"\n",spacingOuter:e&&e.min?"":"\n"};var t};function J(e,t){if(t&&(function(e){if(Object.keys(e).forEach(function(e){if(!V.hasOwnProperty(e))throw new Error('pretty-format: Unknown option "'+e+'".')}),e.min&&void 0!==e.indent&&0!==e.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(void 0!==e.theme){if(null===e.theme)throw new Error('pretty-format: Option "theme" must not be null.');if("object"!=typeof e.theme)throw new Error('pretty-format: Option "theme" must be of type "object" but instead received "'+typeof e.theme+'".')}}(t),t.plugins)){var n=z(t.plugins,e);if(null!==n)return F(n,e,Q(t),"",0,[])}var r=P(e,W(t),$(t),G(t));return null!==r?r:L(e,Q(t),"",0,[])}J.plugins={AsymmetricMatcher:n.default,ConvertAnsi:r.default,DOMCollection:o.default,DOMElement:i.default,Immutable:l.default,ReactElement:u.default,ReactTestComponent:c.default},e.exports=J})),F=function(e){if("undefined"!=typeof window&&void 0!==window.MutationObserver)return window.MutationObserver;function t(e){this._watched=[],this._listener=e}function n(t){var n={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(var r in t)b(n,r)&&t[r]!==e&&(n[r]=t[r]);return n}function r(t,r){var a=u(t,r);return function(o){var i,s=o.length;r.charData&&3===t.nodeType&&t.nodeValue!==a.charData&&o.push(new n({type:"characterData",target:t,oldValue:a.charData})),r.attr&&a.attr&&l(o,t,a.attr,r.afilter),(r.kids||r.descendents)&&(i=function(t,r,a,o){var i;function u(e,r,a,i,u){for(var c,f,d,p=e.length-1,y=-~((p-u)/2);d=e.pop();)c=a[d.i],f=i[d.j],o.kids&&y&&Math.abs(d.i-d.j)>=p&&(t.push(n({type:"childList",target:r,addedNodes:[c],removedNodes:[c],nextSibling:c.nextSibling,previousSibling:c.previousSibling})),y--),o.attr&&f.attr&&l(t,c,f.attr,o.afilter),o.charData&&3===c.nodeType&&c.nodeValue!==f.charData&&t.push(n({type:"characterData",target:c,oldValue:f.charData})),o.descendents&&s(c,f)}function s(r,a){for(var f,p,b,h,v,m,g,w=r.childNodes,E=a.kids,T=w.length,x=E?E.length:0,M=0,O=0,A=0;O<T||A<x;)m=w[O],v=E[A],g=v&&v.node,m===g?(o.attr&&v.attr&&l(t,m,v.attr,o.afilter),o.charData&&v.charData!==e&&m.nodeValue!==v.charData&&t.push(n({type:"characterData",target:m,oldValue:v.charData})),p&&u(p,r,w,E,M),o.descendents&&(m.childNodes.length||v.kids&&v.kids.length)&&s(m,v),O++,A++):(i=!0,f||(f={},p=[]),m&&(f[b=d(m)]||(f[b]=!0,-1===(h=c(E,m,A))?o.kids&&(t.push(n({type:"childList",target:r,addedNodes:[m],nextSibling:m.nextSibling,previousSibling:m.previousSibling})),M++):p.push({i:O,j:h})),O++),g&&g!==w[O]&&(f[b=d(g)]||(f[b]=!0,-1===(h=y(w,g,O))?o.kids&&(t.push(n({type:"childList",target:a.node,removedNodes:[g],nextSibling:E[A+1],previousSibling:E[A-1]})),M--):p.push({i:h,j:A})),A++));p&&u(p,r,w,E,M)}return s(r,a),i}(o,t,a,r)),(i||o.length!==s)&&(a=u(t,r))}}t._period=30,t.prototype={observe:function(e,n){for(var a,o={attr:!!(n.attributes||n.attributeFilter||n.attributeOldValue),kids:!!n.childList,descendents:!!n.subtree,charData:!(!n.characterData&&!n.characterDataOldValue)},i=this._watched,l=0;l<i.length;l++)i[l].tar===e&&i.splice(l,1);n.attributeFilter&&(o.afilter=p(n.attributeFilter,function(e,t){return e[t]=!0,e},{})),i.push({tar:e,fn:r(e,o)}),this._timeout||(a=this,function e(){var n=a.takeRecords();n.length&&a._listener(n,a),a._timeout=setTimeout(e,t._period)}())},takeRecords:function(){for(var e=[],t=this._watched,n=0;n<t.length;n++)t[n].fn(e);return e},disconnect:function(){this._watched=[],clearTimeout(this._timeout),this._timeout=null}};var a=!1;if("undefined"!=typeof document){var o=document.createElement("i");o.style.top=0,a="null"!=o.attributes.style.value}var i=a?function(e,t){return t.value}:function(e,t){return"style"!==t.name?t.value:e.style.cssText};function l(e,t,r,a){for(var o,l={},u=t.attributes,c=u.length;c--;)s=(o=u[c]).name,a&&!b(a,s)||(i(t,o)!==r[s]&&e.push(n({type:"attributes",target:t,attributeName:s,oldValue:r[s],attributeNamespace:o.namespaceURI})),l[s]=!0);for(var s in r)l[s]||e.push(n({target:t,type:"attributes",attributeName:s,oldValue:r[s]}))}function u(e,t){var n=!0;return function e(r){var a={node:r};return!t.charData||3!==r.nodeType&&8!==r.nodeType?(t.attr&&n&&1===r.nodeType&&(a.attr=p(r.attributes,function(e,n){return t.afilter&&!t.afilter[n.name]||(e[n.name]=i(r,n)),e},{})),n&&(t.kids||t.charData||t.attr&&t.descendents)&&(a.kids=function(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r,e);return n}(r.childNodes,e)),n=t.descendents):a.charData=r.nodeValue,a}(e)}function c(e,t,n){return y(e,t,n,"node")}var s=1,f="mo_id";function d(e){try{return e.id||(e[f]=e[f]||s++)}catch(t){try{return e.nodeValue}catch(e){return s++}}}function p(e,t,n){for(var r=0;r<e.length;r++)n=t(n,e[r],r,e);return n}function y(e,t,n,r){for(;n<e.length;n++)if((r?e[n][r]:e[n])===t)return n;return-1}function b(t,n){return t[n]!==e}return t}(void 0),z=o(i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="undefined"!=typeof window?window:a,r=n.setTimeout,o=n.Date.now;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,a=o();return new Promise(function(i,l){var u=function(e){o()-a>=t?l(e):r(c,n)};function c(){try{Promise.resolve(e()).then(function(){return i()}).catch(u)}catch(e){u(e)}}r(c,0)})},e.exports=t.default,e.exports.default=t.default}));function N(e,t,n,r){if("string"!=typeof e)return!1;var a=r(e);return"string"==typeof n?a.toLowerCase().includes(n.toLowerCase()):"function"==typeof n?n(a,t):n.test(a)}function q(e,t,n,r){if("string"!=typeof e)return!1;var a=r(e);return"string"==typeof n?a===n:"function"==typeof n?n(a,t):n.test(a)}function R(e){var t=void 0===e?{}:e,n=t.trim,r=void 0===n||n,a=t.collapseWhitespace,o=void 0===a||a;return function(e){var t=e;return t=r?t.trim():t,t=o?t.replace(/\s+/g," "):t}}function V(e){var t=e.trim,n=e.collapseWhitespace,r=e.normalizer;if(r){if(void 0!==t||void 0!==n)throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return r}return R({trim:t,collapseWhitespace:n})}function U(e){var t=e.ownerDocument.defaultView;return e.matches("input[type=submit], input[type=button]")?e.value:Array.from(e.childNodes).filter(function(e){return e.nodeType===t.Node.TEXT_NODE&&Boolean(e.textContent)}).map(function(e){return e.textContent}).join("")}var W=L.plugins,$=W.DOMElement,G=W.DOMCollection;function Q(e,t,n){e.documentElement&&(e=e.documentElement);var a=L(e,r({plugins:[$,G],printFunctionName:!1,highlight:!0},n));return void 0!==t&&e.outerHTML.length>t?a.slice(0,t)+"...":a}function J(e){return new("undefined"!=typeof window&&void 0!==window.MutationObserver?window.MutationObserver:F)(e)}function Y(){if("undefined"==typeof window)throw new Error("Could not find default container");return window.document}function H(){return"function"==typeof setImmediate?setImmediate:function(e){return setTimeout(e,0)}}var K={testIdAttribute:"data-testid",asyncWrapper:function(e){return e()}};function Z(e){"function"==typeof e&&(e=e(K)),K=r({},K,e)}function X(){return K}function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return X().asyncWrapper