@mongodb-js/compass-indexes 5.11.1 → 5.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/browser.js.LICENSE.txt +0 -15
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.LICENSE.txt +0 -15
  5. package/dist/src/components/create-index-modal/create-index-modal.d.ts.map +1 -1
  6. package/dist/src/components/drop-index-modal/index.d.ts.map +1 -1
  7. package/dist/src/components/indexes/indexes.d.ts +2 -2
  8. package/dist/src/components/indexes/indexes.d.ts.map +1 -1
  9. package/dist/src/components/indexes-table/index.d.ts +2 -0
  10. package/dist/src/components/indexes-table/index.d.ts.map +1 -0
  11. package/dist/src/components/indexes-table/indexes-table.d.ts +20 -10
  12. package/dist/src/components/indexes-table/indexes-table.d.ts.map +1 -1
  13. package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts +11 -1
  14. package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts.map +1 -1
  15. package/dist/src/components/regular-indexes-table/badge-with-icon-link.d.ts.map +1 -0
  16. package/dist/src/components/{indexes-table → regular-indexes-table}/index-actions.d.ts +1 -1
  17. package/dist/src/components/regular-indexes-table/index-actions.d.ts.map +1 -0
  18. package/dist/src/components/{indexes-table → regular-indexes-table}/property-field.d.ts +1 -1
  19. package/dist/src/components/regular-indexes-table/property-field.d.ts.map +1 -0
  20. package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts +14 -0
  21. package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts.map +1 -0
  22. package/dist/src/components/regular-indexes-table/size-field.d.ts.map +1 -0
  23. package/dist/src/components/{indexes-table → regular-indexes-table}/type-field.d.ts +1 -1
  24. package/dist/src/components/regular-indexes-table/type-field.d.ts.map +1 -0
  25. package/dist/src/components/regular-indexes-table/usage-field.d.ts.map +1 -0
  26. package/dist/src/modules/create-index/error.d.ts +19 -0
  27. package/dist/src/modules/create-index/error.d.ts.map +1 -0
  28. package/dist/src/modules/create-index/index.d.ts +12 -12
  29. package/dist/src/modules/create-index/index.d.ts.map +1 -1
  30. package/dist/src/modules/create-index/options.d.ts.map +1 -1
  31. package/dist/src/modules/data-service.d.ts +5 -5
  32. package/dist/src/modules/data-service.d.ts.map +1 -1
  33. package/dist/src/modules/description.d.ts +1 -1
  34. package/dist/src/modules/description.d.ts.map +1 -1
  35. package/dist/src/modules/drop-index/error.d.ts +19 -0
  36. package/dist/src/modules/drop-index/error.d.ts.map +1 -0
  37. package/dist/src/modules/drop-index/index.d.ts +2 -2
  38. package/dist/src/modules/index.d.ts +9 -12
  39. package/dist/src/modules/index.d.ts.map +1 -1
  40. package/dist/src/modules/is-readonly-view.d.ts +1 -1
  41. package/dist/src/modules/is-readonly-view.d.ts.map +1 -1
  42. package/dist/src/modules/is-writable.d.ts +1 -1
  43. package/dist/src/modules/is-writable.d.ts.map +1 -1
  44. package/dist/src/modules/regular-indexes.d.ts +98 -0
  45. package/dist/src/modules/regular-indexes.d.ts.map +1 -0
  46. package/dist/src/modules/search-indexes.d.ts +23 -0
  47. package/dist/src/modules/search-indexes.d.ts.map +1 -0
  48. package/dist/src/stores/create-index.d.ts +12 -12
  49. package/dist/src/stores/index.d.ts +0 -1
  50. package/dist/src/stores/index.d.ts.map +1 -1
  51. package/dist/src/stores/store.d.ts +27 -2
  52. package/dist/src/stores/store.d.ts.map +1 -1
  53. package/dist/src/utils/is-action.d.ts +3 -0
  54. package/dist/src/utils/is-action.d.ts.map +1 -0
  55. package/package.json +22 -23
  56. package/dist/src/components/indexes-table/badge-with-icon-link.d.ts.map +0 -1
  57. package/dist/src/components/indexes-table/index-actions.d.ts.map +0 -1
  58. package/dist/src/components/indexes-table/property-field.d.ts.map +0 -1
  59. package/dist/src/components/indexes-table/size-field.d.ts.map +0 -1
  60. package/dist/src/components/indexes-table/type-field.d.ts.map +0 -1
  61. package/dist/src/components/indexes-table/usage-field.d.ts.map +0 -1
  62. package/dist/src/modules/error.d.ts +0 -22
  63. package/dist/src/modules/error.d.ts.map +0 -1
  64. package/dist/src/modules/in-progress-indexes.d.ts +0 -41
  65. package/dist/src/modules/in-progress-indexes.d.ts.map +0 -1
  66. package/dist/src/modules/indexes.d.ts +0 -43
  67. package/dist/src/modules/indexes.d.ts.map +0 -1
  68. package/dist/src/modules/is-readonly.d.ts +0 -3
  69. package/dist/src/modules/is-readonly.d.ts.map +0 -1
  70. package/dist/src/modules/is-refreshing.d.ts +0 -19
  71. package/dist/src/modules/is-refreshing.d.ts.map +0 -1
  72. package/dist/src/modules/sort-column.d.ts +0 -6
  73. package/dist/src/modules/sort-column.d.ts.map +0 -1
  74. package/dist/src/modules/sort-order.d.ts +0 -6
  75. package/dist/src/modules/sort-order.d.ts.map +0 -1
  76. /package/dist/src/components/{indexes-table → regular-indexes-table}/badge-with-icon-link.d.ts +0 -0
  77. /package/dist/src/components/{indexes-table → regular-indexes-table}/size-field.d.ts +0 -0
  78. /package/dist/src/components/{indexes-table → regular-indexes-table}/usage-field.d.ts +0 -0
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CompassIndexesPlugin=t():e.CompassIndexesPlugin=t()}(global,(()=>(()=>{var e={2563:e=>{const t="@mongodb-js/mongodb-redux-common/app-registry",r=`${t}/LOCAL_APP_REGISTRY_ACTIVATED`,n=`${t}/GLOBAL_APP_REGISTRY_ACTIVATED`,o={localAppRegistry:null,globalAppRegistry:null},i=(e,t,...r)=>{e&&e.emit(t,...r)};e.exports=(e=o,t)=>t.type===r?{...e,localAppRegistry:t.appRegistry}:t.type===n?{...e,globalAppRegistry:t.appRegistry}:e,e.exports.LOCAL_APP_REGISTRY_ACTIVATED=r,e.exports.GLOBAL_APP_REGISTRY_ACTIVATED=n,e.exports.INITIAL_STATE=o,e.exports.localAppRegistryActivated=e=>({type:r,appRegistry:e}),e.exports.globalAppRegistryActivated=e=>({type:n,appRegistry:e}),e.exports.localAppRegistryEmit=(e,...t)=>(r,n)=>{i(n().appRegistry.localAppRegistry,e,...t)},e.exports.globalAppRegistryEmit=(e,...t)=>(r,n)=>{i(n().appRegistry.globalAppRegistry,e,...t)}},7452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var n=r(5163),o=r(4959),i=r(2492),s=function(){function e(){this.crc32=new i.Crc32}return e.prototype.update=function(e){(0,o.isEmptyData)(e)||this.crc32.update((0,o.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,(0,o.numToUint8)(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new i.Crc32},e}();t.AwsCrc32=s},2492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var n=r(5163),o=r(4959);t.crc32=function(e){return(new i).update(e).digest()};var i=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var o=n.__values(e),i=o.next();!i.done;i=o.next()){var a=i.value;this.checksum=this.checksum>>>8^s[255&(this.checksum^a)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var s=(0,o.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),a=r(7452);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})},3376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var n=r(6778),o="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:n.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},4959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=r(3376);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var o=r(1205);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return o.isEmptyData}});var i=r(1443);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return i.numToUint8}});var s=r(1650);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},1205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},1443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},1650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}},904:(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromCognitoIdentity:()=>Nc,fromCognitoIdentityPool:()=>zc,fromContainerMetadata:()=>Wc,fromEnv:()=>Hc,fromIni:()=>qc,fromInstanceMetadata:()=>Gc,fromNodeProviderChain:()=>Kc,fromProcess:()=>Yc,fromSSO:()=>Qc,fromTemporaryCredentials:()=>Xc,fromTokenFile:()=>Zc,fromWebToken:()=>Jc});var n={};r.r(n),r.d(n,{getUserAgentPrefix:()=>Fe,isVirtualHostableS3Bucket:()=>$e,parseArn:()=>Ve,partition:()=>Ie,setPartitionInfo:()=>Be,useDefaultPartitionInfo:()=>Re});var o,i,s,a,u,c={};r.r(c),r.d(c,{aws:()=>n,booleanEquals:()=>ze,getAttr:()=>We,isSet:()=>He,isValidHostLabel:()=>Ue,not:()=>qe,parseURL:()=>Ye,stringEquals:()=>Qe,substring:()=>Xe,uriEncode:()=>Ze}),function(e){e.HEADER="header",e.QUERY="query"}(o||(o={})),function(e){e.HTTP="http",e.HTTPS="https"}(i||(i={})),(u=s||(s={}))[u.HEADER=0]="HEADER",u[u.TRAILER=1]="TRAILER",function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(a||(a={}));class l{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){const e=new l({...this,headers:{...this.headers}});var t;return e.query&&(e.query=(t=e.query,Object.keys(t).reduce(((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}}),{}))),e}}class d{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const h={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},p=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!l.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]="";else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),h)}}),f={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},m=e=>({applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:o,commandName:i,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:c}=a,l=u??t.inputFilterSensitiveLog,d=c??t.outputFilterSensitiveLog,{$metadata:h,...p}=n.output;return s?.info?.({clientName:o,commandName:i,input:l(r.input),output:d(p),metadata:h}),n}catch(e){const{clientName:n,commandName:o,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:a}=s,u=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:o,input:u(r.input),error:e,metadata:e.$metadata}),e}}),f)}}),g="X-Amzn-Trace-Id",y={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},E=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!l.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(g))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(o)&&s(i)&&(n.headers[g]=i),t({...r,request:n})})(e),y)}}),A=(e,t,r)=>{let n,o,i,s=!1;const a=async()=>{o||(o=e());try{n=await o,i=!0,s=!1}finally{o=void 0}return n};return void 0===t?async e=>(i&&!e?.forceRefresh||(n=await a()),n):async e=>(i&&!e?.forceRefresh||(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)};r(2492);const v={},C={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),v[e]=t,C[t]=e}function b(e){let t="";for(let r=0;r<e.byteLength;r++)t+=v[e[r]];return t}class S{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&w(t),new S(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&w(e),parseInt(b(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function w(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class O{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const u=new Uint8Array(a.buffer);return u.set(s,3),u;case"timestamp":const c=new Uint8Array(9);return c[0]=8,c.set(S.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!N.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in C))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=C[n]}return t}(e.value.replace(/\-/g,"")),1),l}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:_,value:!0};break;case 1:t[o]={type:_,value:!1};break;case 2:t[o]={type:D,value:e.getInt8(r++)};break;case 3:t[o]={type:T,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:I,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:B,value:new S(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[o]={type:R,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const i=e.getUint16(r,!1);r+=2,t[o]={type:F,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,i))},r+=i;break;case 8:t[o]={type:k,value:new Date(new S(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:P,value:`${b(s.subarray(0,4))}-${b(s.subarray(4,6))}-${b(s.subarray(6,8))}-${b(s.subarray(8,10))}-${b(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var x;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(x||(x={}));const _="boolean",D="byte",T="short",I="integer",B="long",R="binary",F="string",k="timestamp",P="uuid",N=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;Symbol.asyncIterator,Symbol.asyncIterator,Symbol.asyncIterator,Symbol.asyncIterator;const M=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},L=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e);var j=r(4300);const U=(e,t=0,r=e.byteLength-t)=>{if(!L(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return j.Buffer.from(e,t,r)},$=(e,t)=>{if("string"!=typeof e)throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?j.Buffer.from(e,t):j.Buffer.from(e)},V=e=>{const t=$(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},z=e=>"string"==typeof e?V(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),W=e=>U(e.buffer,e.byteOffset,e.byteLength).toString("utf8"),H="X-Amz-Date",q="X-Amz-Signature",G="X-Amz-Security-Token",K="authorization",Y=H.toLowerCase(),Q=[K,Y,"date"],X=q.toLowerCase(),Z="x-amz-content-sha256",J=G.toLowerCase(),ee={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},te=/^proxy-/,re=/^sec-/,ne="AWS4-HMAC-SHA256",oe="AWS4-HMAC-SHA256-PAYLOAD",ie="aws4_request",se={},ae=[],ue=(e,t,r)=>`${e}/${t}/${r}/${ie}`,ce=(e,t,r)=>{const n=new e(t);return n.update(z(r)),n.digest()},le=({headers:e},t,r)=>{const n={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const i=o.toLowerCase();(i in ee||t?.has(i)||te.test(i)||re.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[o].trim().replace(/\s+/g," "))}return n},de=e=>encodeURIComponent(e).replace(/[!'()*]/g,he),he=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,pe=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===Z)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||L(t)){const e=new r;return e.update(z(t)),b(await e.digest())}return"UNSIGNED-PAYLOAD"},fe=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?me(t):void 0}),me=e=>Object.keys(e).reduce(((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}}),{}),ge=e=>{e="function"==typeof e.clone?e.clone():fe(e);for(const t of Object.keys(e.headers))Q.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class ye{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerMarshaller=new O(W,V),this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=M(r),this.credentialProvider=M(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:s,signingRegion:a,signingService:u}=t,c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=a??await this.regionProvider(),{longDate:d,shortDate:h}=Ee(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=ue(h,l,u??this.service),f=((e,t={})=>{const{headers:r,query:n={}}="function"==typeof e.clone?e.clone():fe(e);for(const e of Object.keys(r)){const o=e.toLowerCase();"x-amz-"!==o.slice(0,6)||t.unhoistableHeaders?.has(o)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(ge(e),{unhoistableHeaders:i});c.sessionToken&&(f.query[G]=c.sessionToken),f.query["X-Amz-Algorithm"]=ne,f.query["X-Amz-Credential"]=`${c.accessKeyId}/${p}`,f.query[H]=d,f.query["X-Amz-Expires"]=n.toString(10);const m=le(f,o,s);return f.query["X-Amz-SignedHeaders"]=Ae(m),f.query[q]=await this.getSignature(d,p,this.getSigningKey(c,l,h,u),this.createCanonicalRequest(f,m,await pe(e,this.sha256))),f}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){const s=o??await this.regionProvider(),{shortDate:a,longDate:u}=Ee(r),c=ue(a,s,i??this.service),l=await pe({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const h=b(await d.digest()),p=[oe,u,c,n,h,l].join("\n");return this.signString(p,{signingDate:r,signingRegion:s,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=r??await this.regionProvider(),{shortDate:s}=Ee(t),a=new this.sha256(await this.getSigningKey(o,i,s,n));return a.update(z(e)),b(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=o??await this.regionProvider(),u=ge(e),{longDate:c,shortDate:l}=Ee(t),d=ue(l,a,i??this.service);u.headers[Y]=c,s.sessionToken&&(u.headers[J]=s.sessionToken);const h=await pe(u,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(Z,u.headers)&&this.applyChecksum&&(u.headers[Z]=h);const p=le(u,n,r),f=await this.getSignature(c,d,this.getSigningKey(s,a,l,i),this.createCanonicalRequest(u,p,h));return u.headers[K]=`${ne} Credential=${s.accessKeyId}/${d}, SignedHeaders=${Ae(p)}, Signature=${f}`,u}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e).sort()){if(n.toLowerCase()===X)continue;t.push(n);const o=e[n];"string"==typeof o?r[n]=`${de(n)}=${de(o)}`:Array.isArray(o)&&(r[n]=o.slice(0).sort().reduce(((e,t)=>e.concat([`${de(n)}=${de(t)}`])),[]).join("&"))}return t.map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(z(r));const o=await n.digest();return`${ne}\n${e}\n${t}\n${b(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(z(o)),b(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,o)=>{const i=`${r}:${n}:${o}:${b(await ce(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in se)return se[i];for(ae.push(i);ae.length>50;)delete se[ae.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,o,ie])s=await ce(e,s,t);return se[i]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const Ee=e=>{const t=(r=e,(e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e)(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},Ae=e=>Object.keys(e).sort().join(";"),ve=e=>{const t=e.credentials?Ce(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:o}=e;let i;return i=e.signer?M(e.signer):e.regionInfoProvider?()=>M(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:s,signingService:a}=n;e.signingRegion=e.signingRegion||s||i,e.signingName=e.signingName||a||e.serviceId;const u={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||ye)(u)})):async n=>{const i=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await M(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||s||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||ye)(a)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:i}},Ce=e=>"function"==typeof e?A(e,(e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5),(e=>void 0!==e.expiration)):M(e),be=e=>new Date(Date.now()+e),Se=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(be(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},we=e=>d.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Oe={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};function xe(e){return{...e,customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent}}const _e=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');let De=_e,Te="";const Ie=e=>{const{partitions:t}=De;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,o]of Object.entries(t))if(r===e)return{...n,...o}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},Be=(e,t="")=>{De=e,Te=t},Re=()=>{Be(_e,"")},Fe=()=>Te,ke="endpoints";function Pe(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${Pe(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Pe).join(", ")})`:JSON.stringify(e,null,2)}class Ne extends Error{constructor(e){super(e),this.name="EndpointError"}}const Me=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Le=e=>Me.test(e)||e.startsWith("[")&&e.endsWith("]"),je=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Ue=(e,t=!1)=>{if(!t)return je.test(e);const r=e.split(".");for(const e of r)if(!Ue(e))return!1;return!0},$e=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!$e(t))return!1;return!0}return!(!Ue(e)||e.length<3||e.length>63||e!==e.toLowerCase()||Le(e))},Ve=e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,o,i,s,...a]=t;return"arn"!==r||""===n||""===o||""===a[0]?null:{partition:n,service:o,region:i,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},ze=(e,t)=>e===t,We=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new Ne(`Path: '${e}' does not end with ']'`);const o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new Ne(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new Ne(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e),He=e=>null!=e,qe=e=>!e;var Ge;!function(e){e.AAAA="AAAA",e.A="A"}(Ge||(Ge={}));const Ke={[i.HTTP]:80,[i.HTTPS]:443},Ye=e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${o}`);return s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:o,pathname:s,protocol:a,search:u}=t;if(u)return null;const c=a.slice(0,-1);if(!Object.values(i).includes(c))return null;const l=Le(o);return{scheme:c,authority:`${n}${r.includes(`${n}:${Ke[c]}`)||"string"==typeof e&&e.includes(`${n}:${Ke[c]}`)?`:${Ke[c]}`:""}`,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}},Qe=(e,t)=>e===t,Xe=(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),Ze=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),Je=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let o=0;for(;o<e.length;){const t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(We(n[e],t))}else r.push(n[s]);o=i+1}return r.join("")},et=(e,t,r)=>{if("string"==typeof e)return Je(e,r);if(e.fn)return tt(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new Ne(`'${t}': ${String(e)} is not a string, function or reference.`)},tt=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:et(e,"arg",r)));return e.split(".").reduce(((e,t)=>e[t]),c)(...n)},rt=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new Ne(`'${e}' is already defined in Reference Record.`);const n=tt(t,r);return r.logger?.debug?.(ke,`evaluateCondition: ${Pe(t)} = ${Pe(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},nt=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:o}=rt(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(ke,`assign: ${o.name} := ${Pe(o.value)}`))}return{result:!0,referenceRecord:r}},ot=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=et(e,"Header value entry",t);if("string"!=typeof n)throw new Ne(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),it=(e,t)=>{if(Array.isArray(e))return e.map((e=>it(e,t)));switch(typeof e){case"string":return Je(e,t);case"object":if(null===e)throw new Ne(`Unexpected endpoint property: ${e}`);return st(e,t);case"boolean":return e;default:throw new Ne("Unexpected endpoint property type: "+typeof e)}},st=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:it(n,t)})),{}),at=(e,t)=>{const r=et(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new Ne("Endpoint URL must be a string, got "+typeof r)},ut=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:o,referenceRecord:i}=nt(r,t);if(!o)return;const s={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:u,headers:c}=n;return t.logger?.debug?.(ke,`Resolving endpoint from template: ${Pe(n)}`),{...null!=c&&{headers:ot(c,s)},...null!=u&&{properties:st(u,s)},url:at(a,s)}},ct=(e,t)=>{const{conditions:r,error:n}=e,{result:o,referenceRecord:i}=nt(r,t);if(o)throw new Ne(et(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},lt=(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=nt(r,t);if(o)return dt(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},dt=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=ut(r,t);if(e)return e}else if("error"===r.type)ct(r,t);else{if("tree"!==r.type)throw new Ne(`Unknown endpoint rule: ${r}`);{const e=lt(r,t);if(e)return e}}throw new Ne("Rules evaluation failed")},ht=(e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:o,rules:i}=e;t.logger?.debug?.(`${ke} Initial EndpointParams: ${Pe(r)}`);const s=Object.entries(o).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const a=Object.entries(o).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new Ne(`Missing required parameter: '${e}'`);const u=dt(i,{endpointParams:r,logger:n,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{const e=new URL(t.endpointParams.Endpoint),{protocol:r,port:n}=e;u.url.protocol=r,u.url.port=n}catch(e){}return t.logger?.debug?.(`${ke} Resolved endpoint: ${Pe(u)}`),u},pt="user-agent",ft="x-amz-user-agent",mt=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,gt=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,yt=e=>{const t=e[0].split("/").map((e=>e.replace(mt,"-"))).join("/"),r=e[1]?.replace(gt,"-"),n=t.indexOf("/"),o=t.substring(0,n);let i=t.substring(n+1);return"api"===o&&(i=i.toLowerCase()),[o,i,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},Et={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},At=e=>({applyToStack:t=>{var r;t.add((r=e,(e,t)=>async n=>{const{request:o}=n;if(!l.isInstance(o))return e(n);const{headers:i}=o,s=t?.userAgent?.map(yt)||[],a=(await r.defaultUserAgentProvider()).map(yt),u=r?.customUserAgent?.map(yt)||[],c=Fe(),d=(c?[c]:[]).concat([...a,...s,...u]).join(" "),h=[...a.filter((e=>e.startsWith("aws-sdk-"))),...u].join(" ");return"browser"!==r.runtime?(h&&(i[ft]=i[ft]?`${i[pt]} ${h}`:h),i[pt]=d):i[ft]=d,e({...n,request:o})}),Et)}});var vt;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(vt||(vt={}));const Ct=(e,t,r)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}},bt={environmentVariableSelector:e=>Ct(e,"AWS_USE_DUALSTACK_ENDPOINT",vt.ENV),configFileSelector:e=>Ct(e,"use_dualstack_endpoint",vt.CONFIG),default:!1},St={environmentVariableSelector:e=>Ct(e,"AWS_USE_FIPS_ENDPOINT",vt.ENV),configFileSelector:e=>Ct(e,"use_fips_endpoint",vt.CONFIG),default:!1},wt={environmentVariableSelector:e=>e.AWS_REGION,configFileSelector:e=>e.region,default:()=>{throw new Error("Region is missing")}},Ot={preferredFile:"credentials"},xt=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),_t=e=>xt(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,Dt=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return _t(t);const e=await t();return _t(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!xt(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}},Tt="content-length",It={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Bt=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(l.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(Tt))try{const t=r(e);n.headers={...n.headers,[Tt]:String(t)}}catch(e){}}return e({...t,request:n})}),It)}}),Rt={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Ft={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function kt(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>(r,n)=>async n=>{const{response:o}=await r(n);try{return{response:o,output:await t(o,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:o}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t}throw e}})(e,r),Rt),n.add(((e,t)=>(r,n)=>async o=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const s=await t(o.input,{...e,endpoint:i});return r({...o,request:s})})(e,t),Ft)}}}const Pt=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Nt=/(\d+\.){3}\d+/,Mt=/\.\./,Lt=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:o}=e;return`${t}//${r}${n?":"+n:""}${o}`}}return e}:n},jt=async(e,t,r)=>{const n={},o=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await Lt(i.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(o).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),(e=>{const[t,r,n,o,i,s]=e.split(":"),a="arn"===t&&e.split(":").length>=6,u=5===[t,r,n,i,s].filter(Boolean).length;if(a&&!u)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return!!("arn"===t&&r&&n&&i&&s)})(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else r=t,(!Pt.test(r)||Nt.test(r)||Mt.test(r)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);var r;return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},Ut={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Ft.name},$t=(e,t)=>({applyToStack:r=>{r.addRelativeTo((({config:e,instructions:t})=>(r,n)=>async o=>{const i=await(async(e,t,r,n)=>{const o=await jt(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)})(o.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const s=n.authSchemes?.[0];return s&&(n.signing_region=s.signingRegion,n.signing_service=s.signingName),r({...o})})({config:e,instructions:t}),Ut)}}),Vt=e=>{if("string"==typeof e)return Vt(new URL(e));const{hostname:t,pathname:r,port:n,protocol:o,search:i}=e;let s;return i&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(i)),{hostname:t,port:n?parseInt(n):void 0,protocol:o,path:r,query:s}},zt=e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>(e=>"object"==typeof e?"url"in e?Vt(e.url):e:Vt(e))(await M(r)()):void 0,o=!!r;return{...e,endpoint:n,tls:t,isCustomEndpoint:o,useDualstackEndpoint:M(e.useDualstackEndpoint??!1),useFipsEndpoint:M(e.useFipsEndpoint??!1)}};var Wt,Ht;(Ht=Wt||(Wt={})).STANDARD="standard",Ht.ADAPTIVE="adaptive";const qt=Wt.STANDARD,Gt=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Kt=["TimeoutError","RequestTimeout","RequestTimeoutException"],Yt=[500,502,503,504],Qt=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Xt=e=>429===e.$metadata?.httpStatusCode||Gt.includes(e.name)||1==e.$retryable?.throttling,Zt=e=>Kt.includes(e.name)||Qt.includes(e?.code||"")||Yt.includes(e.$metadata?.httpStatusCode||0);class Jt{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),Xt(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const er=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(2e4,e),getRetryCost:()=>r});class tr{constructor(e){this.maxAttempts=e,this.mode=Wt.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(2e4,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return er({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:100);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,er({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class rr{constructor(e,t){this.maxAttemptsProvider=e,this.mode=Wt.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new Jt,this.standardRetryStrategy=new tr(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const nr="AWS_MAX_ATTEMPTS",or="max_attempts",ir={environmentVariableSelector:e=>{const t=e[nr];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${nr} mast be a number, got "${t}"`);return r},configFileSelector:e=>{const t=e[or];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${or} mast be a number, got "${t}"`);return r},default:3},sr=e=>{const{retryStrategy:t}=e,r=M(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await M(e.retryMode)()===Wt.ADAPTIVE?new rr(r):new tr(r))}},ar={environmentVariableSelector:e=>e.AWS_RETRY_MODE,configFileSelector:e=>e.retry_mode,default:qt};var ur=r(6113),cr=r.n(ur);const lr=new Uint8Array(256);let dr=lr.length;function hr(){return dr>lr.length-16&&(cr().randomFillSync(lr),dr=0),lr.slice(dr,dr+=16)}const pr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,fr=[];for(let e=0;e<256;++e)fr.push((e+256).toString(16).substr(1));const mr=function(e,t=0){const r=(fr[e[t+0]]+fr[e[t+1]]+fr[e[t+2]]+fr[e[t+3]]+"-"+fr[e[t+4]]+fr[e[t+5]]+"-"+fr[e[t+6]]+fr[e[t+7]]+"-"+fr[e[t+8]]+fr[e[t+9]]+"-"+fr[e[t+10]]+fr[e[t+11]]+fr[e[t+12]]+fr[e[t+13]]+fr[e[t+14]]+fr[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&pr.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},gr=function(e,t,r){const n=(e=e||{}).random||(e.rng||hr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return mr(n)},yr=e=>{const t={errorType:Er(e)},r=Cr(e.$response);return r&&(t.retryAfterHint=r),t},Er=e=>Xt(e)?"THROTTLING":Zt(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!Zt(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",Ar={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},vr=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let o=await e.retryStrategy();const i=await e.maxAttempts();if(!(e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess)(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),a=new Error,u=0,c=0;const{request:d}=n;for(l.isInstance(d)&&(d.headers["amz-sdk-invocation-id"]=gr());;)try{l.isInstance(d)&&(d.headers["amz-sdk-request"]=`attempt=${u+1}; max=${i}`);const{response:r,output:s}=await t(n);return o.recordSuccess(e),s.$metadata.attempts=u+1,s.$metadata.totalRetryDelay=c,{response:r,output:s}}catch(t){const r=yr(t);a=(s=t)instanceof Error?s:s instanceof Object?Object.assign(new Error,s):"string"==typeof s?new Error(s):new Error(`AWS SDK error wrapper for ${s}`);try{e=await o.refreshRetryTokenForRetry(e,r)}catch(e){throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=u+1,a.$metadata.totalRetryDelay=c,a}u=e.getRetryCount();const n=e.getRetryDelay();c+=n,await new Promise((e=>setTimeout(e,n)))}}var s})(e),Ar)}}),Cr=e=>{if(!d.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(1e3*n)};class br{trace(){}debug(){}info(){}warn(){}error(){}}const Sr=()=>{let e=[],t=[];const r=new Set,n=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r),o=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))})),t},i=(r=!1)=>{const n=[],i=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};t.name&&(s[t.name]=t),n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};t.name&&(s[t.name]=t),i.push(t)})),i.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));const a=(u=n,u.sort(((e,t)=>wr[t.step]-wr[e.step]||Or[t.priority||"normal"]-Or[e.priority||"normal"]))).map(o).reduce(((e,t)=>(e.push(...t),e)),[]);var u;return a},s={add:(t,n={})=>{const{name:o,override:i}=n,s={step:"initialize",priority:"normal",middleware:t,...n};if(o){if(r.has(o)){if(!i)throw new Error(`Duplicate middleware name '${o}'`);const t=e.findIndex((e=>e.name===o)),r=e[t];if(r.step!==s.step||r.priority!==s.priority)throw new Error(`"${o}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by same-name middleware with ${s.priority} priority in ${s.step} step.`);e.splice(t,1)}r.add(o)}e.push(s)},addRelativeTo:(e,n)=>{const{name:o,override:i}=n,s={middleware:e,...n};if(o){if(r.has(o)){if(!i)throw new Error(`Duplicate middleware name '${o}'`);const e=t.findIndex((e=>e.name===o)),r=t[e];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw new Error(`"${o}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by same-name middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(e,1)}r.add(o)}t.push(s)},clone:()=>n(Sr()),use:e=>{e.applyToStack(s)},remove:n=>"string"==typeof n?(n=>{let o=!1;const i=e=>!e.name||e.name!==n||(o=!0,r.delete(n),!1);return e=e.filter(i),t=t.filter(i),o})(n):(n=>{let o=!1;const i=e=>e.middleware!==n||(o=!0,e.name&&r.delete(e.name),!1);return e=e.filter(i),t=t.filter(i),o})(n),removeByTag:n=>{let o=!1;const i=e=>{const{tags:t,name:i}=e;return!t||!t.includes(n)||(i&&r.delete(i),o=!0,!1)};return e=e.filter(i),t=t.filter(i),o},concat:e=>{const t=n(Sr());return t.use(e),t},applyToStack:n,identify:()=>i(!0).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const r of i().map((e=>e.middleware)).reverse())e=r(e,t);return e}};return s},wr={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Or={high:3,normal:2,low:1};class xr{constructor(e){this.middlewareStack=Sr(),this.config=e}send(e,t,r){const n="function"!=typeof t?t:void 0,o="function"==typeof t?t:r,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return i(e).then((e=>e.output));i(e).then((e=>o(null,e.output)),(e=>o(e))).catch((()=>{}))}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const _r=/^[A-Za-z0-9+/]*={0,2}$/,Dr=e=>{if(3*e.length%4!=0)throw new TypeError("Incorrect padding on base64 string.");if(!_r.exec(e))throw new TypeError("Invalid base64 string.");const t=$(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},Tr=e=>U(e.buffer,e.byteOffset,e.byteLength).toString("base64");class Ir extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?Ir.mutate(Dr(e)):Ir.mutate(V(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,Ir.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?Tr(e):W(e)}(this,e)}}var Br=r(2781),Rr=r(3685);const Fr=require("https"),kr=["ECONNRESET","EPIPE","ETIMEDOUT"],Pr=e=>{const t={};for(const r of Object.keys(e)){const n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};class Nr{constructor(e){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise(((t,r)=>{"function"==typeof e?e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(r):t(this.resolveDefaultConfig(e))}))}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:r,socketTimeout:n,httpAgent:o,httpsAgent:i}=e||{};return{connectionTimeout:r,requestTimeout:t??n,httpAgent:o||new Rr.Agent({keepAlive:!0,maxSockets:50}),httpsAgent:i||new Fr.Agent({keepAlive:!0,maxSockets:50})}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t}={}){return this.config||(this.config=await this.configProvider),new Promise(((r,n)=>{let o;const i=async e=>{await o,n(e)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",void i(e)}const s="https:"===e.protocol,a=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=de(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push(`${r}=${de(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${de(n)}`),t.push(e)}}return t.join("&")}(e.query||{});let u;null==e.username&&null==e.password||(u=`${e.username??""}:${e.password??""}`);let c=e.path;a&&(c+=`?${a}`),e.fragment&&(c+=`#${e.fragment}`);const l={headers:e.headers,host:e.hostname,method:e.method,path:c,port:e.port,agent:s?this.config.httpsAgent:this.config.httpAgent,auth:u},h=(s?Fr.request:Rr.request)(l,(e=>{(async e=>{await o,r(e)})({response:new d({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:Pr(e.headers),body:e})})}));h.on("error",(e=>{kr.includes(e.code)?i(Object.assign(e,{name:"TimeoutError"})):i(e)})),((e,t,r=0)=>{if(!r)return;const n=setTimeout((()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))}),r);e.on("socket",(e=>{e.connecting?e.on("connect",(()=>{clearTimeout(n)})):clearTimeout(n)}))})(h,i,this.config.connectionTimeout),((e,t,r=0)=>{e.setTimeout(r,(()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))}))})(h,i,this.config.requestTimeout),t&&(t.onabort=()=>{h.abort();const e=new Error("Request aborted");e.name="AbortError",i(e)});const p=l.agent;"object"==typeof p&&"keepAlive"in p&&((e,{keepAlive:t,keepAliveMsecs:r})=>{!0===t&&e.on("socket",(e=>{e.setKeepAlive(t,r||0)}))})(h,{keepAlive:p.keepAlive,keepAliveMsecs:p.keepAliveMsecs}),o=async function(e,t,r=1e3){const n=t.headers??{},o=n.Expect||n.expect;let i=-1,s=!1;"100-continue"===o&&await Promise.race([new Promise((e=>{i=Number(setTimeout(e,Math.max(1e3,r)))})),new Promise((t=>{e.on("continue",(()=>{clearTimeout(i),t()})),e.on("error",(()=>{s=!0,clearTimeout(i),t()}))}))]),s||function(e,t){t instanceof Br.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}(e,t.body)}(h,e,this.config.requestTimeout).catch(n)}))}}require("http2"),Symbol.iterator;class Mr extends Br.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(e,t,r){this.bufferedBytes.push(e),r()}}const Lr=e=>new Promise(((t,r)=>{const n=new Mr;e.pipe(n),e.on("error",(e=>{n.end(),r(e)})),n.on("error",r),n.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}));var jr=r(3849);const Ur=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Ir.mutate(e);if(!e)return Ir.mutate(new Uint8Array);const r=t.streamCollector(e);return Ir.mutate(await r)};class $r{constructor(){this.middlewareStack=Sr()}}const Vr="***SensitiveInformation***",zr=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&tn.warn(en(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},Wr=Math.ceil(2**127*(2-2**-23)),Hr=e=>qr(e,32),qr=(e,t)=>{const r=(e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}})(e);if(void 0!==r&&Gr(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},Gr=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},Kr=(e,t)=>{if(null==e){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return e},Yr=e=>{if(null==e)return;if("object"==typeof e&&!Array.isArray(e))return e;const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},Qr=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return tn.warn(en(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},Xr=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Zr=e=>{const t=e.match(Xr);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},Jr=e=>Hr("string"==typeof e?Zr(e):e),en=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),tn={warn:console.warn},rn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],nn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),on=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=nn.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,i,s,a,u,c,l]=t,d=(e=>(e=>qr(e,16))("string"==typeof e?Zr(e):e))(pn(n)),h=ln(o,"month",1,12),p=ln(i,"day",1,31),f=sn(d,h,p,{hours:s,minutes:a,seconds:u,fractionalMilliseconds:c});return"Z"!=l.toUpperCase()&&f.setTime(f.getTime()-hn(l)),f},sn=(e,t,r,n)=>{const o=t-1;return un(e,o,r),new Date(Date.UTC(e,o,r,ln(n.hours,"hour",0,23),ln(n.minutes,"minute",0,59),ln(n.seconds,"seconds",0,60),dn(n.fractionalMilliseconds)))},an=[31,28,31,30,31,30,31,31,30,31,30,31],un=(e,t,r)=>{let n=an[t];if(1===t&&cn(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${rn[t]} in ${e}: ${r}`)},cn=e=>e%4==0&&(e%100!=0||e%400==0),ln=(e,t,r,n)=>{const o=(e=>(e=>qr(e,8))("string"==typeof e?Zr(e):e))(pn(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},dn=e=>null==e?0:1e3*(e=>(e=>{const t=zr(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Wr)throw new TypeError(`Expected 32-bit float, got ${e}`);return t})("string"==typeof e?Zr(e):e))("0."+e),hn=e=>{const t=e[0];let r=1;if("+"==t)r=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);r=-1}return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},pn=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)};class fn extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,fn.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const mn=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},gn=e=>({output:t,parsedBody:r,errorCode:n})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const o=yn(e),i=o.httpStatusCode?o.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:o});throw mn(s,t)})({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})},yn=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),En=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let An=!1;const vn=e=>{e&&!An&&parseInt(e.substring(1,e.indexOf(".")))<14&&(An=!0)};function Cn(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}const bn=e=>{const t="#text";for(const r in e)e.hasOwnProperty(r)&&void 0!==e[r][t]?e[r]=e[r][t]:"object"==typeof e[r]&&null!==e[r]&&(e[r]=bn(e[r]));return e},Sn=function(){const e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(t,e.prototype),t};function wn(e,t,r){let n,o,i;if(void 0===t&&void 0===r)n={},i=e;else{if(n=e,"function"==typeof t)return o=t,i=r,xn(n,o,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?_n(n,null,i,e):n[e]=i[e];return n}Sn.prototype=Object.create(String.prototype,{constructor:{value:Sn,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(Sn,String);const On=(e,t)=>{const r={};for(const n in t)_n(r,e,t,n);return r},xn=(e,t,r)=>wn(e,Object.entries(r).reduce(((e,[r,n])=>(Array.isArray(n)?e[r]=n:e[r]="function"==typeof n?[t,n()]:[t,n],e)),{})),_n=(e,t,r,n)=>{if(null!==t){let o=r[n];"function"==typeof o&&(o=[,o]);const[i=Dn,s=Tn,a=n]=o;return void(("function"==typeof i&&i(t[a])||"function"!=typeof i&&i)&&(e[n]=s(t[a])))}let[o,i]=r[n];if("function"==typeof i){let t;const r=void 0===o&&null!=(t=i()),s="function"==typeof o&&!!o(void 0)||"function"!=typeof o&&!!o;r?e[n]=t:s&&(e[n]=i())}else{const t=void 0===o&&null!=i,r="function"==typeof o&&!!o(i)||"function"!=typeof o&&!!o;(t||r)&&(e[n]=i)}},Dn=e=>null!=e,Tn=e=>e,In=e=>{if(null==e)return{};if(Array.isArray(e))return e.filter((e=>null!=e));if("object"==typeof e){const t={};for(const r of Object.keys(e))null!=e[r]&&(t[r]=In(e[r]));return t}return e};class Bn extends fn{constructor(e){super(e),Object.setPrototypeOf(this,Bn.prototype)}}class Rn extends Bn{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Rn.prototype)}}class Fn extends Bn{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,Fn.prototype)}}class kn extends Bn{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,kn.prototype)}}class Pn extends Bn{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Pn.prototype)}}class Nn extends Bn{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Nn.prototype)}}class Mn extends Bn{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,Mn.prototype)}}class Ln extends Bn{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,Ln.prototype)}}const jn=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:Vr}}),Un=e=>({...e,...e.Credentials&&{Credentials:jn(e.Credentials)}}),$n=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:Vr}}),Vn=e=>({...e,...e.Credentials&&{Credentials:jn(e.Credentials)}});var zn=r(2215);const Wn=async(e,t)=>{const r=e.body,n=so(r.Error,t),o=new Rn({$metadata:fo(e),...n});return mn(o,r)},Hn=async(e,t)=>{const r=e.body,n=ao(r.Error,t),o=new Ln({$metadata:fo(e),...n});return mn(o,r)},qn=async(e,t)=>{const r=e.body,n=uo(r.Error,t),o=new Nn({$metadata:fo(e),...n});return mn(o,r)},Gn=async(e,t)=>{const r=e.body,n=co(r.Error,t),o=new Mn({$metadata:fo(e),...n});return mn(o,r)},Kn=async(e,t)=>{const r=e.body,n=lo(r.Error,t),o=new Fn({$metadata:fo(e),...n});return mn(o,r)},Yn=async(e,t)=>{const r=e.body,n=ho(r.Error,t),o=new kn({$metadata:fo(e),...n});return mn(o,r)},Qn=async(e,t)=>{const r=e.body,n=po(r.Error,t),o=new Pn({$metadata:fo(e),...n});return mn(o,r)},Xn=(e,t)=>{const r={};if(null!=e.RoleArn&&(r.RoleArn=e.RoleArn),null!=e.RoleSessionName&&(r.RoleSessionName=e.RoleSessionName),null!=e.PolicyArns){const n=Jn(e.PolicyArns,t);0===e.PolicyArns?.length&&(r.PolicyArns=[]),Object.entries(n).forEach((([e,t])=>{r[`PolicyArns.${e}`]=t}))}if(null!=e.Policy&&(r.Policy=e.Policy),null!=e.DurationSeconds&&(r.DurationSeconds=e.DurationSeconds),null!=e.Tags){const n=no(e.Tags,t);0===e.Tags?.length&&(r.Tags=[]),Object.entries(n).forEach((([e,t])=>{r[`Tags.${e}`]=t}))}if(null!=e.TransitiveTagKeys){const n=ro(e.TransitiveTagKeys,t);0===e.TransitiveTagKeys?.length&&(r.TransitiveTagKeys=[]),Object.entries(n).forEach((([e,t])=>{r[`TransitiveTagKeys.${e}`]=t}))}return null!=e.ExternalId&&(r.ExternalId=e.ExternalId),null!=e.SerialNumber&&(r.SerialNumber=e.SerialNumber),null!=e.TokenCode&&(r.TokenCode=e.TokenCode),null!=e.SourceIdentity&&(r.SourceIdentity=e.SourceIdentity),r},Zn=(e,t)=>{const r={};if(null!=e.RoleArn&&(r.RoleArn=e.RoleArn),null!=e.RoleSessionName&&(r.RoleSessionName=e.RoleSessionName),null!=e.WebIdentityToken&&(r.WebIdentityToken=e.WebIdentityToken),null!=e.ProviderId&&(r.ProviderId=e.ProviderId),null!=e.PolicyArns){const n=Jn(e.PolicyArns,t);0===e.PolicyArns?.length&&(r.PolicyArns=[]),Object.entries(n).forEach((([e,t])=>{r[`PolicyArns.${e}`]=t}))}return null!=e.Policy&&(r.Policy=e.Policy),null!=e.DurationSeconds&&(r.DurationSeconds=e.DurationSeconds),r},Jn=(e,t)=>{const r={};let n=1;for(const o of e){if(null===o)continue;const e=eo(o,t);Object.entries(e).forEach((([e,t])=>{r[`member.${n}.${e}`]=t})),n++}return r},eo=(e,t)=>{const r={};return null!=e.arn&&(r.arn=e.arn),r},to=(e,t)=>{const r={};return null!=e.Key&&(r.Key=e.Key),null!=e.Value&&(r.Value=e.Value),r},ro=(e,t)=>{const r={};let n=1;for(const t of e)null!==t&&(r[`member.${n}`]=t,n++);return r},no=(e,t)=>{const r={};let n=1;for(const t of e){if(null===t)continue;const e=to(t);Object.entries(e).forEach((([e,t])=>{r[`member.${n}.${e}`]=t})),n++}return r},oo=(e,t)=>{const r={};return void 0!==e.AssumedRoleId&&(r.AssumedRoleId=Qr(e.AssumedRoleId)),void 0!==e.Arn&&(r.Arn=Qr(e.Arn)),r},io=(e,t)=>{const r={};return void 0!==e.AccessKeyId&&(r.AccessKeyId=Qr(e.AccessKeyId)),void 0!==e.SecretAccessKey&&(r.SecretAccessKey=Qr(e.SecretAccessKey)),void 0!==e.SessionToken&&(r.SessionToken=Qr(e.SessionToken)),void 0!==e.Expiration&&(r.Expiration=Kr(on(e.Expiration))),r},so=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Qr(e.message)),r},ao=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Qr(e.message)),r},uo=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Qr(e.message)),r},co=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Qr(e.message)),r},lo=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Qr(e.message)),r},ho=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Qr(e.message)),r},po=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Qr(e.message)),r},fo=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),mo=gn(Bn),go=async(e,t,r,n,o)=>{const{hostname:i,protocol:s="https",port:a,path:u}=await e.endpoint(),c={protocol:s,hostname:i,port:a,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+r:u+r,headers:t};return void 0!==n&&(c.hostname=n),void 0!==o&&(c.body=o),new l(c)},yo={"content-type":"application/x-www-form-urlencoded"},Eo=(e,t)=>((e,t)=>Ur(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length){const t=new zn.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");const r=t.parse(e),n="#text",o=Object.keys(r)[0],i=r[o];return i[n]&&(i[o]=i[n],delete i[n]),bn(i)}return{}})),Ao=async(e,t)=>{const r=await Eo(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},vo=e=>Object.entries(e).map((([e,t])=>Cn(e)+"="+Cn(t))).join("&"),Co=(e,t)=>void 0!==t.Error?.Code?t.Error.Code:404==e.statusCode?"NotFound":void 0;class bo extends $r{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(kt(t,this.serialize,this.deserialize)),this.middlewareStack.use($t(t,bo.getEndpointParameterInstructions())),this.middlewareStack.use((e=>({applyToStack:t=>{t.addRelativeTo((e=>(t,r)=>async function(n){if(!l.isInstance(n.request))return t(n);const o=r.endpointV2?.properties?.authSchemes?.[0],i="sigv4a"===o?.name?o?.signingRegionSet?.join(","):void 0,s=await e.signer(o),a=await t({...n,request:await s.sign(n.request,{signingDate:be(e.systemClockOffset),signingRegion:i||r.signing_region,signingService:r.signing_service})}).catch((t=>{const r=t.ServerTime??we(t.$response);throw r&&(e.systemClockOffset=Se(r,e.systemClockOffset)),t})),u=we(a.response);return u&&(e.systemClockOffset=Se(u,e.systemClockOffset)),a})(e),Oe)}}))(t));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:Un},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=yo;let n;return n=vo({...Xn(e,t),Action:"AssumeRole",Version:"2011-06-15"}),go(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await Ao(e.body,t)},n=Co(e,r.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Wn(r,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Kn(r,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Yn(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Qn(r,t);default:const o=r.body;return mo({output:e,parsedBody:o.Error,errorCode:n})}})(e,t);let r={};return r=((e,t)=>{const r={};return void 0!==e.Credentials&&(r.Credentials=io(e.Credentials,t)),void 0!==e.AssumedRoleUser&&(r.AssumedRoleUser=oo(e.AssumedRoleUser)),void 0!==e.PackedPolicySize&&(r.PackedPolicySize=Jr(e.PackedPolicySize)),void 0!==e.SourceIdentity&&(r.SourceIdentity=Qr(e.SourceIdentity)),r})((await Eo(e.body,t)).AssumeRoleResult,t),{$metadata:fo(e),...r}})(e,t)}}class So extends $r{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(kt(t,this.serialize,this.deserialize)),this.middlewareStack.use($t(t,So.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:$n,outputFilterSensitiveLog:Vn},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=yo;let n;return n=vo({...Zn(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),go(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await Ao(e.body,t)},n=Co(e,r.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Wn(r,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Hn(r,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await qn(r,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Gn(r,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Kn(r,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Yn(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Qn(r,t);default:const o=r.body;return mo({output:e,parsedBody:o.Error,errorCode:n})}})(e,t);let r={};return r=((e,t)=>{const r={};return void 0!==e.Credentials&&(r.Credentials=io(e.Credentials,t)),void 0!==e.SubjectFromWebIdentityToken&&(r.SubjectFromWebIdentityToken=Qr(e.SubjectFromWebIdentityToken)),void 0!==e.AssumedRoleUser&&(r.AssumedRoleUser=oo(e.AssumedRoleUser)),void 0!==e.PackedPolicySize&&(r.PackedPolicySize=Jr(e.PackedPolicySize)),void 0!==e.Provider&&(r.Provider=Qr(e.Provider)),void 0!==e.Audience&&(r.Audience=Qr(e.Audience)),void 0!==e.SourceIdentity&&(r.SourceIdentity=Qr(e.SourceIdentity)),r})((await Eo(e.body,t)).AssumeRoleWithWebIdentityResult,t),{$metadata:fo(e),...r}})(e,t)}}const wo="us-east-1",Oo=e=>"function"!=typeof e?void 0===e?wo:e:async()=>{try{return await e()}catch(e){return wo}},xo=(e,t)=>{let r,n;return async(o,i)=>{if(n=o,!r){const{logger:o,region:i,requestHandler:s}=e;r=new t({logger:o,credentialDefaultProvider:()=>async()=>n,region:Oo(i||e.region),...s?{requestHandler:s}:{}})}const{Credentials:s}=await r.send(new bo(i));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}},_o=(e,t)=>{let r;return async n=>{if(!r){const{logger:n,region:o,requestHandler:i}=e;r=new t({logger:n,region:Oo(o||e.region),...i?{requestHandler:i}:{}})}const{Credentials:o}=await r.send(new So(n));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};class Do extends Error{constructor(e,t=!0){super(e),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,Do.prototype)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}class To extends Do{constructor(e,t=!0){super(e,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,To.prototype)}}const Io=()=>async()=>{const e=process.env.AWS_ACCESS_KEY_ID,t=process.env.AWS_SECRET_ACCESS_KEY,r=process.env.AWS_SESSION_TOKEN,n=process.env.AWS_CREDENTIAL_EXPIRATION;if(e&&t)return{accessKeyId:e,secretAccessKey:t,...r&&{sessionToken:r},...n&&{expiration:new Date(n)}};throw new To("Unable to find environment variable credentials.")};var Bo=r(2037);const Ro=require("path"),Fo=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${Ro.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,Bo.homedir)())},ko="AWS_PROFILE",Po=e=>e.profile||process.env[ko]||"default",No=e=>{const t=(0,ur.createHash)("sha1").update(e).digest("hex");return(0,Ro.join)(Fo(),".aws","sso","cache",`${t}.json`)};var Mo=r(7147);const{readFile:Lo}=Mo.promises,jo=async e=>{const t=No(e),r=await Lo(t,"utf8");return JSON.parse(r)},Uo=()=>process.env.AWS_CONFIG_FILE||(0,Ro.join)(Fo(),".aws","config"),$o=()=>process.env.AWS_SHARED_CREDENTIALS_FILE||(0,Ro.join)(Fo(),".aws","credentials"),Vo=/^profile\s(["'])?([^\1]+)\1$/,zo=e=>Object.entries(e).filter((([e])=>Vo.test(e))).reduce(((e,[t,r])=>({...e,[Vo.exec(t)[2]]:r})),{...e.default&&{default:e.default}}),Wo=["__proto__","profile __proto__"],Ho=e=>{const t={};let r;for(let n of e.split(/\r?\n/))if(n=n.split(/(^|\s)[;#]/)[0].trim(),"["===n[0]&&"]"===n[n.length-1]){if(r=n.substring(1,n.length-1),Wo.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){const e=n.indexOf("="),o=0,i=n.length-1;if(-1!==e&&e!==o&&e!==i){const[o,i]=[n.substring(0,e).trim(),n.substring(e+1).trim()];t[r]=t[r]||{},t[r][o]=i}}return t},{readFile:qo}=Mo.promises,Go={},Ko=(e,t)=>(Go[e]&&!t?.ignoreCache||(Go[e]=qo(e,"utf8")),Go[e]),Yo=()=>({}),Qo=async(e={})=>{const{filepath:t=$o(),configFilepath:r=Uo()}=e,n=await Promise.all([Ko(r,{ignoreCache:e.ignoreCache}).then(Ho).then(zo).catch(Yo),Ko(t,{ignoreCache:e.ignoreCache}).then(Ho).catch(Yo)]);return{configFile:n[0],credentialsFile:n[1]}},Xo=/^sso-session\s(["'])?([^\1]+)\1$/,Zo=e=>Object.entries(e).filter((([e])=>Xo.test(e))).reduce(((e,[t,r])=>({...e,[Xo.exec(t)[2]]:r})),{}),Jo=()=>({}),ei=async(e={})=>Ko(e.configFilepath??Uo()).then(Ho).then(Zo).catch(Jo),ti=async e=>{const t=await Qo(e);return((...e)=>{const t={};for(const r of e)for(const[e,n]of Object.entries(r))void 0!==t[e]?Object.assign(t[e],n):t[e]=n;return t})(t.configFile,t.credentialsFile)};var ri=r(7310);function ni(e){return new Promise(((t,r)=>{const n=(0,Rr.request)({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",(e=>{r(Object.assign(new Do("Unable to connect to instance metadata service"),e)),n.destroy()})),n.on("timeout",(()=>{r(new Do("TimeoutError from instance metadata service")),n.destroy()})),n.on("response",(e=>{const{statusCode:o=400}=e;(o<200||300<=o)&&(r(Object.assign(new Do("Error response received from instance metadata service"),{statusCode:o})),n.destroy());const i=[];e.on("data",(e=>{i.push(e)})),e.on("end",(()=>{t(j.Buffer.concat(i)),n.destroy()}))})),n.end()}))}const oi=e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.AccessKeyId&&"string"==typeof e.SecretAccessKey&&"string"==typeof e.Token&&"string"==typeof e.Expiration,ii=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),si=({maxRetries:e=0,timeout:t=1e3})=>({maxRetries:e,timeout:t}),ai=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r},ui="AWS_CONTAINER_CREDENTIALS_FULL_URI",ci="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",li="AWS_CONTAINER_AUTHORIZATION_TOKEN",di=(e={})=>{const{timeout:t,maxRetries:r}=si(e);return()=>ai((async()=>{const e=await mi(),r=JSON.parse(await hi(t,e));if(!oi(r))throw new To("Invalid response received from instance metadata service.");return ii(r)}),r)},hi=async(e,t)=>(process.env[li]&&(t.headers={...t.headers,Authorization:process.env[li]}),(await ni({...t,timeout:e})).toString()),pi={localhost:!0,"127.0.0.1":!0},fi={"http:":!0,"https:":!0},mi=async()=>{if(process.env[ci])return{hostname:"169.254.170.2",path:process.env[ci]};if(process.env[ui]){const e=(0,ri.parse)(process.env[ui]);if(!e.hostname||!(e.hostname in pi))throw new To(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in fi))throw new To(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new To(`The container metadata credential provider cannot be used unless the ${ci} or ${ui} environment variable is set`,!1)};function gi(...e){return()=>{let t=Promise.reject(new Do("No providers in chain"));for(const r of e)t=t.catch((e=>{if(e?.tryNextLink)return r();throw e}));return t}}const yi=({environmentVariableSelector:e,configFileSelector:t,default:r},n={})=>{return A(gi((o=e,async()=>{try{const e=o(process.env);if(void 0===e)throw new Error;return e}catch(e){throw new To(e.message||`Cannot load config from environment variables with getter: ${o}`)}}),((e,{preferredFile:t="config",...r}={})=>async()=>{const n=Po(r),{configFile:o,credentialsFile:i}=await Qo(r),s=i[n]||{},a=o[n]||{},u="config"===t?{...s,...a}:{...a,...s};try{const t=e(u);if(void 0===t)throw new Error;return t}catch(t){throw new To(t.message||`Cannot load config for profile ${n} in SDK configuration files with getter: ${e}`)}})(t,n),(e=>{return"function"==typeof e?async()=>await e():(t=e,()=>Promise.resolve(t));var t})(r)));var o};var Ei;!function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"}(Ei||(Ei={}));const Ai={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:e=>e.ec2_metadata_service_endpoint,default:void 0};var vi;!function(e){e.IPv4="IPv4",e.IPv6="IPv6"}(vi||(vi={}));const Ci={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE,configFileSelector:e=>e.ec2_metadata_service_endpoint_mode,default:vi.IPv4},bi=async()=>Vt(await Si()||await wi()),Si=async()=>yi(Ai)(),wi=async()=>{const e=await yi(Ci)();switch(e){case vi.IPv4:return Ei.IPv4;case vi.IPv6:return Ei.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(vi)}`)}},Oi=(e,t)=>{const r=300+Math.floor(300*Math.random()),n=new Date(Date.now()+1e3*r);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html");const o=e.originalExpiration??e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:n}},xi="/latest/meta-data/iam/security-credentials/",_i=(e={})=>((e,t={})=>{const r=t?.logger||console;let n;return async()=>{let t;try{t=await e(),t.expiration&&t.expiration.getTime()<Date.now()&&(t=Oi(t,r))}catch(e){if(!n)throw e;r.warn("Credential renew failed: ",e),t=Oi(n,r)}return n=t,t}})(Di(e),{logger:e.logger}),Di=e=>{let t=!1;const{timeout:r,maxRetries:n}=si(e),o=async(e,r)=>{const n=(await ai((async()=>{let e;try{e=await Ii(r)}catch(e){throw 401===e.statusCode&&(t=!1),e}return e}),e)).trim();return ai((async()=>{let e;try{e=await Bi(n,r)}catch(e){throw 401===e.statusCode&&(t=!1),e}return e}),e)};return async()=>{const e=await bi();if(t)return o(n,{...e,timeout:r});{let i;try{i=(await Ti({...e,timeout:r})).toString()}catch(i){if(400===i?.statusCode)throw Object.assign(i,{message:"EC2 Metadata token request returned error"});return("TimeoutError"===i.message||[403,404,405].includes(i.statusCode))&&(t=!0),o(n,{...e,timeout:r})}return o(n,{...e,headers:{"x-aws-ec2-metadata-token":i},timeout:r})}}},Ti=async e=>ni({...e,path:"/latest/api/token",method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Ii=async e=>(await ni({...e,path:xi})).toString(),Bi=async(e,t)=>{const r=JSON.parse((await ni({...t,path:xi+e})).toString());if(!oi(r))throw new To("Invalid response received from instance metadata service.");return ii(r)},Ri=require("child_process"),Fi=(e={})=>async()=>{const t=await ti(e);return(async(e,t)=>{const r=t[e];if(!t[e])throw new To(`Profile ${e} could not be found in shared credentials file.`);{const t=r.credential_process;if(void 0===t)throw new To(`Profile ${e} did not contain credential_process.`);{const r=(0,jr.promisify)(Ri.exec);try{const{stdout:n}=await r(t);let o;try{o=JSON.parse(n.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return((e,t)=>{if(1!==t.Version)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(void 0===t.AccessKeyId||void 0===t.SecretAccessKey)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){const r=new Date;if(new Date(t.Expiration)<r)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}})(e,o)}catch(e){throw new To(e.message)}}}})(Po(e),t)},ki=e=>e&&("string"==typeof e.sso_start_url||"string"==typeof e.sso_account_id||"string"==typeof e.sso_session||"string"==typeof e.sso_region||"string"==typeof e.sso_role_name);var Pi=r(7282);const Ni=({serviceId:e,clientVersion:t})=>{const n=[["aws-sdk-js",t],["ua","2.0"],[`os/${(0,Bo.platform)()}`,(0,Bo.release)()],["lang/js"],["md/nodejs",`${Pi.versions.node}`]],o=(()=>{try{return r(Object(function(){var e=new Error("Cannot find module 'aws-crt'");throw e.code="MODULE_NOT_FOUND",e}()))?["md/crt-avail"]:null}catch(e){return null}})();o&&n.push(o),e&&n.push([`api/${e}`,t]),Pi.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${Pi.env.AWS_EXECUTION_ENV}`]);const i=yi({environmentVariableSelector:e=>e.AWS_SDK_UA_APP_ID,configFileSelector:e=>e["sdk-ua-app-id"],default:void 0})();let s;return async()=>{if(!s){const e=await i;s=e?[...n,[`app/${e}`]]:[...n]}return s}};class Mi{constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update(z(Li(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,ur.createHmac)(this.algorithmIdentifier,Li(this.secret)):(0,ur.createHash)(this.algorithmIdentifier)}}function Li(e,t){return j.Buffer.isBuffer(e)?e:"string"==typeof e?$(e,t):ArrayBuffer.isView(e)?U(e.buffer,e.byteOffset,e.byteLength):U(e)}const ji=e=>{if(!e)return 0;if("string"==typeof e)return Buffer.from(e).length;if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;if("string"==typeof e.path||Buffer.isBuffer(e.path))return(0,Mo.lstatSync)(e.path).size;if("number"==typeof e.fd)return(0,Mo.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},Ui="required",$i="fn",Vi="argv",zi="ref",Wi="PartitionResult",Hi="tree",qi="error",Gi="endpoint",Ki={[Ui]:!1,type:"String"},Yi={[Ui]:!0,default:!1,type:"Boolean"},Qi={[zi]:"Endpoint"},Xi={[$i]:"booleanEquals",[Vi]:[{[zi]:"UseFIPS"},!0]},Zi={[$i]:"booleanEquals",[Vi]:[{[zi]:"UseDualStack"},!0]},Ji={},es={[$i]:"booleanEquals",[Vi]:[!0,{[$i]:"getAttr",[Vi]:[{[zi]:Wi},"supportsFIPS"]}]},ts={[$i]:"booleanEquals",[Vi]:[!0,{[$i]:"getAttr",[Vi]:[{[zi]:Wi},"supportsDualStack"]}]},rs=[Qi],ns=[Xi],os=[Zi],is={version:"1.0",parameters:{Region:Ki,UseDualStack:Yi,UseFIPS:Yi,Endpoint:Ki},rules:[{conditions:[{[$i]:"aws.partition",[Vi]:[{[zi]:"Region"}],assign:Wi}],type:Hi,rules:[{conditions:[{[$i]:"isSet",[Vi]:rs},{[$i]:"parseURL",[Vi]:rs,assign:"url"}],type:Hi,rules:[{conditions:ns,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:qi},{type:Hi,rules:[{conditions:os,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:qi},{endpoint:{url:Qi,properties:Ji,headers:Ji},type:Gi}]}]},{conditions:[Xi,Zi],type:Hi,rules:[{conditions:[es,ts],type:Hi,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ji,headers:Ji},type:Gi}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:qi}]},{conditions:ns,type:Hi,rules:[{conditions:[es],type:Hi,rules:[{type:Hi,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ji,headers:Ji},type:Gi}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:qi}]},{conditions:os,type:Hi,rules:[{conditions:[ts],type:Hi,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ji,headers:Ji},type:Gi}]},{error:"DualStack is enabled but this partition does not support DualStack",type:qi}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:Ji,headers:Ji},type:Gi}]}]},ss=(e,t={})=>ht(is,{endpointParams:e,logger:t.logger}),as="AWS_REGION",us="AWS_DEFAULT_REGION",cs=["in-region","cross-region","mobile","standard","legacy"],ls={environmentVariableSelector:e=>e.AWS_DEFAULTS_MODE,configFileSelector:e=>e.defaults_mode,default:"legacy"},ds=({region:e=yi(wt),defaultsMode:t=yi(ls)}={})=>A((async()=>{const r="function"==typeof t?await t():t;switch(r?.toLowerCase()){case"auto":return hs(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${cs.join(", ")}, got ${r}`)}})),hs=async e=>{if(e){const t="function"==typeof e?await e():e,r=await ps();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},ps=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env[as]||process.env[us]))return process.env[as]??process.env[us];if(!process.env.AWS_EC2_METADATA_DISABLED)try{const e=await bi();return(await ni({...e,path:"/latest/meta-data/placement/region"})).toString()}catch(e){}};class fs extends xr{constructor(e){const t=(r=(e=>{vn(process.version);const t=ds(e),r=()=>t().then(En),n=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dr,base64Encoder:e?.base64Encoder??Tr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ss,logger:e?.logger??new br,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??Vt,utf8Decoder:e?.utf8Decoder??V,utf8Encoder:e?.utf8Encoder??W}))(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ji,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ni({serviceId:n.serviceId,clientVersion:"3.370.0"}),maxAttempts:e?.maxAttempts??yi(ir),region:e?.region??yi(wt,Ot),requestHandler:e?.requestHandler??new Nr(r),retryMode:e?.retryMode??yi({...ar,default:async()=>(await r()).retryMode||qt}),sha256:e?.sha256??Mi.bind(null,"sha256"),streamCollector:e?.streamCollector??Lr,useDualstackEndpoint:e?.useDualstackEndpoint??yi(bt),useFipsEndpoint:e?.useFipsEndpoint??yi(St)}})(e),{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});var r;const n=Dt(t),o=zt(n),i=xe(sr(o));super(i),this.config=i,this.middlewareStack.use(vr(this.config)),this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(p(this.config)),this.middlewareStack.use(m(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(At(this.config))}destroy(){super.destroy()}}class ms extends fn{constructor(e){super(e),Object.setPrototypeOf(this,ms.prototype)}}class gs extends ms{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,gs.prototype)}}class ys extends ms{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ys.prototype)}}class Es extends ms{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Es.prototype)}}class As extends ms{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,As.prototype)}}const vs=e=>({...e,...e.accessToken&&{accessToken:Vr}}),Cs=e=>({...e,...e.secretAccessKey&&{secretAccessKey:Vr},...e.sessionToken&&{sessionToken:Vr}}),bs=e=>({...e,...e.roleCredentials&&{roleCredentials:Cs(e.roleCredentials)}}),Ss=gn(ms),ws=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{message:Qr});Object.assign(r,o);const i=new gs({$metadata:Ds(e),...r});return mn(i,e.body)},Os=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{message:Qr});Object.assign(r,o);const i=new ys({$metadata:Ds(e),...r});return mn(i,e.body)},xs=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{message:Qr});Object.assign(r,o);const i=new Es({$metadata:Ds(e),...r});return mn(i,e.body)},_s=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{message:Qr});Object.assign(r,o);const i=new As({$metadata:Ds(e),...r});return mn(i,e.body)},Ds=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Ts=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),Is=(e,t)=>((e,t)=>Ur(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),Bs=async(e,t)=>{const r=await Is(e,t);return r.message=r.message??r.Message,r},Rs=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,"x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var o;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class Fs extends $r{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(kt(t,this.serialize,this.deserialize)),this.middlewareStack.use($t(t,Fs.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:vs,outputFilterSensitiveLog:bs},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:o,path:i}=await t.endpoint(),s=wn({},Ts,{"x-amz-sso_bearer_token":e.accessToken}),a=`${i?.endsWith("/")?i.slice(0,-1):i||""}/federation/credentials`,u=wn({role_name:[,Kr(e.roleName,"roleName")],account_id:[,Kr(e.accountId,"accountId")]});return new l({protocol:n,hostname:r,port:o,method:"GET",headers:s,path:a,query:u,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await Bs(e.body,t)},n=Rs(e,r.body);switch(n){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await ws(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Os(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await xs(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await _s(r,t);default:const o=r.body;return Ss({output:e,parsedBody:o,errorCode:n})}})(e,t);const r=wn({$metadata:Ds(e)}),n=Kr(Yr(await Is(e.body,t)),"body"),o=On(n,{roleCredentials:In});return Object.assign(r,o),r})(e,t)}}class ks extends Do{constructor(e,t=!0){super(e,t),this.tryNextLink=t,this.name="TokenProviderError",Object.setPrototypeOf(this,ks.prototype)}}const Ps="To refresh this SSO session run 'aws sso login' with the corresponding profile.";class Ns extends fn{constructor(e){super(e),Object.setPrototypeOf(this,Ns.prototype)}}class Ms extends Ns{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,Ms.prototype),this.error=e.error,this.error_description=e.error_description}}class Ls extends Ns{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,Ls.prototype),this.error=e.error,this.error_description=e.error_description}}class js extends Ns{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,js.prototype),this.error=e.error,this.error_description=e.error_description}}class Us extends Ns{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,Us.prototype),this.error=e.error,this.error_description=e.error_description}}class $s extends Ns{constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,$s.prototype),this.error=e.error,this.error_description=e.error_description}}class Vs extends Ns{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,Vs.prototype),this.error=e.error,this.error_description=e.error_description}}class zs extends Ns{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,zs.prototype),this.error=e.error,this.error_description=e.error_description}}class Ws extends Ns{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,Ws.prototype),this.error=e.error,this.error_description=e.error_description}}class Hs extends Ns{constructor(e){super({name:"SlowDownException",$fault:"client",...e}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,Hs.prototype),this.error=e.error,this.error_description=e.error_description}}class qs extends Ns{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,qs.prototype),this.error=e.error,this.error_description=e.error_description}}class Gs extends Ns{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,Gs.prototype),this.error=e.error,this.error_description=e.error_description}}const Ks=gn(Ns),Ys=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new Ms({$metadata:sa(e),...r});return mn(i,e.body)},Qs=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new Ls({$metadata:sa(e),...r});return mn(i,e.body)},Xs=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new js({$metadata:sa(e),...r});return mn(i,e.body)},Zs=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new Us({$metadata:sa(e),...r});return mn(i,e.body)},Js=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new $s({$metadata:sa(e),...r});return mn(i,e.body)},ea=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new Vs({$metadata:sa(e),...r});return mn(i,e.body)},ta=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new zs({$metadata:sa(e),...r});return mn(i,e.body)},ra=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new Ws({$metadata:sa(e),...r});return mn(i,e.body)},na=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new Hs({$metadata:sa(e),...r});return mn(i,e.body)},oa=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new qs({$metadata:sa(e),...r});return mn(i,e.body)},ia=async(e,t)=>{const r=wn({}),n=e.body,o=On(n,{error:Qr,error_description:Qr});Object.assign(r,o);const i=new Gs({$metadata:sa(e),...r});return mn(i,e.body)},sa=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),aa=(e,t)=>((e,t)=>Ur(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),ua=async(e,t)=>{const r=await aa(e,t);return r.message=r.message??r.Message,r},ca=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,"x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var o;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class la extends $r{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(kt(t,this.serialize,this.deserialize)),this.middlewareStack.use($t(t,la.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:o,path:i}=await t.endpoint(),s=`${i?.endsWith("/")?i.slice(0,-1):i||""}/token`;let a;return a=JSON.stringify(On(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:e=>In(e)})),new l({protocol:n,hostname:r,port:o,method:"POST",headers:{"content-type":"application/json"},path:s,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await ua(e.body,t)},n=ca(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Ys(r,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Qs(r,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await Xs(r,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Zs(r,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Js(r,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await ea(r,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await ta(r,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await ra(r,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await na(r,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await oa(r,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await ia(r,t);default:const o=r.body;return Ks({output:e,parsedBody:o,errorCode:n})}})(e,t);const r=wn({$metadata:sa(e)}),n=Kr(Yr(await aa(e.body,t)),"body"),o=On(n,{accessToken:Qr,expiresIn:Hr,idToken:Qr,refreshToken:Qr,tokenType:Qr});return Object.assign(r,o),r})(e,t)}}const da="required",ha="fn",pa="argv",fa="ref",ma="PartitionResult",ga="tree",ya="error",Ea="endpoint",Aa={[da]:!1,type:"String"},va={[da]:!0,default:!1,type:"Boolean"},Ca={[fa]:"Endpoint"},ba={[ha]:"booleanEquals",[pa]:[{[fa]:"UseFIPS"},!0]},Sa={[ha]:"booleanEquals",[pa]:[{[fa]:"UseDualStack"},!0]},wa={},Oa={[ha]:"booleanEquals",[pa]:[!0,{[ha]:"getAttr",[pa]:[{[fa]:ma},"supportsFIPS"]}]},xa={[ha]:"booleanEquals",[pa]:[!0,{[ha]:"getAttr",[pa]:[{[fa]:ma},"supportsDualStack"]}]},_a=[Ca],Da=[ba],Ta=[Sa],Ia={version:"1.0",parameters:{Region:Aa,UseDualStack:va,UseFIPS:va,Endpoint:Aa},rules:[{conditions:[{[ha]:"aws.partition",[pa]:[{[fa]:"Region"}],assign:ma}],type:ga,rules:[{conditions:[{[ha]:"isSet",[pa]:_a},{[ha]:"parseURL",[pa]:_a,assign:"url"}],type:ga,rules:[{conditions:Da,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ya},{type:ga,rules:[{conditions:Ta,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ya},{endpoint:{url:Ca,properties:wa,headers:wa},type:Ea}]}]},{conditions:[ba,Sa],type:ga,rules:[{conditions:[Oa,xa],type:ga,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:wa,headers:wa},type:Ea}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ya}]},{conditions:Da,type:ga,rules:[{conditions:[Oa],type:ga,rules:[{type:ga,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:wa,headers:wa},type:Ea}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:ya}]},{conditions:Ta,type:ga,rules:[{conditions:[xa],type:ga,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:wa,headers:wa},type:Ea}]},{error:"DualStack is enabled but this partition does not support DualStack",type:ya}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:wa,headers:wa},type:Ea}]}]},Ba=(e,t={})=>ht(Ia,{endpointParams:e,logger:t.logger});class Ra extends xr{constructor(e){const t=(r=(e=>{vn(process.version);const t=ds(e),r=()=>t().then(En),n=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dr,base64Encoder:e?.base64Encoder??Tr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ba,logger:e?.logger??new br,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??Vt,utf8Decoder:e?.utf8Decoder??V,utf8Encoder:e?.utf8Encoder??W}))(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ji,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ni({serviceId:n.serviceId,clientVersion:"3.370.0"}),maxAttempts:e?.maxAttempts??yi(ir),region:e?.region??yi(wt,Ot),requestHandler:e?.requestHandler??new Nr(r),retryMode:e?.retryMode??yi({...ar,default:async()=>(await r()).retryMode||qt}),sha256:e?.sha256??Mi.bind(null,"sha256"),streamCollector:e?.streamCollector??Lr,useDualstackEndpoint:e?.useDualstackEndpoint??yi(bt),useFipsEndpoint:e?.useFipsEndpoint??yi(St)}})(e),{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"awsssooidc"});var r;const n=Dt(t),o=zt(n),i=xe(sr(o));super(i),this.config=i,this.middlewareStack.use(vr(this.config)),this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(p(this.config)),this.middlewareStack.use(m(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(At(this.config))}destroy(){super.destroy()}}const Fa={},ka=e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new ks(`Token is expired. ${Ps}`,!1)},Pa=(e,t,r=!1)=>{if(void 0===t)throw new ks(`Value not present for '${e}' in SSO Token${r?". Cannot refresh":""}. ${Ps}`,!1)},{writeFile:Na}=Mo.promises,Ma=new Date(0),La=(e={})=>async()=>{const t=await ti(e),r=Po(e),n=t[r];if(!n)throw new ks(`Profile '${r}' could not be found in shared credentials file.`,!1);if(!n.sso_session)throw new ks(`Profile '${r}' is missing required property 'sso_session'.`);const o=n.sso_session,i=(await ei(e))[o];if(!i)throw new ks(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(const e of["sso_start_url","sso_region"])if(!i[e])throw new ks(`Sso session '${o}' is missing required property '${e}'.`,!1);i.sso_start_url;const s=i.sso_region;let a;try{a=await jo(o)}catch(e){throw new ks(`The SSO session token associated with profile=${r} was not found or is invalid. ${Ps}`,!1)}Pa("accessToken",a.accessToken),Pa("expiresAt",a.expiresAt);const{accessToken:u,expiresAt:c}=a,l={token:u,expiration:new Date(c)};if(l.expiration.getTime()-Date.now()>3e5)return l;if(Date.now()-Ma.getTime()<3e4)return ka(l),l;Pa("clientId",a.clientId,!0),Pa("clientSecret",a.clientSecret,!0),Pa("refreshToken",a.refreshToken,!0);try{Ma.setTime(Date.now());const e=await((e,t)=>{const r=(e=>{if(Fa[e])return Fa[e];const t=new Ra({region:e});return Fa[e]=t,t})(t);return r.send(new la({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))})(a,s);Pa("accessToken",e.accessToken),Pa("expiresIn",e.expiresIn);const t=new Date(Date.now()+1e3*e.expiresIn);try{await((e,t)=>{const r=No(e),n=JSON.stringify(t,null,2);return Na(r,n)})(o,{...a,accessToken:e.accessToken,expiresAt:t.toISOString(),refreshToken:e.refreshToken})}catch(e){}return{token:e.accessToken,expiration:t}}catch(e){return ka(l),l}},ja=!1,Ua=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:i,profile:s})=>{let a;const u="To refresh this SSO session run aws sso login with the corresponding profile.";if(t)try{const e=await La({profile:s})();a={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new To(e.message,ja)}else try{a=await jo(e)}catch(e){throw new To(`The SSO session associated with this profile is invalid. ${u}`,ja)}if(new Date(a.expiresAt).getTime()-Date.now()<=9e5)throw new To(`The SSO session associated with this profile has expired. ${u}`,ja);const{accessToken:c}=a,l=i||new fs({region:n});let d;try{d=await l.send(new Fs({accountId:r,roleName:o,accessToken:c}))}catch(e){throw To.from(e,ja)}const{roleCredentials:{accessKeyId:h,secretAccessKey:p,sessionToken:f,expiration:m}={}}=d;if(!(h&&p&&f&&m))throw new To("SSO returns an invalid temporary credential.",ja);return{accessKeyId:h,secretAccessKey:p,sessionToken:f,expiration:new Date(m)}},$a=e=>{const{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:o}=e;if(!(t&&r&&n&&o))throw new To(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e},Va=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:i,ssoSession:s}=e,a=Po(e);if(t||r||n||o||s){if(t&&r&&n&&o)return Ua({ssoStartUrl:t,ssoSession:s,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:i,profile:a});throw new To('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"')}{const r=(await ti(e))[a];if(!r)throw new To(`Profile ${a} was not found.`);if(!ki(r))throw new To(`Profile ${a} is not configured with SSO credentials.`);if(r?.sso_session){const o=(await ei(e))[r.sso_session],i=` configurations in profile ${a} and sso-session ${r.sso_session}`;if(n&&n!==o.sso_region)throw new To("Conflicting SSO region"+i,!1);if(t&&t!==o.sso_start_url)throw new To("Conflicting SSO start_url"+i,!1);r.sso_region=o.sso_region,r.sso_start_url=o.sso_start_url}const{sso_start_url:o,sso_account_id:s,sso_region:u,sso_role_name:c,sso_session:l}=$a(r);return Ua({ssoStartUrl:o,ssoSession:l,ssoAccountId:s,ssoRegion:u,ssoRoleName:c,ssoClient:i,profile:a})}},za=e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.aws_access_key_id&&"string"==typeof e.aws_secret_access_key&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1,Wa=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),Ha=e=>()=>{const{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:o,policyArns:i,policy:s,durationSeconds:a,roleAssumerWithWebIdentity:u}=e;if(!u)throw new To(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:o,PolicyArns:i,Policy:s,DurationSeconds:a})},qa=(e={})=>async()=>{const t=e?.webIdentityTokenFile??process.env.AWS_WEB_IDENTITY_TOKEN_FILE,r=e?.roleArn??process.env.AWS_ROLE_ARN,n=e?.roleSessionName??process.env.AWS_ROLE_SESSION_NAME;if(!t||!r)throw new To("Web identity configuration not specified");return Ha({...e,webIdentityToken:(0,Mo.readFileSync)(t,{encoding:"ascii"}),roleArn:r,roleSessionName:n})()},Ga=async(e,t,r,n={})=>{const o=t[e];if(Object.keys(n).length>0&&za(o))return Wa(o);if(i=o,Boolean(i)&&"object"==typeof i&&"string"==typeof i.role_arn&&["undefined","string"].indexOf(typeof i.role_session_name)>-1&&["undefined","string"].indexOf(typeof i.external_id)>-1&&["undefined","string"].indexOf(typeof i.mfa_serial)>-1&&((e=>"string"==typeof e.source_profile&&void 0===e.credential_source)(i)||(e=>"string"==typeof e.credential_source&&void 0===e.source_profile)(i)))return(async(e,t,r,n={})=>{const o=t[e];if(!r.roleAssumer)throw new To(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);const{source_profile:i}=o;if(i&&i in n)throw new To(`Detected a cycle attempting to resolve credentials for profile ${Po(r)}. Profiles visited: `+Object.keys(n).join(", "),!1);const s=i?Ga(i,t,r,{...n,[i]:!0}):((e,t)=>{const r={EcsContainer:di,Ec2InstanceMetadata:_i,Environment:Io};if(e in r)return r[e]();throw new To(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)})(o.credential_source,e)(),a={RoleArn:o.role_arn,RoleSessionName:o.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:o.external_id},{mfa_serial:u}=o;if(u){if(!r.mfaCodeProvider)throw new To(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);a.SerialNumber=u,a.TokenCode=await r.mfaCodeProvider(u)}const c=await s;return r.roleAssumer(c,a)})(e,t,r,n);var i;if(za(o))return Wa(o);if((e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.web_identity_token_file&&"string"==typeof e.role_arn&&["undefined","string"].indexOf(typeof e.role_session_name)>-1)(o))return(async(e,t)=>qa({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})())(o,r);if((e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.credential_process)(o))return(async(e,t)=>Fi({...e,profile:t})())(r,e);if(ki(o))return(e=>{const{sso_start_url:t,sso_account_id:r,sso_session:n,sso_region:o,sso_role_name:i}=$a(e);return Va({ssoStartUrl:t,ssoAccountId:r,ssoSession:n,ssoRegion:o,ssoRoleName:i})()})(o);throw new To(`Profile ${e} could not be found or parsed in shared credentials file.`)},Ka=(e={})=>async()=>{const t=await ti(e);return Ga(Po(e),t,e)},Ya=(e={})=>A(gi(...e.profile||process.env[ko]?[]:[Io()],Va(e),Ka(e),Fi(e),qa(e),(e=>process.env[ci]||process.env[ui]?di(e):process.env.AWS_EC2_METADATA_DISABLED?async()=>{throw new To("EC2 Instance Metadata Service access disabled")}:_i(e))(e),(async()=>{throw new To("Could not load credentials from any providers",!1)})),(e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5),(e=>void 0!==e.expiration)),Qa="required",Xa="type",Za="fn",Ja="argv",eu="ref",tu="booleanEquals",ru="tree",nu="stringEquals",ou="sigv4",iu="us-east-1",su="endpoint",au="https://sts.{Region}.{PartitionResult#dnsSuffix}",uu="error",cu="getAttr",lu={[Qa]:!1,[Xa]:"String"},du={[Qa]:!0,default:!1,[Xa]:"Boolean"},hu={[eu]:"Endpoint"},pu={[Za]:"isSet",[Ja]:[{[eu]:"Region"}]},fu={[eu]:"Region"},mu={[Za]:"aws.partition",[Ja]:[fu],assign:"PartitionResult"},gu={[eu]:"UseFIPS"},yu={[eu]:"UseDualStack"},Eu={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:ou,signingName:"sts",signingRegion:iu}]},headers:{}},Au={},vu={conditions:[{[Za]:nu,[Ja]:[fu,"aws-global"]}],[su]:Eu,[Xa]:su},Cu={[Za]:tu,[Ja]:[gu,!0]},bu={[Za]:tu,[Ja]:[yu,!0]},Su={[Za]:tu,[Ja]:[!0,{[Za]:cu,[Ja]:[{[eu]:"PartitionResult"},"supportsFIPS"]}]},wu={[eu]:"PartitionResult"},Ou={[Za]:tu,[Ja]:[!0,{[Za]:cu,[Ja]:[wu,"supportsDualStack"]}]},xu=[{[Za]:"isSet",[Ja]:[hu]}],_u=[Cu],Du=[bu],Tu={version:"1.0",parameters:{Region:lu,UseDualStack:du,UseFIPS:du,Endpoint:lu,UseGlobalEndpoint:du},rules:[{conditions:[{[Za]:tu,[Ja]:[{[eu]:"UseGlobalEndpoint"},!0]},{[Za]:"not",[Ja]:xu},pu,mu,{[Za]:tu,[Ja]:[gu,!1]},{[Za]:tu,[Ja]:[yu,!1]}],[Xa]:ru,rules:[{conditions:[{[Za]:nu,[Ja]:[fu,"ap-northeast-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"ap-south-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"ap-southeast-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"ap-southeast-2"]}],endpoint:Eu,[Xa]:su},vu,{conditions:[{[Za]:nu,[Ja]:[fu,"ca-central-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"eu-central-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"eu-north-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"eu-west-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"eu-west-2"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"eu-west-3"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"sa-east-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,iu]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"us-east-2"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"us-west-1"]}],endpoint:Eu,[Xa]:su},{conditions:[{[Za]:nu,[Ja]:[fu,"us-west-2"]}],endpoint:Eu,[Xa]:su},{endpoint:{url:au,properties:{authSchemes:[{name:ou,signingName:"sts",signingRegion:"{Region}"}]},headers:Au},[Xa]:su}]},{conditions:xu,[Xa]:ru,rules:[{conditions:_u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[Xa]:uu},{[Xa]:ru,rules:[{conditions:Du,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[Xa]:uu},{endpoint:{url:hu,properties:Au,headers:Au},[Xa]:su}]}]},{[Xa]:ru,rules:[{conditions:[pu],[Xa]:ru,rules:[{conditions:[mu],[Xa]:ru,rules:[{conditions:[Cu,bu],[Xa]:ru,rules:[{conditions:[Su,Ou],[Xa]:ru,rules:[{[Xa]:ru,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Au,headers:Au},[Xa]:su}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[Xa]:uu}]},{conditions:_u,[Xa]:ru,rules:[{conditions:[Su],[Xa]:ru,rules:[{[Xa]:ru,rules:[{conditions:[{[Za]:nu,[Ja]:["aws-us-gov",{[Za]:cu,[Ja]:[wu,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Au,headers:Au},[Xa]:su},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Au,headers:Au},[Xa]:su}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[Xa]:uu}]},{conditions:Du,[Xa]:ru,rules:[{conditions:[Ou],[Xa]:ru,rules:[{[Xa]:ru,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Au,headers:Au},[Xa]:su}]}]},{error:"DualStack is enabled but this partition does not support DualStack",[Xa]:uu}]},{[Xa]:ru,rules:[vu,{endpoint:{url:au,properties:Au,headers:Au},[Xa]:su}]}]}]},{error:"Invalid Configuration: Missing Region",[Xa]:uu}]}]},Iu=(e,t={})=>ht(Tu,{endpointParams:e,logger:t.logger});class Bu extends xr{constructor(e){const t=(r=(e=>{vn(process.version);const t=ds(e),r=()=>t().then(En),n=(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??Dr,base64Encoder:e?.base64Encoder??Tr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Iu,logger:e?.logger??new br,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Vt,utf8Decoder:e?.utf8Decoder??V,utf8Encoder:e?.utf8Encoder??W}))(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ji,credentialDefaultProvider:e?.credentialDefaultProvider??(o=Ya,e=>o({roleAssumer:xo(e,e.stsClientCtor),roleAssumerWithWebIdentity:_o(e,e.stsClientCtor),...e})),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ni({serviceId:n.serviceId,clientVersion:"3.370.0"}),maxAttempts:e?.maxAttempts??yi(ir),region:e?.region??yi(wt,Ot),requestHandler:e?.requestHandler??new Nr(r),retryMode:e?.retryMode??yi({...ar,default:async()=>(await r()).retryMode||qt}),sha256:e?.sha256??Mi.bind(null,"sha256"),streamCollector:e?.streamCollector??Lr,useDualstackEndpoint:e?.useDualstackEndpoint??yi(bt),useFipsEndpoint:e?.useFipsEndpoint??yi(St)};var o})(e),{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"});var r;const n=Dt(t),o=zt(n),i=xe(((e,{stsClientCtor:t})=>ve({...e,stsClientCtor:t}))(sr(o),{stsClientCtor:Bu}));super(i),this.config=i,this.middlewareStack.use(vr(this.config)),this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(p(this.config)),this.middlewareStack.use(m(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(At(this.config))}destroy(){super.destroy()}}const Ru=(e,t)=>t?class extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,Fu=(e={},t)=>xo(e,Ru(Bu,t)),ku=(e={},t)=>_o(e,Ru(Bu,t)),Pu="required",Nu="fn",Mu="argv",Lu="ref",ju="PartitionResult",Uu="tree",$u="error",Vu="endpoint",zu={[Pu]:!1,type:"String"},Wu={[Pu]:!0,default:!1,type:"Boolean"},Hu={[Lu]:"Endpoint"},qu={[Nu]:"booleanEquals",[Mu]:[{[Lu]:"UseFIPS"},!0]},Gu={[Nu]:"booleanEquals",[Mu]:[{[Lu]:"UseDualStack"},!0]},Ku={},Yu={[Nu]:"booleanEquals",[Mu]:[!0,{[Nu]:"getAttr",[Mu]:[{[Lu]:ju},"supportsFIPS"]}]},Qu={[Nu]:"booleanEquals",[Mu]:[!0,{[Nu]:"getAttr",[Mu]:[{[Lu]:ju},"supportsDualStack"]}]},Xu=[Hu],Zu=[qu],Ju=[Gu],ec={version:"1.0",parameters:{Region:zu,UseDualStack:Wu,UseFIPS:Wu,Endpoint:zu},rules:[{conditions:[{[Nu]:"aws.partition",[Mu]:[{[Lu]:"Region"}],assign:ju}],type:Uu,rules:[{conditions:[{[Nu]:"isSet",[Mu]:Xu},{[Nu]:"parseURL",[Mu]:Xu,assign:"url"}],type:Uu,rules:[{conditions:Zu,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:$u},{type:Uu,rules:[{conditions:Ju,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:$u},{endpoint:{url:Hu,properties:Ku,headers:Ku},type:Vu}]}]},{conditions:[qu,Gu],type:Uu,rules:[{conditions:[Yu,Qu],type:Uu,rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ku,headers:Ku},type:Vu}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:$u}]},{conditions:Zu,type:Uu,rules:[{conditions:[Yu],type:Uu,rules:[{type:Uu,rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ku,headers:Ku},type:Vu}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:$u}]},{conditions:Ju,type:Uu,rules:[{conditions:[Qu],type:Uu,rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ku,headers:Ku},type:Vu}]},{error:"DualStack is enabled but this partition does not support DualStack",type:$u}]},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:Ku,headers:Ku},type:Vu}]}]},tc=(e,t={})=>ht(ec,{endpointParams:e,logger:t.logger});class rc extends xr{constructor(e){const t=(r=(e=>{vn(process.version);const t=ds(e),r=()=>t().then(En),n=(e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??Dr,base64Encoder:e?.base64Encoder??Tr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??tc,logger:e?.logger??new br,serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??Vt,utf8Decoder:e?.utf8Decoder??V,utf8Encoder:e?.utf8Encoder??W}))(e);return{...n,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??ji,credentialDefaultProvider:e?.credentialDefaultProvider??(o=Ya,e=>o({roleAssumer:Fu(e),roleAssumerWithWebIdentity:ku(e),...e})),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ni({serviceId:n.serviceId,clientVersion:"3.370.0"}),maxAttempts:e?.maxAttempts??yi(ir),region:e?.region??yi(wt,Ot),requestHandler:e?.requestHandler??new Nr(r),retryMode:e?.retryMode??yi({...ar,default:async()=>(await r()).retryMode||qt}),sha256:e?.sha256??Mi.bind(null,"sha256"),streamCollector:e?.streamCollector??Lr,useDualstackEndpoint:e?.useDualstackEndpoint??yi(bt),useFipsEndpoint:e?.useFipsEndpoint??yi(St)};var o})(e),{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"});var r;const n=Dt(t),o=zt(n),i=sr(o),s=xe(ve(i));super(s),this.config=s,this.middlewareStack.use(vr(this.config)),this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(p(this.config)),this.middlewareStack.use(m(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(At(this.config))}destroy(){super.destroy()}}class nc extends fn{constructor(e){super(e),Object.setPrototypeOf(this,nc.prototype)}}class oc extends nc{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,oc.prototype)}}class ic extends nc{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,ic.prototype)}}class sc extends nc{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,sc.prototype)}}class ac extends nc{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,ac.prototype)}}class uc extends nc{constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,uc.prototype)}}class cc extends nc{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,cc.prototype)}}class lc extends nc{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,lc.prototype)}}class dc extends nc{constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,dc.prototype)}}class hc extends nc{constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,hc.prototype)}}const pc=async(e,t)=>{const r=e.body,n=In(r),o=new dc({$metadata:Sc(e),...n});return mn(o,r)},fc=async(e,t)=>{const r=e.body,n=In(r),o=new oc({$metadata:Sc(e),...n});return mn(o,r)},mc=async(e,t)=>{const r=e.body,n=In(r),o=new hc({$metadata:Sc(e),...n});return mn(o,r)},gc=async(e,t)=>{const r=e.body,n=In(r),o=new ic({$metadata:Sc(e),...n});return mn(o,r)},yc=async(e,t)=>{const r=e.body,n=In(r),o=new sc({$metadata:Sc(e),...n});return mn(o,r)},Ec=async(e,t)=>{const r=e.body,n=In(r),o=new ac({$metadata:Sc(e),...n});return mn(o,r)},Ac=async(e,t)=>{const r=e.body,n=In(r),o=new uc({$metadata:Sc(e),...n});return mn(o,r)},vc=async(e,t)=>{const r=e.body,n=In(r),o=new lc({$metadata:Sc(e),...n});return mn(o,r)},Cc=async(e,t)=>{const r=e.body,n=In(r),o=new cc({$metadata:Sc(e),...n});return mn(o,r)},bc=(e,t)=>On(e,{AccessKeyId:Qr,Expiration:e=>Kr((e=>{if(null==e)return;let t;if("number"==typeof e)t=e;else{if("string"!=typeof e)throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");t=(e=>zr("string"==typeof e?Zr(e):e))(e)}if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))})(zr(e))),SecretKey:Qr,SessionToken:Qr}),Sc=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),wc=gn(nc),Oc=async(e,t,r,n,o)=>{const{hostname:i,protocol:s="https",port:a,path:u}=await e.endpoint(),c={protocol:s,hostname:i,port:a,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+r:u+r,headers:t};return void 0!==n&&(c.hostname=n),void 0!==o&&(c.body=o),new l(c)};function xc(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}}const _c=(e,t)=>((e,t)=>Ur(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),Dc=async(e,t)=>{const r=await _c(e,t);return r.message=r.message??r.Message,r},Tc=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,"x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var o;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class Ic extends $r{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(kt(t,this.serialize,this.deserialize)),this.middlewareStack.use($t(t,Ic.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=xc("GetCredentialsForIdentity");let n;return n=JSON.stringify(In(e)),Oc(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await Dc(e.body,t)},n=Tc(e,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await pc(r,t);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await fc(r,t);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await mc(r,t);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await gc(r,t);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Ec(r,t);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await Ac(r,t);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await vc(r,t);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await Cc(r,t);default:const o=r.body;return wc({output:e,parsedBody:o,errorCode:n})}})(e,t);let r={};return r=((e,t)=>On(e,{Credentials:e=>bc(e),IdentityId:Qr}))(await _c(e.body,t)),{$metadata:Sc(e),...r}})(e,t)}}function Bc(e){return Promise.all(Object.keys(e).reduce(((t,r)=>{const n=e[r];return"string"==typeof n?t.push([r,n]):t.push(n().then((e=>[r,e]))),t}),[])).then((e=>e.reduce(((e,[t,r])=>(e[t]=r,e)),{})))}function Rc(e){return async()=>{const{Credentials:{AccessKeyId:t=Fc(),Expiration:r,SecretKey:n=Pc(),SessionToken:o}=kc()}=await e.client.send(new Ic({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await Bc(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:t,secretAccessKey:n,sessionToken:o,expiration:r}}}function Fc(){throw new To("Response from Amazon Cognito contained no access key ID")}function kc(){throw new To("Response from Amazon Cognito contained no credentials")}function Pc(){throw new To("Response from Amazon Cognito contained no secret key")}const Nc=e=>Rc({...e,client:new rc(e.clientConfig??{})});class Mc extends $r{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(kt(t,this.serialize,this.deserialize)),this.middlewareStack.use($t(t,Mc.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const r=xc("GetId");let n;return n=JSON.stringify(In(e)),Oc(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await Dc(e.body,t)},n=Tc(e,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await pc(r,t);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await fc(r,t);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await gc(r,t);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await yc(r,t);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Ec(r,t);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await Ac(r,t);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await vc(r,t);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await Cc(r,t);default:const o=r.body;return wc({output:e,parsedBody:o,errorCode:n})}})(e,t);const r=await _c(e.body,t);let n={};return n=In(r),{$metadata:Sc(e),...n}})(e,t)}}const Lc="IdentityIds";class jc{constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",(t=>{const r=t.get(e);return new Promise((e=>{r.onerror=()=>e(null),r.onsuccess=()=>e(r.result?r.result.value:null)}))})).catch((()=>null))}removeItem(e){return this.withObjectStore("readwrite",(t=>{const r=t.delete(e);return new Promise(((e,t)=>{r.onerror=()=>t(r.error),r.onsuccess=()=>e()}))}))}setItem(e,t){return this.withObjectStore("readwrite",(r=>{const n=r.put({id:e,value:t});return new Promise(((e,t)=>{n.onerror=()=>t(n.error),n.onsuccess=()=>e()}))}))}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise(((t,r)=>{e.onsuccess=()=>{t(e.result)},e.onerror=()=>{r(e.error)},e.onblocked=()=>{r(new Error("Unable to access DB"))},e.onupgradeneeded=()=>{const t=e.result;t.onerror=()=>{r(new Error("Failed to create object store"))},t.createObjectStore(Lc,{keyPath:"id"})}}))}withObjectStore(e,t){return this.getDb().then((r=>{const n=r.transaction(Lc,e);return n.oncomplete=()=>r.close(),new Promise(((e,r)=>{n.onerror=()=>r(n.error),e(t(n.objectStore(Lc)))})).catch((e=>{throw r.close(),e}))}))}}const Uc=new class{constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,t){this.store[e]=t}};function $c(){return"object"==typeof self&&self.indexedDB?new jc:"object"==typeof window&&window.localStorage?window.localStorage:Uc}function Vc(){throw new To("Response from Amazon Cognito contained no identity ID")}const zc=e=>function({accountId:e,cache:t=$c(),client:r,customRoleArn:n,identityPoolId:o,logins:i,userIdentifier:s=(i&&0!==Object.keys(i).length?void 0:"ANONYMOUS")}){const a=s?`aws:cognito-identity-credentials:${o}:${s}`:void 0;let u=async()=>{let s=a&&await t.getItem(a);if(!s){const{IdentityId:n=Vc()}=await r.send(new Mc({AccountId:e,IdentityPoolId:o,Logins:i?await Bc(i):void 0}));s=n,a&&Promise.resolve(t.setItem(a,s)).catch((()=>{}))}return u=Rc({client:r,customRoleArn:n,logins:i,identityId:s}),u()};return()=>u().catch((async e=>{throw a&&Promise.resolve(t.removeItem(a)).catch((()=>{})),e}))}({...e,client:new rc(e.clientConfig??{})}),Wc=e=>di(e),Hc=()=>Io(),qc=(e={})=>Ka({...e,roleAssumer:e.roleAssumer??Fu(e.clientConfig,e.clientPlugins),roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity??ku(e.clientConfig,e.clientPlugins)}),Gc=e=>_i(e),Kc=(e={})=>Ya({...e,roleAssumer:e.roleAssumer??Fu(e.clientConfig,e.clientPlugins),roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity??ku(e.clientConfig,e.clientPlugins)}),Yc=e=>Fi(e),Qc=(e={})=>Va({ssoClient:e.clientConfig?new fs(e.clientConfig):void 0,...e}),Xc=e=>{let t;return async()=>{const r={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(r?.SerialNumber){if(!e.mfaCodeProvider)throw new To("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",!1);r.TokenCode=await e.mfaCodeProvider(r?.SerialNumber)}if(t||(t=new Bu({...e.clientConfig,credentials:e.masterCredentials})),e.clientPlugins)for(const r of e.clientPlugins)t.middlewareStack.use(r);const{Credentials:n}=await t.send(new bo(r));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw new To(`Invalid response from STS.assumeRole call with role ${r.RoleArn}`);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration}}},Zc=(e={})=>qa({...e,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity??ku(e.clientConfig,e.clientPlugins)}),Jc=e=>Ha({...e,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity??ku(e.clientConfig,e.clientPlugins)})},6778:(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromUtf8:()=>n,toUtf8:()=>o});const n=e=>"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const t=[];for(let r=0,n=e.length;r<n;r++){const n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(n>>6|192,63&n|128);else if(r+1<e.length&&55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))){const o=65536+((1023&n)<<10)+(1023&e.charCodeAt(++r));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)})(e),o=e=>"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let t="";for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n<128)t+=String.fromCharCode(n);else if(192<=n&&n<224){const o=e[++r];t+=String.fromCharCode((31&n)<<6|63&o)}else if(240<=n&&n<365){const o="%"+[n,e[++r],e[++r],e[++r]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t})(e)},1595:(e,t,r)=>{var n=t,o=r(7310),i=r(3477),s=r(6113),a=r(4680)(1e3);function u(e,t,r){return s.createHmac("sha256",e).update(t,"utf8").digest(r)}function c(e,t){return s.createHash("sha256").update(e,"utf8").digest(t)}function l(e){return e.replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function d(e){return l(encodeURIComponent(e))}var h={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0};function p(e,t){"string"==typeof e&&(e=o.parse(e));var r=e.headers=e.headers||{},n=(!this.service||!this.region)&&this.matchHost(e.hostname||e.host||r.Host||r.host);this.request=e,this.credentials=t||this.defaultCredentials(),this.service=e.service||n[0]||"",this.region=e.region||n[1]||"us-east-1","email"===this.service&&(this.service="ses"),!e.method&&e.body&&(e.method="POST"),r.Host||r.host||(r.Host=e.hostname||e.host||this.createHost(),e.port&&(r.Host+=":"+e.port)),e.hostname||e.host||(e.hostname=r.Host||r.host),this.isCodeCommitGit="codecommit"===this.service&&"GIT"===e.method}p.prototype.matchHost=function(e){var t=((e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/)||[]).slice(1,3);if("es"===t[1]&&(t=t.reverse()),"s3"==t[1])t[0]="s3",t[1]="us-east-1";else for(var r=0;r<2;r++)if(/^s3-/.test(t[r])){t[1]=t[r].slice(3),t[0]="s3";break}return t},p.prototype.isSingleRegion=function(){return["s3","sdb"].indexOf(this.service)>=0&&"us-east-1"===this.region||["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0},p.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region;return("ses"===this.service?"email":this.service)+e+".amazonaws.com"},p.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,r=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},this.credentials.sessionToken&&(e["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||e["X-Amz-Expires"]||(e["X-Amz-Expires"]=86400),e["X-Amz-Date"]?this.datetime=e["X-Amz-Date"]:e["X-Amz-Date"]=this.getDateTime(),e["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",e["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),e["X-Amz-SignedHeaders"]=this.signedHeaders()):(t.doNotModifyHeaders||this.isCodeCommitGit||(!t.body||r["Content-Type"]||r["content-type"]||(r["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),!t.body||r["Content-Length"]||r["content-length"]||(r["Content-Length"]=Buffer.byteLength(t.body)),!this.credentials.sessionToken||r["X-Amz-Security-Token"]||r["x-amz-security-token"]||(r["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||r["X-Amz-Content-Sha256"]||r["x-amz-content-sha256"]||(r["X-Amz-Content-Sha256"]=c(this.request.body||"","hex")),r["X-Amz-Date"]||r["x-amz-date"]?this.datetime=r["X-Amz-Date"]||r["x-amz-date"]:r["X-Amz-Date"]=this.getDateTime()),delete r.Authorization,delete r.authorization)},p.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.request.headers.Authorization=this.authHeader(),this.request.path=this.formatPath(),this.request},p.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,""),this.isCodeCommitGit&&(this.datetime=this.datetime.slice(0,-1))}return this.datetime},p.prototype.getDate=function(){return this.getDateTime().substr(0,8)},p.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")},p.prototype.signature=function(){var e,t,r,n=this.getDate(),o=[this.credentials.secretAccessKey,n,this.region,this.service].join(),i=a.get(o);return i||(e=u("AWS4"+this.credentials.secretAccessKey,n),t=u(e,this.region),r=u(t,this.service),i=u(r,"aws4_request"),a.set(o,i)),u(i,this.stringToSign(),"hex")},p.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),c(this.canonicalString(),"hex")].join("\n")},p.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e,t=this.parsedPath.path,r=this.parsedPath.query,n=this.request.headers,o="",i="s3"!==this.service,s="s3"===this.service||this.request.doNotEncodePath,a="s3"===this.service,u="s3"===this.service;if(e="s3"===this.service&&this.request.signQuery?"UNSIGNED-PAYLOAD":this.isCodeCommitGit?"":n["X-Amz-Content-Sha256"]||n["x-amz-content-sha256"]||c(this.request.body||"","hex"),r){var l=Object.keys(r).reduce((function(e,t){return t?(e[d(t)]=Array.isArray(r[t])&&u?r[t][0]:r[t],e):e}),{}),h=[];Object.keys(l).sort().forEach((function(e){Array.isArray(l[e])?l[e].map(d).sort().forEach((function(t){h.push(e+"="+t)})):h.push(e+"="+d(l[e]))})),o=h.join("&")}return"/"!==t&&(i&&(t=t.replace(/\/{2,}/g,"/")),"/"!==(t=t.split("/").reduce((function(e,t){return i&&".."===t?e.pop():i&&"."===t||(s&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push(d(t))),e}),[]).join("/"))[0]&&(t="/"+t),a&&(t=t.replace(/%2F/g,"/"))),[this.request.method||"GET",t,o,this.canonicalHeaders()+"\n",this.signedHeaders(),e].join("\n")},p.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){return null==h[e.toLowerCase()]})).sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1})).map((function(t){return t.toLowerCase()+":"+e[t].toString().trim().replace(/\s+/g," ")})).join("\n")},p.prototype.signedHeaders=function(){return Object.keys(this.request.headers).map((function(e){return e.toLowerCase()})).filter((function(e){return null==h[e]})).sort().join(";")},p.prototype.credentialString=function(){return[this.getDate(),this.region,this.service,"aws4_request"].join("/")},p.prototype.defaultCredentials=function(){var e=process.env;return{accessKeyId:e.AWS_ACCESS_KEY_ID||e.AWS_ACCESS_KEY,secretAccessKey:e.AWS_SECRET_ACCESS_KEY||e.AWS_SECRET_KEY,sessionToken:e.AWS_SESSION_TOKEN}},p.prototype.parsePath=function(){var e=this.request.path||"/";/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(e)&&(e=encodeURI(decodeURI(e)));var t=e.indexOf("?"),r=null;t>=0&&(r=i.parse(e.slice(t+1)),e=e.slice(0,t)),this.parsedPath={path:e,query:r}},p.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+l(i.stringify(t))):e},n.RequestSigner=p,n.sign=function(e,t){return new p(e,t).sign()}},4680:e=>{function t(e){this.capacity=0|e,this.map=Object.create(null),this.list=new r}function r(){this.firstNode=null,this.lastNode=null}function n(e,t){this.key=e,this.val=t,this.prev=null,this.next=null}e.exports=function(e){return new t(e)},t.prototype.get=function(e){var t=this.map[e];if(null!=t)return this.used(t),t.val},t.prototype.set=function(e,t){var r=this.map[e];if(null!=r)r.val=t;else{if(this.capacity||this.prune(),!this.capacity)return!1;r=new n(e,t),this.map[e]=r,this.capacity--}return this.used(r),!0},t.prototype.used=function(e){this.list.moveToFront(e)},t.prototype.prune=function(){var e=this.list.pop();null!=e&&(delete this.map[e.key],this.capacity++)},r.prototype.moveToFront=function(e){this.firstNode!=e&&(this.remove(e),null==this.firstNode?(this.firstNode=e,this.lastNode=e,e.prev=null,e.next=null):(e.prev=null,e.next=this.firstNode,e.next.prev=e,this.firstNode=e))},r.prototype.pop=function(){var e=this.lastNode;return null!=e&&this.remove(e),e},r.prototype.remove=function(e){this.firstNode==e?this.firstNode=e.next:null!=e.prev&&(e.prev.next=e.next),this.lastNode==e?this.lastNode=e.prev:null!=e.next&&(e.next.prev=e.prev)}},3819:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},7728:e=>{e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},1176:(e,t,r)=>{var n=r(5052);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},9540:(e,t,r)=>{var n=r(905),o=r(4237),i=r(3231),s=function(e){return function(t,r,s){var a,u=n(t),c=o(u.length),l=i(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},5738:(e,t,r)=>{"use strict";var n=r(3819),o=r(1176),i=r(2391),s=r(5762),a=r(8787),u=r(95),c=r(6407),l=r(1333),d=r(4027),h=l("Promise"),p=c.set,f=c.get,m=u("toStringTag");e.exports=function(e,t){var r=function(e){e.next=n(e.iterator.next),e.done=!1,e.ignoreArgument=!t,p(this,e)};return r.prototype=a(i(d),{next:function(r){var n=this,i=!!arguments.length;return new h((function(s){var a=f(n),u=i?[a.ignoreArgument?void 0:r]:t?[]:[void 0];a.ignoreArgument=!1,s(a.done?{done:!0,value:void 0}:o(e.call(a,h,u)))}))},return:function(e){var t=this;return new h((function(r,n){var i=f(t),s=i.iterator;i.done=!0;var a=s.return;if(void 0===a)return r({done:!0,value:e});h.resolve(a.call(s,e)).then((function(t){o(t),r({done:!0,value:e})}),n)}))},throw:function(e){var t=this;return new h((function(r,n){var o=f(t),i=o.iterator;o.done=!0;var s=i.throw;if(void 0===s)return n(e);r(s.call(i,e))}))}}),t||s(r.prototype,m,"Generator"),r}},2676:(e,t,r)=>{"use strict";var n=r(3819),o=r(1176),i=r(1333)("Promise"),s=[].push,a=function(e){var t=0==e,r=1==e,a=2==e,u=3==e;return function(e,c){o(e);var l=n(e.next),d=t?[]:void 0;return t||n(c),new i((function(n,h){var p=function(t,r){try{var n=e.return;if(void 0!==n)return i.resolve(n.call(e)).then((function(){t(r)}),(function(e){h(e)}))}catch(e){return h(e)}t(r)},f=function(e){p(h,e)},m=function(){try{i.resolve(o(l.call(e))).then((function(e){try{if(o(e).done)n(t?d:!u&&(a||void 0));else{var l=e.value;t?(s.call(d,l),m()):i.resolve(c(l)).then((function(e){r?m():a?e?m():p(n,!1):e?p(n,u||l):m()}),f)}}catch(e){f(e)}}),f)}catch(e){f(e)}};m()}))}};e.exports={toArray:a(0),forEach:a(1),every:a(2),some:a(3),find:a(4)}},4027:(e,t,r)=>{var n,o,i=r(9859),s=r(5353),a=r(2391),u=r(7567),c=r(5762),l=r(95),d=r(4231),h="USE_FUNCTION_CONSTRUCTOR",p=l("asyncIterator"),f=i.AsyncIterator,m=s.AsyncIteratorPrototype;if(m)n=m;else if("function"==typeof f)n=f.prototype;else if(s[h]||i[h])try{o=u(u(u(Function("return async function*(){}()")()))),u(o)===Object.prototype&&(n=o)}catch(e){}n?d&&(n=a(n)):n={},"function"!=typeof n[p]&&c(n,p,(function(){return this})),e.exports=n},4960:(e,t,r)=>{var n=r(1176),o=r(7281);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},7079:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},1589:(e,t,r)=>{var n=r(1601),o=r(7079),i=r(95)("toStringTag"),s="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:s?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},7081:(e,t,r)=>{var n=r(816),o=r(4826),i=r(7933),s=r(1787);e.exports=function(e,t){for(var r=o(t),a=s.f,u=i.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||a(e,l,u(t,l))}}},7528:(e,t,r)=>{var n=r(4229);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5762:(e,t,r)=>{var n=r(7400),o=r(1787),i=r(5358);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5358:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7400:(e,t,r)=>{var n=r(4229);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2635:(e,t,r)=>{var n=r(9859),o=r(5052),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},598:(e,t,r)=>{var n=r(1333);e.exports=n("navigator","userAgent")||""},6358:(e,t,r)=>{var n,o,i=r(9859),s=r(598),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l?o=(n=l.split("."))[0]<4?1:n[0]+n[1]:s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},3837:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3103:(e,t,r)=>{var n=r(9859),o=r(7933).f,i=r(5762),s=r(7487),a=r(2079),u=r(7081),c=r(6541);e.exports=function(e,t){var r,l,d,h,p,f=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[f]||a(f,{}):(n[f]||{}).prototype)for(l in t){if(h=t[l],d=e.noTargetGet?(p=o(r,l))&&p.value:r[l],!c(m?l:f+(g?".":"#")+l,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),s(r,l,h,e)}}},4229:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7636:(e,t,r)=>{var n=r(3819);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},1333:(e,t,r)=>{var n=r(9859);e.exports=function(e,t){return arguments.length<2?"function"==typeof(r=n[e])?r:void 0:n[e]&&n[e][t];var r}},8830:(e,t,r)=>{var n=r(1589),o=r(5495),i=r(95)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},8403:(e,t,r)=>{var n=r(1176),o=r(8830);e.exports=function(e,t){var r=arguments.length<2?o(e):t;if("function"!=typeof r)throw TypeError(String(e)+" is not iterable");return n(r.call(e))}},9859:e=>{var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},816:(e,t,r)=>{var n=r(2991),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(n(e),t)}},5977:e=>{e.exports={}},3777:(e,t,r)=>{var n=r(1333);e.exports=n("document","documentElement")},4394:(e,t,r)=>{var n=r(7400),o=r(4229),i=r(2635);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9337:(e,t,r)=>{var n=r(4229),o=r(7079),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},8511:(e,t,r)=>{var n=r(5353),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},6407:(e,t,r)=>{var n,o,i,s=r(8694),a=r(9859),u=r(5052),c=r(5762),l=r(816),d=r(5353),h=r(4399),p=r(5977),f="Object already initialized",m=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new m),y=g.get,E=g.has,A=g.set;n=function(e,t){if(E.call(g,e))throw new TypeError(f);return t.facade=e,A.call(g,e,t),t},o=function(e){return y.call(g,e)||{}},i=function(e){return E.call(g,e)}}else{var v=h("state");p[v]=!0,n=function(e,t){if(l(e,v))throw new TypeError(f);return t.facade=e,c(e,v,t),t},o=function(e){return l(e,v)?e[v]:{}},i=function(e){return l(e,v)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},1943:(e,t,r)=>{var n=r(95),o=r(5495),i=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},6541:(e,t,r)=>{var n=r(4229),o=/#|\.prototype\./,i=function(e,t){var r=a[s(e)];return r==c||r!=u&&("function"==typeof t?n(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},5052:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4231:e=>{e.exports=!1},9395:(e,t,r)=>{var n=r(1333),o=r(6969);e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return"function"==typeof t&&Object(e)instanceof t}},9003:(e,t,r)=>{var n=r(1176),o=r(1943),i=r(4237),s=r(7636),a=r(8403),u=r(8830),c=r(7281),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var d,h,p,f,m,g,y,E=r&&r.that,A=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),b=s(t,E,1+A+C),S=function(e){return d&&c(d,"normal",e),new l(!0,e)},w=function(e){return A?(n(e),C?b(e[0],e[1],S):b(e[0],e[1])):C?b(e,S):b(e)};if(v)d=e;else{if("function"!=typeof(h=u(e)))throw TypeError("Target is not iterable");if(o(h)){for(p=0,f=i(e.length);f>p;p++)if((m=w(e[p]))&&m instanceof l)return m;return new l(!1)}d=a(e,h)}for(g=d.next;!(y=g.call(d)).done;){try{m=w(y.value)}catch(e){c(d,"throw",e)}if("object"==typeof m&&m&&m instanceof l)return m}return new l(!1)}},7281:(e,t,r)=>{var n=r(1176);e.exports=function(e,t,r){var o,i;n(e);try{if(void 0===(o=e.return)){if("throw"===t)throw r;return r}o=o.call(e)}catch(e){i=!0,o=e}if("throw"===t)throw r;if(i)throw o;return n(o),r}},8671:(e,t,r)=>{"use strict";var n=r(3819),o=r(1176),i=r(2391),s=r(5762),a=r(8787),u=r(95),c=r(6407),l=r(693).IteratorPrototype,d=c.set,h=c.get,p=u("toStringTag");e.exports=function(e,t){var r=function(e){e.next=n(e.iterator.next),e.done=!1,e.ignoreArg=!t,d(this,e)};return r.prototype=a(i(l),{next:function(r){var n=h(this),o=arguments.length?[n.ignoreArg?void 0:r]:t?[]:[void 0];n.ignoreArg=!1;var i=n.done?void 0:e.call(n,o);return{done:n.done,value:i}},return:function(e){var t=h(this),r=t.iterator;t.done=!0;var n=r.return;return{done:!0,value:void 0===n?e:o(n.call(r,e)).value}},throw:function(e){var t=h(this),r=t.iterator;t.done=!0;var n=r.throw;if(void 0===n)throw e;return n.call(r,e)}}),t||s(r.prototype,p,"Generator"),r}},693:(e,t,r)=>{"use strict";var n,o,i,s=r(4229),a=r(2391),u=r(7567),c=r(5762),l=r(95),d=r(4231),h=l("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):p=!0),null==n||s((function(){var e={};return n[h].call(e)!==e}))?n={}:d&&(n=a(n)),"function"!=typeof n[h]&&c(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},5495:e=>{e.exports={}},3839:(e,t,r)=>{var n=r(6358),o=r(4229);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8694:(e,t,r)=>{var n=r(9859),o=r(8511),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},2391:(e,t,r)=>{var n,o=r(1176),i=r(219),s=r(3837),a=r(5977),u=r(3777),c=r(2635),l=r(4399),d="prototype",h="script",p=l("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?g(n):(t=c("iframe"),r="java"+h+":",t.style.display="none",u.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var o=s.length;o--;)delete y[d][s[o]];return y()};a[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[d]=o(e),r=new f,f[d]=null,r[p]=e):r=y(),void 0===t?r:i(r,t)}},219:(e,t,r)=>{var n=r(7400),o=r(1787),i=r(1176),s=r(5632);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=s(t),a=n.length,u=0;a>u;)o.f(e,r=n[u++],t[r]);return e}},1787:(e,t,r)=>{var n=r(7400),o=r(4394),i=r(1176),s=r(9310),a=Object.defineProperty;t.f=n?a:function(e,t,r){if(i(e),t=s(t),i(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7933:(e,t,r)=>{var n=r(7400),o=r(9195),i=r(5358),s=r(905),a=r(9310),u=r(816),c=r(4394),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=s(e),t=a(t),c)try{return l(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},8151:(e,t,r)=>{var n=r(140),o=r(3837).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},894:(e,t)=>{t.f=Object.getOwnPropertySymbols},7567:(e,t,r)=>{var n=r(816),o=r(2991),i=r(4399),s=r(7528),a=i("IE_PROTO"),u=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=o(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},140:(e,t,r)=>{var n=r(816),o=r(905),i=r(9540).indexOf,s=r(5977);e.exports=function(e,t){var r,a=o(e),u=0,c=[];for(r in a)!n(s,r)&&n(a,r)&&c.push(r);for(;t.length>u;)n(a,r=t[u++])&&(~i(c,r)||c.push(r));return c}},5632:(e,t,r)=>{var n=r(140),o=r(3837);e.exports=Object.keys||function(e){return n(e,o)}},9195:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2914:(e,t,r)=>{var n=r(5052);e.exports=function(e,t){var r,o;if("string"===t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if("string"!==t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},4826:(e,t,r)=>{var n=r(1333),o=r(8151),i=r(894),s=r(1176);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=i.f;return r?t.concat(r(e)):t}},8787:(e,t,r)=>{var n=r(7487);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},7487:(e,t,r)=>{var n=r(9859),o=r(5762),i=r(816),s=r(2079),a=r(8511),u=r(6407),c=u.get,l=u.enforce,d=String(String).split("String");(e.exports=function(e,t,r,a){var u,c=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||o(r,"name",t),(u=l(r)).source||(u.source=d.join("string"==typeof t?t:""))),e!==n?(c?!p&&e[t]&&(h=!0):delete e[t],h?e[t]=r:o(e,t,r)):h?e[t]=r:s(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},8885:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},2079:(e,t,r)=>{var n=r(9859);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},4399:(e,t,r)=>{var n=r(3036),o=r(1441),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5353:(e,t,r)=>{var n=r(9859),o=r(2079),i="__core-js_shared__",s=n[i]||o(i,{});e.exports=s},3036:(e,t,r)=>{var n=r(4231),o=r(5353);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},3231:(e,t,r)=>{var n=r(6051),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},905:(e,t,r)=>{var n=r(9337),o=r(8885);e.exports=function(e){return n(o(e))}},6051:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},4237:(e,t,r)=>{var n=r(6051),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},2991:(e,t,r)=>{var n=r(8885);e.exports=function(e){return Object(n(e))}},2066:(e,t,r)=>{var n=r(5052),o=r(9395),i=r(2914),s=r(95)("toPrimitive");e.exports=function(e,t){if(!n(e)||o(e))return e;var r,a=e[s];if(void 0!==a){if(void 0===t&&(t="default"),r=a.call(e,t),!n(r)||o(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),i(e,t)}},9310:(e,t,r)=>{var n=r(2066),o=r(9395);e.exports=function(e){var t=n(e,"string");return o(t)?t:String(t)}},1601:(e,t,r)=>{var n={};n[r(95)("toStringTag")]="z",e.exports="[object z]"===String(n)},1441:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},6969:(e,t,r)=>{var n=r(3839);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},95:(e,t,r)=>{var n=r(9859),o=r(3036),i=r(816),s=r(1441),a=r(3839),u=r(6969),c=o("wks"),l=n.Symbol,d=u?l:l&&l.withoutSetter||s;e.exports=function(e){return i(c,e)&&(a||"string"==typeof c[e])||(a&&i(l,e)?c[e]=l[e]:c[e]=d("Symbol."+e)),c[e]}},0:(e,t,r)=>{"use strict";var n=r(3103),o=r(3819),i=r(1176),s=r(5738)((function(e,t){var r=this,n=r.filterer;return new e((function(o,s){var a=function(){try{e.resolve(i(r.next.apply(r.iterator,t))).then((function(t){try{if(i(t).done)r.done=!0,o({done:!0,value:void 0});else{var u=t.value;e.resolve(n(u)).then((function(e){e?o({done:!1,value:u}):a()}),s)}}catch(e){s(e)}}),s)}catch(e){s(e)}};a()}))}));n({target:"AsyncIterator",proto:!0,real:!0},{filter:function(e){return new s({iterator:i(this),filterer:o(e)})}})},8166:(e,t,r)=>{"use strict";var n=r(3103),o=r(2676).find;n({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},4715:(e,t,r)=>{"use strict";var n=r(3103),o=r(2676).forEach;n({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},4925:(e,t,r)=>{"use strict";var n=r(3103),o=r(3819),i=r(1176),s=r(5738)((function(e,t){var r=this,n=r.mapper;return e.resolve(i(r.next.apply(r.iterator,t))).then((function(t){return i(t).done?(r.done=!0,{done:!0,value:void 0}):e.resolve(n(t.value)).then((function(e){return{done:!1,value:e}}))}))}));n({target:"AsyncIterator",proto:!0,real:!0},{map:function(e){return new s({iterator:i(this),mapper:o(e)})}})},4407:(e,t,r)=>{"use strict";var n=r(3103),o=r(3819),i=r(1176),s=r(1333)("Promise");n({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){var t=i(this),r=o(t.next),n=arguments.length<2,a=n?void 0:arguments[1];return o(e),new s((function(o,u){var c=function(){try{s.resolve(i(r.call(t))).then((function(t){try{if(i(t).done)n?u(TypeError("Reduce of empty iterator with no initial value")):o(a);else{var r=t.value;n?(n=!1,a=r,c()):s.resolve(e(a,r)).then((function(e){a=e,c()}),u)}}catch(e){u(e)}}),u)}catch(e){u(e)}};c()}))}})},2856:(e,t,r)=>{"use strict";var n=r(3103),o=r(2676).some;n({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},6464:(e,t,r)=>{"use strict";var n=r(3103),o=r(9859),i=r(7728),s=r(5762),a=r(4229),u=r(816),c=r(95),l=r(693).IteratorPrototype,d=r(4231),h=c("toStringTag"),p=o.Iterator,f=d||"function"!=typeof p||p.prototype!==l||!a((function(){p({})})),m=function(){i(this,m)};u(l,h)||s(l,h,"Iterator"),!f&&u(l,"constructor")&&l.constructor!==Object||s(l,"constructor",m),m.prototype=l,n({global:!0,forced:f},{Iterator:m})},8339:(e,t,r)=>{"use strict";var n=r(3103),o=r(3819),i=r(1176),s=r(8671),a=r(4960),u=s((function(e){for(var t,r,n=this.iterator,o=this.filterer,s=this.next;;){if(t=i(s.apply(n,e)),this.done=!!t.done)return;if(r=t.value,a(n,o,r))return r}}));n({target:"Iterator",proto:!0,real:!0},{filter:function(e){return new u({iterator:i(this),filterer:o(e)})}})},5162:(e,t,r)=>{"use strict";var n=r(3103),o=r(9003),i=r(3819),s=r(1176);n({target:"Iterator",proto:!0,real:!0},{find:function(e){return s(this),i(e),o(this,(function(t,r){if(e(t))return r(t)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},9570:(e,t,r)=>{"use strict";var n=r(3103),o=r(9003),i=r(1176);n({target:"Iterator",proto:!0,real:!0},{forEach:function(e){o(i(this),e,{IS_ITERATOR:!0})}})},4819:(e,t,r)=>{"use strict";var n=r(3103),o=r(3819),i=r(1176),s=r(8671),a=r(4960),u=s((function(e){var t=this.iterator,r=i(this.next.apply(t,e));if(!(this.done=!!r.done))return a(t,this.mapper,r.value)}));n({target:"Iterator",proto:!0,real:!0},{map:function(e){return new u({iterator:i(this),mapper:o(e)})}})},4903:(e,t,r)=>{"use strict";var n=r(3103),o=r(9003),i=r(3819),s=r(1176);n({target:"Iterator",proto:!0,real:!0},{reduce:function(e){s(this),i(e);var t=arguments.length<2,r=t?void 0:arguments[1];if(o(this,(function(n){t?(t=!1,r=n):r=e(r,n)}),{IS_ITERATOR:!0}),t)throw TypeError("Reduce of empty iterator with no initial value");return r}})},7610:(e,t,r)=>{"use strict";var n=r(3103),o=r(9003),i=r(3819),s=r(1176);n({target:"Iterator",proto:!0,real:!0},{some:function(e){return s(this),i(e),o(this,(function(t,r){if(e(t))return r()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},5130:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(7123)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:(e,t,r)=>{e.exports=function(e){function t(e){let r,o=null;function i(...e){if(!i.enabled)return;const n=i,o=Number(new Date),s=o-(r||o);n.diff=s,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=n,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e}}),"function"==typeof t.init&&t.init(i),i}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},445:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(5130):e.exports=r(8414)},8414:(e,t,r)=>{const n=r(6224),o=r(3849);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(o.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),i=` ${o};1m${n} `;r[0]=i+r[0].split("\n").join("\n"+i),r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(7013);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=r(7123)(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,o.inspect(e,this.inspectOpts)}},1829:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParseMode:()=>st,default:()=>vt});var n=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",u={5:a,"5module":a+" export import",6:a+" const class extends export import super"},c=/^in(stanceof)?$/,l=new RegExp("["+i+"]"),d=new RegExp("["+i+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function h(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}return!1}function p(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&h(e,o)))}function f(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&d.test(String.fromCharCode(e)):!1!==t&&(h(e,o)||h(e,n)))))}var m=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function g(e,t){return new m(e,{beforeExpr:!0,binop:t})}var y={beforeExpr:!0},E={startsExpr:!0},A={};function v(e,t){return void 0===t&&(t={}),t.keyword=e,A[e]=new m(e,t)}var C={num:new m("num",E),regexp:new m("regexp",E),string:new m("string",E),name:new m("name",E),privateId:new m("privateId",E),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",y),semi:new m(";",y),colon:new m(":",y),dot:new m("."),question:new m("?",y),questionDot:new m("?."),arrow:new m("=>",y),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",y),backQuote:new m("`",E),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g("||",1),logicalAND:g("&&",2),bitwiseOR:g("|",3),bitwiseXOR:g("^",4),bitwiseAND:g("&",5),equality:g("==/!=/===/!==",6),relational:g("</>/<=/>=",7),bitShift:g("<</>>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g("%",10),star:g("*",10),slash:g("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:g("??",1),_break:v("break"),_case:v("case",y),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",y),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",y),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",E),_if:v("if"),_return:v("return",y),_switch:v("switch"),_throw:v("throw",y),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",E),_super:v("super",E),_class:v("class",E),_extends:v("extends",y),_export:v("export"),_import:v("import",E),_null:v("null",E),_true:v("true",E),_false:v("false",E),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},b=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(b.source,"g");function w(e){return 10===e||13===e||8232===e||8233===e}function O(e,t,r){void 0===r&&(r=e.length);for(var n=t;n<r;n++){var o=e.charCodeAt(n);if(w(o))return n<r-1&&13===o&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var x=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,_=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,T=D.hasOwnProperty,I=D.toString,B=Object.hasOwn||function(e,t){return T.call(e,t)},R=Array.isArray||function(e){return"[object Array]"===I.call(e)};function F(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function k(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var P=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,N=function(e,t){this.line=e,this.column=t};N.prototype.offset=function(e){return new N(this.line,this.column+e)};var M=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function L(e,t){for(var r=1,n=0;;){var o=O(e,n,t);if(o<0)return new N(r,t-n);++r,n=o}}var j={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},U=!1;function $(e,t){return 2|(e?4:0)|(t?8:0)}var V=function(e,t,r){this.options=e=function(e){var t={};for(var r in j)t[r]=e&&B(e,r)?e[r]:j[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!U&&"object"==typeof console&&console.warn&&(U=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),R(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}return R(t.onComment)&&(t.onComment=function(e,t){return function(r,n,o,i,s,a){var u={type:r?"Block":"Line",value:n,start:o,end:i};e.locations&&(u.loc=new M(this,s,a)),e.ranges&&(u.range=[o,i]),t.push(u)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=F(u[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=s[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=F(n);var o=(n?n+" ":"")+s.strict;this.reservedWordsStrict=F(o),this.reservedWordsStrictBind=F(o+" "+s.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(b).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=C.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},z.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},z.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},z.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},z.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},z.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(64&t)>0||r||this.options.allowSuperOutsideMethod},z.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},z.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(258&t)>0||r},z.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},V.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},V.parse=function(e,t){return new this(t,e).parse()},V.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},V.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(V.prototype,z);var W=V.prototype,H=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;W.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){_.lastIndex=e,e+=_.exec(this.input)[0].length;var t=H.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){_.lastIndex=e+t[0].length;var r=_.exec(this.input),n=r.index+r[0].length,o=this.input.charAt(n);return";"===o||"}"===o||b.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||"!"===o&&"="===this.input.charAt(n+1))}e+=t[0].length,_.lastIndex=e,e+=_.exec(this.input)[0].length,";"===this.input[e]&&e++}},W.eat=function(e){return this.type===e&&(this.next(),!0)},W.isContextual=function(e){return this.type===C.name&&this.value===e&&!this.containsEsc},W.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},W.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},W.canInsertSemicolon=function(){return this.type===C.eof||this.type===C.braceR||b.test(this.input.slice(this.lastTokEnd,this.start))},W.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},W.semicolon=function(){this.eat(C.semi)||this.insertSemicolon()||this.unexpected()},W.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},W.expect=function(e){this.eat(e)||this.unexpected()},W.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var q=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};W.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}},W.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},W.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},W.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var G=V.prototype;G.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==C.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,o=Object.keys(this.undefinedExports);n<o.length;n+=1){var i=o[n];this.raiseRecoverable(this.undefinedExports[i].start,"Export '"+i+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var K={kind:"loop"},Y={kind:"switch"};G.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;_.lastIndex=this.pos;var t=_.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n||92===n)return!0;if(e)return!1;if(123===n||n>55295&&n<56320)return!0;if(p(n,!0)){for(var o=r+1;f(n=this.input.charCodeAt(o),!0);)++o;if(92===n||n>55295&&n<56320)return!0;var i=this.input.slice(r,o);if(!c.test(i))return!0}return!1},G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;_.lastIndex=this.pos;var e,t=_.exec(this.input),r=this.pos+t[0].length;return!(b.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&(f(e=this.input.charCodeAt(r+8))||e>55295&&e<56320))},G.parseStatement=function(e,t,r){var n,o=this.type,i=this.startNode();switch(this.isLet(e)&&(o=C._var,n="let"),o){case C._break:case C._continue:return this.parseBreakContinueStatement(i,o.keyword);case C._debugger:return this.parseDebuggerStatement(i);case C._do:return this.parseDoStatement(i);case C._for:return this.parseForStatement(i);case C._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case C._class:return e&&this.unexpected(),this.parseClass(i,!0);case C._if:return this.parseIfStatement(i);case C._return:return this.parseReturnStatement(i);case C._switch:return this.parseSwitchStatement(i);case C._throw:return this.parseThrowStatement(i);case C._try:return this.parseTryStatement(i);case C._const:case C._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(i,n);case C._while:return this.parseWhileStatement(i);case C._with:return this.parseWithStatement(i);case C.braceL:return this.parseBlock(!0,i);case C.semi:return this.parseEmptyStatement(i);case C._export:case C._import:if(this.options.ecmaVersion>10&&o===C._import){_.lastIndex=this.pos;var s=_.exec(this.input),a=this.pos+s[0].length,u=this.input.charCodeAt(a);if(40===u||46===u)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),o===C._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var c=this.value,l=this.parseExpression();return o===C.name&&"Identifier"===l.type&&this.eat(C.colon)?this.parseLabeledStatement(i,c,l,e):this.parseExpressionStatement(i,l)}},G.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(C.semi)||this.insertSemicolon()?e.label=null:this.type!==C.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var o=this.labels[n];if(null==e.label||o.name===e.label.name){if(null!=o.kind&&(r||"loop"===o.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},G.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},G.parseDoStatement=function(e){return this.next(),this.labels.push(K),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(C._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(C.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},G.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(C.parenL),this.type===C.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===C._var||this.type===C._const||r){var n=this.startNode(),o=r?"let":this.value;return this.next(),this.parseVar(n,!0,o),this.finishNode(n,"VariableDeclaration"),(this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===C._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var i=this.isContextual("let"),s=!1,a=new q,u=this.parseExpression(!(t>-1)||"await",a);return this.type===C._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===C._in?t>-1&&this.unexpected(t):e.await=t>-1),i&&s&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,a),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},G.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,X|(r?0:Z),!1,t)},G.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(C._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},G.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(C.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},G.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(C.braceL),this.labels.push(Y),this.enterScope(0);for(var r=!1;this.type!==C.braceR;)if(this.type===C._case||this.type===C._default){var n=this.type===C._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(C.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},G.parseThrowStatement=function(e){return this.next(),b.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Q=[];G.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===C._catch){var t=this.startNode();if(this.next(),this.eat(C.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLValPattern(t.param,r?4:2),this.expect(C.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(C._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},G.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},G.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(K),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},G.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},G.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},G.parseLabeledStatement=function(e,t,r,n){for(var o=0,i=this.labels;o<i.length;o+=1)i[o].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var s=this.type.isLoop?"loop":this.type===C._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var u=this.labels[a];if(u.statementStart!==e.start)break;u.statementStart=this.start,u.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},G.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},G.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(C.braceL),e&&this.enterScope(0);this.type!==C.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},G.parseFor=function(e,t){return e.init=t,this.expect(C.semi),e.test=this.type===C.semi?null:this.parseExpression(),this.expect(C.semi),e.update=this.type===C.parenR?null:this.parseExpression(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},G.parseForIn=function(e,t){var r=this.type===C._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},G.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(C.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===C._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(C.comma))break}return e},G.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var X=1,Z=2;function J(e,t){var r=t.key.name,n=e[r],o="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(o=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===o||"iset"===n&&"iget"===o||"sget"===n&&"sset"===o||"sset"===n&&"sget"===o?(e[r]="true",!1):!!n||(e[r]=o,!1)}function ee(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}G.parseFunction=function(e,t,r,n,o){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===C.star&&t&Z&&this.unexpected(),e.generator=this.eat(C.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&X&&(e.id=4&t&&this.type!==C.name?null:this.parseIdent(),!e.id||t&Z||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope($(e.async,e.generator)),t&X||(e.id=this.type===C.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,o),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&X?"FunctionDeclaration":"FunctionExpression")},G.parseFunctionParams=function(e){this.expect(C.parenL),e.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},G.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),o=this.startNode(),i=!1;for(o.body=[],this.expect(C.braceL);this.type!==C.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(o.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0):s.key&&"PrivateIdentifier"===s.key.type&&J(n,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(o,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},G.parseClassElement=function(e){if(this.eat(C.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",o=!1,i=!1,s="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(C.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===C.star?a=!0:n="static"}if(r.static=a,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==C.star||this.canInsertSemicolon()?n="async":i=!0),!n&&(t>=9||!i)&&this.eat(C.star)&&(o=!0),!n&&!i&&!o){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=u:n=u)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===C.parenL||"method"!==s||o||i){var c=!r.static&&ee(r,"constructor"),l=c&&e;c&&"method"!==s&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=c?"constructor":s,this.parseClassMethod(r,o,i,l)}else this.parseClassField(r);return r},G.isClassElementNameStart=function(){return this.type===C.name||this.type===C.privateId||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword},G.parseClassElementName=function(e){this.type===C.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},G.parseClassMethod=function(e,t,r,n){var o=e.key;"constructor"===e.kind?(t&&this.raise(o.start,"Constructor can't be a generator"),r&&this.raise(o.start,"Constructor can't be an async method")):e.static&&ee(e,"prototype")&&this.raise(o.start,"Classes may not have a static property named prototype");var i=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==i.params.length&&this.raiseRecoverable(i.start,"getter should have no params"),"set"===e.kind&&1!==i.params.length&&this.raiseRecoverable(i.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===i.params[0].type&&this.raiseRecoverable(i.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},G.parseClassField=function(e){if(ee(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ee(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(C.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},G.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==C.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},G.parseClassId=function(e,t){this.type===C.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},G.parseClassSuper=function(e){e.superClass=this.eat(C._extends)?this.parseExprSubscripts(null,!1):null},G.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},G.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,r=e.used,n=this.privateNameStack.length,o=0===n?null:this.privateNameStack[n-1],i=0;i<r.length;++i){var s=r[i];B(t,s.name)||(o?o.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}},G.parseExport=function(e,t){if(this.next(),this.eat(C.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(C._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===C._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,4|X,!1,r)}else if(this.type===C._class){var o=this.startNode();e.declaration=this.parseClass(o,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,s=e.specifiers;i<s.length;i+=1){var a=s[i];this.checkUnreserved(a.local),this.checkLocalExport(a.local),"Literal"===a.local.type&&this.raise(a.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},G.checkExport=function(e,t,r){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),B(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},G.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t,t.start);else if("ObjectPattern"===r)for(var n=0,o=t.properties;n<o.length;n+=1){var i=o[n];this.checkPatternExport(e,i)}else if("ArrayPattern"===r)for(var s=0,a=t.elements;s<a.length;s+=1){var u=a[s];u&&this.checkPatternExport(e,u)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},G.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var o=n[r];this.checkPatternExport(e,o.id)}},G.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},G.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(C.braceL);!this.eat(C.braceR);){if(r)r=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var n=this.startNode();n.local=this.parseModuleExportName(),n.exported=this.eatContextual("as")?this.parseModuleExportName():n.local,this.checkExport(e,n.exported,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},G.parseImport=function(e){return this.next(),this.type===C.string?(e.specifiers=Q,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===C.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},G.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===C.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(C.comma))return e}if(this.type===C.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(C.braceL);!this.eat(C.braceR);){if(t)t=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var o=this.startNode();o.imported=this.parseModuleExportName(),this.eatContextual("as")?o.local=this.parseIdent():(this.checkUnreserved(o.imported),o.local=o.imported),this.checkLValSimple(o.local,2),e.push(this.finishNode(o,"ImportSpecifier"))}return e},G.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===C.string){var e=this.parseLiteral(this.value);return P.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},G.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},G.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var te=V.prototype;te.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,o=e.properties;n<o.length;n+=1){var i=o[n];this.toAssignable(i,t),"RestElement"!==i.type||"ArrayPattern"!==i.argument.type&&"ObjectPattern"!==i.argument.type||this.raise(i.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},te.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var o=e[n];o&&this.toAssignable(o,t)}if(r){var i=e[r-1];6===this.options.ecmaVersion&&t&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}return e},te.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},te.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==C.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},te.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case C.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(C.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case C.braceL:return this.parseObj(!0)}return this.parseIdent()},te.parseBindingList=function(e,t,r){for(var n=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(C.comma),t&&this.type===C.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===C.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),n.push(i),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var s=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(s),n.push(s)}return n},te.parseBindingListItem=function(e){return e},te.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(C.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},te.checkLValSimple=function(e,t,r){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(B(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},te.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,o=e.properties;n<o.length;n+=1){var i=o[n];this.checkLValInnerPattern(i,t,r)}break;case"ArrayPattern":for(var s=0,a=e.elements;s<a.length;s+=1){var u=a[s];u&&this.checkLValInnerPattern(u,t,r)}break;default:this.checkLValSimple(e,t,r)}},te.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var re=function(e,t,r,n,o){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!o},ne={b_stat:new re("{",!1),b_expr:new re("{",!0),b_tmpl:new re("${",!1),p_stat:new re("(",!1),p_expr:new re("(",!0),q_tmpl:new re("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new re("function",!1),f_expr:new re("function",!0),f_expr_gen:new re("function",!0,!1,null,!0),f_gen:new re("function",!1,!1,null,!0)},oe=V.prototype;oe.initialContext=function(){return[ne.b_stat]},oe.curContext=function(){return this.context[this.context.length-1]},oe.braceIsBlock=function(e){var t=this.curContext();return t===ne.f_expr||t===ne.f_stat||(e!==C.colon||t!==ne.b_stat&&t!==ne.b_expr?e===C._return||e===C.name&&this.exprAllowed?b.test(this.input.slice(this.lastTokEnd,this.start)):e===C._else||e===C.semi||e===C.eof||e===C.parenR||e===C.arrow||(e===C.braceL?t===ne.b_stat:e!==C._var&&e!==C._const&&e!==C.name&&!this.exprAllowed):!t.isExpr)},oe.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},oe.updateContext=function(e){var t,r=this.type;r.keyword&&e===C.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},oe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},C.parenR.updateContext=C.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ne.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},C.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ne.b_stat:ne.b_expr),this.exprAllowed=!0},C.dollarBraceL.updateContext=function(){this.context.push(ne.b_tmpl),this.exprAllowed=!0},C.parenL.updateContext=function(e){var t=e===C._if||e===C._for||e===C._with||e===C._while;this.context.push(t?ne.p_stat:ne.p_expr),this.exprAllowed=!0},C.incDec.updateContext=function(){},C._function.updateContext=C._class.updateContext=function(e){!e.beforeExpr||e===C._else||e===C.semi&&this.curContext()!==ne.p_stat||e===C._return&&b.test(this.input.slice(this.lastTokEnd,this.start))||(e===C.colon||e===C.braceL)&&this.curContext()===ne.b_stat?this.context.push(ne.f_stat):this.context.push(ne.f_expr),this.exprAllowed=!1},C.backQuote.updateContext=function(){this.curContext()===ne.q_tmpl?this.context.pop():this.context.push(ne.q_tmpl),this.exprAllowed=!1},C.star.updateContext=function(e){if(e===C._function){var t=this.context.length-1;this.context[t]===ne.f_expr?this.context[t]=ne.f_expr_gen:this.context[t]=ne.f_gen}this.exprAllowed=!0},C.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==C.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ie=V.prototype;function se(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&se(e.expression)}ie.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,o=e.key;switch(o.type){case"Identifier":n=o.name;break;case"Literal":n=String(o.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===i&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=o.start):this.raiseRecoverable(o.start,"Redefinition of __proto__ property")),t.proto=!0);else{var s=t[n="$"+n];s?("init"===i?this.strict&&s.init||s.get||s.set:s.init||s[i])&&this.raiseRecoverable(o.start,"Redefinition of property"):s=t[n]={init:!1,get:!1,set:!1},s[i]=!0}}},ie.parseExpression=function(e,t){var r=this.start,n=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===C.comma){var i=this.startNodeAt(r,n);for(i.expressions=[o];this.eat(C.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(i,"SequenceExpression")}return o},ie.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,o=-1,i=-1,s=-1;t?(o=t.parenthesizedAssign,i=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new q,n=!0);var a=this.start,u=this.startLoc;this.type!==C.parenL&&this.type!==C.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(r&&(c=r.call(this,c,a,u)),this.type.isAssign){var l=this.startNodeAt(a,u);return l.operator=this.value,this.type===C.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===C.eq?this.checkLValPattern(c):this.checkLValSimple(c),l.left=c,this.next(),l.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(l,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),o>-1&&(t.parenthesizedAssign=o),i>-1&&(t.trailingComma=i),c},ie.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(C.question)){var i=this.startNodeAt(r,n);return i.test=o,i.consequent=this.parseMaybeAssign(),this.expect(C.colon),i.alternate=this.parseMaybeAssign(e),this.finishNode(i,"ConditionalExpression")}return o},ie.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,o=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||o.start===r&&"ArrowFunctionExpression"===o.type?o:this.parseExprOp(o,r,n,-1,e)},ie.parseExprOp=function(e,t,r,n,o){var i=this.type.binop;if(null!=i&&(!o||this.type!==C._in)&&i>n){var s=this.type===C.logicalOR||this.type===C.logicalAND,a=this.type===C.coalesce;a&&(i=C.logicalAND.binop);var u=this.value;this.next();var c=this.start,l=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,o),c,l,i,o),h=this.buildBinary(t,r,e,d,u,s||a);return(s&&this.type===C.coalesce||a&&(this.type===C.logicalOR||this.type===C.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,r,n,o)}return e},ie.buildBinary=function(e,t,r,n,o,i){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=r,s.operator=o,s.right=n,this.finishNode(s,i?"LogicalExpression":"BinaryExpression")},ie.parseMaybeUnary=function(e,t,r,n){var o,i=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(n),t=!0;else if(this.type.prefix){var a=this.startNode(),u=this.type===C.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,u,n),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&se(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(a,u?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==C.privateId){if(o=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(i,s);c.operator=this.value,c.prefix=!1,c.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(c,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==C._in&&this.unexpected();return r||!this.eat(C.starstar)?o:t?void this.unexpected(this.lastTokStart):this.buildBinary(i,s,o,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},ie.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,o=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===o.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return o;var i=this.parseSubscripts(o,r,n,!1,t);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1),e.trailingComma>=i.start&&(e.trailingComma=-1)),i},ie.parseSubscripts=function(e,t,r,n,o){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,r,n,i,s,o);if(a.optional&&(s=!0),a===e||"ArrowFunctionExpression"===a.type){if(s){var u=this.startNodeAt(t,r);u.expression=a,a=this.finishNode(u,"ChainExpression")}return a}e=a}},ie.parseSubscript=function(e,t,r,n,o,i,s){var a=this.options.ecmaVersion>=11,u=a&&this.eat(C.questionDot);n&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(C.bracketL);if(c||u&&this.type!==C.parenL&&this.type!==C.backQuote||this.eat(C.dot)){var l=this.startNodeAt(t,r);l.object=e,c?(l.property=this.parseExpression(),this.expect(C.bracketR)):this.type===C.privateId&&"Super"!==e.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!c,a&&(l.optional=u),e=this.finishNode(l,"MemberExpression")}else if(!n&&this.eat(C.parenL)){var d=new q,h=this.yieldPos,p=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1,d);if(o&&!u&&!this.canInsertSemicolon()&&this.eat(C.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(t,r),m,!0,s);this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,r);g.callee=e,g.arguments=m,a&&(g.optional=u),e=this.finishNode(g,"CallExpression")}else if(this.type===C.backQuote){(u||i)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,r);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},ie.parseExprAtom=function(e,t){this.type===C.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case C._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==C.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==C.dot&&this.type!==C.bracketL&&this.type!==C.parenL&&this.unexpected(),this.finishNode(r,"Super");case C._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case C.name:var o=this.start,i=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(C._function))return this.overrideContext(ne.f_expr),this.parseFunction(this.startNodeAt(o,i),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(C.arrow))return this.parseArrowExpression(this.startNodeAt(o,i),[a],!1,t);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===C.name&&!s&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(C.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,i),[a],!0,t)}return a;case C.regexp:var u=this.value;return(r=this.parseLiteral(u.value)).regex={pattern:u.pattern,flags:u.flags},r;case C.num:case C.string:return this.parseLiteral(this.value);case C._null:case C._true:case C._false:return(r=this.startNode()).value=this.type===C._null?null:this.type===C._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case C.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),l;case C.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(C.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case C.braceL:return this.overrideContext(ne.b_expr),this.parseObj(!1,e);case C._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case C._class:return this.parseClass(this.startNode(),!1);case C._new:return this.parseNew();case C.backQuote:return this.parseTemplate();case C._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ie.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case C.parenL:return this.parseDynamicImport(e);case C.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},ie.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(C.parenR)){var t=this.start;this.eat(C.comma)&&this.eat(C.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ie.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ie.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ie.parseParenExpression=function(){this.expect(C.parenL);var e=this.parseExpression();return this.expect(C.parenR),e},ie.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,o=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,u=this.startLoc,c=[],l=!0,d=!1,h=new q,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==C.parenR;){if(l?l=!1:this.expect(C.comma),i&&this.afterTrailingComma(C.parenR,!0)){d=!0;break}if(this.type===C.ellipsis){s=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(C.parenR),e&&!this.canInsertSemicolon()&&this.eat(C.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(n,o,c,t);c.length&&!d||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((r=this.startNodeAt(a,u)).expressions=c,this.finishNodeAt(r,"SequenceExpression",m,g)):r=c[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(n,o);return y.expression=r,this.finishNode(y,"ParenthesizedExpression")}return r},ie.parseParenItem=function(e){return e},ie.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var ae=[];ie.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(C.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,o=this.startLoc,i=this.type===C._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,o,!0,!1),i&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(C.parenL)?e.arguments=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ae,this.finishNode(e,"NewExpression")},ie.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===C.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===C.backQuote,this.finishNode(r,"TemplateElement")},ie.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===C.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(C.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(C.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},ie.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===C.name||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===C.star)&&!b.test(this.input.slice(this.lastTokEnd,this.start))},ie.parseObj=function(e,t){var r=this.startNode(),n=!0,o={};for(r.properties=[],this.next();!this.eat(C.braceR);){if(n)n=!1;else if(this.expect(C.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(C.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,o,t),r.properties.push(i)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},ie.parseProperty=function(e,t){var r,n,o,i,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(C.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===C.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(o=this.start,i=this.startLoc),e||(r=this.eat(C.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(s)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(C.star),this.parsePropertyName(s)):n=!1,this.parsePropertyValue(s,e,r,n,o,i,t,a),this.finishNode(s,"Property")},ie.parsePropertyValue=function(e,t,r,n,o,i,s,a){if((r||n)&&this.type===C.colon&&this.unexpected(),this.eat(C.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===C.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===C.comma||this.type===C.braceR||this.type===C.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=o),e.kind="init",t?e.value=this.parseMaybeDefault(o,i,this.copyNode(e.key)):this.type===C.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,i,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},ie.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(C.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(C.bracketR),e.key;e.computed=!1}return e.key=this.type===C.num||this.type===C.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ie.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ie.parseMethod=function(e,t,r){var n=this.startNode(),o=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|$(t,n.generator)|(r?128:0)),this.expect(C.parenL),n.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(n,"FunctionExpression")},ie.parseArrowExpression=function(e,t,r,n){var o=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|$(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},ie.parseFunctionBody=function(e,t,r,n){var o=t&&this.type!==C.braceL,i=this.strict,s=!1;if(o)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var u=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!i&&!s&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()},ie.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},ie.checkParams=function(e,t){for(var r=Object.create(null),n=0,o=e.params;n<o.length;n+=1){var i=o[n];this.checkLValInnerPattern(i,1,t?null:r)}},ie.parseExprList=function(e,t,r,n){for(var o=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(C.comma),t&&this.afterTrailingComma(e))break;var s=void 0;r&&this.type===C.comma?s=null:this.type===C.ellipsis?(s=this.parseSpread(n),n&&this.type===C.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):s=this.parseMaybeAssign(!1,n),o.push(s)}return o},ie.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===n&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},ie.parseIdent=function(e){var t=this.startNode();return this.type===C.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},ie.parsePrivateIdent=function(){var e=this.startNode();return this.type===C.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},ie.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===C.semi||this.canInsertSemicolon()||this.type!==C.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(C.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ie.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ue=V.prototype;ue.raise=function(e,t){var r=L(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},ue.raiseRecoverable=ue.raise,ue.curPosition=function(){if(this.options.locations)return new N(this.curLine,this.pos-this.lineStart)};var ce=V.prototype,le=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ce.enterScope=function(e){this.scopeStack.push(new le(e))},ce.exitScope=function(){this.scopeStack.pop()},ce.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ce.declareName=function(e,t,r){var n=!1;if(2===t){var o=this.currentScope();n=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o.var.indexOf(e)>-1,o.lexical.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var i=this.currentScope();n=this.treatFunctionsAsVar?i.lexical.indexOf(e)>-1:i.lexical.indexOf(e)>-1||i.var.indexOf(e)>-1,i.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var a=this.scopeStack[s];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){n=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ce.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ce.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ce.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},ce.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var de=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new M(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},he=V.prototype;function pe(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}he.startNode=function(){return new de(this,this.start,this.startLoc)},he.startNodeAt=function(e,t){return new de(this,e,t)},he.finishNode=function(e,t){return pe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},he.finishNodeAt=function(e,t,r,n){return pe.call(this,e,t,r,n)},he.copyNode=function(e){var t=new de(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var fe,me,ge="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ye=ge+" Extended_Pictographic",Ee=ye+" EBase EComp EMod EPres ExtPict",Ae={9:ge,10:ye,11:ye,12:Ee,13:Ee,14:Ee},ve="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ce="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",be=Ce+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Se=be+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",we=Se+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Oe=we+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",xe={9:Ce,10:be,11:Se,12:we,13:Oe,14:Oe+" Kawi Nag_Mundari Nagm"},_e={};for(var De=0,Te=[9,10,11,12,13,14];De<Te.length;De+=1)me=void 0,(me=_e[fe=Te[De]]={binary:F(Ae[fe]+" "+ve),nonBinary:{General_Category:F(ve),Script:F(xe[fe])}}).nonBinary.Script_Extensions=me.nonBinary.Script,me.nonBinary.gc=me.nonBinary.General_Category,me.nonBinary.sc=me.nonBinary.Script,me.nonBinary.scx=me.nonBinary.Script_Extensions;var Ie=V.prototype,Be=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=_e[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Re(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Fe(e){return e>=65&&e<=90||e>=97&&e<=122}function ke(e){return Fe(e)||95===e}function Pe(e){return ke(e)||Ne(e)}function Ne(e){return e>=48&&e<=57}function Me(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Le(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function je(e){return e>=48&&e<=55}Be.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Be.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Be.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var o=r.charCodeAt(e);if(!t&&!this.switchU||o<=55295||o>=57344||e+1>=n)return o;var i=r.charCodeAt(e+1);return i>=56320&&i<=57343?(o<<10)+i-56613888:o},Be.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var o,i=r.charCodeAt(e);return!t&&!this.switchU||i<=55295||i>=57344||e+1>=n||(o=r.charCodeAt(e+1))<56320||o>57343?e+1:e+2},Be.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Be.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Be.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Be.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ie.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var o=r.charAt(n);-1===t.indexOf(o)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(o,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},Ie.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Ie.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];-1===e.groupNames.indexOf(n)&&e.raise("Invalid named capture referenced")}},Ie.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Ie.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Ie.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Ie.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},Ie.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Ie.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Ie.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return-1!==o&&o<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},Ie.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Ie.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Ie.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Ie.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Ie.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Ie.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Ie.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Re(t)&&(e.lastIntValue=t,e.advance(),!0)},Ie.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!Re(r);)e.advance();return e.pos!==t},Ie.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Ie.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Ie.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Ie.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=k(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=k(e.lastIntValue);return!0}return!1},Ie.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return p(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Ie.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return f(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Ie.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Ie.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},Ie.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Ie.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Ie.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Ie.regexp_eatZero=function(e){return 48===e.current()&&!Ne(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Ie.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Ie.regexp_eatControlLetter=function(e){var t=e.current();return!!Fe(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ie.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,n=e.pos,o=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(o&&i>=55296&&i<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(i-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=i}return!0}if(o&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(r=e.lastIntValue)>=0&&r<=1114111)return!0;o&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Ie.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Ie.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Ie.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Ie.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o),!0}return!1},Ie.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){B(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},Ie.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Ie.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ke(t=e.current());)e.lastStringValue+=k(t),e.advance();return""!==e.lastStringValue},Ie.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Pe(t=e.current());)e.lastStringValue+=k(t),e.advance();return""!==e.lastStringValue},Ie.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Ie.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Ie.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},Ie.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||je(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Ie.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Ie.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ne(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Ie.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Ie.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Ne(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},Ie.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Me(r=e.current());)e.lastIntValue=16*e.lastIntValue+Le(r),e.advance();return e.pos!==t},Ie.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},Ie.regexp_eatOctalDigit=function(e){var t=e.current();return je(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Ie.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var o=e.current();if(!Me(o))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Le(o),e.advance()}return!0};var Ue=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new M(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},$e=V.prototype;function Ve(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}$e.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ue(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},$e.getToken=function(){return this.next(),new Ue(this)},"undefined"!=typeof Symbol&&($e[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===C.eof,value:t}}}}),$e.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(C.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},$e.readToken=function(e){return p(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},$e.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},$e.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,o=t;(n=O(this.input,o,this.pos))>-1;)++this.curLine,o=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},$e.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!w(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},$e.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&x.test(String.fromCharCode(e))))break e;++this.pos}}},$e.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},$e.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(C.ellipsis)):(++this.pos,this.finishToken(C.dot))},$e.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(C.assign,2):this.finishOp(C.slash,1)},$e.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?C.star:C.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=C.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(C.assign,r+1):this.finishOp(n,r)},$e.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(C.assign,3):this.finishOp(124===e?C.logicalOR:C.logicalAND,2):61===t?this.finishOp(C.assign,2):this.finishOp(124===e?C.bitwiseOR:C.bitwiseAND,1)},$e.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(C.assign,2):this.finishOp(C.bitwiseXOR,1)},$e.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!b.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(C.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(C.assign,2):this.finishOp(C.plusMin,1)},$e.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(C.assign,r+1):this.finishOp(C.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(C.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},$e.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(C.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(C.arrow)):this.finishOp(61===e?C.eq:C.prefix,1)},$e.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(C.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(C.assign,3):this.finishOp(C.coalesce,2)}return this.finishOp(C.question,1)},$e.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(C.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+k(e)+"'")},$e.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(C.parenL);case 41:return++this.pos,this.finishToken(C.parenR);case 59:return++this.pos,this.finishToken(C.semi);case 44:return++this.pos,this.finishToken(C.comma);case 91:return++this.pos,this.finishToken(C.bracketL);case 93:return++this.pos,this.finishToken(C.bracketR);case 123:return++this.pos,this.finishToken(C.braceL);case 125:return++this.pos,this.finishToken(C.braceR);case 58:return++this.pos,this.finishToken(C.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(C.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(C.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+k(e)+"'")},$e.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},$e.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(b.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var o=this.input.slice(r,this.pos);++this.pos;var i=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(i);var a=this.regexpState||(this.regexpState=new Be(this));a.reset(r,o,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var u=null;try{u=new RegExp(o,s)}catch(e){}return this.finishToken(C.regexp,{pattern:o,flags:s,value:u})},$e.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,o=r&&48===this.input.charCodeAt(this.pos),i=this.pos,s=0,a=0,u=0,c=null==t?1/0:t;u<c;++u,++this.pos){var l=this.input.charCodeAt(this.pos),d=void 0;if(n&&95===l)o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===u&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=l;else{if((d=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;a=l,s=s*e+d}}return n&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||null!=t&&this.pos-i!==t?null:s},$e.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=Ve(this.input.slice(t,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,r)},$e.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var o=Ve(this.input.slice(t,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,o)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i,s=(i=this.input.slice(t,this.pos),r?parseInt(i,8):parseFloat(i.replace(/_/g,"")));return this.finishToken(C.num,s)},$e.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},$e.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(w(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(C.string,t)};var ze={};$e.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ze)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},$e.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ze;this.raise(e,t)},$e.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==C.template&&this.type!==C.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(C.template,e)):36===r?(this.pos+=2,this.finishToken(C.dollarBraceL)):(++this.pos,this.finishToken(C.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(w(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},$e.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(C.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},$e.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return k(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(n,8);return o>255&&(n=n.slice(0,-1),o=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(o)}return w(t)?"":String.fromCharCode(t)}},$e.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},$e.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if(f(o,n))this.pos+=o<=65535?1:2;else{if(92!==o)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var i=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?p:f)(s,n)||this.invalidStringToken(i,"Invalid Unicode escape"),e+=k(s),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},$e.readWord=function(){var e=this.readWord1(),t=C.name;return this.keywords.test(e)&&(t=A[e]),this.finishToken(t,e)},V.acorn={Parser:V,version:"8.8.2",defaultOptions:j,Position:N,SourceLocation:M,getLineInfo:L,Node:de,TokenType:m,tokTypes:C,keywordTypes:A,TokContext:re,tokContexts:ne,isIdentifierChar:f,isIdentifierStart:p,Token:Ue,isNewLine:w,lineBreak:b,lineBreakG:S,nonASCIIwhitespace:x};var We=r(345);function He(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qe(e,t,r){return t&&He(e.prototype,t),r&&He(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ke(e,t)}function Ye(e,t,r){return Ye=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&Ke(o,r.prototype),o},Ye.apply(null,arguments)}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xe(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e){return"string"==typeof e?We.Long.fromString(e):We.Long.fromNumber(e)}var Je={Date:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Date.apply(void 0,Xe(t))}))},et={Date:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ye(Date,Xe(t))}))},tt={RegExp,Binary:function(e,t){return new We.Binary(e,t)},BinData:function(e,t){return new We.Binary(Buffer.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new We.UUID).toBinary():new We.Binary(Buffer.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new We.Code(e,t)},DBRef:function(e,t,r,n){return new We.DBRef(e,t,r,n)},Decimal128:function(e){return We.Decimal128.fromString(e)},NumberDecimal:function(e){return We.Decimal128.fromString(e)},Double:function(e){return new We.Double(e)},Int32:function(e){return new We.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new We.Long(e,t)},NumberLong:Ze,Int64:Ze,Map:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t;return new(null!==(t=We.Map)&&void 0!==t?t:Map)(e)})),MaxKey:function(){return new We.MaxKey},MinKey:function(){return new We.MinKey},ObjectID:function(e){return new We.ObjectId(e)},ObjectId:function(e){return new We.ObjectId(e)},Symbol:function(e){return new We.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new We.Timestamp({t:e,i:t}):new We.Timestamp(e)},ISODate:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ye(Date,Xe(t))}},rt=Object.freeze({Infinity:1/0,NaN:NaN,undefined:void 0}),nt={Math:{class:Math,allowedMethods:{abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0}},Date:{class:Date,allowedMethods:{getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0}},ISODate:{class:Date,allowedMethods:"Date"}},ot=Object.freeze([].concat(Xe(Object.keys(tt)),Xe(Object.keys(et)),Xe(Object.keys(Je))));function it(e,t){if(nt[e]){var r=nt[e].allowedMethods;return"string"==typeof r?nt[r].allowedMethods[t]:r[t]}return!1}var st,at=qe((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,Ge(this,"checkSafeCall",(function(e){var t=r.options.allowMethods;if("Identifier"===e.callee.type)return ot.indexOf(e.callee.name)>=0&&e.arguments.every(r.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){var n=e.callee.object,o=e.callee.property;return"Identifier"===n.type&&"Identifier"===o.type?it(n.name,o.name)&&e.arguments.every(r.checkSafeExpression):"NewExpression"!==n.type&&"CallExpression"!==n.type||"Identifier"!==n.callee.type?r.checkSafeExpression(n)&&e.arguments.every(r.checkSafeExpression):it(n.callee.name,o.name)&&e.arguments.every(r.checkSafeExpression)}return!1})),Ge(this,"checkSafeExpression",(function(e){switch(e.type){case"Identifier":return rt.hasOwnProperty(e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(r.checkSafeExpression);case"UnaryExpression":return r.checkSafeExpression(e.argument);case"BinaryExpression":return r.checkSafeExpression(e.left)&&r.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return r.checkSafeCall(e);case"ObjectExpression":return e.properties.every((function(e){return!e.computed&&!e.method&&!!["Literal","Identifier"].includes(e.key.type)&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||r.checkSafeExpression(e.value))}));default:return!1}}))})),ut=function(e,t){return"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new at(t).checkSafeExpression(e.body[0].expression)},ct=function(e){if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-ht(e.argument);case"+":return+ht(e.argument);case"!":return!ht(e.argument);case"~":return~ht(e.argument);default:throw new Error("Invalid UnaryExpression Provided: '".concat(e.operator,"'"))}},lt=function(e){var t=e.left,r=e.right;switch(e.operator){case"==":return ht(t)==ht(r);case"!=":return ht(t)!=ht(r);case"===":return ht(t)===ht(r);case"!==":return ht(t)!==ht(r);case"<":return ht(t)<ht(r);case"<=":return ht(t)<=ht(r);case">":return ht(t)>ht(r);case">=":return ht(t)>=ht(r);case"<<":return ht(t)<<ht(r);case">>":return ht(t)>>ht(r);case">>>":return ht(t)>>>ht(r);case"+":return ht(t)+ht(r);case"-":return ht(t)-ht(r);case"*":return ht(t)*ht(r);case"/":return ht(t)/ht(r);case"%":return ht(t)%ht(r);case"**":return Math.pow(ht(t),ht(r));case"|":return ht(t)|ht(r);case"^":return ht(t)^ht(r);case"&":return ht(t)&ht(r);case"in":return ht(t)in ht(r);case"instanceof":return ht(t)instanceof ht(r);default:throw new Error("Invalid BinaryExpression Provided: '".concat(e.operator,"'"))}},dt=function(e,t){switch(e.callee.type){case"Identifier":var r=function(e,t){if(t&&et[e])return et[e];if(!t&&Je[e])return Je[e];if(tt[e])return tt[e];throw new Error("Attempted to access scope property '".concat(e,"' that doesn't exist"))}(e.callee.name,t),n=e.arguments.map((function(e){return ht(e)}));return r.apply(r,n);case"MemberExpression":var o="Identifier"===e.callee.object.type?function(e){if(nt[e])return nt[e].class;throw new Error("Attempted to access member '".concat(e,"' that doesn't exist"))}(e.callee.object.name):ht(e.callee.object),i="Identifier"===e.callee.property.type&&e.callee.property.name;if(!i)throw new Error("Expected CallExpression property to be an identifier");var s=e.arguments.map((function(e){return ht(e)}));return o[i].apply(o,s);default:throw new Error("Should not evaluate invalid expressions")}},ht=function e(t){switch(t.type){case"Identifier":if(rt.hasOwnProperty(t.name))return rt[t.name];throw new Error("".concat(t.name," is not a valid Identifier"));case"Literal":return t.value;case"UnaryExpression":return ct(t);case"BinaryExpression":return lt(t);case"ArrayExpression":return t.elements.map((function(t){return e(t)}));case"CallExpression":return dt(t,!1);case"NewExpression":return dt(t,!0);case"ObjectExpression":var r={};return t.properties.forEach((function(t){var n="Identifier"===t.key.type?t.key.name:e(t.key);r[n]=e(t.value)})),r;case"FunctionExpression":case"ArrowFunctionExpression":return function(e){var t,r=(null===(t=e.loc)||void 0===t?void 0:t.source)||"",n=e.range||[];return r.slice(n[0],n[1])}(t);default:throw new Error}},pt=function(e){if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return ht(e.body[0].expression);throw new Error("Invalid AST Found")};function ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(r),!0).forEach((function(t){Ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}!function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(st||(st={}));var gt={allowMethods:!1,allowComments:!1},yt={allowMethods:!0},Et={allowMethods:!0,allowComments:!0},At=mt({mode:st.Strict},gt);function vt(e,t){var r=function(e){return mt(mt(mt({},At),function(e){switch(e){case st.Strict:return gt;case st.Extended:return yt;case st.Loose:return Et}}(e&&e.mode||st.Strict)),e)}(t),n=function(e){var t=!1,r=function(e,t){return V.parse(e,t)}(e,{ecmaVersion:6,onComment:function(){return t=!0},locations:!0,ranges:!0,sourceFile:e});return{ast:r,hasComments:t}}("(\n".concat(e,"\n)")),o=n.hasComments,i=n.ast;return o&&!r.allowComments||!ut(i,r)?"":pt(i)}},2215:(e,t,r)=>{"use strict";const n=r(3325),o=r(3281),i=r(7932);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},4056:(e,t)=>{"use strict";const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,r){if(t){const n=Object.keys(t),o=n.length;for(let i=0;i<o;i++)e[n[i]]="strict"===r?[t[n[i]]]:t[n[i]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==o.exec(e))},t.getAllMatches=function(e,t){const r=[];let n=t.exec(e);for(;n;){const o=[];o.startIndex=t.lastIndex-n[0].length;const i=n.length;for(let e=0;e<i;e++)o.push(n[e]);r.push(o),n=t.exec(e)}return r},t.nameRegexp=n},3325:(e,t,r)=>{"use strict";const n=r(4056),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function s(e,t){const r=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const n=e.substr(r,t-r);if(t>5&&"xml"===n)return f("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&(r--,0===r))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},o,t);const r=[];let u=!1,c=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=s(e,o),o.err)return o}else{if("<"!==e[o]){if(i(e[o]))continue;return f("InvalidChar","char '"+e[o]+"' is not expected.",g(e,o))}{let m=o;if(o++,"!"===e[o]){o=a(e,o);continue}{let y=!1;"/"===e[o]&&(y=!0,o++);let E="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)E+=e[o];if(E=E.trim(),"/"===E[E.length-1]&&(E=E.substring(0,E.length-1),o--),d=E,!n.isName(d)){let t;return t=0===E.trim().length?"Invalid space after '<'.":"Tag '"+E+"' is an invalid name.",f("InvalidTag",t,g(e,o))}const A=l(e,o);if(!1===A)return f("InvalidAttr","Attributes for '"+E+"' have open quote.",g(e,o));let v=A.value;if(o=A.index,"/"===v[v.length-1]){const r=o-v.length;v=v.substring(0,v.length-1);const n=h(v,t);if(!0!==n)return f(n.err.code,n.err.msg,g(e,r+n.err.line));u=!0}else if(y){if(!A.tagClosed)return f("InvalidTag","Closing tag '"+E+"' doesn't have proper closing.",g(e,o));if(v.trim().length>0)return f("InvalidTag","Closing tag '"+E+"' can't have attributes or invalid starting.",g(e,m));{const t=r.pop();if(E!==t.tagName){let r=g(e,t.tagStartPos);return f("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+E+"'.",g(e,m))}0==r.length&&(c=!0)}}else{const n=h(v,t);if(!0!==n)return f(n.err.code,n.err.msg,g(e,o-v.length+n.err.line));if(!0===c)return f("InvalidXml","Multiple possible root nodes found.",g(e,o));-1!==t.unpairedTags.indexOf(E)||r.push({tagName:E,tagStartPos:m}),u=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=a(e,o);continue}if("?"!==e[o+1])break;if(o=s(e,++o),o.err)return o}else if("&"===e[o]){const t=p(e,o);if(-1==t)return f("InvalidChar","char '&' is not expected.",g(e,o));o=t}else if(!0===c&&!i(e[o]))return f("InvalidXml","Extra text at the end",g(e,o));"<"===e[o]&&o--}}}var d;return u?1==r.length?f("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",g(e,r[0].tagStartPos)):!(r.length>0)||f("InvalidXml","Invalid '"+JSON.stringify(r.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):f("InvalidXml","Start tag expected.",1)};const u='"',c="'";function l(e,t){let r="",n="",o=!1;for(;t<e.length;t++){if(e[t]===u||e[t]===c)""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){o=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:o}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function h(e,t){const r=n.getAllMatches(e,d),o={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return f("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",y(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return f("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",y(r[e]));if(void 0===r[e][3]&&!t.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",y(r[e]));const n=r[e][2];if(!m(n))return f("InvalidAttr","Attribute '"+n+"' is an invalid name.",y(r[e]));if(o.hasOwnProperty(n))return f("InvalidAttr","Attribute '"+n+"' is repeated.",y(r[e]));o[n]=1}return!0}function p(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return-1}(e,++t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(";"===e[t])break;return-1}return t}function f(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function m(e){return n.isName(e)}function g(e,t){const r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function y(e){return e.startIndex+e[1].length}},7932:(e,t,r)=>{"use strict";const n=r(6704),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},o,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=s,this.options.format?(this.indentate=a,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function s(e,t,r){const n=this.j2x(e,r+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,r):this.buildObjectNode(n.val,t,n.attrStr,r)}function a(e){return this.options.indentBy.repeat(e)}function u(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?n(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},i.prototype.j2x=function(e,t){let r="",n="";for(let o in e)if(void 0===e[o]);else if(null===e[o])"?"===o[0]?n+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)n+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){const i=this.isAttribute(o);if(i)r+=this.buildAttrPairStr(i,""+e[o]);else if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);n+=this.replaceEntitiesValue(t)}else n+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){const r=e[o].length;let i="";for(let s=0;s<r;s++){const r=e[o][s];void 0===r||(null===r?"?"===o[0]?n+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+o+"/"+this.tagEndChar:"object"==typeof r?this.options.oneListGroup?i+=this.j2x(r,t+1).val:i+=this.processTextOrObjNode(r,o,t):i+=this.buildTextValNode(r,o,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,o,"",t)),n+=i}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const t=Object.keys(e[o]),n=t.length;for(let i=0;i<n;i++)r+=this.buildAttrPairStr(t[i],""+e[o][t[i]])}else n+=this.processTextOrObjNode(e[o],o,t);return{attrStr:r,val:n}},i.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,r,n){if(""===e)return"?"===t[0]?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let o="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",o=""),r&&-1===e.indexOf("<")?this.indentate(n)+"<"+t+r+i+">"+e+o:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+o}},i.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,r,n){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+o+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e},e.exports=i},6704:e=>{function t(e,s,a,u){let c="",l=!1;for(let d=0;d<e.length;d++){const h=e[d],p=r(h);let f="";if(f=0===a.length?p:`${a}.${p}`,p===s.textNodeName){let e=h[p];o(f,s)||(e=s.tagValueProcessor(p,e),e=i(e,s)),l&&(c+=u),c+=e,l=!1;continue}if(p===s.cdataPropName){l&&(c+=u),c+=`<![CDATA[${h[p][0][s.textNodeName]}]]>`,l=!1;continue}if(p===s.commentPropName){c+=u+`\x3c!--${h[p][0][s.textNodeName]}--\x3e`,l=!0;continue}if("?"===p[0]){const e=n(h[":@"],s),t="?xml"===p?"":u;let r=h[p][0][s.textNodeName];r=0!==r.length?" "+r:"",c+=t+`<${p}${r}${e}?>`,l=!0;continue}let m=u;""!==m&&(m+=s.indentBy);const g=u+`<${p}${n(h[":@"],s)}`,y=t(h[p],s,f,m);-1!==s.unpairedTags.indexOf(p)?s.suppressUnpairedNode?c+=g+">":c+=g+"/>":y&&0!==y.length||!s.suppressEmptyNode?y&&y.endsWith(">")?c+=g+`>${y}${u}</${p}>`:(c+=g+">",y&&""!==u&&(y.includes("/>")||y.includes("</"))?c+=u+s.indentBy+y+u:c+=y,c+=`</${p}>`):c+=g+"/>",l=!0}return c}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];if(":@"!==r)return r}}function n(e,t){let r="";if(e&&!t.ignoreAttributes)for(let n in e){let o=t.attributeValueProcessor(n,e[n]);o=i(o,t),!0===o&&t.suppressBooleanAttributes?r+=` ${n.substr(t.attributeNamePrefix.length)}`:r+=` ${n.substr(t.attributeNamePrefix.length)}="${o}"`}return r}function o(e,t){let r=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+r)return!0;return!1}function i(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){const n=t.entities[r];e=e.replace(n.regex,n.val)}return e}e.exports=function(e,r){let n="";return r.format&&r.indentBy.length>0&&(n="\n"),t(e,r,"",n)}},3770:(e,t,r)=>{const n=r(4056);function o(e,t){let r="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)r+=e[t];if(r=r.trim(),-1!==r.indexOf(" "))throw new Error("External entites are not supported");const n=e[t++];let o="";for(;t<e.length&&e[t]!==n;t++)o+=e[t];return[r,o,t]}function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function s(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function u(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function c(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function l(e){if(n.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const r={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let n=1,d=!1,h=!1,p="";for(;t<e.length;t++)if("<"!==e[t]||h)if(">"===e[t]){if(h?"-"===e[t-1]&&"-"===e[t-2]&&(h=!1,n--):n--,0===n)break}else"["===e[t]?d=!0:p+=e[t];else{if(d&&s(e,t))t+=7,[entityName,val,t]=o(e,t+1),-1===val.indexOf("&")&&(r[l(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(d&&a(e,t))t+=8;else if(d&&u(e,t))t+=8;else if(d&&c(e,t))t+=9;else{if(!i)throw new Error("Invalid DOCTYPE");h=!0}n++,p=""}if(0!==n)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:t}}},4238:(e,t)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e}};t.buildOptions=function(e){return Object.assign({},r,e)},t.defaultOptions=r},2848:(e,t,r)=>{"use strict";const n=r(4056),o=r(4499),i=r(3770),s=r(5580);function a(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:e[n]}}}function u(e,t,r,n,o,i,s){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e));const n=this.options.tagValueProcessor(t,e,r,o,i);return null==n?e:typeof n!=typeof e||n!==e?n:this.options.trimValues||e.trim()===e?v(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function c(e){if(this.options.removeNSPrefix){const t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,n.nameRegexp);const l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(e,t,r){if(!this.options.ignoreAttributes&&"string"==typeof e){const r=n.getAllMatches(e,l),o=r.length,i={};for(let e=0;e<o;e++){const n=this.resolveNameSpace(r[e][1]);let o=r[e][4],s=this.options.attributeNamePrefix+n;if(n.length)if(this.options.transformAttributeName&&(s=this.options.transformAttributeName(s)),"__proto__"===s&&(s="#__proto__"),void 0!==o){this.options.trimValues&&(o=o.trim()),o=this.replaceEntitiesValue(o);const e=this.options.attributeValueProcessor(n,o,t);i[s]=null==e?o:typeof e!=typeof o||e!==o?e:v(o,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[s]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=i,e}return i}}const h=function(e){e=e.replace(/\r\n?/g,"\n");const t=new o("!xml");let r=t,n="",s="";for(let a=0;a<e.length;a++)if("<"===e[a])if("/"===e[a+1]){const t=y(e,">",a,"Closing Tag is not closed.");let o=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}this.options.transformTagName&&(o=this.options.transformTagName(o)),r&&(n=this.saveTextToParentTag(n,r,s));const i=s.substring(s.lastIndexOf(".")+1);if(o&&-1!==this.options.unpairedTags.indexOf(o))throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);let u=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",a=t}else if("?"===e[a+1]){let t=E(e,a,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new o(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,s,t.tagName)),this.addChild(r,e,s)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){const t=y(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const o=e.substring(a+4,t-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}a=t}else if("!D"===e.substr(a+1,2)){const t=i(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){const t=y(e,"]]>",a,"CDATA is not closed.")-2,o=e.substring(a+9,t);if(n=this.saveTextToParentTag(n,r,s),this.options.cdataPropName)r.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]);else{let e=this.parseTextData(o,r.tagname,s,!0,!1,!0);null==e&&(e=""),r.add(this.options.textNodeName,e)}a=t+2}else{let i=E(e,a,this.options.removeNSPrefix),u=i.tagName,c=i.tagExp,l=i.attrExpPresent,d=i.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,s,!1));const h=r;if(h&&-1!==this.options.unpairedTags.indexOf(h.tagname)&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),u!==t.tagname&&(s+=s?"."+u:u),this.isItStopNode(this.options.stopNodes,s,u)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)a=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(u))a=i.closeIndex;else{const r=this.readStopNodeData(e,u,d+1);if(!r)throw new Error(`Unexpected end of ${u}`);a=r.i,t=r.tagContent}const n=new o(u);u!==c&&l&&(n[":@"]=this.buildAttributesMap(c,s,u)),t&&(t=this.parseTextData(t,u,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),n.add(this.options.textNodeName,t),this.addChild(r,n,s)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===u[u.length-1]?(u=u.substr(0,u.length-1),c=u):c=c.substr(0,c.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));const e=new o(u);u!==c&&l&&(e[":@"]=this.buildAttributesMap(c,s,u)),this.addChild(r,e,s),s=s.substr(0,s.lastIndexOf("."))}else{const e=new o(u);this.tagsNodeStack.push(r),u!==c&&l&&(e[":@"]=this.buildAttributesMap(c,s,u)),this.addChild(r,e,s),r=e}n="",a=d}}else n+=e[a];return t.child};function p(e,t,r){const n=this.options.updateTag(t.tagname,r,t[":@"]);!1===n||("string"==typeof n?(t.tagname=n,e.addChild(t)):e.addChild(t))}const f=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,r,n){return e&&(void 0===n&&(n=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function g(e,t,r){const n="*."+r;for(const r in e){const o=e[r];if(n===o||t===o)return!0}return!1}function y(e,t,r,n){const o=e.indexOf(t,r);if(-1===o)throw new Error(n);return o+t.length-1}function E(e,t,r,n=">"){const o=function(e,t,r=">"){let n,o="";for(let i=t;i<e.length;i++){let t=e[i];if(n)t===n&&(n="");else if('"'===t||"'"===t)n=t;else if(t===r[0]){if(!r[1])return{data:o,index:i};if(e[i+1]===r[1])return{data:o,index:i}}else"\t"===t&&(t=" ");o+=t}}(e,t+1,n);if(!o)return;let i=o.data;const s=o.index,a=i.search(/\s/);let u=i,c=!0;if(-1!==a&&(u=i.substr(0,a).replace(/\s\s*$/,""),i=i.substr(a+1)),r){const e=u.indexOf(":");-1!==e&&(u=u.substr(e+1),c=u!==o.data.substr(e+1))}return{tagName:u,tagExp:i,closeIndex:s,attrExpPresent:c}}function A(e,t,r){const n=r;let o=1;for(;r<e.length;r++)if("<"===e[r])if("/"===e[r+1]){const i=y(e,">",r,`${t} is not closed`);if(e.substring(r+2,i).trim()===t&&(o--,0===o))return{tagContent:e.substring(n,r),i};r=i}else if("?"===e[r+1])r=y(e,"?>",r+1,"StopNode is not closed.");else if("!--"===e.substr(r+1,3))r=y(e,"--\x3e",r+3,"StopNode is not closed.");else if("!["===e.substr(r+1,2))r=y(e,"]]>",r,"StopNode is not closed.")-2;else{const n=E(e,r,">");n&&((n&&n.tagName)===t&&"/"!==n.tagExp[n.tagExp.length-1]&&o++,r=n.closeIndex)}}function v(e,t,r){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&s(e,r)}return n.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=a,this.parseXml=h,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=d,this.isItStopNode=g,this.replaceEntitiesValue=f,this.readStopNodeData=A,this.saveTextToParentTag=m,this.addChild=p}}},3281:(e,t,r)=>{const{buildOptions:n}=r(4238),o=r(2848),{prettify:i}=r(4416),s=r(3325);e.exports=class{constructor(e){this.externalEntities={},this.options=n(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const r=s.validate(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}const r=new o(this.options);r.addExternalEntities(this.externalEntities);const n=r.parseXml(e);return this.options.preserveOrder||void 0===n?n:i(n,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},4416:(e,t)=>{"use strict";function r(e,t,s){let a;const u={};for(let c=0;c<e.length;c++){const l=e[c],d=n(l);let h="";if(h=void 0===s?d:s+"."+d,d===t.textNodeName)void 0===a?a=l[d]:a+=""+l[d];else{if(void 0===d)continue;if(l[d]){let e=r(l[d],t,h);const n=i(e,t);l[":@"]?o(e,l[":@"],h,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==u[d]&&u.hasOwnProperty(d)?(Array.isArray(u[d])||(u[d]=[u[d]]),u[d].push(e)):t.isArray(d,h,n)?u[d]=[e]:u[d]=e}}}return"string"==typeof a?a.length>0&&(u[t.textNodeName]=a):void 0!==a&&(u[t.textNodeName]=a),u}function n(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];if(":@"!==r)return r}}function o(e,t,r,n){if(t){const o=Object.keys(t),i=o.length;for(let s=0;s<i;s++){const i=o[s];n.isArray(i,r+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function i(e,t){const{textNodeName:r}=t,n=Object.keys(e).length;return 0===n||!(1!==n||!e[r]&&"boolean"!=typeof e[r]&&0!==e[r])}t.prettify=function(e,t){return r(e,t)}},4499:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},8137:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return-1!==n&&(-1===o||n<o)}},3463:(e,t,r)=>{"use strict";var n=r(3887),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(e){return n.isMemo(e)?s:a[e.$$typeof]||o}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var o=p(r);o&&o!==f&&e(t,o,n)}var s=l(r);d&&(s=s.concat(d(r)));for(var a=u(t),m=u(r),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||n&&n[y]||m&&m[y]||a&&a[y])){var E=h(r,y);try{c(t,y,E)}catch(e){}}}}return t}},3459:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,E=r?Symbol.for("react.fundamental"):60117,A=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case u:return e;default:return t}}case o:return t}}}function b(e){return C(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=h,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return b(e)||C(e)===l},t.isConcurrentMode=b,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===i},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===o},t.isProfiler=function(e){return C(e)===a},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h||e.$$typeof===E||e.$$typeof===A||e.$$typeof===v||e.$$typeof===y)},t.typeOf=C},3887:(e,t,r)=>{"use strict";e.exports=r(3459)},841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayToString=void 0,t.arrayToString=(e,t,r)=>{const n=e.map((function(e,n){const o=r(e,n);return void 0===o?String(o):t+o.split("\n").join(`\n${t}`)})).join(t?",\n":","),o=t&&n?"\n":"";return`[${o}${n}${o}]`}},2679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionParser=t.dedentFunction=t.functionToString=t.USED_METHOD_KEY=void 0;const n=r(311),o='"'==={" "(){}}[" "].toString().charAt(0),i={Function:"function ",GeneratorFunction:"function* ",AsyncFunction:"async function ",AsyncGeneratorFunction:"async function* "},s={Function:"",GeneratorFunction:"*",AsyncFunction:"async ",AsyncGeneratorFunction:"async *"},a=new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" "));function u(e){let t;for(const r of e.split("\n").slice(1)){const n=/^[\s\t]+/.exec(r);if(!n)return e;const[o]=n;(void 0===t||o.length<t.length)&&(t=o)}return t?e.split(`\n${t}`).join("\n"):e}t.USED_METHOD_KEY=new WeakSet,t.functionToString=(e,r,n,o)=>{const i="string"==typeof o?o:void 0;return void 0!==i&&t.USED_METHOD_KEY.add(e),new c(e,r,n,i).stringify()},t.dedentFunction=u;class c{constructor(e,t,r,o){this.fn=e,this.indent=t,this.next=r,this.key=o,this.pos=0,this.hadKeyword=!1,this.fnString=Function.prototype.toString.call(e),this.fnType=e.constructor.name,this.keyQuote=void 0===o?"":n.quoteKey(o,r),this.keyPrefix=void 0===o?"":`${this.keyQuote}:${t?" ":""}`,this.isMethodCandidate=void 0!==o&&(""===this.fn.name||this.fn.name===o)}stringify(){const e=this.tryParse();return e?u(e):`${this.keyPrefix}void ${this.next(this.fnString)}`}getPrefix(){return this.isMethodCandidate&&!this.hadKeyword?s[this.fnType]+this.keyQuote:this.keyPrefix+i[this.fnType]}tryParse(){if("}"!==this.fnString[this.fnString.length-1])return this.keyPrefix+this.fnString;if(this.fn.name){const e=this.tryStrippingName();if(e)return e}const e=this.pos;if("class"===this.consumeSyntax())return this.fnString;if(this.pos=e,this.tryParsePrefixTokens()){const e=this.tryStrippingName();if(e)return e;let t=this.pos;switch(this.consumeSyntax("WORD_LIKE")){case"WORD_LIKE":this.isMethodCandidate&&!this.hadKeyword&&(t=this.pos);case"()":if("=>"===this.fnString.substr(this.pos,2))return this.keyPrefix+this.fnString;this.pos=t;case'"':case"'":case"[]":return this.getPrefix()+this.fnString.substr(this.pos)}}}tryStrippingName(){if(o)return;let e=this.pos;const t=this.fnString.substr(this.pos,this.fn.name.length);if(t===this.fn.name&&(this.pos+=t.length,"()"===this.consumeSyntax()&&"{}"===this.consumeSyntax()&&this.pos===this.fnString.length))return!this.isMethodCandidate&&n.isValidVariableName(t)||(e+=t.length),this.getPrefix()+this.fnString.substr(e);this.pos=e}tryParsePrefixTokens(){let e=this.pos;switch(this.hadKeyword=!1,this.fnType){case"AsyncFunction":if("async"!==this.consumeSyntax())return!1;e=this.pos;case"Function":return"function"===this.consumeSyntax()?this.hadKeyword=!0:this.pos=e,!0;case"AsyncGeneratorFunction":if("async"!==this.consumeSyntax())return!1;case"GeneratorFunction":let t=this.consumeSyntax();return"function"===t&&(t=this.consumeSyntax(),this.hadKeyword=!0),"*"===t}}consumeSyntax(e){const t=this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);if(!t)return;const[r,n]=t;if(this.consumeWhitespace(),n)return e||n;switch(r){case"(":return this.consumeSyntaxUntil("(",")");case"[":return this.consumeSyntaxUntil("[","]");case"{":return this.consumeSyntaxUntil("{","}");case"`":return this.consumeTemplate();case'"':return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/,'"');case"'":return this.consumeRegExp(/^(?:[^\\']|\\.)*'/,"'")}return r}consumeSyntaxUntil(e,t){let r=!0;for(;;){const n=this.consumeSyntax();if(n===t)return e+t;if(!n||")"===n||"]"===n||"}"===n)return;"/"===n&&r&&this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)?(r=!1,this.consumeWhitespace()):r=a.has(n)}}consumeMatch(e){const t=e.exec(this.fnString.substr(this.pos));return t&&(this.pos+=t[0].length),t}consumeRegExp(e,t){const r=e.exec(this.fnString.substr(this.pos));if(r)return this.pos+=r[0].length,this.consumeWhitespace(),t}consumeTemplate(){for(;;){if(this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/),"`"===this.fnString[this.pos])return this.pos++,this.consumeWhitespace(),"`";if("${"!==this.fnString.substr(this.pos,2)||(this.pos+=2,this.consumeWhitespace(),!this.consumeSyntaxUntil("{","}")))return}}consumeWhitespace(){this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/)}}t.FunctionParser=c},6081:(e,t,r)=>{"use strict";t.P=void 0;const n=r(4225),o=r(311),i=Symbol("root");t.P=function(e,t,r,s={}){const a="string"==typeof r?r:" ".repeat(r||0),u=[],c=new Set,l=new Map,d=new Map;let h=0;const{maxDepth:p=100,references:f=!1,skipUndefinedProperties:m=!1,maxValues:g=1e5}=s,y=function(e){return e?(t,r,o,i)=>e(t,r,(e=>n.toString(e,r,o,i)),i):n.toString}(t),E=(e,t)=>{if(++h>g)return;if(m&&void 0===e)return;if(u.length>p)return;if(void 0===t)return y(e,a,E,t);u.push(t);const r=A(e,t===i?void 0:t);return u.pop(),r},A=f?(e,t)=>{if(null!==e&&("object"==typeof e||"function"==typeof e||"symbol"==typeof e)){if(l.has(e))return d.set(u.slice(1),l.get(e)),y(void 0,a,E,t);l.set(e,u.slice(1))}return y(e,a,E,t)}:(e,t)=>{if(c.has(e))return;c.add(e);const r=y(e,a,E,t);return c.delete(e),r},v=E(e,i);if(d.size){const e=a?" ":"",t=a?"\n":"";let r=`var x${e}=${e}${v};${t}`;for(const[n,i]of d.entries())r+=`x${o.stringifyPath(n,E)}${e}=${e}x${o.stringifyPath(i,E)};${t}`;return`(function${e}()${e}{${t}${r}return x;${t}}())`}return v}},7112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToString=void 0;const n=r(311),o=r(2679),i=r(841);t.objectToString=(e,t,r,n)=>{if("function"==typeof Buffer&&Buffer.isBuffer(e))return`Buffer.from(${r(e.toString("base64"))}, 'base64')`;if("object"==typeof global&&e===global)return s(e,t,r,n);const o=a[Object.prototype.toString.call(e)];return o?o(e,t,r,n):void 0};const s=(e,t,r)=>`Function(${r("return this")})()`,a={"[object Array]":i.arrayToString,"[object Object]":(e,t,r,i)=>{const s=t?"\n":"",a=t?" ":"",u=Object.keys(e).reduce((function(i,s){const u=e[s],c=r(u,s);if(void 0===c)return i;const l=c.split("\n").join(`\n${t}`);return o.USED_METHOD_KEY.has(u)?(i.push(`${t}${l}`),i):(i.push(`${t}${n.quoteKey(s,r)}:${a}${l}`),i)}),[]).join(`,${s}`);return""===u?"{}":`{${s}${u}${s}}`},"[object Error]":(e,t,r)=>`new Error(${r(e.message)})`,"[object Date]":e=>`new Date(${e.getTime()})`,"[object String]":(e,t,r)=>`new String(${r(e.toString())})`,"[object Number]":e=>`new Number(${e})`,"[object Boolean]":e=>`new Boolean(${e})`,"[object Set]":(e,t,r)=>`new Set(${r(Array.from(e))})`,"[object Map]":(e,t,r)=>`new Map(${r(Array.from(e))})`,"[object RegExp]":String,"[object global]":s,"[object Window]":s}},311:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyPath=t.quoteKey=t.isValidVariableName=t.IS_VALID_IDENTIFIER=t.quoteString=void 0;const r=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n=new Map([["\b","\\b"],["\t","\\t"],["\n","\\n"],["\f","\\f"],["\r","\\r"],["'","\\'"],['"','\\"'],["\\","\\\\"]]);function o(e){return n.get(e)||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}t.quoteString=function(e){return`'${e.replace(r,o)}'`};const i=new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));function s(e){return"string"==typeof e&&!i.has(e)&&t.IS_VALID_IDENTIFIER.test(e)}t.IS_VALID_IDENTIFIER=/^[A-Za-z_$][A-Za-z0-9_$]*$/,t.isValidVariableName=s,t.quoteKey=function(e,t){return s(e)?e:t(e)},t.stringifyPath=function(e,t){let r="";for(const n of e)s(n)?r+=`.${n}`:r+=`[${t(n)}]`;return r}},4225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;const n=r(311),o=r(7112),i=r(2679),s={string:n.quoteString,number:e=>Object.is(e,-0)?"-0":String(e),boolean:String,symbol:(e,t,r)=>{const n=Symbol.keyFor(e);return void 0!==n?`Symbol.for(${r(n)})`:`Symbol(${r(e.description)})`},bigint:(e,t,r)=>`BigInt(${r(String(e))})`,undefined:String,object:o.objectToString,function:i.functionToString};t.toString=(e,t,r,n)=>null===e?"null":s[typeof e](e,t,r,n)},6635:function(e,t,r){var n;e=r.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,d=9007199254740991,h=NaN,p=4294967295,f=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",E="[object Date]",A="[object Error]",v="[object Function]",C="[object GeneratorFunction]",b="[object Map]",S="[object Number]",w="[object Object]",O="[object Promise]",x="[object RegExp]",_="[object Set]",D="[object String]",T="[object Symbol]",I="[object WeakMap]",B="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",k="[object Float64Array]",P="[object Int8Array]",N="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",U="[object Uint16Array]",$="[object Uint32Array]",V=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(H.source),K=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,Ee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ae=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,Ce="\\ud800-\\udfff",be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",_e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="["+Ce+"]",Te="["+_e+"]",Ie="["+be+"]",Be="\\d+",Re="["+Se+"]",Fe="["+we+"]",ke="[^"+Ce+_e+Be+Se+we+Oe+"]",Pe="\\ud83c[\\udffb-\\udfff]",Ne="[^"+Ce+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Oe+"]",Ue="\\u200d",$e="(?:"+Fe+"|"+ke+")",Ve="(?:"+je+"|"+ke+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Ie+"|"+Pe+")?",qe="["+xe+"]?",Ge=qe+He+"(?:"+Ue+"(?:"+[Ne,Me,Le].join("|")+")"+qe+He+")*",Ke="(?:"+[Re,Me,Le].join("|")+")"+Ge,Ye="(?:"+[Ne+Ie+"?",Ie,Me,Le,De].join("|")+")",Qe=RegExp("['’]","g"),Xe=RegExp(Ie,"g"),Ze=RegExp(Pe+"(?="+Pe+")|"+Ye+Ge,"g"),Je=RegExp([je+"?"+Fe+"+"+ze+"(?="+[Te,je,"$"].join("|")+")",Ve+"+"+We+"(?="+[Te,je+$e,"$"].join("|")+")",je+"?"+$e+"+"+ze,je+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Be,Ke].join("|"),"g"),et=RegExp("["+Ue+Ce+be+xe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,ot={};ot[F]=ot[k]=ot[P]=ot[N]=ot[M]=ot[L]=ot[j]=ot[U]=ot[$]=!0,ot[m]=ot[g]=ot[B]=ot[y]=ot[R]=ot[E]=ot[A]=ot[v]=ot[b]=ot[S]=ot[w]=ot[x]=ot[_]=ot[D]=ot[I]=!1;var it={};it[m]=it[g]=it[B]=it[R]=it[y]=it[E]=it[F]=it[k]=it[P]=it[N]=it[M]=it[b]=it[S]=it[w]=it[x]=it[_]=it[D]=it[T]=it[L]=it[j]=it[U]=it[$]=!0,it[A]=it[v]=it[I]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ut=parseInt,ct="object"==typeof global&&global&&global.Object===Object&&global,lt="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||lt||Function("return this")(),ht=t&&!t.nodeType&&t,pt=ht&&e&&!e.nodeType&&e,ft=pt&&pt.exports===ht,mt=ft&&ct.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=gt&&gt.isArrayBuffer,Et=gt&&gt.isDate,At=gt&&gt.isMap,vt=gt&&gt.isRegExp,Ct=gt&&gt.isSet,bt=gt&&gt.isTypedArray;function St(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function wt(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(n,s,r(s),e)}return n}function Ot(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function xt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function _t(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Dt(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function Tt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function It(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function Bt(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Rt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Ft(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function kt(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Pt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Nt=zt("length");function Mt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Lt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function jt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Lt(e,$t,r)}function Ut(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function $t(e){return e!=e}function Vt(e,t){var r=null==e?0:e.length;return r?qt(e,t)/r:h}function zt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function qt(e,t){for(var r,n=-1,i=e.length;++n<i;){var s=t(e[n]);s!==o&&(r=r===o?s:r+s)}return r}function Gt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Kt(e){return e?e.slice(0,dr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function Qt(e,t){return Bt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var r=-1,n=e.length;++r<n&&jt(t,e[r],0)>-1;);return r}function Jt(e,t){for(var r=e.length;r--&&jt(t,e[r],0)>-1;);return r}var er=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(e){return"\\"+st[e]}function nr(e){return et.test(e)}function or(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ir(e,t){return function(r){return e(t(r))}}function sr(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r];s!==t&&s!==a||(e[r]=a,i[o++]=r)}return i}function ar(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function cr(e){return nr(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Nt(e)}function lr(e){return nr(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function dr(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var hr=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pr=function e(t){var r,n=(t=null==t?dt:pr.defaults(dt.Object(),t,pr.pick(dt,rt))).Array,oe=t.Date,Ce=t.Error,be=t.Function,Se=t.Math,we=t.Object,Oe=t.RegExp,xe=t.String,_e=t.TypeError,De=n.prototype,Te=be.prototype,Ie=we.prototype,Be=t["__core-js_shared__"],Re=Te.toString,Fe=Ie.hasOwnProperty,ke=0,Pe=(r=/[^.]+$/.exec(Be&&Be.keys&&Be.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ne=Ie.toString,Me=Re.call(we),Le=dt._,je=Oe("^"+Re.call(Fe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ft?t.Buffer:o,$e=t.Symbol,Ve=t.Uint8Array,ze=Ue?Ue.allocUnsafe:o,We=ir(we.getPrototypeOf,we),He=we.create,qe=Ie.propertyIsEnumerable,Ge=De.splice,Ke=$e?$e.isConcatSpreadable:o,Ye=$e?$e.iterator:o,Ze=$e?$e.toStringTag:o,et=function(){try{var e=ci(we,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==dt.Date.now&&oe.now,lt=t.setTimeout!==dt.setTimeout&&t.setTimeout,ht=Se.ceil,pt=Se.floor,mt=we.getOwnPropertySymbols,gt=Ue?Ue.isBuffer:o,Nt=t.isFinite,Wt=De.join,fr=ir(we.keys,we),mr=Se.max,gr=Se.min,yr=oe.now,Er=t.parseInt,Ar=Se.random,vr=De.reverse,Cr=ci(t,"DataView"),br=ci(t,"Map"),Sr=ci(t,"Promise"),wr=ci(t,"Set"),Or=ci(t,"WeakMap"),xr=ci(we,"create"),_r=Or&&new Or,Dr={},Tr=Mi(Cr),Ir=Mi(br),Br=Mi(Sr),Rr=Mi(wr),Fr=Mi(Or),kr=$e?$e.prototype:o,Pr=kr?kr.valueOf:o,Nr=kr?kr.toString:o;function Mr(e){if(ea(e)&&!zs(e)&&!(e instanceof $r)){if(e instanceof Ur)return e;if(Fe.call(e,"__wrapped__"))return Li(e)}return new Ur(e)}var Lr=function(){function e(){}return function(t){if(!Js(t))return{};if(He)return He(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function jr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function $r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Wr;++t<r;)this.add(e[t])}function qr(e){var t=this.__data__=new zr(e);this.size=t.size}function Gr(e,t){var r=zs(e),n=!r&&Vs(e),o=!r&&!n&&Gs(e),i=!r&&!n&&!o&&ua(e),s=r||n||o||i,a=s?Gt(e.length,xe):[],u=a.length;for(var c in e)!t&&!Fe.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gi(c,u))||a.push(c);return a}function Kr(e){var t=e.length;return t?e[Hn(0,t-1)]:o}function Yr(e,t){return Ri(_o(e),on(t,0,e.length))}function Qr(e){return Ri(_o(e))}function Xr(e,t,r){(r!==o&&!js(e[t],r)||r===o&&!(t in e))&&rn(e,t,r)}function Zr(e,t,r){var n=e[t];Fe.call(e,t)&&js(n,r)&&(r!==o||t in e)||rn(e,t,r)}function Jr(e,t){for(var r=e.length;r--;)if(js(e[r][0],t))return r;return-1}function en(e,t,r,n){return ln(e,(function(e,o,i){t(n,e,r(e),i)})),n}function tn(e,t){return e&&Do(t,Ia(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,i=t.length,s=n(i),a=null==e;++r<i;)s[r]=a?o:Oa(e,t[r]);return s}function on(e,t,r){return e==e&&(r!==o&&(e=e<=r?e:r),t!==o&&(e=e>=t?e:t)),e}function sn(e,t,r,n,i,s){var a,u=1&t,c=2&t,l=4&t;if(r&&(a=i?r(e,n,i,s):r(e)),a!==o)return a;if(!Js(e))return e;var d=zs(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Fe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return _o(e,a)}else{var h=hi(e),p=h==v||h==C;if(Gs(e))return Co(e,u);if(h==w||h==m||p&&!i){if(a=c||p?{}:fi(e),!u)return c?function(e,t){return Do(e,di(e),t)}(e,function(e,t){return e&&Do(t,Ba(t),e)}(a,e)):function(e,t){return Do(e,li(e),t)}(e,tn(a,e))}else{if(!it[h])return i?e:{};a=function(e,t,r){var n,o=e.constructor;switch(t){case B:return bo(e);case y:case E:return new o(+e);case R:return function(e,t){var r=t?bo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case F:case k:case P:case N:case M:case L:case j:case U:case $:return So(e,r);case b:return new o;case S:case D:return new o(e);case x:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case _:return new o;case T:return n=e,Pr?we(Pr.call(n)):{}}}(e,h,u)}}s||(s=new qr);var f=s.get(e);if(f)return f;s.set(e,a),ia(e)?e.forEach((function(n){a.add(sn(n,t,r,n,e,s))})):ta(e)&&e.forEach((function(n,o){a.set(o,sn(n,t,r,o,e,s))}));var g=d?o:(l?c?ri:ti:c?Ba:Ia)(e);return Ot(g||e,(function(n,o){g&&(n=e[o=n]),Zr(a,o,sn(n,t,r,o,e,s))})),a}function an(e,t,r){var n=r.length;if(null==e)return!n;for(e=we(e);n--;){var i=r[n],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new _e(i);return Di((function(){e.apply(o,r)}),t)}function cn(e,t,r,n){var o=-1,i=Tt,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;r&&(t=Bt(t,Yt(r))),n?(i=It,s=!1):t.length>=200&&(i=Xt,s=!1,t=new Hr(t));e:for(;++o<a;){var l=e[o],d=null==r?l:r(l);if(l=n||0!==l?l:0,s&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;u.push(l)}else i(t,d,n)||u.push(l)}return u}Mr.templateSettings={escape:Y,evaluate:Q,interpolate:X,variable:"",imports:{_:Mr}},Mr.prototype=jr.prototype,Mr.prototype.constructor=Mr,Ur.prototype=Lr(jr.prototype),Ur.prototype.constructor=Ur,$r.prototype=Lr(jr.prototype),$r.prototype.constructor=$r,Vr.prototype.clear=function(){this.__data__=xr?xr(null):{},this.size=0},Vr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vr.prototype.get=function(e){var t=this.__data__;if(xr){var r=t[e];return r===s?o:r}return Fe.call(t,e)?t[e]:o},Vr.prototype.has=function(e){var t=this.__data__;return xr?t[e]!==o:Fe.call(t,e)},Vr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xr&&t===o?s:t,this},zr.prototype.clear=function(){this.__data__=[],this.size=0},zr.prototype.delete=function(e){var t=this.__data__,r=Jr(t,e);return!(r<0||(r==t.length-1?t.pop():Ge.call(t,r,1),--this.size,0))},zr.prototype.get=function(e){var t=this.__data__,r=Jr(t,e);return r<0?o:t[r][1]},zr.prototype.has=function(e){return Jr(this.__data__,e)>-1},zr.prototype.set=function(e,t){var r=this.__data__,n=Jr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(br||zr),string:new Vr}},Wr.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return ai(this,e).get(e)},Wr.prototype.has=function(e){return ai(this,e).has(e)},Wr.prototype.set=function(e,t){var r=ai(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(e){return this.__data__.set(e,s),this},Hr.prototype.has=function(e){return this.__data__.has(e)},qr.prototype.clear=function(){this.__data__=new zr,this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},qr.prototype.get=function(e){return this.__data__.get(e)},qr.prototype.has=function(e){return this.__data__.has(e)},qr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof zr){var n=r.__data__;if(!br||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(e,t),this.size=r.size,this};var ln=Bo(En),dn=Bo(An,!0);function hn(e,t){var r=!0;return ln(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function pn(e,t,r){for(var n=-1,i=e.length;++n<i;){var s=e[n],a=t(s);if(null!=a&&(u===o?a==a&&!aa(a):r(a,u)))var u=a,c=s}return c}function fn(e,t){var r=[];return ln(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function mn(e,t,r,n,o){var i=-1,s=e.length;for(r||(r=mi),o||(o=[]);++i<s;){var a=e[i];t>0&&r(a)?t>1?mn(a,t-1,r,n,o):Rt(o,a):n||(o[o.length]=a)}return o}var gn=Ro(),yn=Ro(!0);function En(e,t){return e&&gn(e,t,Ia)}function An(e,t){return e&&yn(e,t,Ia)}function vn(e,t){return Dt(t,(function(t){return Qs(e[t])}))}function Cn(e,t){for(var r=0,n=(t=yo(t,e)).length;null!=e&&r<n;)e=e[Ni(t[r++])];return r&&r==n?e:o}function bn(e,t,r){var n=t(e);return zs(e)?n:Rt(n,r(e))}function Sn(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ze&&Ze in we(e)?function(e){var t=Fe.call(e,Ze),r=e[Ze];try{e[Ze]=o;var n=!0}catch(e){}var i=Ne.call(e);return n&&(t?e[Ze]=r:delete e[Ze]),i}(e):function(e){return Ne.call(e)}(e)}function wn(e,t){return e>t}function On(e,t){return null!=e&&Fe.call(e,t)}function xn(e,t){return null!=e&&t in we(e)}function _n(e,t,r){for(var i=r?It:Tt,s=e[0].length,a=e.length,u=a,c=n(a),l=1/0,d=[];u--;){var h=e[u];u&&t&&(h=Bt(h,Yt(t))),l=gr(h.length,l),c[u]=!r&&(t||s>=120&&h.length>=120)?new Hr(u&&h):o}h=e[0];var p=-1,f=c[0];e:for(;++p<s&&d.length<l;){var m=h[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Xt(f,g):i(d,g,r))){for(u=a;--u;){var y=c[u];if(!(y?Xt(y,g):i(e[u],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Dn(e,t,r){var n=null==(e=Oi(e,t=yo(t,e)))?e:e[Ni(Yi(t))];return null==n?o:St(n,e,r)}function Tn(e){return ea(e)&&Sn(e)==m}function In(e,t,r,n,i){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,r,n,i,s){var a=zs(e),u=zs(t),c=a?g:hi(e),l=u?g:hi(t),d=(c=c==m?w:c)==w,h=(l=l==m?w:l)==w,p=c==l;if(p&&Gs(e)){if(!Gs(t))return!1;a=!0,d=!1}if(p&&!d)return s||(s=new qr),a||ua(e)?Jo(e,t,r,n,i,s):function(e,t,r,n,o,i,s){switch(r){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case y:case E:case S:return js(+e,+t);case A:return e.name==t.name&&e.message==t.message;case x:case D:return e==t+"";case b:var a=or;case _:var u=1&n;if(a||(a=ar),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var l=Jo(a(e),a(t),n,o,i,s);return s.delete(e),l;case T:if(Pr)return Pr.call(e)==Pr.call(t)}return!1}(e,t,c,r,n,i,s);if(!(1&r)){var f=d&&Fe.call(e,"__wrapped__"),v=h&&Fe.call(t,"__wrapped__");if(f||v){var C=f?e.value():e,O=v?t.value():t;return s||(s=new qr),i(C,O,r,n,s)}}return!!p&&(s||(s=new qr),function(e,t,r,n,i,s){var a=1&r,u=ti(e),c=u.length;if(c!=ti(t).length&&!a)return!1;for(var l=c;l--;){var d=u[l];if(!(a?d in t:Fe.call(t,d)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var f=!0;s.set(e,t),s.set(t,e);for(var m=a;++l<c;){var g=e[d=u[l]],y=t[d];if(n)var E=a?n(y,g,d,t,e,s):n(g,y,d,e,t,s);if(!(E===o?g===y||i(g,y,r,n,s):E)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var A=e.constructor,v=t.constructor;A==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof v&&v instanceof v||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,r,n,i,s))}(e,t,r,n,In,i))}function Bn(e,t,r,n){var i=r.length,s=i,a=!n;if(null==e)return!s;for(e=we(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=r[i])[0],l=e[c],d=u[1];if(a&&u[2]){if(l===o&&!(c in e))return!1}else{var h=new qr;if(n)var p=n(l,d,c,e,t,h);if(!(p===o?In(d,l,3,n,h):p))return!1}}return!0}function Rn(e){return!(!Js(e)||(t=e,Pe&&Pe in t))&&(Qs(e)?je:me).test(Mi(e));var t}function Fn(e){return"function"==typeof e?e:null==e?ru:"object"==typeof e?zs(e)?Ln(e[0],e[1]):Mn(e):du(e)}function kn(e){if(!Ci(e))return fr(e);var t=[];for(var r in we(e))Fe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Pn(e,t){return e<t}function Nn(e,t){var r=-1,o=Hs(e)?n(e.length):[];return ln(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Mn(e){var t=ui(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(r){return r===e||Bn(r,e,t)}}function Ln(e,t){return Ei(e)&&bi(t)?Si(Ni(e),t):function(r){var n=Oa(r,e);return n===o&&n===t?xa(r,e):In(t,n,3)}}function jn(e,t,r,n,i){e!==t&&gn(t,(function(s,a){if(i||(i=new qr),Js(s))!function(e,t,r,n,i,s,a){var u=xi(e,r),c=xi(t,r),l=a.get(c);if(l)Xr(e,r,l);else{var d=s?s(u,c,r+"",e,t,a):o,h=d===o;if(h){var p=zs(c),f=!p&&Gs(c),m=!p&&!f&&ua(c);d=c,p||f||m?zs(u)?d=u:qs(u)?d=_o(u):f?(h=!1,d=Co(c,!0)):m?(h=!1,d=So(c,!0)):d=[]:na(c)||Vs(c)?(d=u,Vs(u)?d=ga(u):Js(u)&&!Qs(u)||(d=fi(c))):h=!1}h&&(a.set(c,d),i(d,c,n,s,a),a.delete(c)),Xr(e,r,d)}}(e,t,a,r,jn,n,i);else{var u=n?n(xi(e,a),s,a+"",e,t,i):o;u===o&&(u=s),Xr(e,a,u)}}),Ba)}function Un(e,t){var r=e.length;if(r)return gi(t+=t<0?r:0,r)?e[t]:o}function $n(e,t,r){t=t.length?Bt(t,(function(e){return zs(e)?function(t){return Cn(t,1===e.length?e[0]:e)}:e})):[ru];var n=-1;t=Bt(t,Yt(si()));var o=Nn(e,(function(e,r,o){var i=Bt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var n=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,s=o.length,a=r.length;++n<s;){var u=wo(o[n],i[n]);if(u)return n>=a?u:u*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(o)}function Vn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var s=t[n],a=Cn(e,s);r(a,s)&&Qn(i,yo(s,e),a)}return i}function zn(e,t,r,n){var o=n?Ut:jt,i=-1,s=t.length,a=e;for(e===t&&(t=_o(t)),r&&(a=Bt(e,Yt(r)));++i<s;)for(var u=0,c=t[i],l=r?r(c):c;(u=o(a,l,u,n))>-1;)a!==e&&Ge.call(a,u,1),Ge.call(e,u,1);return e}function Wn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;gi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Hn(e,t){return e+pt(Ar()*(t-e+1))}function qn(e,t){var r="";if(!e||t<1||t>d)return r;do{t%2&&(r+=e),(t=pt(t/2))&&(e+=e)}while(t);return r}function Gn(e,t){return Ti(wi(e,t,ru),e+"")}function Kn(e){return Kr(ja(e))}function Yn(e,t){var r=ja(e);return Ri(r,on(t,0,r.length))}function Qn(e,t,r,n){if(!Js(e))return e;for(var i=-1,s=(t=yo(t,e)).length,a=s-1,u=e;null!=u&&++i<s;){var c=Ni(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var d=u[c];(l=n?n(d,c,u):o)===o&&(l=Js(d)?d:gi(t[i+1])?[]:{})}Zr(u,c,l),u=u[c]}return e}var Xn=_r?function(e,t){return _r.set(e,t),e}:ru,Zn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Ja(t),writable:!0})}:ru;function Jn(e){return Ri(ja(e))}function eo(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=n(i);++o<i;)s[o]=e[o+t];return s}function to(e,t){var r;return ln(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ro(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,s=e[i];null!==s&&!aa(s)&&(r?s<=t:s<t)?n=i+1:o=i}return o}return no(e,t,ru,r)}function no(e,t,r,n){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,u=null===t,c=aa(t),l=t===o;i<s;){var d=pt((i+s)/2),h=r(e[d]),p=h!==o,f=null===h,m=h==h,g=aa(h);if(a)var y=n||m;else y=l?m&&(n||p):u?m&&p&&(n||!f):c?m&&p&&!f&&(n||!g):!f&&!g&&(n?h<=t:h<t);y?i=d+1:s=d}return gr(s,4294967294)}function oo(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!js(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function io(e){return"number"==typeof e?e:aa(e)?h:+e}function so(e){if("string"==typeof e)return e;if(zs(e))return Bt(e,so)+"";if(aa(e))return Nr?Nr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,r){var n=-1,o=Tt,i=e.length,s=!0,a=[],u=a;if(r)s=!1,o=It;else if(i>=200){var c=t?null:Go(e);if(c)return ar(c);s=!1,o=Xt,u=new Hr}else u=t?[]:a;e:for(;++n<i;){var l=e[n],d=t?t(l):l;if(l=r||0!==l?l:0,s&&d==d){for(var h=u.length;h--;)if(u[h]===d)continue e;t&&u.push(d),a.push(l)}else o(u,d,r)||(u!==a&&u.push(d),a.push(l))}return a}function uo(e,t){return null==(e=Oi(e,t=yo(t,e)))||delete e[Ni(Yi(t))]}function co(e,t,r,n){return Qn(e,t,r(Cn(e,t)),n)}function lo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?eo(e,n?0:i,n?i+1:o):eo(e,n?i+1:0,n?o:i)}function ho(e,t){var r=e;return r instanceof $r&&(r=r.value()),Ft(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),r)}function po(e,t,r){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,s=n(o);++i<o;)for(var a=e[i],u=-1;++u<o;)u!=i&&(s[i]=cn(s[i]||a,e[u],t,r));return ao(mn(s,1),t,r)}function fo(e,t,r){for(var n=-1,i=e.length,s=t.length,a={};++n<i;){var u=n<s?t[n]:o;r(a,e[n],u)}return a}function mo(e){return qs(e)?e:[]}function go(e){return"function"==typeof e?e:ru}function yo(e,t){return zs(e)?e:Ei(e,t)?[e]:Pi(ya(e))}var Eo=Gn;function Ao(e,t,r){var n=e.length;return r=r===o?n:r,!t&&r>=n?e:eo(e,t,r)}var vo=st||function(e){return dt.clearTimeout(e)};function Co(e,t){if(t)return e.slice();var r=e.length,n=ze?ze(r):new e.constructor(r);return e.copy(n),n}function bo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function So(e,t){var r=t?bo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function wo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,s=aa(e),a=t!==o,u=null===t,c=t==t,l=aa(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||n&&a&&c||!r&&c||!i)return 1;if(!n&&!s&&!l&&e<t||l&&r&&i&&!n&&!s||u&&r&&i||!a&&i||!c)return-1}return 0}function Oo(e,t,r,o){for(var i=-1,s=e.length,a=r.length,u=-1,c=t.length,l=mr(s-a,0),d=n(c+l),h=!o;++u<c;)d[u]=t[u];for(;++i<a;)(h||i<s)&&(d[r[i]]=e[i]);for(;l--;)d[u++]=e[i++];return d}function xo(e,t,r,o){for(var i=-1,s=e.length,a=-1,u=r.length,c=-1,l=t.length,d=mr(s-u,0),h=n(d+l),p=!o;++i<d;)h[i]=e[i];for(var f=i;++c<l;)h[f+c]=t[c];for(;++a<u;)(p||i<s)&&(h[f+r[a]]=e[i++]);return h}function _o(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Do(e,t,r,n){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var u=t[s],c=n?n(r[u],e[u],u,r,e):o;c===o&&(c=e[u]),i?rn(r,u,c):Zr(r,u,c)}return r}function To(e,t){return function(r,n){var o=zs(r)?wt:en,i=t?t():{};return o(r,e,si(n,2),i)}}function Io(e){return Gn((function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:o,a=i>2?r[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&yi(r[0],r[1],a)&&(s=i<3?o:s,i=1),t=we(t);++n<i;){var u=r[n];u&&e(t,u,n,s)}return t}))}function Bo(e,t){return function(r,n){if(null==r)return r;if(!Hs(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=we(r);(t?i--:++i<o)&&!1!==n(s[i],i,s););return r}}function Ro(e){return function(t,r,n){for(var o=-1,i=we(t),s=n(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===r(i[u],u,i))break}return t}}function Fo(e){return function(t){var r=nr(t=ya(t))?lr(t):o,n=r?r[0]:t.charAt(0),i=r?Ao(r,1).join(""):t.slice(1);return n[e]()+i}}function ko(e){return function(t){return Ft(Qa(Va(t).replace(Qe,"")),e,"")}}function Po(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Lr(e.prototype),n=e.apply(r,t);return Js(n)?n:r}}function No(e){return function(t,r,n){var i=we(t);if(!Hs(t)){var s=si(r,3);t=Ia(t),r=function(e){return s(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[s?t[a]:a]:o}}function Mo(e){return ei((function(t){var r=t.length,n=r,s=Ur.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new _e(i);if(s&&!u&&"wrapper"==oi(a))var u=new Ur([],!0)}for(n=u?n:r;++n<r;){var c=oi(a=t[n]),l="wrapper"==c?ni(a):o;u=l&&Ai(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==a.length&&Ai(a)?u[c]():u.thru(a)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&zs(n))return u.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Lo(e,t,r,i,s,a,u,l,d,h){var p=t&c,f=1&t,m=2&t,g=24&t,y=512&t,E=m?o:Po(e);return function c(){for(var A=arguments.length,v=n(A),C=A;C--;)v[C]=arguments[C];if(g)var b=ii(c),S=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(v,b);if(i&&(v=Oo(v,i,s,g)),a&&(v=xo(v,a,u,g)),A-=S,g&&A<h){var w=sr(v,b);return Ho(e,t,Lo,c.placeholder,r,v,w,l,d,h-A)}var O=f?r:this,x=m?O[e]:e;return A=v.length,l?v=function(e,t){for(var r=e.length,n=gr(t.length,r),i=_o(e);n--;){var s=t[n];e[n]=gi(s,r)?i[s]:o}return e}(v,l):y&&A>1&&v.reverse(),p&&d<A&&(v.length=d),this&&this!==dt&&this instanceof c&&(x=E||Po(x)),x.apply(O,v)}}function jo(e,t){return function(r,n){return function(e,t,r,n){return En(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function Uo(e,t){return function(r,n){var i;if(r===o&&n===o)return t;if(r!==o&&(i=r),n!==o){if(i===o)return n;"string"==typeof r||"string"==typeof n?(r=so(r),n=so(n)):(r=io(r),n=io(n)),i=e(r,n)}return i}}function $o(e){return ei((function(t){return t=Bt(t,Yt(si())),Gn((function(r){var n=this;return e(t,(function(e){return St(e,n,r)}))}))}))}function Vo(e,t){var r=(t=t===o?" ":so(t)).length;if(r<2)return r?qn(t,e):t;var n=qn(t,ht(e/cr(t)));return nr(t)?Ao(lr(n),0,e).join(""):n.slice(0,e)}function zo(e){return function(t,r,i){return i&&"number"!=typeof i&&yi(t,r,i)&&(r=i=o),t=ha(t),r===o?(r=t,t=0):r=ha(r),function(e,t,r,o){for(var i=-1,s=mr(ht((t-e)/(r||1)),0),a=n(s);s--;)a[o?s:++i]=e,e+=r;return a}(t,r,i=i===o?t<r?1:-1:ha(i),e)}}function Wo(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ma(t),r=ma(r)),e(t,r)}}function Ho(e,t,r,n,i,s,a,c,l,d){var h=8&t;t|=h?u:64,4&(t&=~(h?64:u))||(t&=-4);var p=[e,t,i,h?s:o,h?a:o,h?o:s,h?o:a,c,l,d],f=r.apply(o,p);return Ai(e)&&_i(f,p),f.placeholder=n,Ii(f,e,t)}function qo(e){var t=Se[e];return function(e,r){if(e=ma(e),(r=null==r?0:gr(pa(r),292))&&Nt(e)){var n=(ya(e)+"e").split("e");return+((n=(ya(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Go=wr&&1/ar(new wr([,-0]))[1]==l?function(e){return new wr(e)}:au;function Ko(e){return function(t){var r=hi(t);return r==b?or(t):r==_?ur(t):function(e,t){return Bt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,r,s,l,d,h,p){var f=2&t;if(!f&&"function"!=typeof e)throw new _e(i);var m=s?s.length:0;if(m||(t&=-97,s=l=o),h=h===o?h:mr(pa(h),0),p=p===o?p:pa(p),m-=l?l.length:0,64&t){var g=s,y=l;s=l=o}var E=f?o:ni(e),A=[e,t,r,s,l,g,y,d,h,p];if(E&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,s=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Oo(l,u,t[4]):u,e[4]=l?sr(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?xo(l,u,t[6]):u,e[6]=l?sr(e[5],a):t[6]),(u=t[7])&&(e[7]=u),n&c&&(e[8]=null==e[8]?t[8]:gr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(A,E),e=A[0],t=A[1],r=A[2],s=A[3],l=A[4],!(p=A[9]=A[9]===o?f?0:e.length:mr(A[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,r){var i=Po(e);return function s(){for(var a=arguments.length,u=n(a),c=a,l=ii(s);c--;)u[c]=arguments[c];var d=a<3&&u[0]!==l&&u[a-1]!==l?[]:sr(u,l);return(a-=d.length)<r?Ho(e,t,Lo,s.placeholder,o,u,d,o,o,r-a):St(this&&this!==dt&&this instanceof s?i:e,this,u)}}(e,t,p):t!=u&&33!=t||l.length?Lo.apply(o,A):function(e,t,r,o){var i=1&t,s=Po(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=o.length,d=n(l+u),h=this&&this!==dt&&this instanceof t?s:e;++c<l;)d[c]=o[c];for(;u--;)d[c++]=arguments[++a];return St(h,i?r:this,d)}}(e,t,r,s);else var v=function(e,t,r){var n=1&t,o=Po(e);return function t(){return(this&&this!==dt&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Ii((E?Xn:_i)(v,A),e,t)}function Qo(e,t,r,n){return e===o||js(e,Ie[r])&&!Fe.call(n,r)?t:e}function Xo(e,t,r,n,i,s){return Js(e)&&Js(t)&&(s.set(t,e),jn(e,t,o,Xo,s),s.delete(t)),e}function Zo(e){return na(e)?o:e}function Jo(e,t,r,n,i,s){var a=1&r,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(e),d=s.get(t);if(l&&d)return l==t&&d==e;var h=-1,p=!0,f=2&r?new Hr:o;for(s.set(e,t),s.set(t,e);++h<u;){var m=e[h],g=t[h];if(n)var y=a?n(g,m,h,t,e,s):n(m,g,h,e,t,s);if(y!==o){if(y)continue;p=!1;break}if(f){if(!Pt(t,(function(e,t){if(!Xt(f,t)&&(m===e||i(m,e,r,n,s)))return f.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,r,n,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function ei(e){return Ti(wi(e,o,Wi),e+"")}function ti(e){return bn(e,Ia,li)}function ri(e){return bn(e,Ba,di)}var ni=_r?function(e){return _r.get(e)}:au;function oi(e){for(var t=e.name+"",r=Dr[t],n=Fe.call(Dr,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(Fe.call(Mr,"placeholder")?Mr:e).placeholder}function si(){var e=Mr.iteratee||nu;return e=e===nu?Fn:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Ia(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,bi(o)]}return t}function ci(e,t){var r=function(e,t){return null==e?o:e[t]}(e,t);return Rn(r)?r:o}var li=mt?function(e){return null==e?[]:(e=we(e),Dt(mt(e),(function(t){return qe.call(e,t)})))}:fu,di=mt?function(e){for(var t=[];e;)Rt(t,li(e)),e=We(e);return t}:fu,hi=Sn;function pi(e,t,r){for(var n=-1,o=(t=yo(t,e)).length,i=!1;++n<o;){var s=Ni(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Zs(o)&&gi(s,o)&&(zs(e)||Vs(e))}function fi(e){return"function"!=typeof e.constructor||Ci(e)?{}:Lr(We(e))}function mi(e){return zs(e)||Vs(e)||!!(Ke&&e&&e[Ke])}function gi(e,t){var r=typeof e;return!!(t=null==t?d:t)&&("number"==r||"symbol"!=r&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,r){if(!Js(r))return!1;var n=typeof t;return!!("number"==n?Hs(r)&&gi(t,r.length):"string"==n&&t in r)&&js(r[t],e)}function Ei(e,t){if(zs(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!aa(e))||J.test(e)||!Z.test(e)||null!=t&&e in we(t)}function Ai(e){var t=oi(e),r=Mr[t];if("function"!=typeof r||!(t in $r.prototype))return!1;if(e===r)return!0;var n=ni(r);return!!n&&e===n[0]}(Cr&&hi(new Cr(new ArrayBuffer(1)))!=R||br&&hi(new br)!=b||Sr&&hi(Sr.resolve())!=O||wr&&hi(new wr)!=_||Or&&hi(new Or)!=I)&&(hi=function(e){var t=Sn(e),r=t==w?e.constructor:o,n=r?Mi(r):"";if(n)switch(n){case Tr:return R;case Ir:return b;case Br:return O;case Rr:return _;case Fr:return I}return t});var vi=Be?Qs:mu;function Ci(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function bi(e){return e==e&&!Js(e)}function Si(e,t){return function(r){return null!=r&&r[e]===t&&(t!==o||e in we(r))}}function wi(e,t,r){return t=mr(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=mr(o.length-t,0),a=n(s);++i<s;)a[i]=o[t+i];i=-1;for(var u=n(t+1);++i<t;)u[i]=o[i];return u[t]=r(a),St(e,this,u)}}function Oi(e,t){return t.length<2?e:Cn(e,eo(t,0,-1))}function xi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var _i=Bi(Xn),Di=lt||function(e,t){return dt.setTimeout(e,t)},Ti=Bi(Zn);function Ii(e,t,r){var n=t+"";return Ti(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ot(f,(function(r){var n="_."+r[0];t&r[1]&&!Tt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),r)))}function Bi(e){var t=0,r=0;return function(){var n=yr(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r<t;){var s=Hn(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var Fi,ki,Pi=(Fi=Fs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,o){t.push(n?o.replace(le,"$1"):r||e)})),t}),(function(e){return 500===ki.size&&ki.clear(),e})),ki=Fi.cache,Fi);function Ni(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mi(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Li(e){if(e instanceof $r)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=_o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ji=Gn((function(e,t){return qs(e)?cn(e,mn(t,1,qs,!0)):[]})),Ui=Gn((function(e,t){var r=Yi(t);return qs(r)&&(r=o),qs(e)?cn(e,mn(t,1,qs,!0),si(r,2)):[]})),$i=Gn((function(e,t){var r=Yi(t);return qs(r)&&(r=o),qs(e)?cn(e,mn(t,1,qs,!0),o,r):[]}));function Vi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:pa(r);return o<0&&(o=mr(n+o,0)),Lt(e,si(t,3),o)}function zi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==o&&(i=pa(r),i=r<0?mr(n+i,0):gr(i,n-1)),Lt(e,si(t,3),i,!0)}function Wi(e){return null!=e&&e.length?mn(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var qi=Gn((function(e){var t=Bt(e,mo);return t.length&&t[0]===e[0]?_n(t):[]})),Gi=Gn((function(e){var t=Yi(e),r=Bt(e,mo);return t===Yi(r)?t=o:r.pop(),r.length&&r[0]===e[0]?_n(r,si(t,2)):[]})),Ki=Gn((function(e){var t=Yi(e),r=Bt(e,mo);return(t="function"==typeof t?t:o)&&r.pop(),r.length&&r[0]===e[0]?_n(r,o,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Qi=Gn(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?zn(e,t):e}var Zi=ei((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return Wn(e,Bt(t,(function(e){return gi(e,r)?+e:e})).sort(wo)),n}));function Ji(e){return null==e?e:vr.call(e)}var es=Gn((function(e){return ao(mn(e,1,qs,!0))})),ts=Gn((function(e){var t=Yi(e);return qs(t)&&(t=o),ao(mn(e,1,qs,!0),si(t,2))})),rs=Gn((function(e){var t=Yi(e);return t="function"==typeof t?t:o,ao(mn(e,1,qs,!0),o,t)}));function ns(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(qs(e))return t=mr(e.length,t),!0})),Gt(t,(function(t){return Bt(e,zt(t))}))}function os(e,t){if(!e||!e.length)return[];var r=ns(e);return null==t?r:Bt(r,(function(e){return St(t,o,e)}))}var is=Gn((function(e,t){return qs(e)?cn(e,t):[]})),ss=Gn((function(e){return po(Dt(e,qs))})),as=Gn((function(e){var t=Yi(e);return qs(t)&&(t=o),po(Dt(e,qs),si(t,2))})),us=Gn((function(e){var t=Yi(e);return t="function"==typeof t?t:o,po(Dt(e,qs),o,t)})),cs=Gn(ns),ls=Gn((function(e){var t=e.length,r=t>1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,os(e,r)}));function ds(e){var t=Mr(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ps=ei((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof $r&&gi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:hs,args:[i],thisArg:o}),new Ur(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),fs=To((function(e,t,r){Fe.call(e,r)?++e[r]:rn(e,r,1)})),ms=No(Vi),gs=No(zi);function ys(e,t){return(zs(e)?Ot:ln)(e,si(t,3))}function Es(e,t){return(zs(e)?xt:dn)(e,si(t,3))}var As=To((function(e,t,r){Fe.call(e,r)?e[r].push(t):rn(e,r,[t])})),vs=Gn((function(e,t,r){var o=-1,i="function"==typeof t,s=Hs(e)?n(e.length):[];return ln(e,(function(e){s[++o]=i?St(t,e,r):Dn(e,t,r)})),s})),Cs=To((function(e,t,r){rn(e,r,t)}));function bs(e,t){return(zs(e)?Bt:Nn)(e,si(t,3))}var Ss=To((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),ws=Gn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&yi(e,t[0],t[1])?t=[]:r>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),$n(e,mn(t,1),[])})),Os=ct||function(){return dt.Date.now()};function xs(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Yo(e,c,o,o,o,o,t)}function _s(e,t){var r;if("function"!=typeof t)throw new _e(i);return e=pa(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var Ds=Gn((function(e,t,r){var n=1;if(r.length){var o=sr(r,ii(Ds));n|=u}return Yo(e,n,t,r,o)})),Ts=Gn((function(e,t,r){var n=3;if(r.length){var o=sr(r,ii(Ts));n|=u}return Yo(t,n,e,r,o)}));function Is(e,t,r){var n,s,a,u,c,l,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new _e(i);function m(t){var r=n,i=s;return n=s=o,d=t,u=e.apply(i,r)}function g(e){var r=e-l;return l===o||r>=t||r<0||p&&e-d>=a}function y(){var e=Os();if(g(e))return E(e);c=Di(y,function(e){var r=t-(e-l);return p?gr(r,a-(e-d)):r}(e))}function E(e){return c=o,f&&n?m(e):(n=s=o,u)}function A(){var e=Os(),r=g(e);if(n=arguments,s=this,l=e,r){if(c===o)return function(e){return d=e,c=Di(y,t),h?m(e):u}(l);if(p)return vo(c),c=Di(y,t),m(l)}return c===o&&(c=Di(y,t)),u}return t=ma(t)||0,Js(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(ma(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),A.cancel=function(){c!==o&&vo(c),d=0,n=l=s=c=o},A.flush=function(){return c===o?u:E(Os())},A}var Bs=Gn((function(e,t){return un(e,1,t)})),Rs=Gn((function(e,t,r){return un(e,ma(t)||0,r)}));function Fs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new _e(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Fs.Cache||Wr),r}function ks(e){if("function"!=typeof e)throw new _e(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fs.Cache=Wr;var Ps=Eo((function(e,t){var r=(t=1==t.length&&zs(t[0])?Bt(t[0],Yt(si())):Bt(mn(t,1),Yt(si()))).length;return Gn((function(n){for(var o=-1,i=gr(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return St(e,this,n)}))})),Ns=Gn((function(e,t){var r=sr(t,ii(Ns));return Yo(e,u,o,t,r)})),Ms=Gn((function(e,t){var r=sr(t,ii(Ms));return Yo(e,64,o,t,r)})),Ls=ei((function(e,t){return Yo(e,256,o,o,o,t)}));function js(e,t){return e===t||e!=e&&t!=t}var Us=Wo(wn),$s=Wo((function(e,t){return e>=t})),Vs=Tn(function(){return arguments}())?Tn:function(e){return ea(e)&&Fe.call(e,"callee")&&!qe.call(e,"callee")},zs=n.isArray,Ws=yt?Yt(yt):function(e){return ea(e)&&Sn(e)==B};function Hs(e){return null!=e&&Zs(e.length)&&!Qs(e)}function qs(e){return ea(e)&&Hs(e)}var Gs=gt||mu,Ks=Et?Yt(Et):function(e){return ea(e)&&Sn(e)==E};function Ys(e){if(!ea(e))return!1;var t=Sn(e);return t==A||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!na(e)}function Qs(e){if(!Js(e))return!1;var t=Sn(e);return t==v||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==pa(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Js(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=At?Yt(At):function(e){return ea(e)&&hi(e)==b};function ra(e){return"number"==typeof e||ea(e)&&Sn(e)==S}function na(e){if(!ea(e)||Sn(e)!=w)return!1;var t=We(e);if(null===t)return!0;var r=Fe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Re.call(r)==Me}var oa=vt?Yt(vt):function(e){return ea(e)&&Sn(e)==x},ia=Ct?Yt(Ct):function(e){return ea(e)&&hi(e)==_};function sa(e){return"string"==typeof e||!zs(e)&&ea(e)&&Sn(e)==D}function aa(e){return"symbol"==typeof e||ea(e)&&Sn(e)==T}var ua=bt?Yt(bt):function(e){return ea(e)&&Zs(e.length)&&!!ot[Sn(e)]},ca=Wo(Pn),la=Wo((function(e,t){return e<=t}));function da(e){if(!e)return[];if(Hs(e))return sa(e)?lr(e):_o(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=hi(e);return(t==b?or:t==_?ar:ja)(e)}function ha(e){return e?(e=ma(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=ha(e),r=t%1;return t==t?r?t-r:t:0}function fa(e){return e?on(pa(e),0,p):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return h;if(Js(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Js(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var r=fe.test(e);return r||ge.test(e)?ut(e.slice(2),r?2:8):pe.test(e)?h:+e}function ga(e){return Do(e,Ba(e))}function ya(e){return null==e?"":so(e)}var Ea=Io((function(e,t){if(Ci(t)||Hs(t))Do(t,Ia(t),e);else for(var r in t)Fe.call(t,r)&&Zr(e,r,t[r])})),Aa=Io((function(e,t){Do(t,Ba(t),e)})),va=Io((function(e,t,r,n){Do(t,Ba(t),e,n)})),Ca=Io((function(e,t,r,n){Do(t,Ia(t),e,n)})),ba=ei(nn),Sa=Gn((function(e,t){e=we(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(n=1);++r<n;)for(var s=t[r],a=Ba(s),u=-1,c=a.length;++u<c;){var l=a[u],d=e[l];(d===o||js(d,Ie[l])&&!Fe.call(e,l))&&(e[l]=s[l])}return e})),wa=Gn((function(e){return e.push(o,Xo),St(Fa,o,e)}));function Oa(e,t,r){var n=null==e?o:Cn(e,t);return n===o?r:n}function xa(e,t){return null!=e&&pi(e,t,xn)}var _a=jo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=r}),Ja(ru)),Da=jo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Fe.call(e,t)?e[t].push(r):e[t]=[r]}),si),Ta=Gn(Dn);function Ia(e){return Hs(e)?Gr(e):kn(e)}function Ba(e){return Hs(e)?Gr(e,!0):function(e){if(!Js(e))return function(e){var t=[];if(null!=e)for(var r in we(e))t.push(r);return t}(e);var t=Ci(e),r=[];for(var n in e)("constructor"!=n||!t&&Fe.call(e,n))&&r.push(n);return r}(e)}var Ra=Io((function(e,t,r){jn(e,t,r)})),Fa=Io((function(e,t,r,n){jn(e,t,r,n)})),ka=ei((function(e,t){var r={};if(null==e)return r;var n=!1;t=Bt(t,(function(t){return t=yo(t,e),n||(n=t.length>1),t})),Do(e,ri(e),r),n&&(r=sn(r,7,Zo));for(var o=t.length;o--;)uo(r,t[o]);return r})),Pa=ei((function(e,t){return null==e?{}:function(e,t){return Vn(e,t,(function(t,r){return xa(e,r)}))}(e,t)}));function Na(e,t){if(null==e)return{};var r=Bt(ri(e),(function(e){return[e]}));return t=si(t),Vn(e,r,(function(e,r){return t(e,r[0])}))}var Ma=Ko(Ia),La=Ko(Ba);function ja(e){return null==e?[]:Qt(e,Ia(e))}var Ua=ko((function(e,t,r){return t=t.toLowerCase(),e+(r?$a(t):t)}));function $a(e){return Ya(ya(e).toLowerCase())}function Va(e){return(e=ya(e))&&e.replace(Ee,er).replace(Xe,"")}var za=ko((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Wa=ko((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ha=Fo("toLowerCase"),qa=ko((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Ga=ko((function(e,t,r){return e+(r?" ":"")+Ya(t)})),Ka=ko((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ya=Fo("toUpperCase");function Qa(e,t,r){return e=ya(e),(t=r?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xa=Gn((function(e,t){try{return St(e,o,t)}catch(e){return Ys(e)?e:new Ce(e)}})),Za=ei((function(e,t){return Ot(t,(function(t){t=Ni(t),rn(e,t,Ds(e[t],e))})),e}));function Ja(e){return function(){return e}}var eu=Mo(),tu=Mo(!0);function ru(e){return e}function nu(e){return Fn("function"==typeof e?e:sn(e,1))}var ou=Gn((function(e,t){return function(r){return Dn(r,e,t)}})),iu=Gn((function(e,t){return function(r){return Dn(e,r,t)}}));function su(e,t,r){var n=Ia(t),o=vn(t,n);null!=r||Js(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=vn(t,Ia(t)));var i=!(Js(r)&&"chain"in r&&!r.chain),s=Qs(e);return Ot(o,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=_o(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Rt([this.value()],arguments))})})),e}function au(){}var uu=$o(Bt),cu=$o(_t),lu=$o(Pt);function du(e){return Ei(e)?zt(Ni(e)):function(e){return function(t){return Cn(t,e)}}(e)}var hu=zo(),pu=zo(!0);function fu(){return[]}function mu(){return!1}var gu,yu=Uo((function(e,t){return e+t}),0),Eu=qo("ceil"),Au=Uo((function(e,t){return e/t}),1),vu=qo("floor"),Cu=Uo((function(e,t){return e*t}),1),bu=qo("round"),Su=Uo((function(e,t){return e-t}),0);return Mr.after=function(e,t){if("function"!=typeof t)throw new _e(i);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Mr.ary=xs,Mr.assign=Ea,Mr.assignIn=Aa,Mr.assignInWith=va,Mr.assignWith=Ca,Mr.at=ba,Mr.before=_s,Mr.bind=Ds,Mr.bindAll=Za,Mr.bindKey=Ts,Mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},Mr.chain=ds,Mr.chunk=function(e,t,r){t=(r?yi(e,t,r):t===o)?1:mr(pa(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,u=n(ht(i/t));s<i;)u[a++]=eo(e,s,s+=t);return u},Mr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Mr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Rt(zs(r)?_o(r):[r],mn(t,1))},Mr.cond=function(e){var t=null==e?0:e.length,r=si();return e=t?Bt(e,(function(e){if("function"!=typeof e[1])throw new _e(i);return[r(e[0]),e[1]]})):[],Gn((function(r){for(var n=-1;++n<t;){var o=e[n];if(St(o[0],this,r))return St(o[1],this,r)}}))},Mr.conforms=function(e){return function(e){var t=Ia(e);return function(r){return an(r,e,t)}}(sn(e,1))},Mr.constant=Ja,Mr.countBy=fs,Mr.create=function(e,t){var r=Lr(e);return null==t?r:tn(r,t)},Mr.curry=function e(t,r,n){var i=Yo(t,8,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Mr.curryRight=function e(t,r,n){var i=Yo(t,16,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Mr.debounce=Is,Mr.defaults=Sa,Mr.defaultsDeep=wa,Mr.defer=Bs,Mr.delay=Rs,Mr.difference=ji,Mr.differenceBy=Ui,Mr.differenceWith=$i,Mr.drop=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,(t=r||t===o?1:pa(t))<0?0:t,n):[]},Mr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,0,(t=n-(t=r||t===o?1:pa(t)))<0?0:t):[]},Mr.dropRightWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!0,!0):[]},Mr.dropWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!0):[]},Mr.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&yi(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=pa(r))<0&&(r=-r>i?0:i+r),(n=n===o||n>i?i:pa(n))<0&&(n+=i),n=r>n?0:fa(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Mr.filter=function(e,t){return(zs(e)?Dt:fn)(e,si(t,3))},Mr.flatMap=function(e,t){return mn(bs(e,t),1)},Mr.flatMapDeep=function(e,t){return mn(bs(e,t),l)},Mr.flatMapDepth=function(e,t,r){return r=r===o?1:pa(r),mn(bs(e,t),r)},Mr.flatten=Wi,Mr.flattenDeep=function(e){return null!=e&&e.length?mn(e,l):[]},Mr.flattenDepth=function(e,t){return null!=e&&e.length?mn(e,t=t===o?1:pa(t)):[]},Mr.flip=function(e){return Yo(e,512)},Mr.flow=eu,Mr.flowRight=tu,Mr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Mr.functions=function(e){return null==e?[]:vn(e,Ia(e))},Mr.functionsIn=function(e){return null==e?[]:vn(e,Ba(e))},Mr.groupBy=As,Mr.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Mr.intersection=qi,Mr.intersectionBy=Gi,Mr.intersectionWith=Ki,Mr.invert=_a,Mr.invertBy=Da,Mr.invokeMap=vs,Mr.iteratee=nu,Mr.keyBy=Cs,Mr.keys=Ia,Mr.keysIn=Ba,Mr.map=bs,Mr.mapKeys=function(e,t){var r={};return t=si(t,3),En(e,(function(e,n,o){rn(r,t(e,n,o),e)})),r},Mr.mapValues=function(e,t){var r={};return t=si(t,3),En(e,(function(e,n,o){rn(r,n,t(e,n,o))})),r},Mr.matches=function(e){return Mn(sn(e,1))},Mr.matchesProperty=function(e,t){return Ln(e,sn(t,1))},Mr.memoize=Fs,Mr.merge=Ra,Mr.mergeWith=Fa,Mr.method=ou,Mr.methodOf=iu,Mr.mixin=su,Mr.negate=ks,Mr.nthArg=function(e){return e=pa(e),Gn((function(t){return Un(t,e)}))},Mr.omit=ka,Mr.omitBy=function(e,t){return Na(e,ks(si(t)))},Mr.once=function(e){return _s(2,e)},Mr.orderBy=function(e,t,r,n){return null==e?[]:(zs(t)||(t=null==t?[]:[t]),zs(r=n?o:r)||(r=null==r?[]:[r]),$n(e,t,r))},Mr.over=uu,Mr.overArgs=Ps,Mr.overEvery=cu,Mr.overSome=lu,Mr.partial=Ns,Mr.partialRight=Ms,Mr.partition=Ss,Mr.pick=Pa,Mr.pickBy=Na,Mr.property=du,Mr.propertyOf=function(e){return function(t){return null==e?o:Cn(e,t)}},Mr.pull=Qi,Mr.pullAll=Xi,Mr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,si(r,2)):e},Mr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,o,r):e},Mr.pullAt=Zi,Mr.range=hu,Mr.rangeRight=pu,Mr.rearg=Ls,Mr.reject=function(e,t){return(zs(e)?Dt:fn)(e,ks(si(t,3)))},Mr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=si(t,3);++n<i;){var s=e[n];t(s,n,e)&&(r.push(s),o.push(n))}return Wn(e,o),r},Mr.rest=function(e,t){if("function"!=typeof e)throw new _e(i);return Gn(e,t=t===o?t:pa(t))},Mr.reverse=Ji,Mr.sampleSize=function(e,t,r){return t=(r?yi(e,t,r):t===o)?1:pa(t),(zs(e)?Yr:Yn)(e,t)},Mr.set=function(e,t,r){return null==e?e:Qn(e,t,r)},Mr.setWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Qn(e,t,r,n)},Mr.shuffle=function(e){return(zs(e)?Qr:Jn)(e)},Mr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&yi(e,t,r)?(t=0,r=n):(t=null==t?0:pa(t),r=r===o?n:pa(r)),eo(e,t,r)):[]},Mr.sortBy=ws,Mr.sortedUniq=function(e){return e&&e.length?oo(e):[]},Mr.sortedUniqBy=function(e,t){return e&&e.length?oo(e,si(t,2)):[]},Mr.split=function(e,t,r){return r&&"number"!=typeof r&&yi(e,t,r)&&(t=r=o),(r=r===o?p:r>>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=so(t))&&nr(e)?Ao(lr(e),0,r):e.split(t,r):[]},Mr.spread=function(e,t){if("function"!=typeof e)throw new _e(i);return t=null==t?0:mr(pa(t),0),Gn((function(r){var n=r[t],o=Ao(r,0,t);return n&&Rt(o,n),St(e,this,o)}))},Mr.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Mr.take=function(e,t,r){return e&&e.length?eo(e,0,(t=r||t===o?1:pa(t))<0?0:t):[]},Mr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,(t=n-(t=r||t===o?1:pa(t)))<0?0:t,n):[]},Mr.takeRightWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!1,!0):[]},Mr.takeWhile=function(e,t){return e&&e.length?lo(e,si(t,3)):[]},Mr.tap=function(e,t){return t(e),e},Mr.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new _e(i);return Js(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Is(e,t,{leading:n,maxWait:t,trailing:o})},Mr.thru=hs,Mr.toArray=da,Mr.toPairs=Ma,Mr.toPairsIn=La,Mr.toPath=function(e){return zs(e)?Bt(e,Ni):aa(e)?[e]:_o(Pi(ya(e)))},Mr.toPlainObject=ga,Mr.transform=function(e,t,r){var n=zs(e),o=n||Gs(e)||ua(e);if(t=si(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:Js(e)&&Qs(i)?Lr(We(e)):{}}return(o?Ot:En)(e,(function(e,n,o){return t(r,e,n,o)})),r},Mr.unary=function(e){return xs(e,1)},Mr.union=es,Mr.unionBy=ts,Mr.unionWith=rs,Mr.uniq=function(e){return e&&e.length?ao(e):[]},Mr.uniqBy=function(e,t){return e&&e.length?ao(e,si(t,2)):[]},Mr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Mr.unset=function(e,t){return null==e||uo(e,t)},Mr.unzip=ns,Mr.unzipWith=os,Mr.update=function(e,t,r){return null==e?e:co(e,t,go(r))},Mr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:co(e,t,go(r),n)},Mr.values=ja,Mr.valuesIn=function(e){return null==e?[]:Qt(e,Ba(e))},Mr.without=is,Mr.words=Qa,Mr.wrap=function(e,t){return Ns(go(t),e)},Mr.xor=ss,Mr.xorBy=as,Mr.xorWith=us,Mr.zip=cs,Mr.zipObject=function(e,t){return fo(e||[],t||[],Zr)},Mr.zipObjectDeep=function(e,t){return fo(e||[],t||[],Qn)},Mr.zipWith=ls,Mr.entries=Ma,Mr.entriesIn=La,Mr.extend=Aa,Mr.extendWith=va,su(Mr,Mr),Mr.add=yu,Mr.attempt=Xa,Mr.camelCase=Ua,Mr.capitalize=$a,Mr.ceil=Eu,Mr.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=ma(r))==r?r:0),t!==o&&(t=(t=ma(t))==t?t:0),on(ma(e),t,r)},Mr.clone=function(e){return sn(e,4)},Mr.cloneDeep=function(e){return sn(e,5)},Mr.cloneDeepWith=function(e,t){return sn(e,5,t="function"==typeof t?t:o)},Mr.cloneWith=function(e,t){return sn(e,4,t="function"==typeof t?t:o)},Mr.conformsTo=function(e,t){return null==t||an(e,t,Ia(t))},Mr.deburr=Va,Mr.defaultTo=function(e,t){return null==e||e!=e?t:e},Mr.divide=Au,Mr.endsWith=function(e,t,r){e=ya(e),t=so(t);var n=e.length,i=r=r===o?n:on(pa(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Mr.eq=js,Mr.escape=function(e){return(e=ya(e))&&K.test(e)?e.replace(q,tr):e},Mr.escapeRegExp=function(e){return(e=ya(e))&&re.test(e)?e.replace(te,"\\$&"):e},Mr.every=function(e,t,r){var n=zs(e)?_t:hn;return r&&yi(e,t,r)&&(t=o),n(e,si(t,3))},Mr.find=ms,Mr.findIndex=Vi,Mr.findKey=function(e,t){return Mt(e,si(t,3),En)},Mr.findLast=gs,Mr.findLastIndex=zi,Mr.findLastKey=function(e,t){return Mt(e,si(t,3),An)},Mr.floor=vu,Mr.forEach=ys,Mr.forEachRight=Es,Mr.forIn=function(e,t){return null==e?e:gn(e,si(t,3),Ba)},Mr.forInRight=function(e,t){return null==e?e:yn(e,si(t,3),Ba)},Mr.forOwn=function(e,t){return e&&En(e,si(t,3))},Mr.forOwnRight=function(e,t){return e&&An(e,si(t,3))},Mr.get=Oa,Mr.gt=Us,Mr.gte=$s,Mr.has=function(e,t){return null!=e&&pi(e,t,On)},Mr.hasIn=xa,Mr.head=Hi,Mr.identity=ru,Mr.includes=function(e,t,r,n){e=Hs(e)?e:ja(e),r=r&&!n?pa(r):0;var o=e.length;return r<0&&(r=mr(o+r,0)),sa(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&jt(e,t,r)>-1},Mr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:pa(r);return o<0&&(o=mr(n+o,0)),jt(e,t,o)},Mr.inRange=function(e,t,r){return t=ha(t),r===o?(r=t,t=0):r=ha(r),function(e,t,r){return e>=gr(t,r)&&e<mr(t,r)}(e=ma(e),t,r)},Mr.invoke=Ta,Mr.isArguments=Vs,Mr.isArray=zs,Mr.isArrayBuffer=Ws,Mr.isArrayLike=Hs,Mr.isArrayLikeObject=qs,Mr.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Sn(e)==y},Mr.isBuffer=Gs,Mr.isDate=Ks,Mr.isElement=function(e){return ea(e)&&1===e.nodeType&&!na(e)},Mr.isEmpty=function(e){if(null==e)return!0;if(Hs(e)&&(zs(e)||"string"==typeof e||"function"==typeof e.splice||Gs(e)||ua(e)||Vs(e)))return!e.length;var t=hi(e);if(t==b||t==_)return!e.size;if(Ci(e))return!kn(e).length;for(var r in e)if(Fe.call(e,r))return!1;return!0},Mr.isEqual=function(e,t){return In(e,t)},Mr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:o)?r(e,t):o;return n===o?In(e,t,o,r):!!n},Mr.isError=Ys,Mr.isFinite=function(e){return"number"==typeof e&&Nt(e)},Mr.isFunction=Qs,Mr.isInteger=Xs,Mr.isLength=Zs,Mr.isMap=ta,Mr.isMatch=function(e,t){return e===t||Bn(e,t,ui(t))},Mr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:o,Bn(e,t,ui(t),r)},Mr.isNaN=function(e){return ra(e)&&e!=+e},Mr.isNative=function(e){if(vi(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rn(e)},Mr.isNil=function(e){return null==e},Mr.isNull=function(e){return null===e},Mr.isNumber=ra,Mr.isObject=Js,Mr.isObjectLike=ea,Mr.isPlainObject=na,Mr.isRegExp=oa,Mr.isSafeInteger=function(e){return Xs(e)&&e>=-9007199254740991&&e<=d},Mr.isSet=ia,Mr.isString=sa,Mr.isSymbol=aa,Mr.isTypedArray=ua,Mr.isUndefined=function(e){return e===o},Mr.isWeakMap=function(e){return ea(e)&&hi(e)==I},Mr.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Sn(e)},Mr.join=function(e,t){return null==e?"":Wt.call(e,t)},Mr.kebabCase=za,Mr.last=Yi,Mr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=pa(r))<0?mr(n+i,0):gr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Lt(e,$t,i,!0)},Mr.lowerCase=Wa,Mr.lowerFirst=Ha,Mr.lt=ca,Mr.lte=la,Mr.max=function(e){return e&&e.length?pn(e,ru,wn):o},Mr.maxBy=function(e,t){return e&&e.length?pn(e,si(t,2),wn):o},Mr.mean=function(e){return Vt(e,ru)},Mr.meanBy=function(e,t){return Vt(e,si(t,2))},Mr.min=function(e){return e&&e.length?pn(e,ru,Pn):o},Mr.minBy=function(e,t){return e&&e.length?pn(e,si(t,2),Pn):o},Mr.stubArray=fu,Mr.stubFalse=mu,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=Cu,Mr.nth=function(e,t){return e&&e.length?Un(e,pa(t)):o},Mr.noConflict=function(){return dt._===this&&(dt._=Le),this},Mr.noop=au,Mr.now=Os,Mr.pad=function(e,t,r){e=ya(e);var n=(t=pa(t))?cr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Vo(pt(o),r)+e+Vo(ht(o),r)},Mr.padEnd=function(e,t,r){e=ya(e);var n=(t=pa(t))?cr(e):0;return t&&n<t?e+Vo(t-n,r):e},Mr.padStart=function(e,t,r){e=ya(e);var n=(t=pa(t))?cr(e):0;return t&&n<t?Vo(t-n,r)+e:e},Mr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),Er(ya(e).replace(ne,""),t||0)},Mr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yi(e,t,r)&&(t=r=o),r===o&&("boolean"==typeof t?(r=t,t=o):"boolean"==typeof e&&(r=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ha(e),t===o?(t=e,e=0):t=ha(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Ar();return gr(e+i*(t-e+at("1e-"+((i+"").length-1))),t)}return Hn(e,t)},Mr.reduce=function(e,t,r){var n=zs(e)?Ft:Ht,o=arguments.length<3;return n(e,si(t,4),r,o,ln)},Mr.reduceRight=function(e,t,r){var n=zs(e)?kt:Ht,o=arguments.length<3;return n(e,si(t,4),r,o,dn)},Mr.repeat=function(e,t,r){return t=(r?yi(e,t,r):t===o)?1:pa(t),qn(ya(e),t)},Mr.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mr.result=function(e,t,r){var n=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++n<i;){var s=null==e?o:e[Ni(t[n])];s===o&&(n=i,s=r),e=Qs(s)?s.call(e):s}return e},Mr.round=bu,Mr.runInContext=e,Mr.sample=function(e){return(zs(e)?Kr:Kn)(e)},Mr.size=function(e){if(null==e)return 0;if(Hs(e))return sa(e)?cr(e):e.length;var t=hi(e);return t==b||t==_?e.size:kn(e).length},Mr.snakeCase=qa,Mr.some=function(e,t,r){var n=zs(e)?Pt:to;return r&&yi(e,t,r)&&(t=o),n(e,si(t,3))},Mr.sortedIndex=function(e,t){return ro(e,t)},Mr.sortedIndexBy=function(e,t,r){return no(e,t,si(r,2))},Mr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ro(e,t);if(n<r&&js(e[n],t))return n}return-1},Mr.sortedLastIndex=function(e,t){return ro(e,t,!0)},Mr.sortedLastIndexBy=function(e,t,r){return no(e,t,si(r,2),!0)},Mr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ro(e,t,!0)-1;if(js(e[r],t))return r}return-1},Mr.startCase=Ga,Mr.startsWith=function(e,t,r){return e=ya(e),r=null==r?0:on(pa(r),0,e.length),t=so(t),e.slice(r,r+t.length)==t},Mr.subtract=Su,Mr.sum=function(e){return e&&e.length?qt(e,ru):0},Mr.sumBy=function(e,t){return e&&e.length?qt(e,si(t,2)):0},Mr.template=function(e,t,r){var n=Mr.templateSettings;r&&yi(e,t,r)&&(t=o),e=ya(e),t=va({},t,n,Qo);var i,s,a=va({},t.imports,n.imports,Qo),u=Ia(a),c=Qt(a,u),l=0,d=t.interpolate||Ae,h="__p += '",p=Oe((t.escape||Ae).source+"|"+d.source+"|"+(d===X?de:Ae).source+"|"+(t.evaluate||Ae).source+"|$","g"),f="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(p,(function(t,r,n,o,a,u){return n||(n=o),h+=e.slice(l,u).replace(ve,rr),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),h+="';\n";var m=Fe.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new Ce("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(V,""):h).replace(z,"$1").replace(W,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xa((function(){return be(u,f+"return "+h).apply(o,c)}));if(g.source=h,Ys(g))throw g;return g},Mr.times=function(e,t){if((e=pa(e))<1||e>d)return[];var r=p,n=gr(e,p);t=si(t),e-=p;for(var o=Gt(n,t);++r<e;)t(r);return o},Mr.toFinite=ha,Mr.toInteger=pa,Mr.toLength=fa,Mr.toLower=function(e){return ya(e).toLowerCase()},Mr.toNumber=ma,Mr.toSafeInteger=function(e){return e?on(pa(e),-9007199254740991,d):0===e?e:0},Mr.toString=ya,Mr.toUpper=function(e){return ya(e).toUpperCase()},Mr.trim=function(e,t,r){if((e=ya(e))&&(r||t===o))return Kt(e);if(!e||!(t=so(t)))return e;var n=lr(e),i=lr(t);return Ao(n,Zt(n,i),Jt(n,i)+1).join("")},Mr.trimEnd=function(e,t,r){if((e=ya(e))&&(r||t===o))return e.slice(0,dr(e)+1);if(!e||!(t=so(t)))return e;var n=lr(e);return Ao(n,0,Jt(n,lr(t))+1).join("")},Mr.trimStart=function(e,t,r){if((e=ya(e))&&(r||t===o))return e.replace(ne,"");if(!e||!(t=so(t)))return e;var n=lr(e);return Ao(n,Zt(n,lr(t))).join("")},Mr.truncate=function(e,t){var r=30,n="...";if(Js(t)){var i="separator"in t?t.separator:i;r="length"in t?pa(t.length):r,n="omission"in t?so(t.omission):n}var s=(e=ya(e)).length;if(nr(e)){var a=lr(e);s=a.length}if(r>=s)return e;var u=r-cr(n);if(u<1)return n;var c=a?Ao(a,0,u).join(""):e.slice(0,u);if(i===o)return c+n;if(a&&(u+=c.length-u),oa(i)){if(e.slice(u).search(i)){var l,d=c;for(i.global||(i=Oe(i.source,ya(he.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var h=l.index;c=c.slice(0,h===o?u:h)}}else if(e.indexOf(so(i),u)!=u){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+n},Mr.unescape=function(e){return(e=ya(e))&&G.test(e)?e.replace(H,hr):e},Mr.uniqueId=function(e){var t=++ke;return ya(e)+t},Mr.upperCase=Ka,Mr.upperFirst=Ya,Mr.each=ys,Mr.eachRight=Es,Mr.first=Hi,su(Mr,(gu={},En(Mr,(function(e,t){Fe.call(Mr.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Mr.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mr[e].placeholder=Mr})),Ot(["drop","take"],(function(e,t){$r.prototype[e]=function(r){r=r===o?1:mr(pa(r),0);var n=this.__filtered__&&!t?new $r(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,p),type:e+(n.__dir__<0?"Right":"")}),n},$r.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;$r.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ot(["head","last"],(function(e,t){var r="take"+(t?"Right":"");$r.prototype[e]=function(){return this[r](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");$r.prototype[e]=function(){return this.__filtered__?new $r(this):this[r](1)}})),$r.prototype.compact=function(){return this.filter(ru)},$r.prototype.find=function(e){return this.filter(e).head()},$r.prototype.findLast=function(e){return this.reverse().find(e)},$r.prototype.invokeMap=Gn((function(e,t){return"function"==typeof e?new $r(this):this.map((function(r){return Dn(r,e,t)}))})),$r.prototype.reject=function(e){return this.filter(ks(si(e)))},$r.prototype.slice=function(e,t){e=pa(e);var r=this;return r.__filtered__&&(e>0||t<0)?new $r(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=pa(t))<0?r.dropRight(-t):r.take(t-e)),r)},$r.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$r.prototype.toArray=function(){return this.take(p)},En($r.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Mr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,u=t instanceof $r,c=a[0],l=u||zs(t),d=function(e){var t=i.apply(Mr,Rt([e],a));return n&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,m=u&&!p;if(!s&&l){t=m?t:new $r(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[d],thisArg:o}),new Ur(g,h)}return f&&m?e.apply(this,a):(g=this.thru(d),f?n?g.value()[0]:g.value():g)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Mr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(zs(o)?o:[],e)}return this[r]((function(r){return t.apply(zs(r)?r:[],e)}))}})),En($r.prototype,(function(e,t){var r=Mr[t];if(r){var n=r.name+"";Fe.call(Dr,n)||(Dr[n]=[]),Dr[n].push({name:t,func:r})}})),Dr[Lo(o,2).name]=[{name:"wrapper",func:o}],$r.prototype.clone=function(){var e=new $r(this.__wrapped__);return e.__actions__=_o(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_o(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_o(this.__views__),e},$r.prototype.reverse=function(){if(this.__filtered__){var e=new $r(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$r.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=zs(e),n=t<0,o=r?e.length:0,i=function(e,t,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=gr(t,e+s);break;case"takeRight":e=mr(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,c=n?a:s-1,l=this.__iteratees__,d=l.length,h=0,p=gr(u,this.__takeCount__);if(!r||!n&&o==u&&p==u)return ho(e,this.__actions__);var f=[];e:for(;u--&&h<p;){for(var m=-1,g=e[c+=t];++m<d;){var y=l[m],E=y.iteratee,A=y.type,v=E(g);if(2==A)g=v;else if(!v){if(1==A)continue e;break e}}f[h++]=g}return f},Mr.prototype.at=ps,Mr.prototype.chain=function(){return ds(this)},Mr.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Mr.prototype.next=function(){this.__values__===o&&(this.__values__=da(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Mr.prototype.plant=function(e){for(var t,r=this;r instanceof jr;){var n=Li(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $r){var t=e;return this.__actions__.length&&(t=new $r(this)),(t=t.reverse()).__actions__.push({func:hs,args:[Ji],thisArg:o}),new Ur(t,this.__chain__)}return this.thru(Ji)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Ye&&(Mr.prototype[Ye]=function(){return this}),Mr}();dt._=pr,(n=function(){return pr}.call(t,r,t,e))===o||(e.exports=n)}.call(this)},6902:e=>{function t(e,n){if(!(this instanceof t))return new t(e,n);this.length=0,this.updates=[],this.path=new Uint16Array(4),this.pages=new Array(32768),this.maxPages=this.pages.length,this.level=0,this.pageSize=e||1024,this.deduplicate=n?n.deduplicate:null,this.zeros=this.deduplicate?r(this.deduplicate.length):null}function r(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t}function n(e,t){this.offset=e*t.length,this.buffer=t,this.updated=!1,this.deduplicate=0}e.exports=t,t.prototype.updated=function(e){for(;this.deduplicate&&e.buffer[e.deduplicate]===this.deduplicate[e.deduplicate];)if(e.deduplicate++,e.deduplicate===this.deduplicate.length){e.deduplicate=0,e.buffer.equals&&e.buffer.equals(this.deduplicate)&&(e.buffer=this.deduplicate);break}!e.updated&&this.updates&&(e.updated=!0,this.updates.push(e))},t.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var e=this.updates.pop();return e.updated=!1,e},t.prototype._array=function(e,t){if(e>=this.maxPages){if(t)return;!function(e,t){for(;e.maxPages<t;){var r=e.pages;e.pages=new Array(32768),e.pages[0]=r,e.level++,e.maxPages*=32768}}(this,e)}var r,n;r=((r=((r=e)-((n=this.path)[0]=32767&r))/32768)-(n[1]=32767&r))/32768,n[3]=(r-(n[2]=32767&r))/32768&32767;for(var o=this.pages,i=this.level;i>0;i--){var s=this.path[i],a=o[s];if(!a){if(t)return;a=o[s]=new Array(32768)}o=a}return o},t.prototype.get=function(e,t){var o,i,s=this._array(e,t),a=this.path[0],u=s&&s[a];return u||t||(u=s[a]=new n(e,r(this.pageSize)),e>=this.length&&(this.length=e+1)),u&&u.buffer===this.deduplicate&&this.deduplicate&&!t&&(u.buffer=(o=u.buffer,i=Buffer.allocUnsafe?Buffer.allocUnsafe(o.length):new Buffer(o.length),o.copy(i),i),u.deduplicate=0),u},t.prototype.set=function(e,t){var o=this._array(e,!1),i=this.path[0];if(e>=this.length&&(this.length=e+1),!t||this.zeros&&t.equals&&t.equals(this.zeros))o[i]=void 0;else{this.deduplicate&&t.equals&&t.equals(this.deduplicate)&&(t=this.deduplicate);var s=o[i],a=function(e,t){if(e.length===t)return e;if(e.length>t)return e.slice(0,t);var n=r(t);return e.copy(n),n}(t,this.pageSize);s?s.buffer=a:o[i]=new n(e,a)}},t.prototype.toBuffer=function(){for(var e=new Array(this.length),t=r(this.pageSize),n=0;n<e.length;)for(var o=this._array(n,!0),i=0;i<32768&&n<e.length;i++)e[n++]=o&&o[i]?o[i].buffer:t;return Buffer.concat(e)}},451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=r(4159),o=r(5015);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return o.redactConnectionString}});const i="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class u extends n.URL{}class c extends Error{get name(){return"MongoParseError"}}class l extends u{constructor(e,t={}){var r;const{looseValidation:n}=t;if(!n&&!(o=e).startsWith("mongodb://")&&!o.startsWith("mongodb+srv://"))throw new c('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var o;const u=e.match(s);if(!u)throw new c(`Invalid connection string "${e}"`);const{protocol:d,username:h,password:p,hosts:f,rest:m}=null!==(r=u.groups)&&void 0!==r?r:{};if(!n){if(!d||!f)throw new c(`Protocol and host list are required in "${e}"`);try{decodeURIComponent(null!=h?h:""),decodeURIComponent(null!=p?p:"")}catch(e){throw new c(e.message)}const t=/[:/?#[\]@]/gi;if(null==h?void 0:h.match(t))throw new c(`Username contains unescaped characters ${h}`);if(!h||!p){const t=e.replace(`${d}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new c("URI contained empty userinfo section")}if(null==p?void 0:p.match(t))throw new c("Password contains unescaped characters")}let g="";"string"==typeof h&&(g+=h),"string"==typeof p&&(g+=`:${p}`),g&&(g+="@");try{super(`${d.toLowerCase()}://${g}${i}${m}`)}catch(r){throw n&&new l(e,{...t,looseValidation:!1}),"string"==typeof r.message&&(r.message=r.message.replace(i,f)),r}if(this._hosts=f.split(","),!n){if(this.isSRV&&1!==this.hosts.length)throw new c("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new c("mongodb+srv URI cannot have port number")}var y;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(y=this.searchParams.constructor,class extends y{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new l(this.toString(),{looseValidation:!0})}redact(e){return(0,o.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:r,username:n,password:o,hosts:i,pathname:s,search:a,searchParams:u,hash:c}=this;return{href:e,origin:t,protocol:r,username:n,password:o,hosts:i,pathname:s,search:a,searchParams:u,hash:c}}}t.ConnectionString=l,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(null!=e?e:"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=l},5015:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.redactConnectionString=t.redactValidConnectionString=void 0;const s=i(r(451));t.redactValidConnectionString=function(e,t){var r,n;const o=e.clone(),i=null!==(r=null==t?void 0:t.replacementString)&&void 0!==r?r:"_credentials_",a=null===(n=null==t?void 0:t.redactUsernames)||void 0===n||n;if((o.username||o.password)&&a?(o.username=i,o.password=""):o.password&&(o.password=i),o.searchParams.has("authMechanismProperties")){const e=new s.CommaAndColonSeparatedRecord(o.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",i),o.searchParams.set("authMechanismProperties",e.toString()))}return o.searchParams.has("tlsCertificateKeyFilePassword")&&o.searchParams.set("tlsCertificateKeyFilePassword",i),o.searchParams.has("proxyUsername")&&a&&o.searchParams.set("proxyUsername",i),o.searchParams.has("proxyPassword")&&o.searchParams.set("proxyPassword",i),o},t.redactConnectionString=function(e,t){var r,n;const o=null!==(r=null==t?void 0:t.replacementString)&&void 0!==r?r:"<credentials>",i=null===(n=null==t?void 0:t.redactUsernames)||void 0===n||n;let a;try{a=new s.default(e)}catch(e){}if(a)return t={...t,replacementString:"___credentials___"},a.redact(t).toString().replace(/___credentials___/g,o);const u=o,c=[e=>e.replace(i?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${u}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${u}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${u}`),e=>i?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${u}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${u}`)];for(const t of c)e=t(e);return e}},6843:(e,t,r)=>{"use strict";const n=r(5477),o=r(629),i=r(7443),{STATUS_MAPPING:s}=r(5541);function a(e,{useSTD3ASCIIRules:t}){let r=0,n=i.length-1;for(;r<=n;){const o=Math.floor((r+n)/2),a=i[o],u=Array.isArray(a[0])?a[0][0]:a[0],c=Array.isArray(a[0])?a[0][1]:a[0];if(u<=e&&c>=e)return!t||a[1]!==s.disallowed_STD3_valid&&a[1]!==s.disallowed_STD3_mapped?a[1]===s.disallowed_STD3_valid?[s.valid,...a.slice(2)]:a[1]===s.disallowed_STD3_mapped?[s.mapped,...a.slice(2)]:a.slice(1):[s.disallowed,...a.slice(2)];u>e?n=o-1:r=o+1}return null}function u(e,{checkHyphens:t,checkBidi:r,checkJoiners:n,processingOption:i,useSTD3ASCIIRules:u}){if(e.normalize("NFC")!==e)return!1;const c=Array.from(e);if(t&&("-"===c[2]&&"-"===c[3]||e.startsWith("-")||e.endsWith("-")))return!1;if(e.includes(".")||c.length>0&&o.combiningMarks.test(c[0]))return!1;for(const e of c){const[t]=a(e.codePointAt(0),{useSTD3ASCIIRules:u});if("transitional"===i&&t!==s.valid||"nontransitional"===i&&t!==s.valid&&t!==s.deviation)return!1}if(n){let e=0;for(const[t,r]of c.entries())if("‌"===r||"‍"===r){if(t>0){if(o.combiningClassVirama.test(c[t-1]))continue;if("‌"===r){const r=c.indexOf("‌",t+1),n=r<0?c.slice(e):c.slice(e,r);if(o.validZWNJ.test(n.join(""))){e=t+1;continue}}}return!1}}if(r){let t;if(o.bidiS1LTR.test(c[0]))t=!1;else{if(!o.bidiS1RTL.test(c[0]))return!1;t=!0}if(t){if(!o.bidiS2.test(e)||!o.bidiS3.test(e)||o.bidiS4EN.test(e)&&o.bidiS4AN.test(e))return!1}else if(!o.bidiS5.test(e)||!o.bidiS6.test(e))return!1}return!0}function c(e,t){const{processingOption:r}=t;let{string:i,error:c}=function(e,{useSTD3ASCIIRules:t,processingOption:r}){let n=!1,o="";for(const i of e){const[e,u]=a(i.codePointAt(0),{useSTD3ASCIIRules:t});switch(e){case s.disallowed:n=!0,o+=i;break;case s.ignored:break;case s.mapped:o+=u;break;case s.deviation:o+="transitional"===r?u:i;break;case s.valid:o+=i}}return{string:o,error:n}}(e,t);i=i.normalize("NFC");const l=i.split("."),d=function(e){const t=e.map((e=>{if(e.startsWith("xn--"))try{return n.decode(e.substring(4))}catch(e){return""}return e})).join(".");return o.bidiDomain.test(t)}(l);for(const[e,o]of l.entries()){let i=o,s=r;if(i.startsWith("xn--")){try{i=n.decode(i.substring(4)),l[e]=i}catch(e){c=!0;continue}s="nontransitional"}c||(u(i,{...t,processingOption:s,checkBidi:t.checkBidi&&d})||(c=!0))}return{string:l.join("."),error:c}}e.exports={toASCII:function(e,{checkHyphens:t=!1,checkBidi:r=!1,checkJoiners:o=!1,useSTD3ASCIIRules:i=!1,processingOption:s="nontransitional",verifyDNSLength:a=!1}={}){if("transitional"!==s&&"nontransitional"!==s)throw new RangeError("processingOption must be either transitional or nontransitional");const u=c(e,{processingOption:s,checkHyphens:t,checkBidi:r,checkJoiners:o,useSTD3ASCIIRules:i});let l=u.string.split(".");if(l=l.map((e=>{if(/[^\x00-\x7F]/u.test(e))try{return`xn--${n.encode(e)}`}catch(e){u.error=!0}return e})),a){const e=l.join(".").length;(e>253||0===e)&&(u.error=!0);for(let e=0;e<l.length;++e)if(l[e].length>63||0===l[e].length){u.error=!0;break}}return u.error?null:l.join(".")},toUnicode:function(e,{checkHyphens:t=!1,checkBidi:r=!1,checkJoiners:n=!1,useSTD3ASCIIRules:o=!1,processingOption:i="nontransitional"}={}){const s=c(e,{processingOption:i,checkHyphens:t,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:o});return{domain:s.string,error:s.error}}}},629:e=>{"use strict";e.exports={combiningMarks:/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,combiningClassVirama:/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}]/u,validZWNJ:/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u08A0-\u08A9\u08AF\u08B0\u08B3\u08B4\u08B6-\u08B8\u08BA-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0855\u0860\u0862-\u0865\u0867-\u086A\u08A0-\u08AC\u08AE-\u08B4\u08B6-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{1E900}-\u{1E943}]/u,bidiDomain:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS1LTR:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,bidiS1RTL:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS2:/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11FD5}-\u{11FF1}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,bidiS3:/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,bidiS4EN:/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31F0-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1123E}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,bidiS6:/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u}},5541:e=>{"use strict";e.exports.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}},5292:(e,t)=>{"use strict";function r(e,t,r){return r.globals&&(e=r.globals[e.name]),new e(`${r.context?r.context:"Value"} ${t}.`)}function n(e,t){if("bigint"==typeof e)throw r(TypeError,"is a BigInt which cannot be converted to a number",t);return t.globals?t.globals.Number(e):Number(e)}function o(e){return a(e>0&&e%1==.5&&0==(1&e)||e<0&&e%1==-.5&&1==(1&e)?Math.floor(e):Math.round(e))}function i(e){return a(Math.trunc(e))}function s(e){return e<0?-1:1}function a(e){return 0===e?0:e}function u(e,{unsigned:t}){let u,c;t?(u=0,c=2**e-1):(u=-(2**(e-1)),c=2**(e-1)-1);const l=2**e,d=2**(e-1);return(e,h={})=>{let p=n(e,h);if(p=a(p),h.enforceRange){if(!Number.isFinite(p))throw r(TypeError,"is not a finite number",h);if(p=i(p),p<u||p>c)throw r(TypeError,`is outside the accepted range of ${u} to ${c}, inclusive`,h);return p}return!Number.isNaN(p)&&h.clamp?(p=Math.min(Math.max(p,u),c),p=o(p),p):Number.isFinite(p)&&0!==p?(p=i(p),p>=u&&p<=c?p:(p=function(e,t){const r=e%t;return s(t)!==s(r)?r+t:r}(p,l),!t&&p>=d?p-l:p)):0}}function c(e,{unsigned:t}){const s=Number.MAX_SAFE_INTEGER,u=t?0:Number.MIN_SAFE_INTEGER,c=t?BigInt.asUintN:BigInt.asIntN;return(t,l={})=>{let d=n(t,l);if(d=a(d),l.enforceRange){if(!Number.isFinite(d))throw r(TypeError,"is not a finite number",l);if(d=i(d),d<u||d>s)throw r(TypeError,`is outside the accepted range of ${u} to ${s}, inclusive`,l);return d}if(!Number.isNaN(d)&&l.clamp)return d=Math.min(Math.max(d,u),s),d=o(d),d;if(!Number.isFinite(d)||0===d)return 0;let h=BigInt(i(d));return h=c(e,h),Number(h)}}t.any=e=>e,t.undefined=()=>{},t.boolean=e=>Boolean(e),t.byte=u(8,{unsigned:!1}),t.octet=u(8,{unsigned:!0}),t.short=u(16,{unsigned:!1}),t["unsigned short"]=u(16,{unsigned:!0}),t.long=u(32,{unsigned:!1}),t["unsigned long"]=u(32,{unsigned:!0}),t["long long"]=c(64,{unsigned:!1}),t["unsigned long long"]=c(64,{unsigned:!0}),t.double=(e,t={})=>{const o=n(e,t);if(!Number.isFinite(o))throw r(TypeError,"is not a finite floating-point value",t);return o},t["unrestricted double"]=(e,t={})=>n(e,t),t.float=(e,t={})=>{const o=n(e,t);if(!Number.isFinite(o))throw r(TypeError,"is not a finite floating-point value",t);if(Object.is(o,-0))return o;const i=Math.fround(o);if(!Number.isFinite(i))throw r(TypeError,"is outside the range of a single-precision floating-point value",t);return i},t["unrestricted float"]=(e,t={})=>{const r=n(e,t);return isNaN(r)||Object.is(r,-0)?r:Math.fround(r)},t.DOMString=(e,t={})=>{if(t.treatNullAsEmptyString&&null===e)return"";if("symbol"==typeof e)throw r(TypeError,"is a symbol, which cannot be converted to a string",t);return(t.globals?t.globals.String:String)(e)},t.ByteString=(e,n={})=>{const o=t.DOMString(e,n);let i;for(let e=0;void 0!==(i=o.codePointAt(e));++e)if(i>255)throw r(TypeError,"is not a valid ByteString",n);return o},t.USVString=(e,r={})=>{const n=t.DOMString(e,r),o=n.length,i=[];for(let e=0;e<o;++e){const t=n.charCodeAt(e);if(t<55296||t>57343)i.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)i.push(String.fromCodePoint(65533));else if(e===o-1)i.push(String.fromCodePoint(65533));else{const r=n.charCodeAt(e+1);if(56320<=r&&r<=57343){const n=1023&t,o=1023&r;i.push(String.fromCodePoint(65536+1024*n+o)),++e}else i.push(String.fromCodePoint(65533))}}return i.join("")},t.object=(e,t={})=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)throw r(TypeError,"is not an object",t);return e};const l=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,d="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(e){try{return l.call(e),!0}catch{return!1}}function p(e){try{return d.call(e),!0}catch{return!1}}function f(e){try{return new Uint8Array(e),!1}catch{return!0}}t.ArrayBuffer=(e,t={})=>{if(!h(e)){if(t.allowShared&&!p(e))throw r(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t);throw r(TypeError,"is not an ArrayBuffer",t)}if(f(e))throw r(TypeError,"is a detached ArrayBuffer",t);return e};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=(e,t={})=>{try{m.call(e)}catch(e){throw r(TypeError,"is not a DataView",t)}if(!t.allowShared&&p(e.buffer))throw r(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is backed by a detached ArrayBuffer",t);return e};const g=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((e=>{const{name:n}=e,o=/^[AEIOU]/u.test(n)?"an":"a";t[n]=(e,t={})=>{if(!ArrayBuffer.isView(e)||g.call(e)!==n)throw r(TypeError,`is not ${o} ${n} object`,t);if(!t.allowShared&&p(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e}})),t.ArrayBufferView=(e,t={})=>{if(!ArrayBuffer.isView(e))throw r(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t);if(!t.allowShared&&p(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e},t.BufferSource=(e,t={})=>{if(ArrayBuffer.isView(e)){if(!t.allowShared&&p(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e}if(!t.allowShared&&!h(e))throw r(TypeError,"is not an ArrayBuffer or a view on one",t);if(t.allowShared&&!p(e)&&!h(e))throw r(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t);if(f(e))throw r(TypeError,"is a detached ArrayBuffer",t);return e},t.DOMTimeStamp=t["unsigned long long"]},4159:(e,t,r)=>{"use strict";const{URL:n,URLSearchParams:o}=r(6396),i=r(1002),s=r(7689),a={Array,Object,Promise,String,TypeError};n.install(a,["Window"]),o.install(a,["Window"]),t.URL=a.URL,t.URLSearchParams=a.URLSearchParams,t.parseURL=i.parseURL,t.basicURLParse=i.basicURLParse,t.serializeURL=i.serializeURL,t.serializePath=i.serializePath,t.serializeHost=i.serializeHost,t.serializeInteger=i.serializeInteger,t.serializeURLOrigin=i.serializeURLOrigin,t.setTheUsername=i.setTheUsername,t.setThePassword=i.setThePassword,t.cannotHaveAUsernamePasswordPort=i.cannotHaveAUsernamePasswordPort,t.hasAnOpaquePath=i.hasAnOpaquePath,t.percentDecodeString=s.percentDecodeString,t.percentDecodeBytes=s.percentDecodeBytes},9353:(e,t,r)=>{"use strict";const n=r(5292),o=r(7118);t.convert=(e,t,{context:r="The provided value"}={})=>{if("function"!=typeof t)throw new e.TypeError(r+" is not a function");function i(...i){const s=o.tryWrapperForImpl(this);let a;for(let e=0;e<i.length;e++)i[e]=o.tryWrapperForImpl(i[e]);return a=Reflect.apply(t,s,i),a=n.any(a,{context:r,globals:e}),a}return i.construct=(...i)=>{for(let e=0;e<i.length;e++)i[e]=o.tryWrapperForImpl(i[e]);let s=Reflect.construct(t,i);return s=n.any(s,{context:r,globals:e}),s},i[o.wrapperSymbol]=t,i.objectReference=t,i}},11:(e,t,r)=>{"use strict";const n=r(1002),o=r(6655),i=r(15);t.implementation=class{constructor(e,t){const r=t[0],o=t[1];let s=null;if(void 0!==o&&(s=n.basicURLParse(o),null===s))throw new TypeError(`Invalid base URL: ${o}`);const a=n.basicURLParse(r,{baseURL:s});if(null===a)throw new TypeError(`Invalid URL: ${r}`);const u=null!==a.query?a.query:"";this._url=a,this._query=i.createImpl(e,[u],{doNotStripQMark:!0}),this._query._url=this}get href(){return n.serializeURL(this._url)}set href(e){const t=n.basicURLParse(e);if(null===t)throw new TypeError(`Invalid URL: ${e}`);this._url=t,this._query._list.splice(0);const{query:r}=t;null!==r&&(this._query._list=o.parseUrlencodedString(r))}get origin(){return n.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(e){n.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){n.cannotHaveAUsernamePasswordPort(this._url)||n.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){n.cannotHaveAUsernamePasswordPort(this._url)||n.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?n.serializeHost(e.host):`${n.serializeHost(e.host)}:${n.serializeInteger(e.port)}`}set host(e){n.hasAnOpaquePath(this._url)||n.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":n.serializeHost(this._url.host)}set hostname(e){n.hasAnOpaquePath(this._url)||n.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":n.serializeInteger(this._url.port)}set port(e){n.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:n.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return n.serializePath(this._url)}set pathname(e){n.hasAnOpaquePath(this._url)||(this._url.path=[],n.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(e){const t=this._url;if(""===e)return t.query=null,void(this._query._list=[]);const r="?"===e[0]?e.substring(1):e;t.query="",n.basicURLParse(r,{url:t,stateOverride:"query"}),this._query._list=o.parseUrlencodedString(r)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(e){if(""===e)return void(this._url.fragment=null);const t="#"===e[0]?e.substring(1):e;this._url.fragment="",n.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},9415:(e,t,r)=>{"use strict";const n=r(5292),o=r(7118),i=o.implSymbol,s=o.ctorRegistrySymbol;function a(e,t){let r;return void 0!==t&&(r=t.prototype),o.isObject(r)||(r=e[s].URL.prototype),Object.create(r)}t.is=e=>o.isObject(e)&&o.hasOwn(e,i)&&e[i]instanceof c.implementation,t.isImpl=e=>o.isObject(e)&&e instanceof c.implementation,t.convert=(e,r,{context:n="The provided value"}={})=>{if(t.is(r))return o.implForWrapper(r);throw new e.TypeError(`${n} is not of type 'URL'.`)},t.create=(e,r,n)=>{const o=a(e);return t.setup(o,e,r,n)},t.createImpl=(e,r,n)=>{const i=t.create(e,r,n);return o.implForWrapper(i)},t._internalSetup=(e,t)=>{},t.setup=(e,r,n=[],s={})=>(s.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,i,{value:new c.implementation(r,n,s),configurable:!0}),e[i][o.wrapperSymbol]=e,c.init&&c.init(e[i]),e),t.new=(e,r)=>{const n=a(e,r);return t._internalSetup(n,e),Object.defineProperty(n,i,{value:Object.create(c.implementation.prototype),configurable:!0}),n[i][o.wrapperSymbol]=n,c.init&&c.init(n[i]),n[i]};const u=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>u.has(e))))return;const s=o.initCtorRegistry(e);class a{constructor(r){if(arguments.length<1)throw new e.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to construct 'URL': parameter 1",globals:e}),o.push(t)}{let t=arguments[1];void 0!==t&&(t=n.USVString(t,{context:"Failed to construct 'URL': parameter 2",globals:e})),o.push(t)}return t.setup(Object.create(new.target.prototype),e,o)}toJSON(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return r[i].toJSON()}get href(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.");return r[i].href}set href(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e}),o[i].href=r}toString(){if(!t.is(this))throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[i].href}get origin(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.");return r[i].origin}get protocol(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return r[i].protocol}set protocol(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e}),o[i].protocol=r}get username(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.");return r[i].username}set username(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e}),o[i].username=r}get password(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.");return r[i].password}set password(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e}),o[i].password=r}get host(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.");return r[i].host}set host(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e}),o[i].host=r}get hostname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return r[i].hostname}set hostname(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e}),o[i].hostname=r}get port(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.");return r[i].port}set port(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e}),o[i].port=r}get pathname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return r[i].pathname}set pathname(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e}),o[i].pathname=r}get search(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.");return r[i].search}set search(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e}),o[i].search=r}get searchParams(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return o.getSameObject(this,"searchParams",(()=>o.tryWrapperForImpl(r[i].searchParams)))}get hash(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.");return r[i].hash}set hash(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e}),o[i].hash=r}}Object.defineProperties(a.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),s.URL=a,Object.defineProperty(e,"URL",{configurable:!0,writable:!0,value:a}),r.includes("Window")&&Object.defineProperty(e,"webkitURL",{configurable:!0,writable:!0,value:a})};const c=r(11)},2082:(e,t,r)=>{"use strict";const n=r(6655);t.implementation=class{constructor(e,t,{doNotStripQMark:r=!1}){let o=t[0];if(this._list=[],this._url=null,r||"string"!=typeof o||"?"!==o[0]||(o=o.slice(1)),Array.isArray(o))for(const e of o){if(2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([e[0],e[1]])}else if("object"==typeof o&&null===Object.getPrototypeOf(o))for(const e of Object.keys(o)){const t=o[e];this._list.push([e,t])}else this._list=n.parseUrlencodedString(o)}_updateSteps(){if(null!==this._url){let e=n.serializeUrlencoded(this._list);""===e&&(e=null),this._url._url.query=e}}append(e,t){this._list.push([e,t]),this._updateSteps()}delete(e){let t=0;for(;t<this._list.length;)this._list[t][0]===e?this._list.splice(t,1):t++;this._updateSteps()}get(e){for(const t of this._list)if(t[0]===e)return t[1];return null}getAll(e){const t=[];for(const r of this._list)r[0]===e&&t.push(r[1]);return t}has(e){for(const t of this._list)if(t[0]===e)return!0;return!1}set(e,t){let r=!1,n=0;for(;n<this._list.length;)this._list[n][0]===e?r?this._list.splice(n,1):(r=!0,this._list[n][1]=t,n++):n++;r||this._list.push([e,t]),this._updateSteps()}sort(){this._list.sort(((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0)),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return n.serializeUrlencoded(this._list)}}},15:(e,t,r)=>{"use strict";const n=r(5292),o=r(7118),i=r(9353),s=o.newObjectInRealm,a=o.implSymbol,u=o.ctorRegistrySymbol,c="URLSearchParams";function l(e,t){let r;return void 0!==t&&(r=t.prototype),o.isObject(r)||(r=e[u].URLSearchParams.prototype),Object.create(r)}t.is=e=>o.isObject(e)&&o.hasOwn(e,a)&&e[a]instanceof h.implementation,t.isImpl=e=>o.isObject(e)&&e instanceof h.implementation,t.convert=(e,r,{context:n="The provided value"}={})=>{if(t.is(r))return o.implForWrapper(r);throw new e.TypeError(`${n} is not of type 'URLSearchParams'.`)},t.createDefaultIterator=(e,t,r)=>{const n=e[u]["URLSearchParams Iterator"],i=Object.create(n);return Object.defineProperty(i,o.iterInternalSymbol,{value:{target:t,kind:r,index:0},configurable:!0}),i},t.create=(e,r,n)=>{const o=l(e);return t.setup(o,e,r,n)},t.createImpl=(e,r,n)=>{const i=t.create(e,r,n);return o.implForWrapper(i)},t._internalSetup=(e,t)=>{},t.setup=(e,r,n=[],i={})=>(i.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,a,{value:new h.implementation(r,n,i),configurable:!0}),e[a][o.wrapperSymbol]=e,h.init&&h.init(e[a]),e),t.new=(e,r)=>{const n=l(e,r);return t._internalSetup(n,e),Object.defineProperty(n,a,{value:Object.create(h.implementation.prototype),configurable:!0}),n[a][o.wrapperSymbol]=n,h.init&&h.init(n[a]),n[a]};const d=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>d.has(e))))return;const u=o.initCtorRegistry(e);class l{constructor(){const r=[];{let t=arguments[0];if(void 0!==t)if(o.isObject(t))if(void 0!==t[Symbol.iterator]){if(!o.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const r=[],i=t;for(let t of i){if(!o.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const r=[],o=t;for(let t of o)t=n.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:e}),r.push(t);t=r}r.push(t)}t=r}}else{if(!o.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const r=Object.create(null);for(const o of Reflect.ownKeys(t)){const i=Object.getOwnPropertyDescriptor(t,o);if(i&&i.enumerable){let i=o;i=n.USVString(i,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:e});let s=t[o];s=n.USVString(s,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:e}),r[i]=s}}t=r}}else t=n.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e});else t="";r.push(t)}return t.setup(Object.create(new.target.prototype),e,r)}append(r,i){const s=null!=this?this:e;if(!t.is(s))throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=n.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return o.tryWrapperForImpl(s[a].append(...u))}delete(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const s=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e}),s.push(t)}return o.tryWrapperForImpl(i[a].delete(...s))}get(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e}),i.push(t)}return o[a].get(...i)}getAll(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const s=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e}),s.push(t)}return o.tryWrapperForImpl(i[a].getAll(...s))}has(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e}),i.push(t)}return o[a].has(...i)}set(r,i){const s=null!=this?this:e;if(!t.is(s))throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=n.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return o.tryWrapperForImpl(s[a].set(...u))}sort(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return o.tryWrapperForImpl(r[a].sort())}toString(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return r[a].toString()}keys(){if(!t.is(this))throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this))throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this))throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key+value")}forEach(r){if(!t.is(this))throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");r=i.convert(e,r,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const n=arguments[1];let s=Array.from(this[a]),u=0;for(;u<s.length;){const[e,t]=s[u].map(o.tryWrapperForImpl);r.call(n,t,e,this),s=Array.from(this[a]),u++}}}Object.defineProperties(l.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:l.prototype.entries,configurable:!0,writable:!0}}),u[c]=l,u["URLSearchParams Iterator"]=Object.create(u["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),o.define(u["URLSearchParams Iterator"],{next(){const t=this&&this[o.iterInternalSymbol];if(!t)throw new e.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:r,kind:n,index:i}=t,u=Array.from(r[a]);if(i>=u.length)return s(e,{value:void 0,done:!0});const c=u[i];return t.index=i+1,s(e,o.iteratorResult(c.map(o.tryWrapperForImpl),n))}}),Object.defineProperty(e,c,{configurable:!0,writable:!0,value:l})};const h=r(2082)},8359:e=>{"use strict";const t=new TextEncoder,r=new TextDecoder("utf-8",{ignoreBOM:!0});e.exports={utf8Encode:function(e){return t.encode(e)},utf8DecodeWithoutBOM:function(e){return r.decode(e)}}},5485:e=>{"use strict";function t(e){return e>=48&&e<=57}function r(e){return e>=65&&e<=90||e>=97&&e<=122}e.exports={isASCIIDigit:t,isASCIIAlpha:r,isASCIIAlphanumeric:function(e){return r(e)||t(e)},isASCIIHex:function(e){return t(e)||e>=65&&e<=70||e>=97&&e<=102}}},7689:(e,t,r)=>{"use strict";const{isASCIIHex:n}=r(5485),{utf8Encode:o}=r(8359);function i(e){return e.codePointAt(0)}function s(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t=`0${t}`),`%${t}`}function a(e){const t=new Uint8Array(e.byteLength);let r=0;for(let o=0;o<e.byteLength;++o){const i=e[o];if(37!==i)t[r++]=i;else if(37!==i||n(e[o+1])&&n(e[o+2])){const n=parseInt(String.fromCodePoint(e[o+1],e[o+2]),16);t[r++]=n,o+=2}else t[r++]=i}return t.slice(0,r)}function u(e){return e<=31||e>126}const c=new Set([i(" "),i('"'),i("<"),i(">"),i("`")]),l=new Set([i(" "),i('"'),i("#"),i("<"),i(">")]);function d(e){return u(e)||l.has(e)}const h=new Set([i("?"),i("`"),i("{"),i("}")]);function p(e){return d(e)||h.has(e)}const f=new Set([i("/"),i(":"),i(";"),i("="),i("@"),i("["),i("\\"),i("]"),i("^"),i("|")]);function m(e){return p(e)||f.has(e)}const g=new Set([i("$"),i("%"),i("&"),i("+"),i(",")]),y=new Set([i("!"),i("'"),i("("),i(")"),i("~")]);function E(e,t){const r=o(e);let n="";for(const e of r)t(e)?n+=s(e):n+=String.fromCharCode(e);return n}e.exports={isC0ControlPercentEncode:u,isFragmentPercentEncode:function(e){return u(e)||c.has(e)},isQueryPercentEncode:d,isSpecialQueryPercentEncode:function(e){return d(e)||e===i("'")},isPathPercentEncode:p,isUserinfoPercentEncode:m,isURLEncodedPercentEncode:function(e){return function(e){return m(e)||g.has(e)}(e)||y.has(e)},percentDecodeString:function(e){return a(o(e))},percentDecodeBytes:a,utf8PercentEncodeString:function(e,t,r=!1){let n="";for(const o of e)n+=r&&" "===o?"+":E(o,t);return n},utf8PercentEncodeCodePoint:function(e,t){return E(String.fromCodePoint(e),t)}}},1002:(e,t,r)=>{"use strict";const n=r(6843),o=r(5485),{utf8DecodeWithoutBOM:i}=r(8359),{percentDecodeString:s,utf8PercentEncodeCodePoint:a,utf8PercentEncodeString:u,isC0ControlPercentEncode:c,isFragmentPercentEncode:l,isQueryPercentEncode:d,isSpecialQueryPercentEncode:h,isPathPercentEncode:p,isUserinfoPercentEncode:f}=r(7689);function m(e){return e.codePointAt(0)}const g={ftp:21,file:null,http:80,https:443,ws:80,wss:443},y=Symbol("failure");function E(e){return[...e].length}function A(e,t){const r=e[t];return isNaN(r)?void 0:String.fromCodePoint(r)}function v(e){return"."===e||"%2e"===e.toLowerCase()}function C(e){return 2===e.length&&o.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function b(e){return void 0!==g[e]}function S(e){return b(e.scheme)}function w(e){return!b(e.scheme)}function O(e){return g[e]}function x(e){if(""===e)return y;let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;let r=/[^0-7]/u;return 10===t&&(r=/[^0-9]/u),16===t&&(r=/[^0-9A-Fa-f]/u),r.test(e)?y:parseInt(e,t)}function _(e,t=!1){if("["===e[0])return"]"!==e[e.length-1]?y:function(e){const t=[0,0,0,0,0,0,0,0];let r=0,n=null,i=0;if((e=Array.from(e,(e=>e.codePointAt(0))))[i]===m(":")){if(e[i+1]!==m(":"))return y;i+=2,++r,n=r}for(;i<e.length;){if(8===r)return y;if(e[i]===m(":")){if(null!==n)return y;++i,++r,n=r;continue}let s=0,a=0;for(;a<4&&o.isASCIIHex(e[i]);)s=16*s+parseInt(A(e,i),16),++i,++a;if(e[i]===m(".")){if(0===a)return y;if(i-=a,r>6)return y;let n=0;for(;void 0!==e[i];){let s=null;if(n>0){if(!(e[i]===m(".")&&n<4))return y;++i}if(!o.isASCIIDigit(e[i]))return y;for(;o.isASCIIDigit(e[i]);){const t=parseInt(A(e,i));if(null===s)s=t;else{if(0===s)return y;s=10*s+t}if(s>255)return y;++i}t[r]=256*t[r]+s,++n,2!==n&&4!==n||++r}if(4!==n)return y;break}if(e[i]===m(":")){if(++i,void 0===e[i])return y}else if(void 0!==e[i])return y;t[r]=s,++r}if(null!==n){let e=r-n;for(r=7;0!==r&&e>0;){const o=t[n+e-1];t[n+e-1]=t[r],t[r]=o,--r,--e}}else if(null===n&&8!==r)return y;return t}(e.substring(1,e.length-1));if(t)return function(e){return-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)?y:u(e,c)}(e);const r=function(e,t=!1){const r=n.toASCII(e,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:t,verifyDNSLength:t});return null===r||""===r?y:r}(i(s(e)));return r===y||-1!==r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)?y:function(e){const t=e.split(".");if(""===t[t.length-1]){if(1===t.length)return!1;t.pop()}const r=t[t.length-1];return x(r)!==y||!!/^[0-9]+$/u.test(r)}(r)?function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return y;const r=[];for(const e of t){const t=x(e);if(t===y)return y;r.push(t)}for(let e=0;e<r.length-1;++e)if(r[e]>255)return y;if(r[r.length-1]>=256**(5-r.length))return y;let n=r.pop(),o=0;for(const e of r)n+=e*256**(3-o),++o;return n}(r):r}function D(e){return"number"==typeof e?function(e){let t="",r=e;for(let e=1;e<=4;++e)t=String(r%256)+t,4!==e&&(t=`.${t}`),r=Math.floor(r/256);return t}(e):e instanceof Array?`[${function(e){let t="";const r=function(e){let t=null,r=1,n=null,o=0;for(let i=0;i<e.length;++i)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:t}(e);let n=!1;for(let o=0;o<=7;++o)n&&0===e[o]||(n&&(n=!1),r!==o?(t+=e[o].toString(16),7!==o&&(t+=":")):(t+=0===o?"::":":",n=!0));return t}(e)}]`:e}function T(e){const{path:t}=e;var r;0!==t.length&&("file"===e.scheme&&1===t.length&&(r=t[0],/^[A-Za-z]:$/u.test(r))||t.pop())}function I(e){return""!==e.username||""!==e.password}function B(e){return"string"==typeof e.path}function R(e,t,r,n,o){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=r||"utf-8",this.stateOverride=o,this.url=n,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/gu,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const i=function(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(i!==this.input&&(this.parseError=!0),this.input=i,this.state=o||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(e=>e.codePointAt(0)));this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),r=this[`parse ${this.state}`](e,t);if(!r)break;if(r===y){this.failure=!0;break}}}R.prototype["parse scheme start"]=function(e,t){if(o.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,y;this.state="no scheme",--this.pointer}return!0},R.prototype["parse scheme"]=function(e,t){if(o.isASCIIAlphanumeric(e)||e===m("+")||e===m("-")||e===m("."))this.buffer+=t.toLowerCase();else if(e===m(":")){if(this.stateOverride){if(S(this.url)&&!b(this.buffer))return!1;if(!S(this.url)&&b(this.buffer))return!1;if((I(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===O(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===m("/")&&this.input[this.pointer+2]===m("/")||(this.parseError=!0),this.state="file"):S(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":S(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===m("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,y;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},R.prototype["parse no scheme"]=function(e){return null===this.base||B(this.base)&&e!==m("#")?y:(B(this.base)&&e===m("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},R.prototype["parse special relative or authority"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},R.prototype["parse path or authority"]=function(e){return e===m("/")?this.state="authority":(this.state="path",--this.pointer),!0},R.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===m("/")?this.state="relative slash":S(this.url)&&e===m("\\")?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},R.prototype["parse relative slash"]=function(e){return!S(this.url)||e!==m("/")&&e!==m("\\")?e===m("/")?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(e===m("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},R.prototype["parse special authority slashes"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},R.prototype["parse special authority ignore slashes"]=function(e){return e!==m("/")&&e!==m("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},R.prototype["parse authority"]=function(e,t){if(e===m("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const e=E(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===m(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const r=a(e,f);this.passwordTokenSeenFlag?this.url.password+=r:this.url.username+=r}this.buffer=""}else if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,y;this.pointer-=E(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},R.prototype["parse hostname"]=R.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(e!==m(":")||this.arrFlag)if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")){if(--this.pointer,S(this.url)&&""===this.buffer)return this.parseError=!0,y;if(this.stateOverride&&""===this.buffer&&(I(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=_(this.buffer,w(this.url));if(e===y)return y;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===m("[")?this.arrFlag=!0:e===m("]")&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,y;if("hostname"===this.stateOverride)return!1;const e=_(this.buffer,w(this.url));if(e===y)return y;this.url.host=e,this.buffer="",this.state="port"}return!0},R.prototype["parse port"]=function(e,t){if(o.isASCIIDigit(e))this.buffer+=t;else{if(!(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")||this.stateOverride))return this.parseError=!0,y;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,y;this.url.port=e===O(this.url.scheme)?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const F=new Set([m("/"),m("\\"),m("?"),m("#")]);function k(e,t){const r=e.length-t;return r>=2&&(n=e[t],i=e[t+1],o.isASCIIAlpha(n)&&(i===m(":")||i===m("|")))&&(2===r||F.has(e[t+2]));var n,i}function P(e){if(B(e))return e.path;let t="";for(const r of e.path)t+=`/${r}`;return t}R.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,k(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):T(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},R.prototype["parse file slash"]=function(e){var t;return e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!k(this.input,this.pointer)&&2===(t=this.base.path[0]).length&&o.isASCIIAlpha(t.codePointAt(0))&&":"===t[1]&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},R.prototype["parse file host"]=function(e,t){if(isNaN(e)||e===m("/")||e===m("\\")||e===m("?")||e===m("#"))if(--this.pointer,!this.stateOverride&&C(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=_(this.buffer,w(this.url));if(e===y)return y;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},R.prototype["parse path start"]=function(e){return S(this.url)?(e===m("\\")&&(this.parseError=!0),this.state="path",e!==m("/")&&e!==m("\\")&&--this.pointer):this.stateOverride||e!==m("?")?this.stateOverride||e!==m("#")?void 0!==e?(this.state="path",e!==m("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},R.prototype["parse path"]=function(e){var t;return isNaN(e)||e===m("/")||S(this.url)&&e===m("\\")||!this.stateOverride&&(e===m("?")||e===m("#"))?(S(this.url)&&e===m("\\")&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(T(this.url),e===m("/")||S(this.url)&&e===m("\\")||this.url.path.push("")):!v(this.buffer)||e===m("/")||S(this.url)&&e===m("\\")?v(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&C(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="",e===m("?")&&(this.url.query="",this.state="query"),e===m("#")&&(this.url.fragment="",this.state="fragment")):(e!==m("%")||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=a(e,p)),!0},R.prototype["parse opaque path"]=function(e){return e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):(isNaN(e)||e===m("%")||(this.parseError=!0),e!==m("%")||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path+=a(e,c))),!0},R.prototype["parse query"]=function(e,t){if(S(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&e===m("#")||isNaN(e)){const t=S(this.url)?h:d;this.url.query+=u(this.buffer,t),this.buffer="",e===m("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(e)||(e!==m("%")||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t);return!0},R.prototype["parse fragment"]=function(e){return isNaN(e)||(e!==m("%")||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=a(e,l)),!0},e.exports.serializeURL=function(e,t){let r=`${e.scheme}:`;return null!==e.host&&(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=`:${e.password}`),r+="@"),r+=D(e.host),null!==e.port&&(r+=`:${e.port}`)),null===e.host&&!B(e)&&e.path.length>1&&""===e.path[0]&&(r+="/."),r+=P(e),null!==e.query&&(r+=`?${e.query}`),t||null===e.fragment||(r+=`#${e.fragment}`),r},e.exports.serializePath=P,e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(P(t)))}catch(e){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return function(e){let t=`${e.scheme}://`;return t+=D(e.host),null!==e.port&&(t+=`:${e.port}`),t}({scheme:t.scheme,host:t.host,port:t.port});default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const r=new R(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?null:r.url},e.exports.setTheUsername=function(e,t){e.username=u(t,f)},e.exports.setThePassword=function(e,t){e.password=u(t,f)},e.exports.serializeHost=D,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||B(e)||"file"===e.scheme},e.exports.hasAnOpaquePath=B,e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,r){return void 0===r&&(r={}),e.exports.basicURLParse(t,{baseURL:r.baseURL,encodingOverride:r.encodingOverride})}},6655:(e,t,r)=>{"use strict";const{utf8Encode:n,utf8DecodeWithoutBOM:o}=r(8359),{percentDecodeBytes:i,utf8PercentEncodeString:s,isURLEncodedPercentEncode:a}=r(7689);function u(e){return e.codePointAt(0)}function c(e,t,r){let n=e.indexOf(t);for(;n>=0;)e[n]=r,n=e.indexOf(t,n+1);return e}e.exports={parseUrlencodedString:function(e){return function(e){const t=function(e,t){const r=[];let n=0,o=e.indexOf(t);for(;o>=0;)r.push(e.slice(n,o)),n=o+1,o=e.indexOf(t,n);return n!==e.length&&r.push(e.slice(n)),r}(e,u("&")),r=[];for(const e of t){if(0===e.length)continue;let t,n;const s=e.indexOf(u("="));s>=0?(t=e.slice(0,s),n=e.slice(s+1)):(t=e,n=new Uint8Array(0)),t=c(t,43,32),n=c(n,43,32);const a=o(i(t)),l=o(i(n));r.push([a,l])}return r}(n(e))},serializeUrlencoded:function(e,t=void 0){let r="utf-8";void 0!==t&&(r=t);let n="";for(const[t,o]of e.entries()){const e=s(o[0],a,!0);let i=o[1];o.length>2&&void 0!==o[2]&&("hidden"===o[2]&&"_charset_"===e?i=r:"file"===o[2]&&(i=i.name)),i=s(i,a,!0),0!==t&&(n+="&"),n+=`${e}=${i}`}return n}}},7118:(e,t)=>{"use strict";const r=Function.prototype.call.bind(Object.prototype.hasOwnProperty),n=Symbol("wrapper"),o=Symbol("impl"),i=Symbol("SameObject caches"),s=Symbol.for("[webidl2js] constructor registry"),a=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);function u(e){if(r(e,s))return e[s];const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype,t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=a}return e[s]=t,t}function c(e){return e?e[n]:null}function l(e){return e?e[o]:null}const d=Symbol("internal"),h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,p=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),g=Symbol("supported property names"),y=Symbol("indexed property get"),E=Symbol("indexed property set new"),A=Symbol("indexed property set existing"),v=Symbol("named property get"),C=Symbol("named property set new"),b=Symbol("named property set existing"),S=Symbol("named property delete"),w=Symbol("async iterator get the next iteration result"),O=Symbol("async iterator return steps"),x=Symbol("async iterator initialization steps"),_=Symbol("async iterator end of iteration");e.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:r,define:function(e,t){for(const r of Reflect.ownKeys(t)){const n=Reflect.getOwnPropertyDescriptor(t,r);if(n&&!Reflect.defineProperty(e,r,n))throw new TypeError(`Cannot redefine property: ${String(r)}`)}},newObjectInRealm:function(e,t){const r=u(e);return Object.defineProperties(Object.create(r["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))},wrapperSymbol:n,implSymbol:o,getSameObject:function(e,t,r){return e[i]||(e[i]=Object.create(null)),t in e[i]||(e[i][t]=r()),e[i][t]},ctorRegistrySymbol:s,initCtorRegistry:u,wrapperForImpl:c,implForWrapper:l,tryWrapperForImpl:function(e){return c(e)||e},tryImplForWrapper:function(e){return l(e)||e},iterInternalSymbol:d,isArrayBuffer:function(e){try{return h.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;const t=e>>>0;return t!==2**32-1&&e===`${t}`},supportsPropertyIndex:p,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:g,indexedGet:y,indexedSetNew:E,indexedSetExisting:A,namedGet:v,namedSetNew:C,namedSetExisting:b,namedDelete:S,asyncIteratorNext:w,asyncIteratorReturn:O,asyncIteratorInit:x,asyncIteratorEOI:_,iteratorResult:function([e,t],r){let n;switch(r){case"key":n=e;break;case"value":n=t;break;case"key+value":n=[e,t]}return{value:n,done:!1}}}},6396:(e,t,r)=>{"use strict";const n=r(9415),o=r(15);t.URL=n,t.URLSearchParams=o},3347:(e,t,r)=>{e.exports=r(9689)},6854:e=>{e.exports={COLLATION_OPTIONS:[{locale:["af","sq","am","ar","ar@collation=compat","hy","as","az","az@collation=search","be","bn","bn@collation=traditional","bs","bs@collation=search","bs_Cyrl","bg","my","ca","ca@collation=search","chr","zh","zh@collation=big5han","zh@collation=gb2312han","zh@collation=pinyin","zh@collation=unihan","zh@collation=zhuyin","zh_Hant","zh_Hant@collation=stroke","hr","hr@collation=search","cs","cs@collation=search","da","da@collation=search","nl","dz","en","en_US","en_US_POSIX","eo","et","ee","fo","fil","fi_FI","fi_FI@collation=search","fi_FI@collation=traditional","fr","fr_CA","gl","gl@collation=search","ka","de","de@collation=search","de@collation=eor","de@collation=phonebook","de_AT","de_AT@collation=phonebook","el","gu","ha","haw","he","he@collation=search","hi","hu","is","is@collation=search","ig","smn","smn@collation=search","id","ga","it","ja","ja@collation=unihan","kl","kl@collation=search","kn","kn@collation=traditional","kk","km","kok","ko","ko@collation=search","ko@collation=searchjl","ko@collation=unihan","ky","lk","lo","lv","li","li@collation=phonetic","lt","dsb","lb","mk","ms","ml","mt","mr","mn","ne","se","se@collation=search","nb","nb@collation=search","nn","nn@collation=search","or","om","ps","fa","fa_AF","pl","pt","pa","ro","ru","sr","sr_Latn","sr_Latn@collation=search","si","si@collation=dictionary","sk","sk@collation=search","sl","es","es@collation=search","es@collation=traditional","sw","sv","sv@collation=search","ta","te","th","bo","to","tr","tr@collation=search","uk","hsb","ur","ug","vi","vi@collation=traditional","wae","cy","yi","yi@collation=search","yo","zu","simple"]},{strength:[1,2,3,4,5]},{caseLevel:[!0,!1]},{caseFirst:["upper","lower","off"]},{numericOrdering:[!0,!1]},{alternate:["non-ignorable","shifted"]},{maxVariable:[!0,!1]},{backwards:[!0,!1]},{normalization:[!0,!1]}]}},9689:(e,t,r)=>{"use strict";const{EJSON:n}=r(345),o=r(5417),{default:i}=r(1829),s=r(6635),a=r(6685),u=r(445)("mongodb-query-parser"),{COLLATION_OPTIONS:c}=r(6854),l={},d=null,h=null,p=null;function f(e){const t=s.trim(e);return"{}"===t||s.isEmpty(t)}function m(e){return f(e)?0:!!/^\d+$/.test(e)&&parseInt(e,10)}function g(e){return i(e,{mode:"loose"})}function y(e){return i(e,{mode:"loose"})}function E(e){return f(e)?d:i(e,{mode:"loose"})}function A(e){return i(e,{mode:"loose"})}function v(){return!0}e.exports=function(e,t=null){return 1===arguments.length&&s.isString(e)?A(e):{filter:A(e),project:g(t)}},e.exports.parseFilter=function(e){return f(e)?l:A(e)},e.exports.parseCollation=function(e){return f(e)?p:y(e)},e.exports.isFilterValid=(e,t={})=>{if(f(e))return l;try{const r=A(e);return(!1===t.validate||!!a.accepts(n.stringify(r,{legacy:!0,relaxed:!1})))&&r}catch(t){return u('Filter "%s" is invalid',e,t),!1}},e.exports.isCollationValid=function(e){if(f(e))return p;try{return function(e){let t=!0;return s.forIn(e,(function(r,n){const o=s.findIndex(c,n);-1===o&&(u('Collation "%s" is invalid bc of its keys',e),t=!1),!1===c[o][n].includes(r)&&(u('Collation "%s" is invalid bc of its values',e),t=!1)})),!!t&&e}(y(e))}catch(t){return u('Collation "%s" is invalid',e,t),!1}},e.exports.parseProject=function(e){return f(e)?h:g(e)},e.exports.isProjectValid=function(e){if(f(e))return h;try{const t=g(e);return s.isObject(t)?s.every(t,v)?t:(u('Project "%s" is invalid bc of its values',e),!1):(u('Project "%s" is invalid. Only documents are allowed',e),!1)}catch(t){return u('Project "%s" is invalid',e,t),!1}};const C=[1,-1,"asc","desc"];function b(e){return s.includes(C,e)||s.isObject(e)&&e.$meta}function S(e){return s.isArray(e)&&2===e.length&&s.isString(e[0])&&b(e[1])}e.exports.parseSort=function(e){return E(e)},e.exports.isSortValid=function(e){try{const t=E(e);return f(t)?d:s.isArray(t)&&s.every(t,S)||s.isObject(t)&&!s.isArray(t)&&s.every(t,b)?t:(u('Sort "%s" is invalid bc of its values',e),!1)}catch(t){return u('Sort "%s" is invalid',e,t),!1}},e.exports.isMaxTimeMSValid=function(e){return f(e)?6e4:m(e)},e.exports.isSkipValid=function(e){return f(e)?0:m(e)},e.exports.isLimitValid=function(e){return f(e)?0:m(e)},e.exports.validate=(t,r,n={})=>{const o=e.exports[`is${s.upperFirst(t)}Valid`];return o?o(r,n):(u("Do not know how to validate `%s`. Returning false.",t),!1)},e.exports.toJSString=o.toJSString,e.exports.stringify=o.stringify,e.exports.QUERY_PROPERTIES=["filter","project","sort","skip","limit"],e.exports.DEFAULT_FILTER=l,e.exports.DEFAULT_SORT=d,e.exports.DEFAULT_LIMIT=0,e.exports.DEFAULT_SKIP=0,e.exports.DEFAULT_PROJECT=h,e.exports.DEFAULT_COLLATION=p,e.exports.DEFAULT_MAX_TIME_MS=6e4},5417:(e,t,r)=>{const n=r(6081).P,o=new Map([["[object Array]","Array"],["[object Object]","Object"],["[object String]","String"],["[object Date]","Date"],["[object Number]","Number"],["[object Function]","Function"],["[object RegExp]","RegExp"],["[object Boolean]","Boolean"],["[object Null]","Null"],["[object Undefined]","Undefined"]]);const i={Code:function(e){return e.scope?`Code('${e.code}',${JSON.stringify(e.scope)})`:`Code('${e.code}')`},ObjectID:function(e){return`ObjectId('${e.toString("hex")}')`},ObjectId:function(e){return`ObjectId('${e.toString("hex")}')`},Binary:function(e){const t=e.sub_type;if(4===t&&16===e.buffer.length){const t=e.buffer.toString("hex");return`UUID("${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20,32)}")`}return`BinData(${t.toString(16)}, '${e.buffer.toString("base64")}')`},DBRef:function(e){return e.db?`DBRef('${e.collection}', '${e.oid}', '${e.db}')`:`DBRef('${e.collection}', '${e.oid}')`},Timestamp:function(e){return`Timestamp({ t: ${e.high}, i: ${e.low} })`},Long:function(e){return`NumberLong(${e.toString()})`},Decimal128:function(e){return`NumberDecimal('${e.toString()}')`},Double:function(e){return`Double('${e.toString()}')`},Int32:function(e){return`NumberInt('${e.toString()}')`},MaxKey:function(){return"MaxKey()"},MinKey:function(){return"MinKey()"},Date:function(e){return`ISODate('${e.toISOString()}')`},ISODate:function(e){return`ISODate('${e.toISOString()}')`},RegExp:function(e){let t="",r=!1;return e.global&&(r=!0,t+="g"),e.ignoreCase&&(r=!0,t+="i"),e.multiline&&(r=!0,t+="m"),`RegExp(${JSON.stringify(e.source)}${r?`, '${t}'`:""})`}};function s(e,t){return n(e,(function(e,t,r){const n=function(e){const t=function(e){return o.get(Object.prototype.toString.call(e))}(e),r="Object"===t&&e._bsontype;return{type:r||t,isBSON:!!r}}(e),s=i[n.type];return s?s(e):r(e)}),t||" ")}e.exports.toJSString=s,e.exports.stringify=function(e){return s(e).replace(/ ?\n ? ?/g,"").replace(/ {2,}/g," ")}},6685:(e,t,r)=>{const n=r(3634);e.exports={parse:n.parse,accepts:function(e){try{return n.parse(e),!0}catch(e){return!1}}}},3634:e=>{"use strict";function t(e,r,n,o){this.message=e,this.expected=r,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(t,Error),t.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?i(e.parts[t][0])+"-"+i(e.parts[t][1]):i(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}return"Expected "+function(e){var t,n,o,i=new Array(e.length);for(t=0;t<e.length;t++)i[t]=(o=e[t],r[o.type](o));if(i.sort(),i.length>0){for(t=1,n=1;t<i.length;t++)i[t-1]!==i[t]&&(i[n]=i[t],n++);i.length=n}switch(i.length){case 1:return i[0];case 2:return i[0]+" or "+i[1];default:return i.slice(0,-1).join(", ")+", or "+i[i.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."},e.exports={SyntaxError:t,parse:function(e,r){r=void 0!==r?r:{};var n,o,i,s,a={},u={query:To},c=To,l=function(e){return{pos:"expression",clauses:null!==e?e:[]}},d=function(e,t){return t},h=function(e,t){return[e].concat(t)},p=function(e){return{pos:"text-clause",search:e.search}},f=function(e){return{search:e}},m=function(e){return{value:e}},g=function(e,t){return{pos:"expression-tree-clause",operator:e,expressions:t}},y="$or",E=So("$or",!1),A="$nor",v=So("$nor",!1),C="$and",b=So("$and",!1),S=function(){return{pos:"expression-clause"}},w="$expr",O=So("$expr",!1),x=function(e,t){return t},_=function(e){return null!==e?e:[]},D=function(e){return{pos:"where-clause",type:"string",value:e}},T=function(e,t){return{pos:"leaf-clause",key:e,value:t}},I="$gte",B=So("$gte",!1),R="$gt",F=So("$gt",!1),k="$lte",P=So("$lte",!1),N="$lt",M=So("$lt",!1),L="$eq",j=So("$eq",!1),U="$ne",$=So("$ne",!1),V="$type",z=So("$type",!1),W="$size",H=So("$size",!1),q="$exists",G=So("$exists",!1),K="$bitsAllClear",Y=So("$bitsAllClear",!1),Q="$bitsAllSet",X=So("$bitsAllSet",!1),Z="$bitsAnyClear",J=So("$bitsAnyClear",!1),ee="$bitsAnySet",te=So("$bitsAnySet",!1),re="$in",ne=So("$in",!1),oe="$nin",ie=So("$nin",!1),se="$all",ae=So("$all",!1),ue="$mod",ce=So("$mod",!1),le="$not",de=So("$not",!1),he="$elemMatch",pe=So("$elemMatch",!1),fe=function(e){return{pos:"operator-expression",operators:null!==e?e:[]}},me=function(e,t){return t},ge=function(e,t){return{pos:"value-operator",operator:e,value:t}},ye=function(e,t){return{pos:"list-operator",operator:e,values:t}},Ee=function(e){return{pos:"elemmatch-expression-operator",expression:e}},Ae=function(e,t){return{pos:"operator-expression-operator",operator:e,operators:t.operators}},ve=function(e){return{pos:"operator-expression-operator",operator:"$not",operators:e}},Ce="$geoWithin",be=So("$geoWithin",!1),Se=function(e){return{pos:"geo-within-operator",operator:"$geoWithin",shape:e}},we="$geoIntersects",Oe=So("$geoIntersects",!1),xe=function(e){return{pos:"geo-intersects-operator",operator:"$geoIntersects",geometry:e}},_e="$nearSphere",De=So("$nearSphere",!1),Te="$near",Ie=So("$near",!1),Be=function(e,t){return{pos:"near-operator",operator:e,value:t}},Re=function(e,t){return{pos:"distance-operator",operator:e,value:t}},Fe="$minDistance",ke=So("$minDistance",!1),Pe="$maxDistance",Ne=So("$maxDistance",!1),Me="$geometry",Le=So("$geometry",!1),je="type",Ue=So("type",!1),$e=function(e){return e},Ve="coordinates",ze=So("coordinates",!1),We=function(e,t){return t},He=function(e,t){return{type:e,coordinates:t}},qe=function(e){return{$geometry:e}},Ge="Point",Ke=So("Point",!1),Ye=function(e,t,r){var n={};return n[t]=r,n},Qe=function(e,t){var r=t||{};return t.$geometry=e,r},Xe="Polygon",Ze=So("Polygon",!1),Je="MultiPolygon",et=So("MultiPolygon",!1),tt=function(e,t){return t},rt="$centerSphere",nt=So("$centerSphere",!1),ot="$center",it=So("$center",!1),st=function(e,t){var r={};return r[e]=JSON.parse(t),r},at="$box",ut=So("$box",!1),ct=function(e){return{$box:JSON.parse(e)}},lt="$polygon",dt=So("$polygon",!1),ht=function(e){return{$polygon:JSON.parse(e)}},pt="$where",ft=So("$where",!1),mt="$text",gt=So("$text",!1),yt="$search",Et=So("$search",!1),At="$language",vt=So("$language",!1),Ct="$caseSensitive",bt=So("$caseSensitive",!1),St="$diacriticSensitive",wt=So("$diacriticSensitive",!1),Ot=function(e){return null!==e?e:[]},xt=/^[^$]/,_t=wo(["$"],!0,!1),Dt=/^[^\0"]/,Tt=wo(["\0",'"'],!0,!1),It=function(e){return e[0]+e[1].join("")},Bt=function(e){return{pos:"leaf-value",value:e}},Rt="[",Ft=So("[",!1),kt="{",Pt=So("{",!1),Nt="]",Mt=So("]",!1),Lt="}",jt=So("}",!1),Ut=":",$t=So(":",!1),Vt=",",zt=So(",",!1),Wt=Oo("whitespace"),Ht=/^[ \t\n\r]/,qt=wo([" ","\t","\n","\r"],!1,!1),Gt="false",Kt=So("false",!1),Yt=function(){return!1},Qt="null",Xt=So("null",!1),Zt=function(){return null},Jt="true",er=So("true",!1),tr=function(){return!0},rr="$oid",nr=So("$oid",!1),or=function(e){return{$oid:e}},ir=function(e){return e.join("")},sr="$minKey",ar=So("$minKey",!1),ur="1",cr=So("1",!1),lr=function(){return{$minKey:1}},dr="$maxKey",hr=So("$maxKey",!1),pr=function(){return{$maxKey:1}},fr="$numberLong",mr=So("$numberLong",!1),gr=function(e){return{$numberLong:e.join("")}},yr="$numberDecimal",Er=So("$numberDecimal",!1),Ar=function(e){return{$numberDecimal:e}},vr="$date",Cr=So("$date",!1),br=function(e){return{$date:e}},Sr=function(e){return e},wr="$undefined",Or=So("$undefined",!1),xr=function(){return{$undefined:!0}},_r="$ref",Dr=So("$ref",!1),Tr=function(e){return e},Ir="$id",Br=So("$id",!1),Rr=function(e,t){return t},Fr="$db",kr=So("$db",!1),Pr=function(e,t,r){return r},Nr=function(e,t,r){var n={$ref:e,$id:t};return null!==r&&(n.$db=r),n},Mr=function(e){return e},Lr="$regex",jr=So("$regex",!1),Ur="$options",$r=So("$options",!1),Vr=/^[gims]/,zr=wo(["g","i","m","s"],!1,!1),Wr=function(e,t){return t.join("")},Hr=function(e,t){return{$regex:e,$options:t||""}},qr="$binary",Gr=So("$binary",!1),Kr=function(e,t){return t},Yr=function(e,t){return{$binary:e,$type:t}},Qr="$timestamp",Xr=So("$timestamp",!1),Zr="t",Jr=So("t",!1),en="i",tn=So("i",!1),rn=function(e,t){return{t:e,i:t}},nn=function(e){return{$timestamp:e}},on=function(e,t){return t},sn=function(e,t){var r={};return[e].concat(t).forEach((function(e){r[e.name]=e.value})),r},an=function(e){return null!==e?e:{}},un=function(e,t){return{name:e,value:t}},cn=Oo("number"),ln=function(){return parseFloat(e.substring(Eo,yo))},dn="180",hn=So("180",!1),pn=/^[0-7]/,fn=wo([["0","7"]],!1,!1),mn="90",gn=So("90",!1),yn=".",En=So(".",!1),An=/^[1-9]/,vn=wo([["1","9"]],!1,!1),Cn=/^[eE]/,bn=wo(["e","E"],!1,!1),Sn="-",wn=So("-",!1),On="+",xn=So("+",!1),_n="0",Dn=So("0",!1),Tn=Oo("string"),In=function(e){return e.join("")},Bn='"',Rn=So('"',!1),Fn="\\",kn=So("\\",!1),Pn="/",Nn=So("/",!1),Mn="b",Ln=So("b",!1),jn=function(){return"\b"},Un="f",$n=So("f",!1),Vn=function(){return"\f"},zn="n",Wn=So("n",!1),Hn=function(){return"\n"},qn="r",Gn=So("r",!1),Kn=function(){return"\r"},Yn=function(){return"\t"},Qn="u",Xn=So("u",!1),Zn=function(e){return String.fromCharCode(parseInt(e,16))},Jn=function(e){return e},eo=/^[^\0-\x1F"\\]/,to=wo([["\0",""],'"',"\\"],!0,!1),ro=/^[0-9]/,no=wo([["0","9"]],!1,!1),oo=/^[0-9a-f]/i,io=wo([["0","9"],["a","f"]],!1,!0),so="--",ao=So("--",!1),uo="W",co=So("W",!1),lo="---",ho=So("---",!1),po="Z",fo=So("Z",!1),mo="T",go=So("T",!1),yo=(So("S",!1),So("M",!1),So("H",!1),So("D",!1),So("Y",!1),So("P",!1),0),Eo=0,Ao=[{line:1,column:1}],vo=0,Co=[],bo=0;if("startRule"in r){if(!(r.startRule in u))throw new Error("Can't start parsing from rule \""+r.startRule+'".');c=u[r.startRule]}function So(e,t){return{type:"literal",text:e,ignoreCase:t}}function wo(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Oo(e){return{type:"other",description:e}}function xo(t){var r,n=Ao[t];if(n)return n;for(r=t-1;!Ao[r];)r--;for(n={line:(n=Ao[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Ao[t]=n,n}function _o(e,t){var r=xo(e),n=xo(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Do(e){yo<vo||(yo>vo&&(vo=yo,Co=[]),Co.push(e))}function To(){return Io()}function Io(){var e,t;return e=yo,zo()!==a?(t=function(){var e,t,r,n,o;if(e=yo,(t=Bo())!==a){for(r=[],n=yo,Go()!==a&&(o=Bo())!==a?(Eo=n,n=d(t,o)):(yo=n,n=a);n!==a;)r.push(n),n=yo,Go()!==a&&(o=Bo())!==a?(Eo=n,n=d(t,o)):(yo=n,n=a);r!==a?(Eo=e,e=t=h(t,r)):(yo=e,e=a)}else yo=e,e=a;return e===a&&(e=null),e}(),t!==a&&Ho()!==a?(Eo=e,e=l(t)):(yo=e,e=a)):(yo=e,e=a),e}function Bo(){var t;return(t=function(){var e,t,r;return e=yo,(t=Uo())!==a&&qo()!==a?(r=function(){var e;return(e=Fo())===a&&(e=$o()),e}(),r!==a?(Eo=e,e=t=T(t,r)):(yo=e,e=a)):(yo=e,e=a),e}())===a&&(t=function(){var t,r,n;return t=yo,pi()!==a?(r=function(){var t;return e.substr(yo,3)===y?(t=y,yo+=3):(t=a,0===bo&&Do(E)),t===a&&(e.substr(yo,4)===A?(t=A,yo+=4):(t=a,0===bo&&Do(v)),t===a&&(e.substr(yo,4)===C?(t=C,yo+=4):(t=a,0===bo&&Do(b)))),t}(),r!==a&&pi()!==a&&qo()!==a&&Vo()!==a?(n=function(){var e,t,r,n,o,i;if(e=yo,t=yo,(r=Io())!==a){for(n=[],o=yo,Go()!==a&&(i=Io())!==a?(Eo=o,o=x(r,i)):(yo=o,o=a);o!==a;)n.push(o),o=yo,Go()!==a&&(i=Io())!==a?(Eo=o,o=x(r,i)):(yo=o,o=a);n!==a?(Eo=t,t=r=h(r,n)):(yo=t,t=a)}else yo=t,t=a;return t===a&&(t=null),t!==a&&(Eo=e,t=_(t)),e=t}(),n!==a&&Wo()!==a?(Eo=t,t=g(r,n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r;return t=yo,pi()!==a?(r=function(){var t;return e.substr(yo,5)===w?(t=w,yo+=5):(t=a,0===bo&&Do(O)),t}(),r!==a&&pi()!==a&&qo()!==a&&zo()!==a&&ko()!==a&&Ho()!==a?(Eo=t,t=S()):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return t=yo,pi()!==a?(r=function(){var t;return e.substr(yo,6)===pt?(t=pt,yo+=6):(t=a,0===bo&&Do(ft)),t}(),r!==a&&pi()!==a&&qo()!==a&&(n=di())!==a?(Eo=t,t=D(n)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return t=yo,pi()!==a?(r=function(){var t;return e.substr(yo,5)===mt?(t=mt,yo+=5):(t=a,0===bo&&Do(gt)),t}(),r!==a&&pi()!==a&&qo()!==a?(n=function(){var t,r,n,o,i,s;return t=yo,zo()!==a&&pi()!==a?(r=function(){var t;return e.substr(yo,7)===yt?(t=yt,yo+=7):(t=a,0===bo&&Do(Et)),t}(),r!==a&&pi()!==a&&qo()!==a&&(n=di())!==a?(o=yo,(i=Go())!==a?(s=function(){var e,t,r;for(e=[],t=yo,pi()!==a&&jo()!==a&&pi()!==a&&qo()!==a&&(r=Ro())!==a?(Eo=t,t=m(r)):(yo=t,t=a);t!==a;)e.push(t),t=yo,pi()!==a&&jo()!==a&&pi()!==a&&qo()!==a&&(r=Ro())!==a?(Eo=t,t=m(r)):(yo=t,t=a);return e}(),s!==a?o=i=[i,s]:(yo=o,o=a)):(yo=o,o=a),o===a&&(o=null),o!==a&&(i=Ho())!==a?(Eo=t,t=f(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}(),n!==a?(Eo=t,t=p(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}()),t}function Ro(){var e;return(e=di())===a&&(e=Xo())===a&&(e=Qo()),e}function Fo(){var e,t;return e=yo,zo()!==a?(t=function(){var e,t,r,n,o;if(e=yo,(t=ko())!==a){for(r=[],n=yo,Go()!==a&&(o=ko())!==a?(Eo=n,n=me(t,o)):(yo=n,n=a);n!==a;)r.push(n),n=yo,Go()!==a&&(o=ko())!==a?(Eo=n,n=me(t,o)):(yo=n,n=a);r!==a?(Eo=e,e=t=h(t,r)):(yo=e,e=a)}else yo=e,e=a;return e}(),t!==a&&Ho()!==a?(Eo=e,e=fe(t)):(yo=e,e=a)):(yo=e,e=a),e}function ko(){var t,r,n,o;return t=yo,pi()!==a?(r=function(){var t;return e.substr(yo,4)===I?(t=I,yo+=4):(t=a,0===bo&&Do(B)),t===a&&(e.substr(yo,3)===R?(t=R,yo+=3):(t=a,0===bo&&Do(F)),t===a&&(e.substr(yo,4)===k?(t=k,yo+=4):(t=a,0===bo&&Do(P)),t===a&&(e.substr(yo,3)===N?(t=N,yo+=3):(t=a,0===bo&&Do(M)),t===a&&(e.substr(yo,3)===L?(t=L,yo+=3):(t=a,0===bo&&Do(j)),t===a&&(e.substr(yo,3)===U?(t=U,yo+=3):(t=a,0===bo&&Do($)),t===a&&(e.substr(yo,5)===V?(t=V,yo+=5):(t=a,0===bo&&Do(z)),t===a&&(e.substr(yo,5)===W?(t=W,yo+=5):(t=a,0===bo&&Do(H)),t===a&&(e.substr(yo,7)===q?(t=q,yo+=7):(t=a,0===bo&&Do(G)),t===a&&(e.substr(yo,13)===K?(t=K,yo+=13):(t=a,0===bo&&Do(Y)),t===a&&(e.substr(yo,11)===Q?(t=Q,yo+=11):(t=a,0===bo&&Do(X)),t===a&&(e.substr(yo,13)===Z?(t=Z,yo+=13):(t=a,0===bo&&Do(J)),t===a&&(e.substr(yo,11)===ee?(t=ee,yo+=11):(t=a,0===bo&&Do(te)))))))))))))),t}(),r!==a&&pi()!==a&&qo()!==a&&(n=$o())!==a?(Eo=t,t=ge(r,n)):(yo=t,t=a)):(yo=t,t=a),t===a&&(t=yo,pi()!==a?(r=function(){var t;return e.substr(yo,3)===re?(t=re,yo+=3):(t=a,0===bo&&Do(ne)),t===a&&(e.substr(yo,4)===oe?(t=oe,yo+=4):(t=a,0===bo&&Do(ie)),t===a&&(e.substr(yo,4)===se?(t=se,yo+=4):(t=a,0===bo&&Do(ae)),t===a&&(e.substr(yo,4)===ue?(t=ue,yo+=4):(t=a,0===bo&&Do(ce))))),t}(),r!==a&&pi()!==a&&qo()!==a&&(n=Vo())!==a?(o=function(){var e,t,r,n,o,i;if(e=yo,t=yo,(r=$o())!==a){for(n=[],o=yo,Go()!==a&&(i=$o())!==a?(Eo=o,o=tt(r,i)):(yo=o,o=a);o!==a;)n.push(o),o=yo,Go()!==a&&(i=$o())!==a?(Eo=o,o=tt(r,i)):(yo=o,o=a);n!==a?(Eo=t,t=r=h(r,n)):(yo=t,t=a)}else yo=t,t=a;return t===a&&(t=null),t!==a&&(Eo=e,t=Ot(t)),e=t}(),o!==a&&Wo()!==a?(Eo=t,t=ye(r,o)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t===a&&(t=yo,pi()!==a?(e.substr(yo,10)===he?(r=he,yo+=10):(r=a,0===bo&&Do(pe)),r!==a&&pi()!==a&&qo()!==a&&(n=Io())!==a?(Eo=t,t=Ee(n)):(yo=t,t=a)):(yo=t,t=a),t===a&&(t=yo,pi()!==a?(r=function(){var t;return e.substr(yo,4)===le?(t=le,yo+=4):(t=a,0===bo&&Do(de)),t===a&&(e.substr(yo,10)===he?(t=he,yo+=10):(t=a,0===bo&&Do(pe))),t}(),r!==a&&pi()!==a&&qo()!==a&&(n=Fo())!==a?(Eo=t,t=Ae(r,n)):(yo=t,t=a)):(yo=t,t=a),t===a&&(t=yo,pi()!==a?(e.substr(yo,4)===le?(r=le,yo+=4):(r=a,0===bo&&Do(de)),r!==a&&pi()!==a&&qo()!==a&&(n=Jo())!==a?(Eo=t,t=ve(n)):(yo=t,t=a)):(yo=t,t=a),t===a&&(t=yo,pi()!==a?(e.substr(yo,10)===Ce?(r=Ce,yo+=10):(r=a,0===bo&&Do(be)),r!==a&&pi()!==a&&qo()!==a?(n=function(){var t;return(t=No())===a&&(t=function(){var t;return t=function(){var t,r,n,o,i,s,u,c,l,d,h,p,f;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,13)===rt?(r=rt,yo+=13):(r=a,0===bo&&Do(nt)),r===a&&(e.substr(yo,7)===ot?(r=ot,yo+=7):(r=a,0===bo&&Do(it))),r!==a&&pi()!==a&&qo()!==a?(n=yo,o=yo,(i=Vo())!==a&&(s=Vo())!==a&&(u=ti())!==a&&(c=Go())!==a&&(l=ti())!==a&&(d=Wo())!==a&&(h=Go())!==a&&(p=ti())!==a&&(f=Wo())!==a?o=i=[i,s,u,c,l,d,h,p,f]:(yo=o,o=a),(n=o!==a?e.substring(n,yo):o)!==a&&(o=Ho())!==a?(Eo=t,t=st(r,n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}(),t===a&&(t=function(){var t,r,n,o,i,s,u,c,l,d,p,f,m;if(t=yo,zo()!==a)if(pi()!==a)if(e.substr(yo,8)===lt?(r=lt,yo+=8):(r=a,0===bo&&Do(dt)),r!==a)if(pi()!==a)if(qo()!==a){if(n=yo,o=yo,Vo()!==a)if(i=yo,(s=Vo())!==a&&(u=ti())!==a&&(c=Go())!==a&&(l=ti())!==a&&(d=Wo())!==a?i=s=[s,u,c,l,d]:(yo=i,i=a),i!==a){for(s=[],u=yo,(c=Go())!==a&&(l=Vo())!==a&&(d=ti())!==a&&(p=Go())!==a&&(f=ti())!==a&&(m=Wo())!==a?u=c=[c,l,d,p,f,m]:(yo=u,u=a);u!==a;)s.push(u),u=yo,(c=Go())!==a&&(l=Vo())!==a&&(d=ti())!==a&&(p=Go())!==a&&(f=ti())!==a&&(m=Wo())!==a?u=c=[c,l,d,p,f,m]:(yo=u,u=a);s!==a&&(u=Wo())!==a?(Eo=o,o=h(i,s)):(yo=o,o=a)}else yo=o,o=a;else yo=o,o=a;(n=o!==a?e.substring(n,yo):o)!==a&&(o=Ho())!==a?(Eo=t,t=ht(n)):(yo=t,t=a)}else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;return t}(),t===a&&(t=function(){var t,r,n,o,i,s,u,c,l,d,h,p,f,m,g,y,E;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,4)===at?(r=at,yo+=4):(r=a,0===bo&&Do(ut)),r!==a&&pi()!==a&&qo()!==a?(n=yo,o=yo,(i=Vo())!==a&&(s=Vo())!==a&&(u=ti())!==a&&(c=Go())!==a&&(l=ti())!==a&&(d=Wo())!==a&&(h=Go())!==a&&(p=Vo())!==a&&(f=ti())!==a&&(m=Go())!==a&&(g=ti())!==a&&(y=Wo())!==a&&(E=Wo())!==a?o=i=[i,s,u,c,l,d,h,p,f,m,g,y,E]:(yo=o,o=a),(n=o!==a?e.substring(n,yo):o)!==a&&(o=Ho())!==a?(Eo=t,t=ct(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())),t}()),t}(),n!==a?(Eo=t,t=Se(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t===a&&(t=yo,pi()!==a?(e.substr(yo,14)===we?(r=we,yo+=14):(r=a,0===bo&&Do(Oe)),r!==a&&pi()!==a&&qo()!==a&&(n=No())!==a?(Eo=t,t=xe(n)):(yo=t,t=a)):(yo=t,t=a),t===a&&(t=yo,pi()!==a?(e.substr(yo,11)===_e?(r=_e,yo+=11):(r=a,0===bo&&Do(De)),r===a&&(e.substr(yo,5)===Te?(r=Te,yo+=5):(r=a,0===bo&&Do(Ie))),r!==a&&pi()!==a&&qo()!==a?(n=function(){var t,r,n,o,i,s,u,c,l,d,h;if(t=yo,zo()!==a)if(pi()!==a)if(e.substr(yo,9)===Me?(r=Me,yo+=9):(r=a,0===bo&&Do(Le)),r!==a)if(pi()!==a)if(qo()!==a)if(zo()!==a)if(n=yo,o=yo,(i=pi())!==a?(e.substr(yo,4)===je?(s=je,yo+=4):(s=a,0===bo&&Do(Ue)),s!==a&&pi()!==a&&(u=qo())!==a&&(c=pi())!==a?(e.substr(yo,5)===Ge?(l=Ge,yo+=5):(l=a,0===bo&&Do(Ke)),l!==a&&(d=pi())!==a?(Eo=o,o=i=$e(l)):(yo=o,o=a)):(yo=o,o=a)):(yo=o,o=a),o!==a?(i=yo,(s=Go())!==a&&pi()!==a?(e.substr(yo,11)===Ve?(u=Ve,yo+=11):(u=a,0===bo&&Do(ze)),u!==a&&(c=pi())!==a&&(l=qo())!==a&&(d=Lo())!==a?(Eo=i,i=s=We(o,d)):(yo=i,i=a)):(yo=i,i=a),i!==a?(Eo=n,n=o=He(o,i)):(yo=n,n=a)):(yo=n,n=a),n!==a)if((o=Ho())!==a){for(i=[],s=yo,Go()!==a&&(u=pi())!==a&&(c=Po())!==a&&(l=pi())!==a&&(d=qo())!==a&&(h=ri())!==a?(Eo=s,s=Ye(n,c,h)):(yo=s,s=a);s!==a;)i.push(s),s=yo,Go()!==a&&(u=pi())!==a&&(c=Po())!==a&&(l=pi())!==a&&(d=qo())!==a&&(h=ri())!==a?(Eo=s,s=Ye(n,c,h)):(yo=s,s=a);i!==a&&(s=Ho())!==a?(Eo=t,t=Qe(n,i)):(yo=t,t=a)}else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;return t}(),n===a&&(n=Lo()),n!==a?(Eo=t,t=Be(r,n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t===a&&(t=yo,pi()!==a&&(r=Po())!==a&&pi()!==a&&qo()!==a&&(n=ri())!==a?(Eo=t,t=Re(r,n)):(yo=t,t=a))))))))),t}function Po(){var t;return e.substr(yo,12)===Fe?(t=Fe,yo+=12):(t=a,0===bo&&Do(ke)),t===a&&(e.substr(yo,12)===Pe?(t=Pe,yo+=12):(t=a,0===bo&&Do(Ne))),t}function No(){var t,r,n,o,i,s,u,c,l;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,9)===Me?(r=Me,yo+=9):(r=a,0===bo&&Do(Le)),r!==a&&pi()!==a&&qo()!==a&&zo()!==a?(n=yo,o=yo,(i=pi())!==a?(e.substr(yo,4)===je?(s=je,yo+=4):(s=a,0===bo&&Do(Ue)),s!==a&&pi()!==a&&(u=qo())!==a&&pi()!==a?(c=function(){var t;return e.substr(yo,7)===Xe?(t=Xe,yo+=7):(t=a,0===bo&&Do(Ze)),t===a&&(e.substr(yo,12)===Je?(t=Je,yo+=12):(t=a,0===bo&&Do(et))),t}(),c!==a&&(l=pi())!==a?(Eo=o,o=i=$e(c)):(yo=o,o=a)):(yo=o,o=a)):(yo=o,o=a),o!==a?(i=yo,(s=Go())!==a&&pi()!==a?(e.substr(yo,11)===Ve?(u=Ve,yo+=11):(u=a,0===bo&&Do(ze)),u!==a&&pi()!==a&&(c=qo())!==a&&(l=Mo())!==a?(Eo=i,i=s=We(o,l)):(yo=i,i=a)):(yo=i,i=a),i!==a?(Eo=n,n=o=He(o,i)):(yo=n,n=a)):(yo=n,n=a),n!==a&&(o=Ho())!==a&&(i=Ho())!==a?(Eo=t,t=qe(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}function Mo(){var e,t,r,n,o,i,s;if(e=yo,(t=Vo())!==a){if(r=yo,(n=ti())===a&&(n=Mo()),n!==a){for(o=[],i=yo,Go()!==a?((s=ti())===a&&(s=Mo()),s!==a?(Eo=i,i=tt(n,s)):(yo=i,i=a)):(yo=i,i=a);i!==a;)o.push(i),i=yo,Go()!==a?((s=ti())===a&&(s=Mo()),s!==a?(Eo=i,i=tt(n,s)):(yo=i,i=a)):(yo=i,i=a);o!==a?(Eo=r,r=n=h(n,o)):(yo=r,r=a)}else yo=r,r=a;r===a&&(r=null),r!==a&&(n=Wo())!==a?e=t=[t,r,n]:(yo=e,e=a)}else yo=e,e=a;return e}function Lo(){var t,r,n,o,i,s;return t=yo,(r=Vo())!==a?(n=function(){var t,r,n,o,i,s,u;if(t=yo,(r=ui())===a&&(r=null),r!==a){if(n=yo,e.substr(yo,3)===dn?(o=dn,yo+=3):(o=a,0===bo&&Do(hn)),o!==a?(i=yo,(s=ni())!==a&&(u=li())!==a?i=s=[s,u]:(yo=i,i=a),i===a&&(i=null),i!==a?n=o=[o,i]:(yo=n,n=a)):(yo=n,n=a),n===a){if(n=yo,o=yo,49===e.charCodeAt(yo)?(i=ur,yo++):(i=a,0===bo&&Do(cr)),i!==a?(pn.test(e.charAt(yo))?(s=e.charAt(yo),yo++):(s=a,0===bo&&Do(fn)),s!==a&&(u=fi())!==a?o=i=[i,s,u]:(yo=o,o=a)):(yo=o,o=a),o===a&&(o=yo,(i=oi())!==a&&(s=fi())!==a?o=i=[i,s]:(yo=o,o=a),o===a&&(o=fi())),o!==a)if((i=ni())!==a){for(s=[],u=ai();u!==a;)s.push(u),u=ai();s!==a?n=o=[o,i,s]:(yo=n,n=a)}else yo=n,n=a;else yo=n,n=a;n===a&&(n=yo,49===e.charCodeAt(yo)?(o=ur,yo++):(o=a,0===bo&&Do(cr)),o!==a?(pn.test(e.charAt(yo))?(i=e.charAt(yo),yo++):(i=a,0===bo&&Do(fn)),i!==a&&(s=fi())!==a?n=o=[o,i,s]:(yo=n,n=a)):(yo=n,n=a),n===a&&(n=yo,(o=oi())!==a&&(i=fi())!==a?n=o=[o,i]:(yo=n,n=a),n===a&&(n=fi())))}n!==a?t=r=[r,n]:(yo=t,t=a)}else yo=t,t=a;return t}(),n!==a&&(o=Go())!==a?(i=function(){var t,r,n,o,i,s,u;if(t=yo,(r=ui())===a&&(r=null),r!==a){if(n=yo,e.substr(yo,2)===mn?(o=mn,yo+=2):(o=a,0===bo&&Do(gn)),o!==a?(i=yo,(s=ni())!==a&&(u=li())!==a?i=s=[s,u]:(yo=i,i=a),i===a&&(i=null),i!==a?n=o=[o,i]:(yo=n,n=a)):(yo=n,n=a),n===a){if(n=yo,o=yo,(i=oi())!==a&&(s=fi())!==a?o=i=[i,s]:(yo=o,o=a),o===a&&(o=fi()),o!==a)if((i=ni())!==a){for(s=[],u=ai();u!==a;)s.push(u),u=ai();s!==a?n=o=[o,i,s]:(yo=n,n=a)}else yo=n,n=a;else yo=n,n=a;n===a&&(n=yo,(o=oi())!==a&&(i=fi())!==a?n=o=[o,i]:(yo=n,n=a),n===a&&(n=fi()))}n!==a?t=r=[r,n]:(yo=t,t=a)}else yo=t,t=a;return t}(),i!==a&&(s=Wo())!==a?t=r=[r,n,o,i,s]:(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}function jo(){var t;return e.substr(yo,9)===At?(t=At,yo+=9):(t=a,0===bo&&Do(vt)),t===a&&(e.substr(yo,14)===Ct?(t=Ct,yo+=14):(t=a,0===bo&&Do(bt)),t===a&&(e.substr(yo,19)===St?(t=St,yo+=19):(t=a,0===bo&&Do(wt)))),t}function Uo(){var t,r,n,o,i;if(t=yo,pi()!==a){if(r=yo,xt.test(e.charAt(yo))?(n=e.charAt(yo),yo++):(n=a,0===bo&&Do(_t)),n!==a){for(o=[],Dt.test(e.charAt(yo))?(i=e.charAt(yo),yo++):(i=a,0===bo&&Do(Tt));i!==a;)o.push(i),Dt.test(e.charAt(yo))?(i=e.charAt(yo),yo++):(i=a,0===bo&&Do(Tt));o!==a?r=n=[n,o]:(yo=r,r=a)}else yo=r,r=a;r!==a&&(n=pi())!==a?(Eo=t,t=It(r)):(yo=t,t=a)}else yo=t,t=a;return t}function $o(){var e,t;return e=yo,Ko()!==a&&(t=Yo())!==a&&Ko()!==a?(Eo=e,e=Bt(t)):(yo=e,e=a),e}function Vo(){var t,r,n,o;return t=yo,(r=Ko())!==a?(91===e.charCodeAt(yo)?(n=Rt,yo++):(n=a,0===bo&&Do(Ft)),n!==a&&(o=Ko())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}function zo(){var t,r,n,o;return t=yo,(r=Ko())!==a?(123===e.charCodeAt(yo)?(n=kt,yo++):(n=a,0===bo&&Do(Pt)),n!==a&&(o=Ko())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}function Wo(){var t,r,n,o;return t=yo,(r=Ko())!==a?(93===e.charCodeAt(yo)?(n=Nt,yo++):(n=a,0===bo&&Do(Mt)),n!==a&&(o=Ko())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}function Ho(){var t,r,n,o;return t=yo,(r=Ko())!==a?(125===e.charCodeAt(yo)?(n=Lt,yo++):(n=a,0===bo&&Do(jt)),n!==a&&(o=Ko())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}function qo(){var t,r,n,o;return t=yo,(r=Ko())!==a?(58===e.charCodeAt(yo)?(n=Ut,yo++):(n=a,0===bo&&Do($t)),n!==a&&(o=Ko())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}function Go(){var t,r,n,o;return t=yo,(r=Ko())!==a?(44===e.charCodeAt(yo)?(n=Vt,yo++):(n=a,0===bo&&Do(zt)),n!==a&&(o=Ko())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}function Ko(){var t,r;for(bo++,t=[],Ht.test(e.charAt(yo))?(r=e.charAt(yo),yo++):(r=a,0===bo&&Do(qt));r!==a;)t.push(r),Ht.test(e.charAt(yo))?(r=e.charAt(yo),yo++):(r=a,0===bo&&Do(qt));return bo--,t===a&&(r=a,0===bo&&Do(Wt)),t}function Yo(){var t;return(t=Qo())===a&&(t=function(){var t,r;return t=yo,e.substr(yo,4)===Qt?(r=Qt,yo+=4):(r=a,0===bo&&Do(Xt)),r!==a&&(Eo=t,r=Zt()),t=r}())===a&&(t=Xo())===a&&(t=function(){var e,t,r,n,o,i;if(e=yo,zo()!==a){if(t=yo,(r=ei())!==a){for(n=[],o=yo,Go()!==a&&(i=ei())!==a?(Eo=o,o=on(r,i)):(yo=o,o=a);o!==a;)n.push(o),o=yo,Go()!==a&&(i=ei())!==a?(Eo=o,o=on(r,i)):(yo=o,o=a);n!==a?(Eo=t,t=r=sn(r,n)):(yo=t,t=a)}else yo=t,t=a;t===a&&(t=null),t!==a&&(r=Ho())!==a?(Eo=e,e=an(t)):(yo=e,e=a)}else yo=e,e=a;return e}())===a&&(t=function(){var e,t,r,n,o,i;if(e=yo,Vo()!==a){if(t=yo,(r=Yo())!==a){for(n=[],o=yo,Go()!==a&&(i=Yo())!==a?(Eo=o,o=tt(r,i)):(yo=o,o=a);o!==a;)n.push(o),o=yo,Go()!==a&&(i=Yo())!==a?(Eo=o,o=tt(r,i)):(yo=o,o=a);n!==a?(Eo=t,t=r=h(r,n)):(yo=t,t=a)}else yo=t,t=a;t===a&&(t=null),t!==a&&(r=Wo())!==a?(Eo=e,e=Ot(t)):(yo=e,e=a)}else yo=e,e=a;return e}())===a&&(t=ti())===a&&(t=di())===a&&(t=function(){var t;return(t=Jo())===a&&(t=function(){var t,r,n;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,4)===rr?(r=rr,yo+=4):(r=a,0===bo&&Do(nr)),r!==a&&pi()!==a&&qo()!==a&&pi()!==a?(n=function(){var e,t,r,n,o,i,s,u,c,l,d,h,p,f,m,g,y,E,A,v,C,b,S,w,O,x;return e=yo,t=yo,(r=mi())!==a&&(n=mi())!==a&&(o=mi())!==a&&(i=mi())!==a&&(s=mi())!==a&&(u=mi())!==a&&(c=mi())!==a&&(l=mi())!==a&&(d=mi())!==a&&(h=mi())!==a&&(p=mi())!==a&&(f=mi())!==a&&(m=mi())!==a&&(g=mi())!==a&&(y=mi())!==a&&(E=mi())!==a&&(A=mi())!==a&&(v=mi())!==a&&(C=mi())!==a&&(b=mi())!==a&&(S=mi())!==a&&(w=mi())!==a&&(O=mi())!==a&&(x=mi())!==a?t=r=[r,n,o,i,s,u,c,l,d,h,p,f,m,g,y,E,A,v,C,b,S,w,O,x]:(yo=t,t=a),t!==a&&(Eo=e,t=ir(t)),e=t}(),n!==a&&pi()!==a&&Ho()!==a?(Eo=t,t=or(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,7)===sr?(r=sr,yo+=7):(r=a,0===bo&&Do(ar)),r!==a&&pi()!==a&&qo()!==a?(49===e.charCodeAt(yo)?(n=ur,yo++):(n=a,0===bo&&Do(cr)),n===a&&(e.substr(yo,4)===Jt?(n=Jt,yo+=4):(n=a,0===bo&&Do(er))),n!==a&&Ho()!==a?(Eo=t,t=lr()):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,7)===dr?(r=dr,yo+=7):(r=a,0===bo&&Do(hr)),r!==a&&pi()!==a&&qo()!==a?(49===e.charCodeAt(yo)?(n=ur,yo++):(n=a,0===bo&&Do(cr)),n===a&&(e.substr(yo,4)===Jt?(n=Jt,yo+=4):(n=a,0===bo&&Do(er))),n!==a&&Ho()!==a?(Eo=t,t=pr()):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=Zo())===a&&(t=function(){var t,r,n,o,i,s;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,14)===yr?(r=yr,yo+=14):(r=a,0===bo&&Do(Er)),r!==a&&pi()!==a&&qo()!==a?(n=yo,(o=pi())!==a&&(i=ti())!==a&&(s=pi())!==a?n=o=[o,i,s]:(yo=n,n=a),n!==a&&(o=Ho())!==a?(Eo=t,t=Ar(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,5)===vr?(r=vr,yo+=5):(r=a,0===bo&&Do(Cr)),r!==a&&pi()!==a&&qo()!==a?(n=function(){var t,r,n;return t=yo,pi()!==a?(r=yo,(r=(n=function(){var t,r,n,o;return t=yo,(r=function(){var t;return(t=function(){var t,r,n,o,i;return t=yo,(r=Ci())!==a&&(n=Ei())!==a?(45===e.charCodeAt(yo)?(o=Sn,yo++):(o=a,0===bo&&Do(wn)),o===a&&(o=null),o!==a&&(i=Ai())!==a?t=r=[r,n,o,i]:(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return(t=gi())===a&&(t=yo,r=function(){var t;return 45===e.charCodeAt(yo)?(t=Sn,yo++):(t=a,0===bo&&Do(wn)),t===a&&(t=gi()),t}(),r!==a&&(n=yi())!==a?t=r=[r,n]:(yo=t,t=a)),t}())===a&&(t=function(){var t,r,n,o,i,s,u;return t=yo,45===e.charCodeAt(yo)?(r=Sn,yo++):(r=a,0===bo&&Do(wn)),r!==a?(n=function(){var t,r,n;return 45===e.charCodeAt(yo)?(t=Sn,yo++):(t=a,0===bo&&Do(wn)),t===a&&(t=yo,(r=yi())!==a?(45===e.charCodeAt(yo)?(n=Sn,yo++):(n=a,0===bo&&Do(wn)),n===a&&(n=null),n!==a?t=r=[r,n]:(yo=t,t=a)):(yo=t,t=a)),t}(),n!==a&&(o=Ei())!==a?(i=yo,45===e.charCodeAt(yo)?(s=Sn,yo++):(s=a,0===bo&&Do(wn)),s===a&&(s=null),s!==a&&(u=Ai())!==a?i=s=[s,u]:(yo=i,i=a),i!==a?t=r=[r,n,o,i]:(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n,o;return t=yo,e.substr(yo,2)===so?(r=so,yo+=2):(r=a,0===bo&&Do(ao)),r!==a?(n=function(){var t,r,n;return 45===e.charCodeAt(yo)?(t=Sn,yo++):(t=a,0===bo&&Do(wn)),t===a&&(t=yo,(r=Ei())!==a?(45===e.charCodeAt(yo)?(n=Sn,yo++):(n=a,0===bo&&Do(wn)),n===a&&(n=null),n!==a?t=r=[r,n]:(yo=t,t=a)):(yo=t,t=a)),t}(),n!==a&&(o=Ai())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n,o,i,s;return t=yo,(r=function(){var t;return(t=function(){var t,r,n,o,i;return t=yo,45===e.charCodeAt(yo)?(r=Sn,yo++):(r=a,0===bo&&Do(wn)),r!==a?(n=yo,(o=fi())!==a?(45===e.charCodeAt(yo)?(i=Sn,yo++):(i=a,0===bo&&Do(wn)),i===a&&(i=null),i!==a?n=o=[o,i]:(yo=n,n=a)):(yo=n,n=a),n===a&&(n=null),n!==a?t=r=[r,n]:(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=Ci()),t}())!==a?(87===e.charCodeAt(yo)?(n=uo,yo++):(n=a,0===bo&&Do(co)),n!==a?((o=vi())===a&&(o=yo,i=function(){var t,r,n;return 45===e.charCodeAt(yo)?(t=Sn,yo++):(t=a,0===bo&&Do(wn)),t===a&&(t=yo,(r=vi())!==a?(45===e.charCodeAt(yo)?(n=Sn,yo++):(n=a,0===bo&&Do(wn)),n===a&&(n=null),n!==a?t=r=[r,n]:(yo=t,t=a)):(yo=t,t=a)),t}(),i!==a&&(s=fi())!==a?o=i=[i,s]:(yo=o,o=a)),o!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return t=yo,e.substr(yo,3)===lo?(r=lo,yo+=3):(r=a,0===bo&&Do(ho)),r!==a&&(n=fi())!==a?t=r=[r,n]:(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return t=yo,r=function(){var t;return 45===e.charCodeAt(yo)?(t=Sn,yo++):(t=a,0===bo&&Do(wn)),t===a&&(t=Ci()),t}(),r!==a?(n=function(){var t,r,n,o,i;return t=yo,r=yo,(n=fi())!==a&&(o=fi())!==a&&(i=fi())!==a?r=n=[n,o,i]:(yo=r,r=a),r!==a?e.substring(t,yo):r}(),n!==a?t=r=[r,n]:(yo=t,t=a)):(yo=t,t=a),t}()),t}())!==a?(84===e.charCodeAt(yo)?(n=mo,yo++):(n=a,0===bo&&Do(go)),n!==a&&(o=function(){var t,r,n,o;return t=yo,(r=function(){var t;return(t=function(){var t,r,n,o,i,s,u,c;return t=yo,(r=bi())!==a?(n=yo,58===e.charCodeAt(yo)?(o=Ut,yo++):(o=a,0===bo&&Do($t)),o===a&&(o=null),o!==a&&(i=Si())!==a?(s=yo,58===e.charCodeAt(yo)?(u=Ut,yo++):(u=a,0===bo&&Do($t)),u===a&&(u=null),u!==a&&(c=wi())!==a?s=u=[u,c]:(yo=s,s=a),s===a&&(s=null),s!==a?n=o=[o,i,s]:(yo=n,n=a)):(yo=n,n=a),n===a&&(n=null),n!==a?t=r=[r,n]:(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n,o,i,s;return t=yo,r=function(){var t,r,n;return 45===e.charCodeAt(yo)?(t=Sn,yo++):(t=a,0===bo&&Do(wn)),t===a&&(t=yo,(r=bi())!==a?(58===e.charCodeAt(yo)?(n=Ut,yo++):(n=a,0===bo&&Do($t)),n===a&&(n=null),n!==a?t=r=[r,n]:(yo=t,t=a)):(yo=t,t=a)),t}(),r!==a&&(n=Si())!==a?(o=yo,58===e.charCodeAt(yo)?(i=Ut,yo++):(i=a,0===bo&&Do($t)),i===a&&(i=null),i!==a&&(s=wi())!==a?o=i=[i,s]:(yo=o,o=a),o===a&&(o=null),o!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n,o;return t=yo,45===e.charCodeAt(yo)?(r=Sn,yo++):(r=a,0===bo&&Do(wn)),r!==a?(n=function(){var t,r,n;return 45===e.charCodeAt(yo)?(t=Sn,yo++):(t=a,0===bo&&Do(wn)),t===a&&(t=yo,(r=Si())!==a?(58===e.charCodeAt(yo)?(n=Ut,yo++):(n=a,0===bo&&Do($t)),n===a&&(n=null),n!==a?t=r=[r,n]:(yo=t,t=a)):(yo=t,t=a)),t}(),n!==a&&(o=wi())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}()),t}())!==a?(n=function(){var t,r,n,o,i;if(t=yo,44===e.charCodeAt(yo)?(r=Vt,yo++):(r=a,0===bo&&Do(zt)),r===a&&(46===e.charCodeAt(yo)?(r=yn,yo++):(r=a,0===bo&&Do(En))),r!==a){if(n=yo,o=[],(i=fi())!==a)for(;i!==a;)o.push(i),i=fi();else o=a;(n=o!==a?e.substring(n,yo):o)!==a?t=r=[r,n]:(yo=t,t=a)}else yo=t,t=a;return t}(),n===a&&(n=null),n!==a?((o=function(){var t;return 90===e.charCodeAt(yo)?(t=po,yo++):(t=a,0===bo&&Do(fo)),t===a&&(t=function(){var t,r,n,o,i,s;return t=yo,43===e.charCodeAt(yo)?(r=On,yo++):(r=a,0===bo&&Do(xn)),r===a&&(45===e.charCodeAt(yo)?(r=Sn,yo++):(r=a,0===bo&&Do(wn))),r!==a&&(n=bi())!==a?(o=yo,58===e.charCodeAt(yo)?(i=Ut,yo++):(i=a,0===bo&&Do($t)),i===a&&(i=null),i!==a&&(s=Si())!==a?o=i=[i,s]:(yo=o,o=a),o===a&&(o=null),o!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}()),t}())===a&&(o=null),o!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}())!==a?e.substring(r,yo):n)!==a&&(n=pi())!==a?(Eo=t,t=Sr(r)):(yo=t,t=a)):(yo=t,t=a),t}(),n===a&&(n=Zo()),n!==a&&Ho()!==a?(Eo=t,t=br(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n,o,i,s,u;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,10)===Qr?(r=Qr,yo+=10):(r=a,0===bo&&Do(Xr)),r!==a&&pi()!==a&&qo()!==a?(n=yo,zo()!==a&&pi()!==a?(116===e.charCodeAt(yo)?(o=Zr,yo++):(o=a,0===bo&&Do(Jr)),o!==a&&pi()!==a&&qo()!==a&&(i=ti())!==a&&Go()!==a&&pi()!==a?(105===e.charCodeAt(yo)?(s=en,yo++):(s=a,0===bo&&Do(tn)),s!==a&&pi()!==a&&qo()!==a&&(u=ti())!==a&&Ho()!==a?(Eo=n,n=rn(i,u)):(yo=n,n=a)):(yo=n,n=a)):(yo=n,n=a),n!==a&&Ho()!==a?(Eo=t,t=nn(n)):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n,o,i,s,u,c;return t=yo,zo()!==a?(r=yo,n=yo,(o=pi())!==a?(e.substr(yo,7)===qr?(i=qr,yo+=7):(i=a,0===bo&&Do(Gr)),i!==a&&pi()!==a&&(s=qo())!==a&&(u=di())!==a?(Eo=n,n=o=Tr(u)):(yo=n,n=a)):(yo=n,n=a),n!==a?(o=yo,(i=Go())!==a&&pi()!==a?(e.substr(yo,5)===V?(s=V,yo+=5):(s=a,0===bo&&Do(z)),s!==a&&(u=pi())!==a&&qo()!==a&&pi()!==a&&(c=mi())!==a&&pi()!==a?(Eo=o,o=i=Kr(n,c)):(yo=o,o=a)):(yo=o,o=a),o!==a?(Eo=r,r=n=Yr(n,o)):(yo=r,r=a)):(yo=r,r=a),r!==a&&(n=Ho())!==a?(Eo=t,t=Mr(r)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n,o,i,s,u,c,l;return t=yo,zo()!==a?(r=yo,n=yo,(o=pi())!==a?(e.substr(yo,4)===_r?(i=_r,yo+=4):(i=a,0===bo&&Do(Dr)),i!==a&&pi()!==a&&(s=qo())!==a&&(u=di())!==a?(Eo=n,n=o=Tr(u)):(yo=n,n=a)):(yo=n,n=a),n!==a?(o=yo,(i=Go())!==a&&pi()!==a?(e.substr(yo,3)===Ir?(s=Ir,yo+=3):(s=a,0===bo&&Do(Br)),s!==a&&(u=pi())!==a&&qo()!==a&&(c=Yo())!==a?(Eo=o,o=i=Rr(n,c)):(yo=o,o=a)):(yo=o,o=a),o!==a?(i=yo,Go()!==a&&(s=pi())!==a?(e.substr(yo,3)===Fr?(u=Fr,yo+=3):(u=a,0===bo&&Do(kr)),u!==a&&pi()!==a&&(c=qo())!==a&&(l=di())!==a?(Eo=i,i=Pr(n,o,l)):(yo=i,i=a)):(yo=i,i=a),i===a&&(i=null),i!==a?(Eo=r,r=n=Nr(n,o,i)):(yo=r,r=a)):(yo=r,r=a)):(yo=r,r=a),r!==a&&(n=Ho())!==a?(Eo=t,t=Mr(r)):(yo=t,t=a)):(yo=t,t=a),t}())===a&&(t=function(){var t,r,n;return t=yo,zo()!==a&&pi()!==a?(e.substr(yo,10)===wr?(r=wr,yo+=10):(r=a,0===bo&&Do(Or)),r!==a&&pi()!==a&&qo()!==a?(e.substr(yo,4)===Jt?(n=Jt,yo+=4):(n=a,0===bo&&Do(er)),n!==a&&Ho()!==a?(Eo=t,t=xr()):(yo=t,t=a)):(yo=t,t=a)):(yo=t,t=a),t}()),t}()),t}function Qo(){var t,r;return t=yo,e.substr(yo,5)===Gt?(r=Gt,yo+=5):(r=a,0===bo&&Do(Kt)),r!==a&&(Eo=t,r=Yt()),r}function Xo(){var t,r;return t=yo,e.substr(yo,4)===Jt?(r=Jt,yo+=4):(r=a,0===bo&&Do(er)),r!==a&&(Eo=t,r=tr()),r}function Zo(){var t,r,n,o;if(t=yo,zo()!==a)if(pi()!==a)if(e.substr(yo,11)===fr?(r=fr,yo+=11):(r=a,0===bo&&Do(mr)),r!==a)if(pi()!==a)if(qo()!==a)if(pi()!==a){if(n=[],(o=ci())===a&&(o=ui())===a&&(o=fi()),o!==a)for(;o!==a;)n.push(o),(o=ci())===a&&(o=ui())===a&&(o=fi());else n=a;n!==a&&(o=pi())!==a&&Ho()!==a?(Eo=t,t=gr(n)):(yo=t,t=a)}else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;else yo=t,t=a;return t}function Jo(){var t,r,n,o,i,s,u,c,l;if(t=yo,zo()!==a){if(r=yo,n=yo,(o=pi())!==a?(e.substr(yo,6)===Lr?(i=Lr,yo+=6):(i=a,0===bo&&Do(jr)),i!==a&&pi()!==a&&(s=qo())!==a&&(u=di())!==a?(Eo=n,n=o=Tr(u)):(yo=n,n=a)):(yo=n,n=a),n!==a){if(o=yo,(i=Go())!==a)if(pi()!==a)if(e.substr(yo,8)===Ur?(s=Ur,yo+=8):(s=a,0===bo&&Do($r)),s!==a)if((u=pi())!==a)if(qo()!==a)if(pi()!==a){for(c=[],Vr.test(e.charAt(yo))?(l=e.charAt(yo),yo++):(l=a,0===bo&&Do(zr));l!==a;)c.push(l),Vr.test(e.charAt(yo))?(l=e.charAt(yo),yo++):(l=a,0===bo&&Do(zr));c!==a&&(l=pi())!==a?(Eo=o,o=i=Wr(n,c)):(yo=o,o=a)}else yo=o,o=a;else yo=o,o=a;else yo=o,o=a;else yo=o,o=a;else yo=o,o=a;else yo=o,o=a;o===a&&(o=null),o!==a?(Eo=r,r=n=Hr(n,o)):(yo=r,r=a)}else yo=r,r=a;r!==a&&(n=Ho())!==a?(Eo=t,t=Mr(r)):(yo=t,t=a)}else yo=t,t=a;return t}function ei(){var e,t,r;return e=yo,(t=Uo())!==a&&qo()!==a&&(r=Yo())!==a?(Eo=e,e=t=un(t,r)):(yo=e,e=a),e}function ti(){var e,t,r,n;return bo++,e=yo,(t=ui())===a&&(t=null),t!==a&&ai()!==a?((r=si())===a&&(r=null),r!==a?((n=ii())===a&&(n=null),n!==a?(Eo=e,e=t=ln()):(yo=e,e=a)):(yo=e,e=a)):(yo=e,e=a),bo--,e===a&&(t=a,0===bo&&Do(cn)),e}function ri(){var e,t,r;return e=yo,ai()!==a?((t=si())===a&&(t=null),t!==a?((r=ii())===a&&(r=null),r!==a?(Eo=e,e=ln()):(yo=e,e=a)):(yo=e,e=a)):(yo=e,e=a),e}function ni(){var t;return 46===e.charCodeAt(yo)?(t=yn,yo++):(t=a,0===bo&&Do(En)),t}function oi(){var t;return An.test(e.charAt(yo))?(t=e.charAt(yo),yo++):(t=a,0===bo&&Do(vn)),t}function ii(){var t,r,n,o,i;if(t=yo,r=function(){var t;return Cn.test(e.charAt(yo))?(t=e.charAt(yo),yo++):(t=a,0===bo&&Do(bn)),t}(),r!==a)if((n=ui())===a&&(n=ci()),n===a&&(n=null),n!==a){if(o=[],(i=fi())!==a)for(;i!==a;)o.push(i),i=fi();else o=a;o!==a?t=r=[r,n,o]:(yo=t,t=a)}else yo=t,t=a;else yo=t,t=a;return t}function si(){var e,t,r,n;if(e=yo,(t=ni())!==a){if(r=[],(n=fi())!==a)for(;n!==a;)r.push(n),n=fi();else r=a;r!==a?e=t=[t,r]:(yo=e,e=a)}else yo=e,e=a;return e}function ai(){var e,t,r,n;if((e=li())===a)if(e=yo,(t=oi())!==a){for(r=[],n=fi();n!==a;)r.push(n),n=fi();r!==a?e=t=[t,r]:(yo=e,e=a)}else yo=e,e=a;return e}function ui(){var t;return 45===e.charCodeAt(yo)?(t=Sn,yo++):(t=a,0===bo&&Do(wn)),t}function ci(){var t;return 43===e.charCodeAt(yo)?(t=On,yo++):(t=a,0===bo&&Do(xn)),t}function li(){var t;return 48===e.charCodeAt(yo)?(t=_n,yo++):(t=a,0===bo&&Do(Dn)),t}function di(){var e,t,r;if(bo++,e=yo,pi()!==a){for(t=[],r=hi();r!==a;)t.push(r),r=hi();t!==a&&(r=pi())!==a?(Eo=e,e=In(t)):(yo=e,e=a)}else yo=e,e=a;return bo--,e===a&&0===bo&&Do(Tn),e}function hi(){var t,r,n,o,i,s,u,c,l,d;return(t=function(){var t;return eo.test(e.charAt(yo))?(t=e.charAt(yo),yo++):(t=a,0===bo&&Do(to)),t}())===a&&(t=yo,r=function(){var t;return 92===e.charCodeAt(yo)?(t=Fn,yo++):(t=a,0===bo&&Do(kn)),t}(),r!==a?(34===e.charCodeAt(yo)?(n=Bn,yo++):(n=a,0===bo&&Do(Rn)),n===a&&(92===e.charCodeAt(yo)?(n=Fn,yo++):(n=a,0===bo&&Do(kn)),n===a&&(47===e.charCodeAt(yo)?(n=Pn,yo++):(n=a,0===bo&&Do(Nn)),n===a&&(n=yo,98===e.charCodeAt(yo)?(o=Mn,yo++):(o=a,0===bo&&Do(Ln)),o!==a&&(Eo=n,o=jn()),(n=o)===a&&(n=yo,102===e.charCodeAt(yo)?(o=Un,yo++):(o=a,0===bo&&Do($n)),o!==a&&(Eo=n,o=Vn()),(n=o)===a&&(n=yo,110===e.charCodeAt(yo)?(o=zn,yo++):(o=a,0===bo&&Do(Wn)),o!==a&&(Eo=n,o=Hn()),(n=o)===a&&(n=yo,114===e.charCodeAt(yo)?(o=qn,yo++):(o=a,0===bo&&Do(Gn)),o!==a&&(Eo=n,o=Kn()),(n=o)===a&&(n=yo,116===e.charCodeAt(yo)?(o=Zr,yo++):(o=a,0===bo&&Do(Jr)),o!==a&&(Eo=n,o=Yn()),(n=o)===a&&(n=yo,117===e.charCodeAt(yo)?(o=Qn,yo++):(o=a,0===bo&&Do(Xn)),o!==a?(i=yo,s=yo,(u=mi())!==a&&(c=mi())!==a&&(l=mi())!==a&&(d=mi())!==a?s=u=[u,c,l,d]:(yo=s,s=a),(i=s!==a?e.substring(i,yo):s)!==a?(Eo=n,n=o=Zn(i)):(yo=n,n=a)):(yo=n,n=a))))))))),n!==a?(Eo=t,t=r=Jn(n)):(yo=t,t=a)):(yo=t,t=a)),t}function pi(){var t;return 34===e.charCodeAt(yo)?(t=Bn,yo++):(t=a,0===bo&&Do(Rn)),t}function fi(){var t;return ro.test(e.charAt(yo))?(t=e.charAt(yo),yo++):(t=a,0===bo&&Do(no)),t}function mi(){var t;return oo.test(e.charAt(yo))?(t=e.charAt(yo),yo++):(t=a,0===bo&&Do(io)),t}function gi(){var t,r,n,o;return t=yo,r=yo,(n=fi())!==a&&(o=fi())!==a?r=n=[n,o]:(yo=r,r=a),r!==a?e.substring(t,yo):r}function yi(){var e,t,r;return e=yo,(t=fi())!==a&&(r=fi())!==a?e=t=[t,r]:(yo=e,e=a),e}function Ei(){var t,r,n,o;return t=yo,r=yo,(n=fi())!==a&&(o=fi())!==a?r=n=[n,o]:(yo=r,r=a),r!==a?e.substring(t,yo):r}function Ai(){var t,r,n,o;return t=yo,r=yo,(n=fi())!==a&&(o=fi())!==a?r=n=[n,o]:(yo=r,r=a),r!==a?e.substring(t,yo):r}function vi(){var t,r,n,o;return t=yo,r=yo,(n=fi())!==a&&(o=fi())!==a?r=n=[n,o]:(yo=r,r=a),r!==a?e.substring(t,yo):r}function Ci(){var t,r,n,o;return t=yo,(r=gi())===a&&(r=null),r!==a&&(n=yi())!==a?(45===e.charCodeAt(yo)?(o=Sn,yo++):(o=a,0===bo&&Do(wn)),o===a&&(o=null),o!==a?t=r=[r,n,o]:(yo=t,t=a)):(yo=t,t=a),t}function bi(){var t,r,n,o;return t=yo,r=yo,(n=fi())!==a&&(o=fi())!==a?r=n=[n,o]:(yo=r,r=a),r!==a?e.substring(t,yo):r}function Si(){var t,r,n,o;return t=yo,r=yo,(n=fi())!==a&&(o=fi())!==a?r=n=[n,o]:(yo=r,r=a),r!==a?e.substring(t,yo):r}function wi(){var t,r,n,o;return t=yo,r=yo,(n=fi())!==a&&(o=fi())!==a?r=n=[n,o]:(yo=r,r=a),r!==a?e.substring(t,yo):r}if((n=c())!==a&&yo===e.length)return n;throw n!==a&&yo<e.length&&Do({type:"end"}),o=Co,i=vo<e.length?e.charAt(vo):null,s=vo<e.length?_o(vo,vo+1):_o(vo,vo),new t(t.buildMessage(o,i),o,i,s)}}},5716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Admin=void 0;const n=r(3186),o=r(7445),i=r(1608),s=r(8521),a=r(25),u=r(6540);t.Admin=class{constructor(e){this.s={db:e}}async command(e,t){return(0,o.executeOperation)(this.s.db.client,new a.RunCommandOperation(this.s.db,e,{dbName:"admin",...t}))}async buildInfo(e){return this.command({buildinfo:1},e)}async serverInfo(e){return this.command({buildinfo:1},e)}async serverStatus(e){return this.command({serverStatus:1},e)}async ping(e){return this.command({ping:1},e)}async addUser(e,t,r){r=null!=r&&"object"==typeof r?r:null!=t&&"object"==typeof t?t:void 0;const i="string"==typeof t?t:void 0;return(0,o.executeOperation)(this.s.db.client,new n.AddUserOperation(this.s.db,e,i,{dbName:"admin",...r}))}async removeUser(e,t){return(0,o.executeOperation)(this.s.db.client,new s.RemoveUserOperation(this.s.db,e,{dbName:"admin",...t}))}async validateCollection(e,t={}){return(0,o.executeOperation)(this.s.db.client,new u.ValidateCollectionOperation(this,e,t))}async listDatabases(e){return(0,o.executeOperation)(this.s.db.client,new i.ListDatabasesOperation(this.s.db,e))}async replSetGetStatus(e){return this.command({replSetGetStatus:1},e)}}},9064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveBSONOptions=t.pluckBSONSerializeOptions=t.Timestamp=t.serialize=t.ObjectId=t.MinKey=t.MaxKey=t.Long=t.Int32=t.Double=t.deserialize=t.Decimal128=t.DBRef=t.Code=t.calculateObjectSize=t.BSONType=t.BSONSymbol=t.BSONRegExp=t.BSON=t.Binary=void 0;var n=r(345);Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return n.Binary}}),Object.defineProperty(t,"BSON",{enumerable:!0,get:function(){return n.BSON}}),Object.defineProperty(t,"BSONRegExp",{enumerable:!0,get:function(){return n.BSONRegExp}}),Object.defineProperty(t,"BSONSymbol",{enumerable:!0,get:function(){return n.BSONSymbol}}),Object.defineProperty(t,"BSONType",{enumerable:!0,get:function(){return n.BSONType}}),Object.defineProperty(t,"calculateObjectSize",{enumerable:!0,get:function(){return n.calculateObjectSize}}),Object.defineProperty(t,"Code",{enumerable:!0,get:function(){return n.Code}}),Object.defineProperty(t,"DBRef",{enumerable:!0,get:function(){return n.DBRef}}),Object.defineProperty(t,"Decimal128",{enumerable:!0,get:function(){return n.Decimal128}}),Object.defineProperty(t,"deserialize",{enumerable:!0,get:function(){return n.deserialize}}),Object.defineProperty(t,"Double",{enumerable:!0,get:function(){return n.Double}}),Object.defineProperty(t,"Int32",{enumerable:!0,get:function(){return n.Int32}}),Object.defineProperty(t,"Long",{enumerable:!0,get:function(){return n.Long}}),Object.defineProperty(t,"MaxKey",{enumerable:!0,get:function(){return n.MaxKey}}),Object.defineProperty(t,"MinKey",{enumerable:!0,get:function(){return n.MinKey}}),Object.defineProperty(t,"ObjectId",{enumerable:!0,get:function(){return n.ObjectId}}),Object.defineProperty(t,"serialize",{enumerable:!0,get:function(){return n.serialize}}),Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return n.Timestamp}}),t.pluckBSONSerializeOptions=function(e){const{fieldsAsRaw:t,useBigInt64:r,promoteValues:n,promoteBuffers:o,promoteLongs:i,serializeFunctions:s,ignoreUndefined:a,bsonRegExp:u,raw:c,enableUtf8Validation:l}=e;return{fieldsAsRaw:t,useBigInt64:r,promoteValues:n,promoteBuffers:o,promoteLongs:i,serializeFunctions:s,ignoreUndefined:a,bsonRegExp:u,raw:c,enableUtf8Validation:l}},t.resolveBSONOptions=function(e,t){const r=t?.bsonOptions;return{raw:e?.raw??r?.raw??!1,useBigInt64:e?.useBigInt64??r?.useBigInt64??!1,promoteLongs:e?.promoteLongs??r?.promoteLongs??!0,promoteValues:e?.promoteValues??r?.promoteValues??!0,promoteBuffers:e?.promoteBuffers??r?.promoteBuffers??!1,ignoreUndefined:e?.ignoreUndefined??r?.ignoreUndefined??!1,bsonRegExp:e?.bsonRegExp??r?.bsonRegExp??!1,serializeFunctions:e?.serializeFunctions??r?.serializeFunctions??!1,fieldsAsRaw:e?.fieldsAsRaw??r?.fieldsAsRaw??{},enableUtf8Validation:e?.enableUtf8Validation??r?.enableUtf8Validation??!0}}},363:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BulkOperationBase=t.FindOperators=t.MongoBulkWriteError=t.mergeBatchResults=t.WriteError=t.WriteConcernError=t.BulkWriteResult=t.Batch=t.BatchType=void 0;const n=r(9064),o=r(4947),i=r(7237),s=r(7445),a=r(7159),u=r(5172),c=r(5556),l=r(2229),d=r(4620),h=Symbol("serverError");t.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3}),t.Batch=class{constructor(e,t){this.originalZeroIndex=t,this.currentIndex=0,this.originalIndexes=[],this.batchType=e,this.operations=[],this.size=0,this.sizeBytes=0}};class p{static generateIdMap(e){const t={};for(const r of e)t[r.index]=r._id;return t}constructor(e){this.result=e,this.insertedCount=this.result.nInserted??0,this.matchedCount=this.result.nMatched??0,this.modifiedCount=this.result.nModified??0,this.deletedCount=this.result.nRemoved??0,this.upsertedCount=this.result.upserted.length??0,this.upsertedIds=p.generateIdMap(this.result.upserted),this.insertedIds=p.generateIdMap(this.result.insertedIds),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}get ok(){return this.result.ok}get nInserted(){return this.result.nInserted}get nUpserted(){return this.result.nUpserted}get nMatched(){return this.result.nMatched}get nModified(){return this.result.nModified}get nRemoved(){return this.result.nRemoved}getInsertedIds(){return this.result.insertedIds}getUpsertedIds(){return this.result.upserted}getUpsertedIdAt(e){return this.result.upserted[e]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(e){return e<this.result.writeErrors.length?this.result.writeErrors[e]:void 0}getWriteErrors(){return this.result.writeErrors}getWriteConcernError(){if(0!==this.result.writeConcernErrors.length){if(1===this.result.writeConcernErrors.length)return this.result.writeConcernErrors[0];{let e="";for(let t=0;t<this.result.writeConcernErrors.length;t++)e+=this.result.writeConcernErrors[t].errmsg,0===t&&(e+=" and ");return new f({errmsg:e,code:o.MONGODB_ERROR_CODES.WriteConcernFailed})}}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return 1===this.result.ok}}t.BulkWriteResult=p;class f{constructor(e){this[h]=e}get code(){return this[h].code}get errmsg(){return this[h].errmsg}get errInfo(){return this[h].errInfo}toJSON(){return this[h]}toString(){return`WriteConcernError(${this.errmsg})`}}t.WriteConcernError=f;class m{constructor(e){this.err=e}get code(){return this.err.code}get index(){return this.err.index}get errmsg(){return this.err.errmsg}get errInfo(){return this.err.errInfo}getOperation(){return this.err.op}toJSON(){return{code:this.err.code,index:this.err.index,errmsg:this.err.errmsg,op:this.err.op}}toString(){return`WriteError(${JSON.stringify(this.toJSON())})`}}function g(e,t,r,n){if(r?n=r:n&&n.result&&(n=n.result),null==n)return;if(0===n.ok&&1===t.ok){t.ok=0;const r={index:0,code:n.code||0,errmsg:n.message,errInfo:n.errInfo,op:e.operations[0]};return void t.writeErrors.push(new m(r))}if(0===n.ok&&0===t.ok)return;S(e)&&n.n&&(t.nInserted=t.nInserted+n.n),O(e)&&n.n&&(t.nRemoved=t.nRemoved+n.n);let o=0;if(Array.isArray(n.upserted)){o=n.upserted.length;for(let r=0;r<n.upserted.length;r++)t.upserted.push({index:n.upserted[r].index+e.originalZeroIndex,_id:n.upserted[r]._id})}else n.upserted&&(o=1,t.upserted.push({index:e.originalZeroIndex,_id:n.upserted}));if(w(e)&&n.n){const e=n.nModified;t.nUpserted=t.nUpserted+o,t.nMatched=t.nMatched+(n.n-o),t.nModified="number"==typeof e?t.nModified+e:0}if(Array.isArray(n.writeErrors))for(let r=0;r<n.writeErrors.length;r++){const o={index:e.originalIndexes[n.writeErrors[r].index],code:n.writeErrors[r].code,errmsg:n.writeErrors[r].errmsg,errInfo:n.writeErrors[r].errInfo,op:e.operations[n.writeErrors[r].index]};t.writeErrors.push(new m(o))}n.writeConcernError&&t.writeConcernErrors.push(new f(n.writeConcernError))}function y(e,t,r){if(0===e.s.batches.length)return r(void 0,new p(e.s.bulkResult));const n=e.s.batches.shift();function u(i,s){if(i&&"message"in i&&!(i instanceof o.MongoWriteConcernError))return r(new E(i,new p(e.s.bulkResult)));if(i instanceof o.MongoWriteConcernError)return function(e,t,r,n){g(e,t,void 0,r.result),n(new E({message:r.result?.writeConcernError.errmsg,code:r.result?.writeConcernError.result},new p(t)))}(n,e.s.bulkResult,i,r);g(n,e.s.bulkResult,i,s);const a=new p(e.s.bulkResult);e.handleWriteError(r,a)||y(e,t,r)}const d=(0,l.resolveOptions)(e,{...t,ordered:e.isOrdered});!0!==d.bypassDocumentValidation&&delete d.bypassDocumentValidation,e.operationId&&(u.operationId=e.operationId),!0===e.s.bypassDocumentValidation&&(d.bypassDocumentValidation=!0),!1===e.s.checkKeys&&(d.checkKeys=!1),d.retryWrites&&(w(n)&&(d.retryWrites=d.retryWrites&&!n.operations.some((e=>e.multi))),O(n)&&(d.retryWrites=d.retryWrites&&!n.operations.some((e=>0===e.limit))));try{S(n)?(0,s.executeOperation)(e.s.collection.client,new a.InsertOperation(e.s.namespace,n.operations,d),u):w(n)?(0,s.executeOperation)(e.s.collection.client,new c.UpdateOperation(e.s.namespace,n.operations,d),u):O(n)&&(0,s.executeOperation)(e.s.collection.client,new i.DeleteOperation(e.s.namespace,n.operations,d),u)}catch(t){t.ok=0,g(n,e.s.bulkResult,t,void 0),r()}}t.WriteError=m,t.mergeBatchResults=g;class E extends o.MongoServerError{constructor(e,t){super(e),this.writeErrors=[],e instanceof f?this.err=e:e instanceof Error||(this.message=e.message,this.code=e.code,this.writeErrors=e.writeErrors??[]),this.result=t,Object.assign(this,e)}get name(){return"MongoBulkWriteError"}get insertedCount(){return this.result.insertedCount}get matchedCount(){return this.result.matchedCount}get modifiedCount(){return this.result.modifiedCount}get deletedCount(){return this.result.deletedCount}get upsertedCount(){return this.result.upsertedCount}get insertedIds(){return this.result.insertedIds}get upsertedIds(){return this.result.upsertedIds}}t.MongoBulkWriteError=E;class A{constructor(e){this.bulkOperation=e}update(e){const r=x(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,c.makeUpdateStatement)(r.selector,e,{...r,multi:!0}))}updateOne(e){if(!(0,l.hasAtomicOperators)(e))throw new o.MongoInvalidArgumentError("Update document requires atomic operators");const r=x(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,c.makeUpdateStatement)(r.selector,e,{...r,multi:!1}))}replaceOne(e){if((0,l.hasAtomicOperators)(e))throw new o.MongoInvalidArgumentError("Replacement document must not use atomic operators");const r=x(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,c.makeUpdateStatement)(r.selector,e,{...r,multi:!1}))}deleteOne(){const e=x(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.DELETE,(0,i.makeDeleteStatement)(e.selector,{...e,limit:1}))}delete(){const e=x(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.DELETE,(0,i.makeDeleteStatement)(e.selector,{...e,limit:0}))}upsert(){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.upsert=!0,this}collation(e){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.collation=e,this}arrayFilters(e){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.arrayFilters=e,this}hint(e){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.hint=e,this}}t.FindOperators=A;class v extends u.AbstractCallbackOperation{constructor(e,t){super(t),this.bulkOperation=e}executeCallback(e,t,r){return null==this.options.session&&(this.options.session=t),y(this.bulkOperation,this.options,r)}}class C{constructor(e,t,r){this.isOrdered=r;const o=(0,l.getTopology)(e);t=null==t?{}:t;const i=e.s.namespace,s=o.lastHello(),a=!(!o.s.options||!o.s.options.autoEncrypter),u=s&&s.maxBsonObjectSize?s.maxBsonObjectSize:16777216,c=a?2097152:u,h=s&&s.maxWriteBatchSize?s.maxWriteBatchSize:1e3,p=(h-1).toString(10).length+2;let f=Object.assign({},t);f=(0,l.applyRetryableWrites)(f,e.s.db),this.s={bulkResult:{ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]},currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:d.WriteConcern.fromOptions(t),maxBsonObjectSize:u,maxBatchSizeBytes:c,maxWriteBatchSize:h,maxKeySize:p,namespace:i,topology:o,options:f,bsonOptions:(0,n.resolveBSONOptions)(t),currentOp:void 0,executed:!1,collection:e,err:void 0,checkKeys:"boolean"==typeof t.checkKeys&&t.checkKeys},!0===t.bypassDocumentValidation&&(this.s.bypassDocumentValidation=!0)}insert(e){return null!=e._id||b(this)||(e._id=new n.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e)}find(e){if(!e)throw new o.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:e},new A(this)}raw(e){if(null==e||"object"!=typeof e)throw new o.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in e){const r=b(this);return e.insertOne&&null==e.insertOne.document?(!0!==r&&null==e.insertOne._id&&(e.insertOne._id=new n.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e.insertOne)):(!0!==r&&null==e.insertOne.document._id&&(e.insertOne.document._id=new n.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e.insertOne.document))}if("replaceOne"in e||"updateOne"in e||"updateMany"in e){if("replaceOne"in e){if("q"in e.replaceOne)throw new o.MongoInvalidArgumentError("Raw operations are not allowed");const r=(0,c.makeUpdateStatement)(e.replaceOne.filter,e.replaceOne.replacement,{...e.replaceOne,multi:!1});if((0,l.hasAtomicOperators)(r.u))throw new o.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,r)}if("updateOne"in e){if("q"in e.updateOne)throw new o.MongoInvalidArgumentError("Raw operations are not allowed");const r=(0,c.makeUpdateStatement)(e.updateOne.filter,e.updateOne.update,{...e.updateOne,multi:!1});if(!(0,l.hasAtomicOperators)(r.u))throw new o.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,r)}if("updateMany"in e){if("q"in e.updateMany)throw new o.MongoInvalidArgumentError("Raw operations are not allowed");const r=(0,c.makeUpdateStatement)(e.updateMany.filter,e.updateMany.update,{...e.updateMany,multi:!0});if(!(0,l.hasAtomicOperators)(r.u))throw new o.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,r)}}if("deleteOne"in e){if("q"in e.deleteOne)throw new o.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(t.BatchType.DELETE,(0,i.makeDeleteStatement)(e.deleteOne.filter,{...e.deleteOne,limit:1}))}if("deleteMany"in e){if("q"in e.deleteMany)throw new o.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(t.BatchType.DELETE,(0,i.makeDeleteStatement)(e.deleteMany.filter,{...e.deleteMany,limit:0}))}throw new o.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const e=[...this.s.batches];return this.isOrdered?this.s.currentBatch&&e.push(this.s.currentBatch):(this.s.currentInsertBatch&&e.push(this.s.currentInsertBatch),this.s.currentUpdateBatch&&e.push(this.s.currentUpdateBatch),this.s.currentRemoveBatch&&e.push(this.s.currentRemoveBatch)),e}async execute(e={}){if(this.s.executed)throw new o.MongoBatchReExecutionError;const t=d.WriteConcern.fromOptions(e);if(t&&(this.s.writeConcern=t),this.isOrdered?this.s.currentBatch&&this.s.batches.push(this.s.currentBatch):(this.s.currentInsertBatch&&this.s.batches.push(this.s.currentInsertBatch),this.s.currentUpdateBatch&&this.s.batches.push(this.s.currentUpdateBatch),this.s.currentRemoveBatch&&this.s.batches.push(this.s.currentRemoveBatch)),0===this.s.batches.length)throw new o.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const r={...this.s.options,...e},n=new v(this,r);return(0,s.executeOperation)(this.s.collection.client,n)}handleWriteError(e,t){if(this.s.bulkResult.writeErrors.length>0){const r=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return e(new E({message:r,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},t)),!0}const r=t.getWriteConcernError();return!!r&&(e(new E(r,t)),!0)}}function b(e){return"boolean"==typeof e.s.options.forceServerObjectId?e.s.options.forceServerObjectId:"boolean"==typeof e.s.collection.s.db.options?.forceServerObjectId&&e.s.collection.s.db.options?.forceServerObjectId}function S(e){return e.batchType===t.BatchType.INSERT}function w(e){return e.batchType===t.BatchType.UPDATE}function O(e){return e.batchType===t.BatchType.DELETE}function x(e){let{currentOp:t}=e.s;return e.s.currentOp=void 0,t||(t={}),t}t.BulkOperationBase=C,Object.defineProperty(C.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})},3868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OrderedBulkOperation=void 0;const n=r(9064),o=r(4947),i=r(363);class s extends i.BulkOperationBase{constructor(e,t){super(e,t,!0)}addToOperationsList(e,t){const r=n.calculateObjectSize(t,{checkKeys:!1,ignoreUndefined:!1});if(r>=this.s.maxBsonObjectSize)throw new o.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);null==this.s.currentBatch&&(this.s.currentBatch=new i.Batch(e,this.s.currentIndex));const s=this.s.maxKeySize;if((this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+s+r>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e)&&(this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new i.Batch(e,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0),e===i.BatchType.INSERT&&this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:t._id}),Array.isArray(t))throw new o.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(t),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=s+r,this.s.currentIndex+=1,this}}t.OrderedBulkOperation=s},1625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnorderedBulkOperation=void 0;const n=r(9064),o=r(4947),i=r(363);class s extends i.BulkOperationBase{constructor(e,t){super(e,t,!1)}handleWriteError(e,t){return!this.s.batches.length&&super.handleWriteError(e,t)}addToOperationsList(e,t){const r=n.calculateObjectSize(t,{checkKeys:!1,ignoreUndefined:!1});if(r>=this.s.maxBsonObjectSize)throw new o.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);this.s.currentBatch=void 0,e===i.BatchType.INSERT?this.s.currentBatch=this.s.currentInsertBatch:e===i.BatchType.UPDATE?this.s.currentBatch=this.s.currentUpdateBatch:e===i.BatchType.DELETE&&(this.s.currentBatch=this.s.currentRemoveBatch);const s=this.s.maxKeySize;if(null==this.s.currentBatch&&(this.s.currentBatch=new i.Batch(e,this.s.currentIndex)),(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+s+r>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e)&&(this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new i.Batch(e,this.s.currentIndex)),Array.isArray(t))throw new o.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.operations.push(t),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,e===i.BatchType.INSERT?(this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:t._id})):e===i.BatchType.UPDATE?this.s.currentUpdateBatch=this.s.currentBatch:e===i.BatchType.DELETE&&(this.s.currentRemoveBatch=this.s.currentBatch),this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=s+r,this}}t.UnorderedBulkOperation=s},4747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStream=void 0;const n=r(8971),o=r(5006),i=r(2206),s=r(2644),a=r(4947),u=r(2319),c=r(334),l=r(2229),d=Symbol("cursorStream"),h=Symbol("closed"),p=Symbol("mode"),f=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],m={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},g=[o.RESUME_TOKEN_CHANGED,o.END,o.CLOSE],y="ChangeStream is closed";class E extends c.TypedEventEmitter{constructor(e,t=[],r={}){if(super(),this.pipeline=t,this.options={...r},delete this.options.writeConcern,e instanceof n.Collection)this.type=m.COLLECTION;else if(e instanceof s.Db)this.type=m.DATABASE;else{if(!(e instanceof u.MongoClient))throw new a.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");this.type=m.CLUSTER}this.parent=e,this.namespace=e.s.namespace,!this.options.readPreference&&e.readPreference&&(this.options.readPreference=e.readPreference),this.cursor=this._createChangeStreamCursor(r),this[h]=!1,this[p]=!1,this.on("newListener",(e=>{"change"===e&&this.cursor&&0===this.listenerCount("change")&&this._streamEvents(this.cursor)})),this.on("removeListener",(e=>{"change"===e&&0===this.listenerCount("change")&&this.cursor&&this[d]?.removeAllListeners("data")}))}get cursorStream(){return this[d]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){for(this._setIsIterator();;)try{return await this.cursor.hasNext()}catch(e){try{await this._processErrorIteratorMode(e)}catch(e){try{await this.close()}catch{}throw e}}}async next(){for(this._setIsIterator();;)try{const e=await this.cursor.next();return this._processChange(e??null)}catch(e){try{await this._processErrorIteratorMode(e)}catch(e){try{await this.close()}catch{}throw e}}}async tryNext(){for(this._setIsIterator();;)try{return await this.cursor.tryNext()??null}catch(e){try{await this._processErrorIteratorMode(e)}catch(e){try{await this.close()}catch{}throw e}}}async*[Symbol.asyncIterator](){if(!this.closed)try{for(;;)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[h]||this.cursor.closed}async close(){this[h]=!0;const e=this.cursor;try{await e.close()}finally{this._endStream()}}stream(e){if(this.closed)throw new a.MongoChangeStreamError(y);return this.streamOptions=e,this.cursor.stream(e)}_setIsEmitter(){if("iterator"===this[p])throw new a.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[p]="emitter"}_setIsIterator(){if("emitter"===this[p])throw new a.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[p]="iterator"}_createChangeStreamCursor(e){const t=(0,l.filterOptions)(e,f);this.type===m.CLUSTER&&(t.allChangesForCluster=!0);const r=[{$changeStream:t},...this.pipeline],n=this.type===m.CLUSTER?this.parent:this.type===m.DATABASE||this.type===m.COLLECTION?this.parent.client:null;if(null==n)throw new a.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const o=new i.ChangeStreamCursor(n,this.namespace,r,e);for(const e of g)o.on(e,(t=>this.emit(e,t)));return this.listenerCount(E.CHANGE)>0&&this._streamEvents(o),o}_closeEmitterModeWithError(e){this.emit(E.ERROR,e),this.close().catch((()=>null))}_streamEvents(e){this._setIsEmitter();const t=this[d]??e.stream();this[d]=t,t.on("data",(e=>{try{const t=this._processChange(e);this.emit(E.CHANGE,t)}catch(e){this.emit(E.ERROR,e)}})),t.on("error",(e=>this._processErrorStreamMode(e)))}_endStream(){const e=this[d];e&&(["data","close","end","error"].forEach((t=>e.removeAllListeners(t))),e.destroy()),this[d]=void 0}_processChange(e){if(this[h])throw new a.MongoAPIError(y);if(null==e)throw new a.MongoRuntimeError(y);if(e&&!e._id)throw new a.MongoChangeStreamError("A change stream document has been received that lacks a resume token (_id).");return this.cursor.cacheResumeToken(e._id),this.options.startAtOperationTime=void 0,e}_processErrorStreamMode(e){this[h]||((0,a.isResumableError)(e,this.cursor.maxWireVersion)?(this._endStream(),this.cursor.close().catch((()=>null)),(0,l.getTopology)(this.parent).selectServer(this.cursor.readPreference,{},(t=>{if(t)return this._closeEmitterModeWithError(e);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}))):this._closeEmitterModeWithError(e))}async _processErrorIteratorMode(e){if(this[h])throw new a.MongoAPIError(y);if(!(0,a.isResumableError)(e,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw e}await this.cursor.close().catch((()=>null));const t=(0,l.getTopology)(this.parent);try{await t.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),e}}}E.RESPONSE=o.RESPONSE,E.MORE=o.MORE,E.INIT=o.INIT,E.CLOSE=o.CLOSE,E.CHANGE=o.CHANGE,E.END=o.END,E.ERROR=o.ERROR,E.RESUME_TOKEN_CHANGED=o.RESUME_TOKEN_CHANGED,t.ChangeStream=E},590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthProvider=t.AuthContext=void 0;const n=r(4947);t.AuthContext=class{constructor(e,t,r){this.reauthenticating=!1,this.connection=e,this.credentials=t,this.options=r}},t.AuthProvider=class{async prepare(e,t){return e}async reauth(e){if(e.reauthenticating)throw new n.MongoRuntimeError("Reauthentication already in progress.");try{e.reauthenticating=!0,await this.auth(e)}finally{e.reauthenticating=!1}}}},2403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveCname=t.performGSSAPICanonicalizeHostName=t.GSSAPI=t.GSSAPICanonicalizationValue=void 0;const n=r(9523),o=r(8808),i=r(4947),s=r(2229),a=r(590);async function u(e,t){return e.commandAsync((0,s.ns)("$external.$cmd"),t,void 0)}let c;t.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});class l extends a.AuthProvider{async auth(e){const{connection:t,credentials:r}=e;if(null==r)throw new i.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:n}=r,s=await async function(e){const{hostAddress:t}=e.options,{credentials:r}=e;if(!t||"string"!=typeof t.host||!r)throw new i.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(c||(c=(0,o.getKerberos)()),"kModuleError"in c)throw c.kModuleError;const{initializeClient:n}=c,{username:s,password:a}=r,u=r.mechanismProperties,l=u.SERVICE_NAME??"mongodb",d=await h(t.host,u),p={};null!=a&&Object.assign(p,{user:s,password:a});const f=u.SERVICE_HOST??d;let m=`${l}${"win32"===process.platform?"/":"@"}${f}`;return"SERVICE_REALM"in u&&(m=`${m}@${u.SERVICE_REALM}`),n(m,p)}(e),a=await s.step(""),l=await u(t,function(e){return{saslStart:1,mechanism:"GSSAPI",payload:e,autoAuthorize:1}}(a)),p=await d(s,10,l.payload),f=await u(t,function(e,t){return{saslContinue:1,conversationId:t,payload:e}}(p,l.conversationId)),m=await async function(e,t,r){const n=await e.unwrap(r);return e.wrap(n||"",{user:t})}(s,n,f.payload);await u(t,{saslContinue:1,conversationId:f.conversationId,payload:m})}}async function d(e,t,r){try{return await e.step(r)||""}catch(n){if(0===t)throw n;return d(e,t-1,r)}}async function h(e,r){const o=r.CANONICALIZE_HOST_NAME;if(!o||o===t.GSSAPICanonicalizationValue.none)return e;if(o!==t.GSSAPICanonicalizationValue.on&&o!==t.GSSAPICanonicalizationValue.forwardAndReverse)return p(e);{const{address:t}=await n.promises.lookup(e);try{const r=await n.promises.resolvePtr(t);return r.length>0?r[0]:e}catch(t){return p(e)}}}async function p(e){try{const t=await n.promises.resolveCname(e);return t.length>0?t[0]:e}catch{return e}}t.GSSAPI=l,t.performGSSAPICanonicalizeHostName=h,t.resolveCname=p},4064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoCredentials=t.DEFAULT_ALLOWED_HOSTS=void 0;const n=r(4947),o=r(2403),i=r(4511);function s(e){if(e){if(Array.isArray(e.saslSupportedMechs))return e.saslSupportedMechs.includes(i.AuthMechanism.MONGODB_SCRAM_SHA256)?i.AuthMechanism.MONGODB_SCRAM_SHA256:i.AuthMechanism.MONGODB_SCRAM_SHA1;if(e.maxWireVersion>=3)return i.AuthMechanism.MONGODB_SCRAM_SHA1}return i.AuthMechanism.MONGODB_CR}const a=["aws","azure"],u="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";t.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];class c{constructor(e){this.username=e.username??"",this.password=e.password,this.source=e.source,!this.source&&e.db&&(this.source=e.db),this.mechanism=e.mechanism||i.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=e.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)&&(!this.username&&process.env.AWS_ACCESS_KEY_ID&&(this.username=process.env.AWS_ACCESS_KEY_ID),!this.password&&process.env.AWS_SECRET_ACCESS_KEY&&(this.password=process.env.AWS_SECRET_ACCESS_KEY),null==this.mechanismProperties.AWS_SESSION_TOKEN&&null!=process.env.AWS_SESSION_TOKEN&&(this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN})),this.mechanism!==i.AuthMechanism.MONGODB_OIDC||this.mechanismProperties.ALLOWED_HOSTS||(this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:t.DEFAULT_ALLOWED_HOSTS}),Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(e){return this.mechanism===e.mechanism&&this.username===e.username&&this.password===e.password&&this.source===e.source}resolveAuthMechanism(e){return this.mechanism.match(/DEFAULT/i)?new c({username:this.username,password:this.password,source:this.source,mechanism:s(e),mechanismProperties:this.mechanismProperties}):this}validate(){if((this.mechanism===i.AuthMechanism.MONGODB_GSSAPI||this.mechanism===i.AuthMechanism.MONGODB_CR||this.mechanism===i.AuthMechanism.MONGODB_PLAIN||this.mechanism===i.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===i.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new n.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===i.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.PROVIDER_NAME)throw new n.MongoInvalidArgumentError(`username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`);if("azure"===this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.TOKEN_AUDIENCE)throw new n.MongoAzureError("TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.");if(this.mechanismProperties.PROVIDER_NAME&&!a.includes(this.mechanismProperties.PROVIDER_NAME))throw new n.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${a.join(",")} is supported for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.REFRESH_TOKEN_CALLBACK&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new n.MongoInvalidArgumentError(`A REQUEST_TOKEN_CALLBACK must be provided when using a REFRESH_TOKEN_CALLBACK for mechanism '${this.mechanism}'`);if(!this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new n.MongoInvalidArgumentError(`Either a PROVIDER_NAME or a REQUEST_TOKEN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){const e=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(e))throw new n.MongoInvalidArgumentError(u);for(const t of e)if("string"!=typeof t)throw new n.MongoInvalidArgumentError(u)}}if(i.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)&&null!=this.source&&"$external"!==this.source)throw new n.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`);if(this.mechanism===i.AuthMechanism.MONGODB_PLAIN&&null==this.source)throw new n.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===i.AuthMechanism.MONGODB_X509&&null!=this.password){if(""===this.password)return void Reflect.set(this,"password",void 0);throw new n.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const e=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(o.GSSAPICanonicalizationValue).includes(e))throw new n.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${e}`)}static merge(e,t){return new c({username:t.username??e?.username??"",password:t.password??e?.password??"",mechanism:t.mechanism??e?.mechanism??i.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:t.mechanismProperties??e?.mechanismProperties??{},source:t.source??t.db??e?.source??"admin"})}}t.MongoCredentials=c},6614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoCR=void 0;const n=r(6113),o=r(4947),i=r(2229),s=r(590);class a extends s.AuthProvider{async auth(e){const{connection:t,credentials:r}=e;if(!r)throw new o.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:s,password:a,source:u}=r,{nonce:c}=await t.commandAsync((0,i.ns)(`${u}.$cmd`),{getnonce:1},void 0),l=n.createHash("md5").update(`${s}:mongo:${a}`,"utf8").digest("hex"),d={authenticate:1,user:s,nonce:c,key:n.createHash("md5").update(`${c}${s}${l}`,"utf8").digest("hex")};await t.commandAsync((0,i.ns)(`${u}.$cmd`),d,void 0)}}t.MongoCR=a},3354:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoDBAWS=void 0;const n=r(6113),o=r(3849),i=r(9064),s=r(8808),a=r(4947),u=r(2229),c=r(590),l=r(4064),d=r(4511),h="http://169.254.169.254",p="/latest/meta-data/iam/security-credentials",f={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class m extends c.AuthProvider{constructor(){super(),this.randomBytesAsync=(0,o.promisify)(n.randomBytes)}async auth(e){const{connection:t}=e;if(!e.credentials)throw new a.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in s.aws4)throw s.aws4.kModuleError;const{sign:r}=s.aws4;if((0,u.maxWireVersion)(t)<9)throw new a.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");e.credentials.username||(e.credentials=await async function(e){function t(t){if(!t.AccessKeyId||!t.SecretAccessKey||!t.Token)throw new a.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new l.MongoCredentials({username:t.AccessKeyId,password:t.SecretAccessKey,source:e.source,mechanism:d.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:t.Token}})}const r=(0,s.getAwsCredentialProvider)();if("kModuleError"in r){if(process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return t(await(0,u.request)(`http://169.254.170.2${process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const e=await(0,u.request)(`${h}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),r=await(0,u.request)(`${h}/${p}`,{json:!1,headers:{"X-aws-ec2-metadata-token":e}});return t(await(0,u.request)(`${h}/${p}/${r}`,{headers:{"X-aws-ec2-metadata-token":e}}))}{const{fromNodeProviderChain:e}=r,n=e();try{const e=await n();return t({AccessKeyId:e.accessKeyId,SecretAccessKey:e.secretAccessKey,Token:e.sessionToken,Expiration:e.expiration})}catch(e){throw new a.MongoAWSError(e.message)}}}(e.credentials));const{credentials:n}=e,o=n.username,c=n.password,m=n.mechanismProperties.AWS_SESSION_TOKEN,y=o&&c&&m?{accessKeyId:o,secretAccessKey:c,sessionToken:m}:o&&c?{accessKeyId:o,secretAccessKey:c}:void 0,E=n.source,A=await this.randomBytesAsync(32),v={saslStart:1,mechanism:"MONGODB-AWS",payload:i.serialize({r:A,p:110},f)},C=await t.commandAsync((0,u.ns)(`${E}.$cmd`),v,void 0),b=i.deserialize(C.payload.buffer,f),S=b.h,w=b.s.buffer;if(64!==w.length)throw new a.MongoRuntimeError(`Invalid server nonce length ${w.length}, expected 64`);if(!u.ByteUtils.equals(w.subarray(0,A.byteLength),A))throw new a.MongoRuntimeError("Server nonce does not begin with client nonce");if(S.length<1||S.length>255||-1!==S.indexOf(".."))throw new a.MongoRuntimeError(`Server returned an invalid host: "${S}"`);const O=r({method:"POST",host:S,region:g(b.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":43,"X-MongoDB-Server-Nonce":u.ByteUtils.toBase64(w),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:"Action=GetCallerIdentity&Version=2011-06-15"},y),x={a:O.headers.Authorization,d:O.headers["X-Amz-Date"]};m&&(x.t=m);const _={saslContinue:1,conversationId:1,payload:i.serialize(x,f)};await t.commandAsync((0,u.ns)(`${E}.$cmd`),_,void 0)}}function g(e){const t=e.split(".");return 1===t.length||"amazonaws"===t[1]?"us-east-1":t[1]}t.MongoDBAWS=m},8205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoDBOIDC=t.OIDC_WORKFLOWS=void 0;const n=r(4947),o=r(590),i=r(4272),s=r(4253),a=r(8450);t.OIDC_WORKFLOWS=new Map,t.OIDC_WORKFLOWS.set("callback",new a.CallbackWorkflow),t.OIDC_WORKFLOWS.set("aws",new i.AwsServiceWorkflow),t.OIDC_WORKFLOWS.set("azure",new s.AzureServiceWorkflow);class u extends o.AuthProvider{constructor(){super()}async auth(e){const{connection:t,reauthenticating:r,response:n}=e,o=c(e),i=l(o);await i.execute(t,o,r,n)}async prepare(e,t){const r=c(t),n=l(r);return{...e,...await n.speculativeAuth(r)}}}function c(e){const{credentials:t}=e;if(!t)throw new n.MongoMissingCredentialsError("AuthContext must provide credentials.");return t}function l(e){const r=e.mechanismProperties.PROVIDER_NAME,o=t.OIDC_WORKFLOWS.get(r||"callback");if(!o)throw new n.MongoInvalidArgumentError(`Could not load workflow for provider ${e.mechanismProperties.PROVIDER_NAME}`);return o}t.MongoDBOIDC=u},4272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsServiceWorkflow=void 0;const n=r(7147),o=r(4947),i=r(4605);class s extends i.ServiceWorkflow{constructor(){super()}async getToken(){const e=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!e)throw new o.MongoAWSError("AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.");return n.promises.readFile(e,"utf8")}}t.AwsServiceWorkflow=s},4253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureServiceWorkflow=void 0;const n=r(4947),o=r(2229),i=r(5362),s=r(4605),a=Object.freeze({Metadata:"true",Accept:"application/json"});class u extends s.ServiceWorkflow{constructor(){super(...arguments),this.cache=new i.AzureTokenCache}async getToken(e){const t=e?.mechanismProperties.TOKEN_AUDIENCE;if(!t)throw new n.MongoAzureError("TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.");let r;const i=this.cache.getEntry(t);if(i?.isValid())r=i.token;else{this.cache.deleteEntry(t);const e=await async function(e){const t=`http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=${e}`;return await(0,o.request)(t,{json:!0,headers:a})}(t);if(!function(e){return null!=e&&"object"==typeof e&&"access_token"in e&&"expires_in"in e}(e))throw new n.MongoAzureError("Azure endpoint did not return a value with only access_token and expires_in properties");this.cache.addEntry(t,e),r=e.access_token}return r}}t.AzureServiceWorkflow=u},5362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureTokenCache=t.AzureTokenEntry=void 0;const n=r(1539);class o extends n.ExpiringCacheEntry{constructor(e,t){super(t),this.token=e}}t.AzureTokenEntry=o;class i extends n.Cache{addEntry(e,t){const r=new o(t.access_token,t.expires_in);return this.entries.set(e,r),r}cacheKey(e){return e}deleteEntry(e){this.entries.delete(e)}getEntry(e){return this.entries.get(e)}}t.AzureTokenCache=i},1539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=t.ExpiringCacheEntry=void 0,t.ExpiringCacheEntry=class{constructor(e){this.expiration=this.expirationTime(e)}isValid(){return this.expiration-Date.now()>3e5}expirationTime(e){return Date.now()+1e3*e}},t.Cache=class{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(e,t,r){return JSON.stringify([e,t,r])}}},8801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallbackLockCache=void 0;const n=r(4947),o=r(1539);let i=0;const s=async()=>({accessToken:"test"}),a=new WeakMap;a.set(s,i);class u extends o.Cache{getEntry(e,t){const r=t.mechanismProperties.REQUEST_TOKEN_CALLBACK,o=t.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!r)throw new n.MongoInvalidArgumentError("Auth mechanism property REQUEST_TOKEN_CALLBACK is required.");const u=function(e,t){let r=a.get(e),n=a.get(t??s);return null==r&&(i++,r=i,a.set(e,i)),null==n&&t&&(i++,n=i,a.set(t,i)),`${r}-${n}`}(r,o),c=this.cacheKey(e.address,t.username,u);return this.entries.get(c)||this.addEntry(c,u,r,o)}addEntry(e,t,r,n){const o={requestCallback:c(r),refreshCallback:n?c(n):void 0,callbackHash:t};return this.entries.set(e,o),o}cacheKey(e,t,r){return this.hashedCacheKey(e,t,r)}}function c(e){let t=Promise.resolve();return async(r,n)=>(await t,t=t.then((()=>e(r,n))),t)}t.CallbackLockCache=u},8450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallbackWorkflow=void 0;const n=r(345),o=r(4947),i=r(2229),s=r(4511),a=r(8801),u=r(1832),c=["accessToken","expiresInSeconds","refreshToken"];function l(e){const t={};return e.username&&(t.n=e.username),{saslStart:1,autoAuthorize:1,mechanism:s.AuthMechanism.MONGODB_OIDC,payload:new n.Binary(n.BSON.serialize(t))}}t.CallbackWorkflow=class{constructor(){this.cache=new u.TokenEntryCache,this.callbackCache=new a.CallbackLockCache}async speculativeAuth(e){const t=l(e);return t.db=e.source,{speculativeAuthenticate:t}}async execute(e,t,r,i){const{requestCallback:s,refreshCallback:a,callbackHash:u}=this.callbackCache.getEntry(e,t),c=this.cache.getEntry(e.address,t.username,u);let l;if(c)if(c.isValid()&&!r)l=await this.finishAuthentication(e,t,c.tokenResult,i?.speculativeAuthenticate?.conversationId);else{const n=await this.fetchAccessToken(e,t,c.serverInfo,r,u,s,a);try{l=await this.finishAuthentication(e,t,n,r?void 0:i?.speculativeAuthenticate?.conversationId)}catch(n){if(!(r&&n instanceof o.MongoError&&n.code===o.MONGODB_ERROR_CODES.Reauthenticate))throw n;this.cache.deleteEntry(e.address,t.username,u),l=await this.execute(e,t,r)}}else{const o=await this.startAuthentication(e,t,r,i),c=o.conversationId,d=n.BSON.deserialize(o.payload.buffer),h=await this.fetchAccessToken(e,t,d,r,u,s,a);l=await this.finishAuthentication(e,t,h,c)}return l}async startAuthentication(e,t,r,n){let o;return o=!r&&n?.speculativeAuthenticate?n.speculativeAuthenticate:await e.commandAsync((0,i.ns)(t.source),l(t),void 0),o}async finishAuthentication(e,t,r,o){const a=await e.commandAsync((0,i.ns)(t.source),function(e,t){return null!=t&&"number"==typeof t?{saslContinue:1,conversationId:t,payload:new n.Binary(n.BSON.serialize({jwt:e}))}:{saslStart:1,mechanism:s.AuthMechanism.MONGODB_OIDC,payload:new n.Binary(n.BSON.serialize({jwt:e}))}}(r.accessToken,o),void 0);return a}async fetchAccessToken(e,t,r,n,i,s,a){const u=this.cache.getEntry(e.address,t.username,i);let l;const d={timeoutSeconds:300,version:0};if(u){if(u.isValid()&&!n)return u.tokenResult;a?(d.refreshToken=u.tokenResult.refreshToken,l=await a(r,d)):l=await s(r,d)}else l=await s(r,d);if(null==(h=l)||"object"!=typeof h||!("accessToken"in h)||!Object.getOwnPropertyNames(h).every((e=>c.includes(e))))throw this.cache.deleteEntry(e.address,t.username,i),new o.MongoMissingCredentialsError("User provided OIDC callbacks must return a valid object with an accessToken.");var h;return this.cache.deleteExpiredEntries(),this.cache.addEntry(e.address,t.username||"",i,l,r),l}}},4605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandDocument=t.ServiceWorkflow=void 0;const n=r(345),o=r(2229),i=r(4511);function s(e){return{saslStart:1,mechanism:i.AuthMechanism.MONGODB_OIDC,payload:n.BSON.serialize({jwt:e})}}t.ServiceWorkflow=class{async execute(e,t){const r=s(await this.getToken(t));return e.commandAsync((0,o.ns)(t.source),r,void 0)}async speculativeAuth(e){const t=s(await this.getToken(e));return t.db=e.source,{speculativeAuthenticate:t}}},t.commandDocument=s},1832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenEntryCache=t.TokenEntry=void 0;const n=r(1539);class o extends n.ExpiringCacheEntry{constructor(e,t,r){super(r),this.tokenResult=e,this.serverInfo=t}}t.TokenEntry=o;class i extends n.Cache{addEntry(e,t,r,n,i){const s=new o(n,i,n.expiresInSeconds??0);return this.entries.set(this.cacheKey(e,t,r),s),s}deleteEntry(e,t,r){this.entries.delete(this.cacheKey(e,t,r))}getEntry(e,t,r){return this.entries.get(this.cacheKey(e,t,r))}deleteExpiredEntries(){for(const[e,t]of this.entries)t.isValid()||this.entries.delete(e)}cacheKey(e,t,r){return this.hashedCacheKey(e,t,r)}}t.TokenEntryCache=i},6427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plain=void 0;const n=r(9064),o=r(4947),i=r(2229),s=r(590);class a extends s.AuthProvider{async auth(e){const{connection:t,credentials:r}=e;if(!r)throw new o.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:s,password:a}=r,u={saslStart:1,mechanism:"PLAIN",payload:new n.Binary(Buffer.from(`\0${s}\0${a}`)),autoAuthorize:1};await t.commandAsync((0,i.ns)("$external.$cmd"),u,void 0)}}t.Plain=a},4511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AUTH_MECHS_AUTH_SRC_EXTERNAL=t.AuthMechanism=void 0,t.AuthMechanism=Object.freeze({MONGODB_AWS:"MONGODB-AWS",MONGODB_CR:"MONGODB-CR",MONGODB_DEFAULT:"DEFAULT",MONGODB_GSSAPI:"GSSAPI",MONGODB_PLAIN:"PLAIN",MONGODB_SCRAM_SHA1:"SCRAM-SHA-1",MONGODB_SCRAM_SHA256:"SCRAM-SHA-256",MONGODB_X509:"MONGODB-X509",MONGODB_OIDC:"MONGODB-OIDC"}),t.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([t.AuthMechanism.MONGODB_GSSAPI,t.AuthMechanism.MONGODB_AWS,t.AuthMechanism.MONGODB_OIDC,t.AuthMechanism.MONGODB_X509])},9755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScramSHA256=t.ScramSHA1=void 0;const n=r(6113),o=r(3849),i=r(9064),s=r(8808),a=r(4947),u=r(2229),c=r(590),l=r(4511);class d extends c.AuthProvider{constructor(e){super(),this.cryptoMethod=e||"sha1",this.randomBytesAsync=(0,o.promisify)(n.randomBytes)}async prepare(e,t){const r=this.cryptoMethod,n=t.credentials;if(!n)throw new a.MongoMissingCredentialsError("AuthContext must provide credentials.");"sha256"!==r||!("kModuleError"in s.saslprep)&&"function"==typeof s.saslprep||(0,u.emitWarning)("Warning: no saslprep library specified. Passwords will not be sanitized");const o=await this.randomBytesAsync(24);return t.nonce=o,{...e,speculativeAuthenticate:{...f(r,n,o),db:n.source}}}async auth(e){const{reauthenticating:t,response:r}=e;return r?.speculativeAuthenticate&&!t?m(this.cryptoMethod,r.speculativeAuthenticate,e):async function(e,t){const{connection:r,credentials:n}=t;if(!n)throw new a.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!t.nonce)throw new a.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const o=t.nonce,i=n.source,s=f(e,n,o),c=await r.commandAsync((0,u.ns)(`${i}.$cmd`),s,void 0);await m(e,c,t)}(this.cryptoMethod,e)}}function h(e){return e.replace("=","=3D").replace(",","=2C")}function p(e,t){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(e,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(t.toString("base64"),"utf8")])}function f(e,t,r){const n=h(t.username);return{saslStart:1,mechanism:"sha1"===e?l.AuthMechanism.MONGODB_SCRAM_SHA1:l.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new i.Binary(Buffer.concat([Buffer.from("n,,","utf8"),p(n,r)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}}async function m(e,t,r){const o=r.connection,c=r.credentials;if(!c)throw new a.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!r.nonce)throw new a.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const l=r.nonce,d=c.source,f=h(c.username),m=c.password;let C;C="sha256"===e?"kModuleError"in s.saslprep||"function"!=typeof s.saslprep?m:(0,s.saslprep)(m):function(e,t){if("string"!=typeof e)throw new a.MongoInvalidArgumentError("Username must be a string");if("string"!=typeof t)throw new a.MongoInvalidArgumentError("Password must be a string");if(0===t.length)throw new a.MongoInvalidArgumentError("Password cannot be empty");let r;try{r=n.createHash("md5")}catch(e){if(n.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw e}return r.update(`${e}:mongo:${t}`,"utf8"),r.digest("hex")}(f,m);const b=Buffer.isBuffer(t.payload)?new i.Binary(t.payload):t.payload,S=g(b.value()),w=parseInt(S.i,10);if(w&&w<4096)throw new a.MongoRuntimeError(`Server returned an invalid iteration count ${w}`);const O=S.s,x=S.r;if(x.startsWith("nonce"))throw new a.MongoRuntimeError(`Server returned an invalid nonce: ${x}`);const _=`c=biws,r=${x}`,D=function(e,t,r,o){const i=[e,t.toString("base64"),r].join("_");if(null!=E[i])return E[i];const s=n.pbkdf2Sync(e,t,r,v[o],o);return A>=200&&(E={},A=0),E[i]=s,A+=1,s}(C,Buffer.from(O,"base64"),w,e),T=y(e,D,"Client Key"),I=y(e,D,"Server Key"),B=(R=e,F=T,n.createHash(R).update(F).digest());var R,F;const k=[p(f,l),b.value(),_].join(","),P=[_,`p=${function(e,t){Buffer.isBuffer(e)||(e=Buffer.from(e)),Buffer.isBuffer(t)||(t=Buffer.from(t));const r=Math.max(e.length,t.length),n=[];for(let o=0;o<r;o+=1)n.push(e[o]^t[o]);return Buffer.from(n).toString("base64")}(T,y(e,B,k))}`].join(","),N=y(e,I,k),M={saslContinue:1,conversationId:t.conversationId,payload:new i.Binary(Buffer.from(P))},L=await o.commandAsync((0,u.ns)(`${d}.$cmd`),M,void 0),j=g(L.payload.value());if(!function(e,t){if(e.length!==t.length)return!1;if("function"==typeof n.timingSafeEqual)return n.timingSafeEqual(e,t);let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}(Buffer.from(j.v,"base64"),N))throw new a.MongoRuntimeError("Server returned an invalid signature");if(!1!==L.done)return;const U={saslContinue:1,conversationId:L.conversationId,payload:Buffer.alloc(0)};await o.commandAsync((0,u.ns)(`${d}.$cmd`),U,void 0)}function g(e){const t={},r=e.split(",");for(let e=0;e<r.length;e++){const n=r[e].split("=");t[n[0]]=n[1]}return t}function y(e,t,r){return n.createHmac(e,t).update(r).digest()}let E={},A=0;const v={sha256:32,sha1:20};t.ScramSHA1=class extends d{constructor(){super("sha1")}},t.ScramSHA256=class extends d{constructor(){super("sha256")}}},3953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.X509=void 0;const n=r(4947),o=r(2229),i=r(590);class s extends i.AuthProvider{async prepare(e,t){const{credentials:r}=t;if(!r)throw new n.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...e,speculativeAuthenticate:a(r)}}async auth(e){const t=e.connection,r=e.credentials;if(!r)throw new n.MongoMissingCredentialsError("AuthContext must provide credentials.");const i=e.response;i?.speculativeAuthenticate||await t.commandAsync((0,o.ns)("$external.$cmd"),a(r),void 0)}}function a(e){const t={authenticate:1,mechanism:"MONGODB-X509"};return e.username&&(t.user=e.username),t}t.X509=s},2457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_COMMANDS=t.CommandFailedEvent=t.CommandSucceededEvent=t.CommandStartedEvent=void 0;const n=r(5006),o=r(2229),i=r(2322);t.CommandStartedEvent=class{constructor(e,r){this.name=n.COMMAND_STARTED;const o=m(r),i=a(o),{address:s,connectionId:u,serviceId:l}=g(e);t.SENSITIVE_COMMANDS.has(i)&&(this.commandObj={},this.commandObj[i]=!0),this.address=s,this.connectionId=u,this.serviceId=l,this.requestId=r.requestId,this.databaseName=c(r),this.commandName=i,this.command=d(i,o,o)}get hasServiceId(){return!!this.serviceId}},t.CommandSucceededEvent=class{constructor(e,t,r,s){this.name=n.COMMAND_SUCCEEDED;const c=m(t),l=a(c),{address:h,connectionId:p,serviceId:f}=g(e);this.address=h,this.connectionId=p,this.serviceId=f,this.requestId=t.requestId,this.commandName=l,this.duration=(0,o.calculateDurationInMs)(s),this.reply=d(l,c,function(e,t){return t?e instanceof i.Msg?(0,o.deepCopy)(t.result?t.result:t):e.query&&null!=e.query.$query?{ok:1,cursor:{id:(0,o.deepCopy)(t.cursorId),ns:u(e),firstBatch:(0,o.deepCopy)(t.documents)}}:(0,o.deepCopy)(t.result?t.result:t):t}(t,r))}get hasServiceId(){return!!this.serviceId}},t.CommandFailedEvent=class{constructor(e,t,r,i){this.name=n.COMMAND_FAILED;const s=m(t),u=a(s),{address:c,connectionId:l,serviceId:h}=g(e);this.address=c,this.connectionId=l,this.serviceId=h,this.requestId=t.requestId,this.commandName=u,this.duration=(0,o.calculateDurationInMs)(i),this.failure=d(u,s,r)}get hasServiceId(){return!!this.serviceId}},t.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);const s=new Set(["hello",n.LEGACY_HELLO_COMMAND,n.LEGACY_HELLO_COMMAND_CAMEL_CASE]),a=e=>Object.keys(e)[0],u=e=>e.ns,c=e=>e.ns.split(".")[0],l=e=>e.ns.split(".")[1],d=(e,r,n)=>t.SENSITIVE_COMMANDS.has(e)||s.has(e)&&r.speculativeAuthenticate?{}:n,h={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},p={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},f=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"];function m(e){if(e instanceof i.Msg)return(0,o.deepCopy)(e.command);if(e.query?.$query){let t;return"admin.$cmd"===e.ns?t=Object.assign({},e.query.$query):(t={find:l(e)},Object.keys(h).forEach((r=>{null!=e.query[r]&&(t[h[r]]=(0,o.deepCopy)(e.query[r]))}))),Object.keys(p).forEach((r=>{const n=r;null!=e[n]&&(t[p[n]]=(0,o.deepCopy)(e[n]))})),f.forEach((r=>{e[r]&&(t[r]=e[r])})),null!=e.pre32Limit&&(t.limit=e.pre32Limit),e.query.$explain?{explain:t}:t}const t={},r={};if(e.query){for(const r in e.query)t[r]=(0,o.deepCopy)(e.query[r]);r.query=t}for(const t in e)"query"!==t&&(r[t]=(0,o.deepCopy)(e[t]));return e.query?t:r}function g(e){let t;return"id"in e&&(t=e.id),{address:e.address,serviceId:e.serviceId,connectionId:t}}},2322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BinMsg=t.Msg=t.Response=t.Query=void 0;const n=r(9064),o=r(4947),i=r(1228),s=r(2229),a=r(3496);let u=0;class c{constructor(e,t,r){if(null==e)throw new o.MongoRuntimeError("Namespace must be specified for query");if(null==t)throw new o.MongoRuntimeError("A query document must be specified for query");if(-1!==e.indexOf("\0"))throw new o.MongoRuntimeError("Namespace cannot contain a null character");this.ns=e,this.query=t,this.numberToSkip=r.numberToSkip||0,this.numberToReturn=r.numberToReturn||0,this.returnFieldSelector=r.returnFieldSelector||void 0,this.requestId=c.getRequestId(),this.pre32Limit=r.pre32Limit,this.serializeFunctions="boolean"==typeof r.serializeFunctions&&r.serializeFunctions,this.ignoreUndefined="boolean"==typeof r.ignoreUndefined&&r.ignoreUndefined,this.maxBsonSize=r.maxBsonSize||16777216,this.checkKeys="boolean"==typeof r.checkKeys&&r.checkKeys,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk="boolean"==typeof r.secondaryOk&&r.secondaryOk,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=u++}nextRequestId(){return u+1}static getRequestId(){return++u}toBin(){const e=[];let t=null,r=0;this.tailable&&(r|=2),this.secondaryOk&&(r|=4),this.oplogReplay&&(r|=8),this.noCursorTimeout&&(r|=16),this.awaitData&&(r|=32),this.exhaust&&(r|=64),this.partial&&(r|=128),this.batchSize!==this.numberToReturn&&(this.numberToReturn=this.batchSize);const o=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);e.push(o);const i=n.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});e.push(i),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0&&(t=n.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),e.push(t));const s=o.length+i.length+(t?t.length:0);let u=4;return o[3]=s>>24&255,o[2]=s>>16&255,o[1]=s>>8&255,o[0]=255&s,o[u+3]=this.requestId>>24&255,o[u+2]=this.requestId>>16&255,o[u+1]=this.requestId>>8&255,o[u]=255&this.requestId,u+=4,o[u+3]=0,o[u+2]=0,o[u+1]=0,o[u]=0,u+=4,o[u+3]=a.OP_QUERY>>24&255,o[u+2]=a.OP_QUERY>>16&255,o[u+1]=a.OP_QUERY>>8&255,o[u]=255&a.OP_QUERY,u+=4,o[u+3]=r>>24&255,o[u+2]=r>>16&255,o[u+1]=r>>8&255,o[u]=255&r,u+=4,u=u+o.write(this.ns,u,"utf8")+1,o[u-1]=0,o[u+3]=this.numberToSkip>>24&255,o[u+2]=this.numberToSkip>>16&255,o[u+1]=this.numberToSkip>>8&255,o[u]=255&this.numberToSkip,u+=4,o[u+3]=this.numberToReturn>>24&255,o[u+2]=this.numberToReturn>>16&255,o[u+1]=this.numberToReturn>>8&255,o[u]=255&this.numberToReturn,u+=4,e}}t.Query=c,t.Response=class{constructor(e,t,r,n){this.documents=new Array(0),this.parsed=!1,this.raw=e,this.data=r,this.opts=n??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=t.length,this.requestId=t.requestId,this.responseTo=t.responseTo,this.opCode=t.opCode,this.fromCompressed=t.fromCompressed,this.useBigInt64="boolean"==typeof this.opts.useBigInt64&&this.opts.useBigInt64,this.promoteLongs="boolean"!=typeof this.opts.promoteLongs||this.opts.promoteLongs,this.promoteValues="boolean"!=typeof this.opts.promoteValues||this.opts.promoteValues,this.promoteBuffers="boolean"==typeof this.opts.promoteBuffers&&this.opts.promoteBuffers,this.bsonRegExp="boolean"==typeof this.opts.bsonRegExp&&this.opts.bsonRegExp}isParsed(){return this.parsed}parse(e){if(this.parsed)return;const t=(e=e??{}).raw||!1,r=e.documentsReturnedIn||null;let o;const i={useBigInt64:e.useBigInt64??this.opts.useBigInt64,promoteLongs:e.promoteLongs??this.opts.promoteLongs,promoteValues:e.promoteValues??this.opts.promoteValues,promoteBuffers:e.promoteBuffers??this.opts.promoteBuffers,bsonRegExp:e.bsonRegExp??this.opts.bsonRegExp};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new n.Long(this.data.readInt32LE(4),this.data.readInt32LE(8)),this.startingFrom=this.data.readInt32LE(12),this.numberReturned=this.data.readInt32LE(16),this.documents=new Array(this.numberReturned),this.cursorNotFound=0!=(1&this.responseFlags),this.queryFailure=0!=(2&this.responseFlags),this.shardConfigStale=0!=(4&this.responseFlags),this.awaitCapable=0!=(8&this.responseFlags);for(let e=0;e<this.numberReturned;e++)o=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,this.documents[e]=t?this.data.slice(this.index,this.index+o):n.deserialize(this.data.slice(this.index,this.index+o),i),this.index=this.index+o;if(1===this.documents.length&&null!=r&&t){const e={};e[r]=!0,i.fieldsAsRaw=e;const t=n.deserialize(this.documents[0],i);this.documents=[t]}this.parsed=!0}};class l{constructor(e,t,r){if(null==t)throw new o.MongoInvalidArgumentError("Query document must be specified for query");this.ns=e,this.command=t,this.command.$db=(0,s.databaseNamespace)(e),r.readPreference&&r.readPreference.mode!==i.ReadPreference.PRIMARY&&(this.command.$readPreference=r.readPreference.toJSON()),this.options=r??{},this.requestId=r.requestId?r.requestId:l.getRequestId(),this.serializeFunctions="boolean"==typeof r.serializeFunctions&&r.serializeFunctions,this.ignoreUndefined="boolean"==typeof r.ignoreUndefined&&r.ignoreUndefined,this.checkKeys="boolean"==typeof r.checkKeys&&r.checkKeys,this.maxBsonSize=r.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=r.moreToCome||!1,this.exhaustAllowed="boolean"==typeof r.exhaustAllowed&&r.exhaustAllowed}toBin(){const e=[];let t=0;this.checksumPresent&&(t|=1),this.moreToCome&&(t|=2),this.exhaustAllowed&&(t|=65536);const r=Buffer.alloc(20);e.push(r);let n=r.length;const o=this.command;return n+=this.makeDocumentSegment(e,o),r.writeInt32LE(n,0),r.writeInt32LE(this.requestId,4),r.writeInt32LE(0,8),r.writeInt32LE(a.OP_MSG,12),r.writeUInt32LE(t,16),e}makeDocumentSegment(e,t){const r=Buffer.alloc(1);r[0]=0;const n=this.serializeBson(t);return e.push(r),e.push(n),r.length+n.length}serializeBson(e){return n.serialize(e,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return u=u+1&2147483647,u}}t.Msg=l,t.BinMsg=class{constructor(e,t,r,n){this.parsed=!1,this.raw=e,this.data=r,this.opts=n??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=t.length,this.requestId=t.requestId,this.responseTo=t.responseTo,this.opCode=t.opCode,this.fromCompressed=t.fromCompressed,this.responseFlags=r.readInt32LE(0),this.checksumPresent=0!=(1&this.responseFlags),this.moreToCome=0!=(2&this.responseFlags),this.exhaustAllowed=0!=(65536&this.responseFlags),this.useBigInt64="boolean"==typeof this.opts.useBigInt64&&this.opts.useBigInt64,this.promoteLongs="boolean"!=typeof this.opts.promoteLongs||this.opts.promoteLongs,this.promoteValues="boolean"!=typeof this.opts.promoteValues||this.opts.promoteValues,this.promoteBuffers="boolean"==typeof this.opts.promoteBuffers&&this.opts.promoteBuffers,this.bsonRegExp="boolean"==typeof this.opts.bsonRegExp&&this.opts.bsonRegExp,this.documents=[]}isParsed(){return this.parsed}parse(e){if(this.parsed)return;e=e??{},this.index=4;const t=e.raw||!1,r=e.documentsReturnedIn||null,i={useBigInt64:e.useBigInt64??this.opts.useBigInt64,promoteLongs:e.promoteLongs??this.opts.promoteLongs,promoteValues:e.promoteValues??this.opts.promoteValues,promoteBuffers:e.promoteBuffers??this.opts.promoteBuffers,bsonRegExp:e.bsonRegExp??this.opts.bsonRegExp,validation:this.parseBsonSerializationOptions(e)};for(;this.index<this.data.length;){const e=this.data.readUInt8(this.index++);if(0===e){const e=this.data.readUInt32LE(this.index),r=this.data.slice(this.index,this.index+e);this.documents.push(t?r:n.deserialize(r,i)),this.index+=e}else if(1===e)throw new o.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(1===this.documents.length&&null!=r&&t){const e={};e[r]=!0,i.fieldsAsRaw=e;const t=n.deserialize(this.documents[0],i);this.documents=[t]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:e}){return!1===e?{utf8:!1}:{utf8:{writeErrors:!1}}}}},231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LEGAL_TCP_SOCKET_OPTIONS=t.LEGAL_TLS_SOCKET_OPTIONS=t.prepareHandshakeDocument=t.connect=t.AUTH_PROVIDERS=void 0;const n=r(1808),o=r(2131),i=r(4404),s=r(5006),a=r(4947),u=r(2229),c=r(590),l=r(2403),d=r(6614),h=r(3354),p=r(8205),f=r(6427),m=r(4511),g=r(9755),y=r(3953),E=r(8345),A=r(3496);async function v(e){const r=e.options,n=r.compressors?r.compressors:[],{serverApi:o}=e.connection,i={[o?.version?"hello":s.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:r.metadata,compression:n};!0===r.loadBalanced&&(i.loadBalanced=!0);const u=e.credentials;if(u){if(u.mechanism===m.AuthMechanism.MONGODB_DEFAULT&&u.username){i.saslSupportedMechs=`${u.source}.${u.username}`;const r=t.AUTH_PROVIDERS.get(m.AuthMechanism.MONGODB_SCRAM_SHA256);if(!r)throw new a.MongoInvalidArgumentError(`No AuthProvider for ${m.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return r.prepare(i,e)}const r=t.AUTH_PROVIDERS.get(u.mechanism);if(!r)throw new a.MongoInvalidArgumentError(`No AuthProvider for ${u.mechanism} defined.`);return r.prepare(i,e)}return i}function C(e){const r=e.hostAddress;if(!r)throw new a.MongoInvalidArgumentError('Option "hostAddress" is required');const n={};for(const r of t.LEGAL_TCP_SOCKET_OPTIONS)null!=e[r]&&(n[r]=e[r]);if("string"==typeof r.socketPath)return n.path=r.socketPath,n;if("string"==typeof r.host)return n.host=r.host,n.port=r.port,n;throw new a.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(r)}`)}t.AUTH_PROVIDERS=new Map([[m.AuthMechanism.MONGODB_AWS,new h.MongoDBAWS],[m.AuthMechanism.MONGODB_CR,new d.MongoCR],[m.AuthMechanism.MONGODB_GSSAPI,new l.GSSAPI],[m.AuthMechanism.MONGODB_OIDC,new p.MongoDBOIDC],[m.AuthMechanism.MONGODB_PLAIN,new f.Plain],[m.AuthMechanism.MONGODB_SCRAM_SHA1,new g.ScramSHA1],[m.AuthMechanism.MONGODB_SCRAM_SHA256,new g.ScramSHA256],[m.AuthMechanism.MONGODB_X509,new y.X509]]),t.connect=function(e,r){S({...e,existingSocket:void 0},((n,o)=>{if(n||!o)return r(n);let i=e.connectionType??E.Connection;e.autoEncrypter&&(i=E.CryptoConnection);const l=new i(o,e);(async function(e,r){const n=r.credentials;if(n&&n.mechanism!==m.AuthMechanism.MONGODB_DEFAULT&&!t.AUTH_PROVIDERS.get(n.mechanism))throw new a.MongoInvalidArgumentError(`AuthMechanism '${n.mechanism}' not supported`);const o=new c.AuthContext(e,n,r);e.authContext=o;const i=await v(o),l={...r};"number"==typeof r.connectTimeoutMS&&(l.socketTimeoutMS=r.connectTimeoutMS);const d=(new Date).getTime(),h=await e.commandAsync((0,u.ns)("admin.$cmd"),i,l);"isWritablePrimary"in h||(h.isWritablePrimary=h[s.LEGACY_HELLO_COMMAND]),h.helloOk&&(e.helloOk=!0);const p=function(e,t){const r=Number(e.maxWireVersion),n=Number(e.minWireVersion),o=!Number.isNaN(r)&&r>=A.MIN_SUPPORTED_WIRE_VERSION,i=!Number.isNaN(n)&&n<=A.MAX_SUPPORTED_WIRE_VERSION;if(o){if(i)return null;const r=`Server at ${t.hostAddress} reports minimum wire version ${JSON.stringify(e.minWireVersion)}, but this version of the Node.js Driver requires at most ${A.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${A.MAX_SUPPORTED_SERVER_VERSION})`;return new a.MongoCompatibilityError(r)}const s=`Server at ${t.hostAddress} reports maximum wire version ${JSON.stringify(e.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${A.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${A.MIN_SUPPORTED_SERVER_VERSION})`;return new a.MongoCompatibilityError(s)}(h,r);if(p)throw p;if(r.loadBalanced&&!h.serviceId)throw new a.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.");if(e.hello=h,e.lastHelloMS=(new Date).getTime()-d,!h.arbiterOnly&&n){o.response=h;const e=n.resolveAuthMechanism(h),r=t.AUTH_PROVIDERS.get(e.mechanism);if(!r)throw new a.MongoInvalidArgumentError(`No AuthProvider for ${e.mechanism} defined.`);try{await r.auth(o)}catch(e){throw e instanceof a.MongoError&&(e.addErrorLabel(a.MongoErrorLabel.HandshakeError),(0,a.needsRetryableWriteLabel)(e,h.maxWireVersion)&&e.addErrorLabel(a.MongoErrorLabel.RetryableWriteError)),e}}})(l,e).then((()=>r(void 0,l)),(e=>{l.destroy({force:!1}),r(e)}))}))},t.prepareHandshakeDocument=v,t.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"],t.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];const b=new Set(["error","close","timeout","parseError"]);function S(e,r){const s=e.tls??!1,c=e.keepAlive??!0,l=e.socketTimeoutMS??Reflect.get(e,"socketTimeout")??0,d=e.noDelay??!0,h=e.connectTimeoutMS??3e4,p=e.rejectUnauthorized??!0,f=((e.keepAliveInitialDelay??12e4)>l?Math.round(l/2):e.keepAliveInitialDelay)??12e4,m=e.existingSocket;let g;const y=function(e,t){e&&g&&g.destroy(),r(e,t)};if(null!=e.proxyHost)return function(e,t){const r=u.HostAddress.fromHostPort(e.proxyHost??"",e.proxyPort??1080);S({...e,hostAddress:r,tls:!1,proxyHost:void 0},((r,n)=>{if(r)return t(r);const i=C(e);if("string"!=typeof i.host||"number"!=typeof i.port)return t(new a.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));o.SocksClient.createConnection({existing_socket:n,timeout:e.connectTimeoutMS,command:"connect",destination:{host:i.host,port:i.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:e.proxyUsername||void 0,password:e.proxyPassword||void 0}}).then((({socket:r})=>{S({...e,existingSocket:r,proxyHost:void 0},t)}),(e=>t(w("error",e))))}))}({...e,connectTimeoutMS:h},y);if(s){const r=i.connect(function(e){const r=C(e);for(const n of t.LEGAL_TLS_SOCKET_OPTIONS)null!=e[n]&&(r[n]=e[n]);return e.existingSocket&&(r.socket=e.existingSocket),null==r.servername&&r.host&&!n.isIP(r.host)&&(r.servername=r.host),r}(e));"function"==typeof r.disableRenegotiation&&r.disableRenegotiation(),g=r}else g=m||n.createConnection(C(e));g.setKeepAlive(c,f),g.setTimeout(h),g.setNoDelay(d);const E=s?"secureConnect":"connect";let A;function v(t){return r=>{b.forEach((e=>g.removeAllListeners(e))),A&&e.cancellationToken&&e.cancellationToken.removeListener("cancel",A),g.removeListener(E,O),y(w(t,r))}}function O(){if(b.forEach((e=>g.removeAllListeners(e))),A&&e.cancellationToken&&e.cancellationToken.removeListener("cancel",A),"authorizationError"in g&&g.authorizationError&&p)return y(g.authorizationError);g.setTimeout(0),y(void 0,g)}b.forEach((e=>g.once(e,v(e)))),e.cancellationToken&&(A=v("cancel"),e.cancellationToken.once("cancel",A)),m?process.nextTick(O):g.once(E,O)}function w(e,t){switch(e){case"error":return new a.MongoNetworkError(t);case"timeout":return new a.MongoNetworkTimeoutError("connection timed out");case"close":return new a.MongoNetworkError("connection closed");case"cancel":return new a.MongoNetworkError("connection establishment was cancelled");default:return new a.MongoNetworkError("unknown network error")}}},8345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasSessionSupport=t.CryptoConnection=t.Connection=void 0;const n=r(9512),o=r(3849),i=r(5006),s=r(4947),a=r(334),u=r(1296),c=r(2229),l=r(2457),d=r(2322),h=r(7827),p=r(9011),f=r(3377),m=Symbol("stream"),g=Symbol("queue"),y=Symbol("messageStream"),E=Symbol("generation"),A=Symbol("lastUseTime"),v=Symbol("clusterTime"),C=Symbol("description"),b=Symbol("hello"),S=Symbol("autoEncrypter"),w=Symbol("delayedTimeoutId");class O extends a.TypedEventEmitter{constructor(e,t){super(),this.commandAsync=(0,o.promisify)(((e,t,r,n)=>this.command(e,t,r,n))),this.id=t.id,this.address=function(e,t){if(t.proxyHost)return t.hostAddress.toString();const{remoteAddress:r,remotePort:n}=e;return"string"==typeof r&&"number"==typeof n?c.HostAddress.fromHostPort(r,n).toString():(0,c.uuidV4)().toString("hex")}(e,t),this.socketTimeoutMS=t.socketTimeoutMS??0,this.monitorCommands=t.monitorCommands,this.serverApi=t.serverApi,this.closed=!1,this[b]=null,this[v]=null,this[C]=new p.StreamDescription(this.address,t),this[E]=t.generation,this[A]=(0,c.now)(),this[g]=new Map,this[y]=new h.MessageStream({...t,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[m]=e,this[w]=null,this[y].on("message",(e=>this.onMessage(e))),this[y].on("error",(e=>this.onError(e))),this[m].on("close",(()=>this.onClose())),this[m].on("timeout",(()=>this.onTimeout())),this[m].on("error",(()=>{})),this[m].pipe(this[y]),this[y].pipe(this[m])}get description(){return this[C]}get hello(){return this[b]}set hello(e){this[C].receiveResponse(e),this[C]=Object.freeze(this[C]),this[b]=e}set isMonitoringConnection(e){this[y].isMonitoringConnection=e}get isMonitoringConnection(){return this[y].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[E]||0}set generation(e){this[E]=e}get idleTime(){return(0,c.calculateDurationInMs)(this[A])}get clusterTime(){return this[v]}get stream(){return this[m]}markAvailable(){this[A]=(0,c.now)()}onError(e){this.cleanup(!0,e)}onClose(){const e=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new s.MongoNetworkError(e))}onTimeout(){this[w]=(0,n.setTimeout)((()=>{const e=`connection ${this.id} to ${this.address} timed out`,t=null==this.hello;this.cleanup(!0,new s.MongoNetworkTimeoutError(e,{beforeHandshake:t}))}),1).unref()}onMessage(e){const t=this[w];null!=t&&((0,n.clearTimeout)(t),this[w]=null);const r=this[m].timeout??0;this[m].setTimeout(0),this.emit("message",e);let o=this[g].get(e.responseTo);if(!o&&this.isMonitoringConnection)if(this[g].size>1)this.cleanup(!0,new s.MongoRuntimeError("Connection internal queue contains more than 1 operation description"));else{const e=this[g].entries().next();if(null!=e.value){const[t,r]=e.value;o=r,this[g].delete(t)}}if(!o)return;const i=o.cb;this[g].delete(e.responseTo),"moreToCome"in e&&e.moreToCome&&(this[g].set(e.requestId,o),this[m].setTimeout(r));try{e.parse(o)}catch(e){return void i(e)}if(e.documents[0]){const t=e.documents[0],r=o.session;if(r&&(0,u.updateSessionFromResponse)(r,t),t.$clusterTime&&(this[v]=t.$clusterTime,this.emit(O.CLUSTER_TIME_RECEIVED,t.$clusterTime)),t.writeConcernError)return void i(new s.MongoWriteConcernError(t.writeConcernError,t),t);if(0===t.ok||t.$err||t.errmsg||t.code)return void i(new s.MongoServerError(t))}i(void 0,e.documents[0])}destroy(e,t){if(this.closed)return void process.nextTick((()=>t?.()));"function"==typeof t&&this.once("close",(()=>process.nextTick((()=>t())))),this.removeAllListeners(O.PINNED),this.removeAllListeners(O.UNPINNED);const r=`connection ${this.id} to ${this.address} closed`;this.cleanup(e.force,new s.MongoNetworkError(r))}cleanup(e,t){if(this.closed)return;this.closed=!0;const r=()=>{for(const e of this[g].values())e.cb(t);this[g].clear(),this.emit(O.CLOSE)};if(this[m].removeAllListeners(),this[y].removeAllListeners(),this[y].destroy(),e)return this[m].destroy(),void r();this[m].writableEnded?r():this[m].end((()=>{this[m].destroy(),r()}))}command(e,t,r,n){let o={...t};const i=(0,f.getReadPreference)(r),a=function(e){const t=e.description;return null!=t&&((0,c.maxWireVersion)(e)>=6&&!t.__nodejs_mock_server__)}(this),h=r?.session;let p=this.clusterTime;if(this.serverApi){const{version:e,strict:t,deprecationErrors:r}=this.serverApi;o.apiVersion=e,null!=t&&(o.apiStrict=t),null!=r&&(o.apiDeprecationErrors=r)}if(x(this)&&h){h.clusterTime&&p&&h.clusterTime.clusterTime.greaterThan(p.clusterTime)&&(p=h.clusterTime);const e=(0,u.applySession)(h,o,r);if(e)return n(e)}else if(h?.explicit)return n(new s.MongoCompatibilityError("Current topology does not support sessions"));p&&(o.$clusterTime=p),(0,f.isSharded)(this)&&!a&&i&&"primary"!==i.mode&&(o={$query:o,$readPreference:i.toJSON()});const E=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:i.secondaryOk()},r),A=`${e.db}.$cmd`,v=a?new d.Msg(A,o,E):new d.Query(A,o,E);try{!function(e,t,r,n){r=r??{};const o={requestId:t.requestId,cb:n,session:r.session,noResponse:"boolean"==typeof r.noResponse&&r.noResponse,documentsReturnedIn:r.documentsReturnedIn,useBigInt64:"boolean"==typeof r.useBigInt64&&r.useBigInt64,promoteLongs:"boolean"!=typeof r.promoteLongs||r.promoteLongs,promoteValues:"boolean"!=typeof r.promoteValues||r.promoteValues,promoteBuffers:"boolean"==typeof r.promoteBuffers&&r.promoteBuffers,bsonRegExp:"boolean"==typeof r.bsonRegExp&&r.bsonRegExp,enableUtf8Validation:"boolean"!=typeof r.enableUtf8Validation||r.enableUtf8Validation,raw:"boolean"==typeof r.raw&&r.raw,started:0};e[C]&&e[C].compressor&&(o.agreedCompressor=e[C].compressor,e[C].zlibCompressionLevel&&(o.zlibCompressionLevel=e[C].zlibCompressionLevel)),"number"==typeof r.socketTimeoutMS?e[m].setTimeout(r.socketTimeoutMS):0!==e.socketTimeoutMS&&e[m].setTimeout(e.socketTimeoutMS),e.monitorCommands&&(e.emit(O.COMMAND_STARTED,new l.CommandStartedEvent(e,t)),o.started=(0,c.now)(),o.cb=(r,i)=>{r&&1!==i?.ok?e.emit(O.COMMAND_FAILED,new l.CommandFailedEvent(e,t,r,o.started)):i&&(0===i.ok||i.$err)?e.emit(O.COMMAND_FAILED,new l.CommandFailedEvent(e,t,i,o.started)):e.emit(O.COMMAND_SUCCEEDED,new l.CommandSucceededEvent(e,t,i,o.started)),"function"==typeof n&&n(r,r instanceof s.MongoWriteConcernError?void 0:i)}),o.noResponse||e[g].set(o.requestId,o);try{e[y].writeCommand(t,o)}catch(t){if(!o.noResponse)return e[g].delete(o.requestId),void o.cb(t)}o.noResponse&&o.cb()}(this,v,E,n)}catch(e){n(e)}}}function x(e){return null!=e.description.logicalSessionTimeoutMinutes}O.COMMAND_STARTED=i.COMMAND_STARTED,O.COMMAND_SUCCEEDED=i.COMMAND_SUCCEEDED,O.COMMAND_FAILED=i.COMMAND_FAILED,O.CLUSTER_TIME_RECEIVED=i.CLUSTER_TIME_RECEIVED,O.CLOSE=i.CLOSE,O.MESSAGE=i.MESSAGE,O.PINNED=i.PINNED,O.UNPINNED=i.UNPINNED,t.Connection=O,t.CryptoConnection=class extends O{constructor(e,t){super(e,t),this[S]=t.autoEncrypter}command(e,t,r,n){const o=this[S];if(!o)return n(new s.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const i=(0,c.maxWireVersion)(this);if(0===i)return super.command(e,t,r,n);if(i<8)return void n(new s.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));const a=t.find||t.findAndModify?t.sort:null,u=t.createIndexes?t.indexes.map((e=>e.key)):null;o.encrypt(e.toString(),t,r,((i,s)=>{if(i||null==s)n(i,null);else{if(null!=a&&(t.find||t.findAndModify)&&(s.sort=a),null!=u&&t.createIndexes)for(const[e,t]of u.entries())s.indexes[e].key=t;super.command(e,s,r,((e,t)=>{e||null==t?n(e,t):o.decrypt(t,r,n)}))}}))}},t.hasSessionSupport=x},8343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPool=t.PoolState=void 0;const n=r(9512),o=r(5006),i=r(4947),s=r(334),a=r(2229),u=r(231),c=r(8345),l=r(1654),d=r(8122),h=r(8547),p=Symbol("server"),f=Symbol("connections"),m=Symbol("pending"),g=Symbol("checkedOut"),y=Symbol("minPoolSizeTimer"),E=Symbol("generation"),A=Symbol("serviceGenerations"),v=Symbol("connectionCounter"),C=Symbol("cancellationToken"),b=Symbol("waitQueue"),S=Symbol("cancelled"),w=Symbol("metrics"),O=Symbol("processingWaitQueue"),x=Symbol("poolState");t.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class _ extends s.TypedEventEmitter{constructor(e,r){if(super(),this.options=Object.freeze({...r,connectionType:c.Connection,maxPoolSize:r.maxPoolSize??100,minPoolSize:r.minPoolSize??0,maxConnecting:r.maxConnecting??2,maxIdleTimeMS:r.maxIdleTimeMS??0,waitQueueTimeoutMS:r.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:r.minPoolSizeCheckFrequencyMS??100,autoEncrypter:r.autoEncrypter,metadata:r.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new i.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[x]=t.PoolState.paused,this[p]=e,this[f]=new a.List,this[m]=0,this[g]=new Set,this[y]=void 0,this[E]=0,this[A]=new Map,this[v]=(0,a.makeCounter)(1),this[C]=new s.CancellationToken,this[C].setMaxListeners(1/0),this[b]=new a.List,this[w]=new h.ConnectionPoolMetrics,this[O]=!1,this.mongoLogger=this[p].topology.client.mongoLogger,this.component="connection",process.nextTick((()=>{this.emitAndLog(_.CONNECTION_POOL_CREATED,new l.ConnectionPoolCreatedEvent(this))}))}get address(){return this.options.hostAddress.toString()}get closed(){return this[x]===t.PoolState.closed}get generation(){return this[E]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[f].length}get pendingConnectionCount(){return this[m]}get currentCheckedOutCount(){return this[g].size}get waitQueueSize(){return this[b].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[A]}get serverError(){return this[p].description.error}get checkedOutConnections(){return this[g]}waitQueueErrorMetrics(){return this[w].info(this.options.maxPoolSize)}ready(){this[x]===t.PoolState.paused&&(this[x]=t.PoolState.ready,this.emitAndLog(_.CONNECTION_POOL_READY,new l.ConnectionPoolReadyEvent(this)),(0,n.clearTimeout)(this[y]),this.ensureMinPoolSize())}checkOut(e){this.emitAndLog(_.CONNECTION_CHECK_OUT_STARTED,new l.ConnectionCheckOutStartedEvent(this));const t={callback:e},r=this.options.waitQueueTimeoutMS;r&&(t.timer=(0,n.setTimeout)((()=>{t[S]=!0,t.timer=void 0,this.emitAndLog(_.CONNECTION_CHECK_OUT_FAILED,new l.ConnectionCheckOutFailedEvent(this,"timeout")),t.callback(new d.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))}),r)),this[b].push(t),process.nextTick((()=>this.processWaitQueue()))}checkIn(e){if(!this[g].has(e))return;const t=this.closed,r=this.connectionIsStale(e),n=!!(t||r||e.closed);if(n||(e.markAvailable(),this[f].unshift(e)),this[g].delete(e),this.emitAndLog(_.CONNECTION_CHECKED_IN,new l.ConnectionCheckedInEvent(this,e)),n){const r=e.closed?"error":t?"poolClosed":"stale";this.destroyConnection(e,r)}process.nextTick((()=>this.processWaitQueue()))}clear(e={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:t}=e;if(!t)throw new i.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");const r=t.toHexString(),n=this.serviceGenerations.get(r);if(null==n)throw new i.MongoRuntimeError("Service generations are required in load balancer mode.");return this.serviceGenerations.set(r,n+1),void this.emitAndLog(_.CONNECTION_POOL_CLEARED,new l.ConnectionPoolClearedEvent(this,{serviceId:t}))}const r=e.interruptInUseConnections??!1,n=this[E];this[E]+=1;const o=this[x]===t.PoolState.paused;this[x]=t.PoolState.paused,this.clearMinPoolSizeTimer(),o||this.emitAndLog(_.CONNECTION_POOL_CLEARED,new l.ConnectionPoolClearedEvent(this,{interruptInUseConnections:r})),r&&process.nextTick((()=>this.interruptInUseConnections(n))),this.processWaitQueue()}interruptInUseConnections(e){for(const t of this[g])t.generation<=e&&(this.checkIn(t),t.onError(new d.PoolClearedOnNetworkError(this)))}close(e,r){let n=e;const o=r??e;if("function"==typeof n&&(n={}),n=Object.assign({force:!1},n),this.closed)return o();this[C].emit("cancel"),"function"==typeof this[v].return&&this[v].return(void 0),this[x]=t.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),(0,a.eachAsync)(this[f].toArray(),((e,t)=>{this.emitAndLog(_.CONNECTION_CLOSED,new l.ConnectionClosedEvent(this,e,"poolClosed")),e.destroy({force:!!n.force},t)}),(e=>{this[f].clear(),this.emitAndLog(_.CONNECTION_POOL_CLOSED,new l.ConnectionPoolClosedEvent(this)),o(e)}))}withConnection(e,t,r){e?t(void 0,e,((n,o)=>{if(n)return this.withReauthentication(n,e,t,r);r(void 0,o)})):this.checkOut(((e,n)=>{t(e,n,((e,o)=>{e?n?this.withReauthentication(e,n,t,r):r(e):r(void 0,o),n&&this.checkIn(n)}))}))}withReauthentication(e,t,r,n){e instanceof i.MongoError&&e.code===i.MONGODB_ERROR_CODES.Reauthenticate?this.reauthenticate(t,r,((e,t)=>{if(e)return n(e);n(void 0,t)})):n(e)}reauthenticate(e,t,r){const n=e.authContext;if(!n)return r(new i.MongoRuntimeError("No auth context found on connection."));const o=n.credentials;if(!o)return r(new i.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const s=o.resolveAuthMechanism(e.hello||void 0),a=u.AUTH_PROVIDERS.get(s.mechanism);if(!a)return r(new i.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${o.mechanism}`));a.reauth(n).then((()=>{t(void 0,e,((e,t)=>{if(e)return r(e);r(void 0,t)}))}),(e=>r(e)))}clearMinPoolSizeTimer(){const e=this[y];e&&(0,n.clearTimeout)(e)}destroyConnection(e,t){this.emitAndLog(_.CONNECTION_CLOSED,new l.ConnectionClosedEvent(this,e,t)),process.nextTick((()=>e.destroy({force:!1})))}connectionIsStale(e){const t=e.serviceId;if(this.loadBalanced&&t){const r=t.toHexString(),n=this.serviceGenerations.get(r);return e.generation!==n}return e.generation!==this[E]}connectionIsIdle(e){return!!(this.options.maxIdleTimeMS&&e.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(e){const t=this.connectionIsStale(e),r=this.connectionIsIdle(e);if(!t&&!r&&!e.closed)return!1;const n=e.closed?"error":t?"stale":"idle";return this.destroyConnection(e,n),!0}createConnection(e){const r={...this.options,id:this[v].next().value,generation:this[E],cancellationToken:this[C]};this[m]++,this.emitAndLog(_.CONNECTION_CREATED,new l.ConnectionCreatedEvent(this,{id:r.id})),(0,u.connect)(r,((n,s)=>{if(n||!s)return this[m]--,this.emitAndLog(_.CONNECTION_CLOSED,new l.ConnectionClosedEvent(this,{id:r.id,serviceId:void 0},"error",n)),(n instanceof i.MongoNetworkError||n instanceof i.MongoServerError)&&(n.connectionGeneration=r.generation),void e(n??new i.MongoRuntimeError("Connection creation failed without error"));if(this[x]!==t.PoolState.ready)return this[m]--,s.destroy({force:!0}),void e(this.closed?new d.PoolClosedError(this):new d.PoolClearedError(this));for(const e of[...o.APM_EVENTS,c.Connection.CLUSTER_TIME_RECEIVED])s.on(e,(t=>this.emit(e,t)));if(this.loadBalanced){s.on(c.Connection.PINNED,(e=>this[w].markPinned(e))),s.on(c.Connection.UNPINNED,(e=>this[w].markUnpinned(e)));const e=s.serviceId;if(e){let t;const r=e.toHexString();(t=this.serviceGenerations.get(r))?s.generation=t:(this.serviceGenerations.set(r,0),s.generation=0)}}s.markAvailable(),this.emitAndLog(_.CONNECTION_READY,new l.ConnectionReadyEvent(this,s)),this[m]--,e(void 0,s)}))}ensureMinPoolSize(){const e=this.options.minPoolSize;this[x]===t.PoolState.ready&&0!==e&&(this[f].prune((e=>this.destroyConnectionIfPerished(e))),this.totalConnectionCount<e&&this.pendingConnectionCount<this.options.maxConnecting?this.createConnection(((e,r)=>{e&&this[p].handleError(e),!e&&r&&(this[f].push(r),process.nextTick((()=>this.processWaitQueue()))),this[x]===t.PoolState.ready&&((0,n.clearTimeout)(this[y]),this[y]=(0,n.setTimeout)((()=>this.ensureMinPoolSize()),this.options.minPoolSizeCheckFrequencyMS))})):((0,n.clearTimeout)(this[y]),this[y]=(0,n.setTimeout)((()=>this.ensureMinPoolSize()),this.options.minPoolSizeCheckFrequencyMS)))}processWaitQueue(){if(this[O])return;for(this[O]=!0;this.waitQueueSize;){const e=this[b].first();if(!e){this[b].shift();continue}if(e[S]){this[b].shift();continue}if(this[x]!==t.PoolState.ready){const t=this.closed?"poolClosed":"connectionError",r=this.closed?new d.PoolClosedError(this):new d.PoolClearedError(this);this.emitAndLog(_.CONNECTION_CHECK_OUT_FAILED,new l.ConnectionCheckOutFailedEvent(this,t,r)),e.timer&&(0,n.clearTimeout)(e.timer),this[b].shift(),e.callback(r);continue}if(!this.availableConnectionCount)break;const r=this[f].shift();if(!r)break;this.destroyConnectionIfPerished(r)||(this[g].add(r),this.emitAndLog(_.CONNECTION_CHECKED_OUT,new l.ConnectionCheckedOutEvent(this,r)),e.timer&&(0,n.clearTimeout)(e.timer),this[b].shift(),e.callback(void 0,r))}const{maxPoolSize:e,maxConnecting:r}=this.options;for(;this.waitQueueSize>0&&this.pendingConnectionCount<r&&(0===e||this.totalConnectionCount<e);){const e=this[b].shift();e&&!e[S]&&this.createConnection(((t,r)=>{e[S]?!t&&r&&this[f].push(r):(t?this.emitAndLog(_.CONNECTION_CHECK_OUT_FAILED,new l.ConnectionCheckOutFailedEvent(this,"connectionError",t)):r&&(this[g].add(r),this.emitAndLog(_.CONNECTION_CHECKED_OUT,new l.ConnectionCheckedOutEvent(this,r))),e.timer&&(0,n.clearTimeout)(e.timer),e.callback(t,r)),process.nextTick((()=>this.processWaitQueue()))}))}this[O]=!1}}_.CONNECTION_POOL_CREATED=o.CONNECTION_POOL_CREATED,_.CONNECTION_POOL_CLOSED=o.CONNECTION_POOL_CLOSED,_.CONNECTION_POOL_CLEARED=o.CONNECTION_POOL_CLEARED,_.CONNECTION_POOL_READY=o.CONNECTION_POOL_READY,_.CONNECTION_CREATED=o.CONNECTION_CREATED,_.CONNECTION_READY=o.CONNECTION_READY,_.CONNECTION_CLOSED=o.CONNECTION_CLOSED,_.CONNECTION_CHECK_OUT_STARTED=o.CONNECTION_CHECK_OUT_STARTED,_.CONNECTION_CHECK_OUT_FAILED=o.CONNECTION_CHECK_OUT_FAILED,_.CONNECTION_CHECKED_OUT=o.CONNECTION_CHECKED_OUT,_.CONNECTION_CHECKED_IN=o.CONNECTION_CHECKED_IN,t.ConnectionPool=_},1654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPoolClearedEvent=t.ConnectionCheckedInEvent=t.ConnectionCheckedOutEvent=t.ConnectionCheckOutFailedEvent=t.ConnectionCheckOutStartedEvent=t.ConnectionClosedEvent=t.ConnectionReadyEvent=t.ConnectionCreatedEvent=t.ConnectionPoolClosedEvent=t.ConnectionPoolReadyEvent=t.ConnectionPoolCreatedEvent=t.ConnectionPoolMonitoringEvent=void 0;const n=r(5006);class o{constructor(e){this.time=new Date,this.address=e.address}}t.ConnectionPoolMonitoringEvent=o,t.ConnectionPoolCreatedEvent=class extends o{constructor(e){super(e),this.name=n.CONNECTION_POOL_CREATED,this.options=e.options}},t.ConnectionPoolReadyEvent=class extends o{constructor(e){super(e),this.name=n.CONNECTION_POOL_READY}},t.ConnectionPoolClosedEvent=class extends o{constructor(e){super(e),this.name=n.CONNECTION_POOL_CLOSED}},t.ConnectionCreatedEvent=class extends o{constructor(e,t){super(e),this.name=n.CONNECTION_CREATED,this.connectionId=t.id}},t.ConnectionReadyEvent=class extends o{constructor(e,t){super(e),this.name=n.CONNECTION_READY,this.connectionId=t.id}},t.ConnectionClosedEvent=class extends o{constructor(e,t,r,o){super(e),this.name=n.CONNECTION_CLOSED,this.connectionId=t.id,this.reason=r,this.serviceId=t.serviceId,this.error=o??null}},t.ConnectionCheckOutStartedEvent=class extends o{constructor(e){super(e),this.name=n.CONNECTION_CHECK_OUT_STARTED}},t.ConnectionCheckOutFailedEvent=class extends o{constructor(e,t,r){super(e),this.name=n.CONNECTION_CHECK_OUT_FAILED,this.reason=t,this.error=r}},t.ConnectionCheckedOutEvent=class extends o{constructor(e,t){super(e),this.name=n.CONNECTION_CHECKED_OUT,this.connectionId=t.id}},t.ConnectionCheckedInEvent=class extends o{constructor(e,t){super(e),this.name=n.CONNECTION_CHECKED_IN,this.connectionId=t.id}},t.ConnectionPoolClearedEvent=class extends o{constructor(e,t={}){super(e),this.name=n.CONNECTION_POOL_CLEARED,this.serviceId=t.serviceId,this.interruptInUseConnections=t.interruptInUseConnections}}},8122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitQueueTimeoutError=t.PoolClearedOnNetworkError=t.PoolClearedError=t.PoolClosedError=void 0;const n=r(4947);class o extends n.MongoDriverError{constructor(e){super("Attempted to check out a connection from closed connection pool"),this.address=e.address}get name(){return"MongoPoolClosedError"}}t.PoolClosedError=o;class i extends n.MongoNetworkError{constructor(e,t){super(t||`Connection pool for ${e.address} was cleared because another operation failed with: "${e.serverError?.message}"`),this.address=e.address,this.addErrorLabel(n.MongoErrorLabel.RetryableWriteError)}get name(){return"MongoPoolClearedError"}}t.PoolClearedError=i,t.PoolClearedOnNetworkError=class extends i{constructor(e){super(e,`Connection to ${e.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}};class s extends n.MongoDriverError{constructor(e,t){super(e),this.address=t}get name(){return"MongoWaitQueueTimeoutError"}}t.WaitQueueTimeoutError=s},8043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFAASEnv=t.makeClientMetadata=t.LimitedSizeDocument=void 0;const n=r(2037),o=r(7282),i=r(9064),s=r(4947),a=r(6615).i8;class u{constructor(e){this.maxSize=e,this.document=new Map,this.documentSize=5}ifItFitsItSits(e,t){const r=i.BSON.serialize((new Map).set(e,t)).byteLength-5;return!(r+this.documentSize>this.maxSize||(this.documentSize+=r,this.document.set(e,t),0))}toObject(){return i.BSON.deserialize(i.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}function c(){const{AWS_EXECUTION_ENV:e="",AWS_LAMBDA_RUNTIME_API:t="",FUNCTIONS_WORKER_RUNTIME:r="",K_SERVICE:n="",FUNCTION_NAME:s="",VERCEL:a="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:u="",AWS_REGION:c="",FUNCTION_MEMORY_MB:l="",FUNCTION_REGION:d="",FUNCTION_TIMEOUT_SEC:h="",VERCEL_REGION:p=""}=o.env,f=e.startsWith("AWS_Lambda_")||t.length>0,m=r.length>0,g=n.length>0||s.length>0,y=a.length>0,E=new Map;return!y||m||g?f&&!(m||g||y)?(c.length>0&&E.set("region",c),u.length>0&&Number.isInteger(+u)&&E.set("memory_mb",new i.Int32(u)),E.set("name","aws.lambda"),E):m&&!(g||f||y)?(E.set("name","azure.func"),E):g&&!(m||f||y)?(d.length>0&&E.set("region",d),l.length>0&&Number.isInteger(+l)&&E.set("memory_mb",new i.Int32(l)),h.length>0&&Number.isInteger(+h)&&E.set("timeout_sec",new i.Int32(h)),E.set("name","gcp.func"),E):null:(p.length>0&&E.set("region",p),E.set("name","vercel"),E)}t.LimitedSizeDocument=u,t.makeClientMetadata=function(e){const t=new u(512),{appName:r=""}=e;if(r.length>0){const n=Buffer.byteLength(r,"utf8")<=128?e.appName:Buffer.from(r,"utf8").subarray(0,128).toString("utf8");t.ifItFitsItSits("application",{name:n})}const{name:i="",version:l="",platform:d=""}=e.driverInfo,h={name:i.length>0?`nodejs|${i}`:"nodejs",version:l.length>0?`${a}|${l}`:a};if(!t.ifItFitsItSits("driver",h))throw new s.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let p="Deno"in globalThis?`Deno v${"string"==typeof Deno?.version?.deno?Deno?.version?.deno:"0.0.0-unknown"}, ${n.endianness()}`:"Bun"in globalThis?`Bun v${"string"==typeof Bun?.version?Bun?.version:"0.0.0-unknown"}, ${n.endianness()}`:`Node.js ${o.version}, ${n.endianness()}`;if(d.length>0&&(p=`${p}|${d}`),!t.ifItFitsItSits("platform",p))throw new s.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const f=(new Map).set("name",o.platform).set("architecture",o.arch).set("version",n.release()).set("type",n.type());if(!t.ifItFitsItSits("os",f))for(const e of f.keys()){if(f.delete(e),0===f.size)break;if(t.ifItFitsItSits("os",f))break}const m=c();if(null!=m&&!t.ifItFitsItSits("env",m))for(const e of m.keys()){if(m.delete(e),0===m.size)break;if(t.ifItFitsItSits("env",m))break}return t.toObject()},t.getFAASEnv=c},7827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageStream=void 0;const n=r(2781),o=r(4947),i=r(2229),s=r(2322),a=r(942),u=r(3496),c=Symbol("buffer");class l extends n.Duplex{constructor(e={}){super(e),this.isMonitoringConnection=!1,this.maxBsonMessageSize=e.maxBsonMessageSize||67108864,this[c]=new i.BufferPool}get buffer(){return this[c]}_write(e,t,r){this[c].append(e),d(this,r)}_read(){}writeCommand(e,t){const r=t.agreedCompressor??"none";if("none"===r||!function(e){const t=e instanceof s.Msg?e.command:e.query,r=Object.keys(t)[0];return!a.uncompressibleCommands.has(r)}(e)){const t=e.toBin();return void this.push(Array.isArray(t)?Buffer.concat(t):t)}const n=Buffer.concat(e.toBin()),o=n.slice(16),i=n.readInt32LE(12),c={agreedCompressor:r,zlibCompressionLevel:t.zlibCompressionLevel??0};(0,a.compress)(c,o).then((t=>{const n=Buffer.alloc(16);n.writeInt32LE(25+t.length,0),n.writeInt32LE(e.requestId,4),n.writeInt32LE(0,8),n.writeInt32LE(u.OP_COMPRESSED,12);const s=Buffer.alloc(9);s.writeInt32LE(i,0),s.writeInt32LE(o.length,4),s.writeUInt8(a.Compressor[r],8),this.push(Buffer.concat([n,s,t]))}),(e=>{t.cb(e)}))}}function d(e,t){const r=e[c],n=r.getInt32();if(null==n)return t();if(n<0)return t(new o.MongoParseError(`Invalid message size: ${n}`));if(n>e.maxBsonMessageSize)return t(new o.MongoParseError(`Invalid message size: ${n}, max allowed: ${e.maxBsonMessageSize}`));if(n>r.length)return t();const i=r.read(n),l={length:i.readInt32LE(0),requestId:i.readInt32LE(4),responseTo:i.readInt32LE(8),opCode:i.readInt32LE(12)},h=()=>{if(e.isMonitoringConnection){const e=r.getInt32();if(null!=e&&e<=r.length)return!0}return!1};let p=l.opCode===u.OP_MSG?s.BinMsg:s.Response;if(l.opCode!==u.OP_COMPRESSED){const n=i.subarray(16);return h()?d(e,t):(e.emit("message",new p(i,l,n)),r.length>=4?d(e,t):t())}l.fromCompressed=!0,l.opCode=i.readInt32LE(16),l.length=i.readInt32LE(20);const f=i[24],m=i.slice(25);p=l.opCode===u.OP_MSG?s.BinMsg:s.Response,(0,a.decompress)(f,m).then((n=>n.length!==l.length?t(new o.MongoDecompressionError("Message body and message header must be the same length")):h()?d(e,t):(e.emit("message",new p(i,l,n)),r.length>=4?d(e,t):t())),(e=>t(e)))}t.MessageStream=l},8547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPoolMetrics=void 0;class r{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(e){e===r.TXN?this.txnConnections+=1:e===r.CURSOR?this.cursorConnections+=1:this.otherConnections+=1}markUnpinned(e){e===r.TXN?this.txnConnections-=1:e===r.CURSOR?this.cursorConnections-=1:this.otherConnections-=1}info(e){return`Timed out while checking out a connection from connection pool: maxPoolSize: ${e}, connections in use by cursors: ${this.cursorConnections}, connections in use by transactions: ${this.txnConnections}, connections in use by other operations: ${this.otherConnections}`}reset(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}}r.TXN="txn",r.CURSOR="cursor",r.OTHER="other",t.ConnectionPoolMetrics=r},9011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamDescription=void 0;const n=r(5896),o=r(9735),i=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];t.StreamDescription=class{constructor(e,t){this.address=e,this.type=n.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48e6,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=t?.logicalSessionTimeoutMinutes,this.loadBalanced=!!t?.loadBalanced,this.compressors=t&&t.compressors&&Array.isArray(t.compressors)?t.compressors:[]}receiveResponse(e){if(null!=e){this.type=(0,o.parseServerType)(e);for(const t of i)null!=e[t]&&(this[t]=e[t]),"__nodejs_mock_server__"in e&&(this.__nodejs_mock_server__=e.__nodejs_mock_server__);e.compression&&(this.compressor=this.compressors.filter((t=>e.compression?.includes(t)))[0])}}}},942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decompress=t.compress=t.uncompressibleCommands=t.Compressor=void 0;const n=r(3849),o=r(9796),i=r(5006),s=r(8808),a=r(4947);t.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3}),t.uncompressibleCommands=new Set([i.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);const u=(0,n.promisify)(o.inflate.bind(o)),c=(0,n.promisify)(o.deflate.bind(o));let l,d=null;function h(){if(null==d){const e=(0,s.getSnappy)();if("kModuleError"in e)throw e.kModuleError;d=e}return d}function p(){l||(l=(0,s.getZstdLibrary)())}t.compress=async function(e,t){const r={};switch(e.agreedCompressor){case"snappy":return d??(d=h()),d.compress(t);case"zstd":if(p(),"kModuleError"in l)throw l.kModuleError;return l.compress(t,3);case"zlib":return e.zlibCompressionLevel&&(r.level=e.zlibCompressionLevel),c(t,r);default:throw new a.MongoInvalidArgumentError(`Unknown compressor ${e.agreedCompressor} failed to compress`)}},t.decompress=async function(e,r){if(e!==t.Compressor.snappy&&e!==t.Compressor.zstd&&e!==t.Compressor.zlib&&e!==t.Compressor.none)throw new a.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${e})`);switch(e){case t.Compressor.snappy:return d??(d=h()),d.uncompress(r,{asBuffer:!0});case t.Compressor.zstd:if(p(),"kModuleError"in l)throw l.kModuleError;return l.decompress(r);case t.Compressor.zlib:return u(r);default:return r}}},3496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OP_MSG=t.OP_COMPRESSED=t.OP_DELETE=t.OP_QUERY=t.OP_INSERT=t.OP_UPDATE=t.OP_REPLY=t.MIN_SUPPORTED_QE_SERVER_VERSION=t.MIN_SUPPORTED_QE_WIRE_VERSION=t.MAX_SUPPORTED_WIRE_VERSION=t.MIN_SUPPORTED_WIRE_VERSION=t.MAX_SUPPORTED_SERVER_VERSION=t.MIN_SUPPORTED_SERVER_VERSION=void 0,t.MIN_SUPPORTED_SERVER_VERSION="3.6",t.MAX_SUPPORTED_SERVER_VERSION="7.0",t.MIN_SUPPORTED_WIRE_VERSION=6,t.MAX_SUPPORTED_WIRE_VERSION=21,t.MIN_SUPPORTED_QE_WIRE_VERSION=21,t.MIN_SUPPORTED_QE_SERVER_VERSION="7.0",t.OP_REPLY=1,t.OP_UPDATE=2001,t.OP_INSERT=2002,t.OP_QUERY=2004,t.OP_DELETE=2006,t.OP_COMPRESSED=2012,t.OP_MSG=2013},3377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSharded=t.getReadPreference=void 0;const n=r(4947),o=r(1228),i=r(5896),s=r(7411);t.getReadPreference=function(e){let t=e?.readPreference??o.ReadPreference.primary;if(e?.readPreference&&(t=e.readPreference),"string"==typeof t&&(t=o.ReadPreference.fromString(t)),!(t instanceof o.ReadPreference))throw new n.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return t},t.isSharded=function(e){return null!=e&&(!(!e.description||e.description.type!==i.ServerType.Mongos)||!!(e.description&&e.description instanceof s.TopologyDescription)&&Array.from(e.description.servers.values()).some((e=>e.type===i.ServerType.Mongos)))}},8971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;const n=r(9064),o=r(3868),i=r(1625),s=r(4747),a=r(3490),u=r(6331),c=r(5051),l=r(2496),d=r(4947),h=r(6192),p=r(2566),f=r(7643),m=r(7237),g=r(9579),y=r(3226),E=r(3345),A=r(7445),v=r(8448),C=r(2139),b=r(7159),S=r(2062),w=r(2552),O=r(8955),x=r(2195),_=r(3060),D=r(88),T=r(6577),I=r(5556),B=r(3389),R=r(1228),F=r(2229),k=r(4620);t.Collection=class{constructor(e,t,r){(0,F.checkCollectionName)(t),this.s={db:e,options:r,namespace:new F.MongoDBCollectionNamespace(e.databaseName,t),pkFactory:e.options?.pkFactory??F.DEFAULT_PK_FACTORY,readPreference:R.ReadPreference.fromOptions(r),bsonOptions:(0,n.resolveBSONOptions)(r,e),readConcern:B.ReadConcern.fromOptions(r),writeConcern:k.WriteConcern.fromOptions(r)},this.client=e.client}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.fullNamespace.toString()}get fullNamespace(){return this.s.namespace}get readConcern(){return null==this.s.readConcern?this.s.db.readConcern:this.s.readConcern}get readPreference(){return null==this.s.readPreference?this.s.db.readPreference:this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return null==this.s.writeConcern?this.s.db.writeConcern:this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(e){this.s.collectionHint=(0,F.normalizeHintField)(e)}async insertOne(e,t){return(0,A.executeOperation)(this.client,new b.InsertOneOperation(this,e,(0,F.resolveOptions)(this,t)))}async insertMany(e,t){return(0,A.executeOperation)(this.client,new b.InsertManyOperation(this,e,(0,F.resolveOptions)(this,t??{ordered:!0})))}async bulkWrite(e,t){if(!Array.isArray(e))throw new d.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return(0,A.executeOperation)(this.client,new h.BulkWriteOperation(this,e,(0,F.resolveOptions)(this,t??{ordered:!0})))}async updateOne(e,t,r){return(0,A.executeOperation)(this.client,new I.UpdateOneOperation(this,e,t,(0,F.resolveOptions)(this,r)))}async replaceOne(e,t,r){return(0,A.executeOperation)(this.client,new I.ReplaceOneOperation(this,e,t,(0,F.resolveOptions)(this,r)))}async updateMany(e,t,r){return(0,A.executeOperation)(this.client,new I.UpdateManyOperation(this,e,t,(0,F.resolveOptions)(this,r)))}async deleteOne(e={},t={}){return(0,A.executeOperation)(this.client,new m.DeleteOneOperation(this,e,(0,F.resolveOptions)(this,t)))}async deleteMany(e={},t={}){return(0,A.executeOperation)(this.client,new m.DeleteManyOperation(this,e,(0,F.resolveOptions)(this,t)))}async rename(e,t){return(0,A.executeOperation)(this.client,new O.RenameOperation(this,e,{...t,readPreference:R.ReadPreference.PRIMARY}))}async drop(e){return(0,A.executeOperation)(this.client,new y.DropCollectionOperation(this.s.db,this.collectionName,e))}async findOne(e={},t={}){return this.find(e,t).limit(-1).batchSize(1).next()}find(e={},t={}){return new u.FindCursor(this.client,this.s.namespace,e,(0,F.resolveOptions)(this,t))}async options(e){return(0,A.executeOperation)(this.client,new w.OptionsOperation(this,(0,F.resolveOptions)(this,e)))}async isCapped(e){return(0,A.executeOperation)(this.client,new S.IsCappedOperation(this,(0,F.resolveOptions)(this,e)))}async createIndex(e,t){return(0,A.executeOperation)(this.client,new C.CreateIndexOperation(this,this.collectionName,e,(0,F.resolveOptions)(this,t)))}async createIndexes(e,t){return(0,A.executeOperation)(this.client,new C.CreateIndexesOperation(this,this.collectionName,e,(0,F.resolveOptions)(this,{...t,maxTimeMS:void 0})))}async dropIndex(e,t){return(0,A.executeOperation)(this.client,new C.DropIndexOperation(this,e,{...(0,F.resolveOptions)(this,t),readPreference:R.ReadPreference.primary}))}async dropIndexes(e){return(0,A.executeOperation)(this.client,new C.DropIndexesOperation(this,(0,F.resolveOptions)(this,e)))}listIndexes(e){return new c.ListIndexesCursor(this,(0,F.resolveOptions)(this,e))}async indexExists(e,t){return(0,A.executeOperation)(this.client,new C.IndexExistsOperation(this,e,(0,F.resolveOptions)(this,t)))}async indexInformation(e){return(0,A.executeOperation)(this.client,new C.IndexInformationOperation(this.s.db,this.collectionName,(0,F.resolveOptions)(this,e)))}async estimatedDocumentCount(e){return(0,A.executeOperation)(this.client,new E.EstimatedDocumentCountOperation(this,(0,F.resolveOptions)(this,e)))}async countDocuments(e={},t={}){return(0,A.executeOperation)(this.client,new f.CountDocumentsOperation(this,e,(0,F.resolveOptions)(this,t)))}async distinct(e,t={},r={}){return(0,A.executeOperation)(this.client,new g.DistinctOperation(this,e,t,(0,F.resolveOptions)(this,r)))}async indexes(e){return(0,A.executeOperation)(this.client,new C.IndexesOperation(this,(0,F.resolveOptions)(this,e)))}async stats(e){return(0,A.executeOperation)(this.client,new T.CollStatsOperation(this,e))}async findOneAndDelete(e,t){return(0,A.executeOperation)(this.client,new v.FindOneAndDeleteOperation(this,e,(0,F.resolveOptions)(this,t)))}async findOneAndReplace(e,t,r){return(0,A.executeOperation)(this.client,new v.FindOneAndReplaceOperation(this,e,t,(0,F.resolveOptions)(this,r)))}async findOneAndUpdate(e,t,r){return(0,A.executeOperation)(this.client,new v.FindOneAndUpdateOperation(this,e,t,(0,F.resolveOptions)(this,r)))}aggregate(e=[],t){if(!Array.isArray(e))throw new d.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new a.AggregationCursor(this.client,this.s.namespace,e,(0,F.resolveOptions)(this,t))}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new s.ChangeStream(this,e,(0,F.resolveOptions)(this,t))}initializeUnorderedBulkOp(e){return new i.UnorderedBulkOperation(this,(0,F.resolveOptions)(this,e))}initializeOrderedBulkOp(e){return new o.OrderedBulkOperation(this,(0,F.resolveOptions)(this,e))}async count(e={},t={}){return(0,A.executeOperation)(this.client,new p.CountOperation(this.fullNamespace,e,(0,F.resolveOptions)(this,t)))}listSearchIndexes(e,t){t="object"==typeof e?e:null==t?{}:t;const r=null==e||"object"==typeof e?null:e;return new l.ListSearchIndexesCursor(this,r,t)}async createSearchIndex(e){const[t]=await this.createSearchIndexes([e]);return t}async createSearchIndexes(e){return(0,A.executeOperation)(this.client,new x.CreateSearchIndexesOperation(this,e))}async dropSearchIndex(e){return(0,A.executeOperation)(this.client,new _.DropSearchIndexOperation(this,e))}async updateSearchIndex(e,t){return(0,A.executeOperation)(this.client,new D.UpdateSearchIndexOperation(this,e,t))}}},2395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURE_FLAGS=t.DEFAULT_OPTIONS=t.OPTIONS=t.parseOptions=t.resolveSRVRecord=void 0;const n=r(9523),o=r(7147),i=r(451),s=r(7310),a=r(4064),u=r(4511),c=r(8043),l=r(942),d=r(3748),h=r(4947),p=r(2319),f=r(9925),m=r(3389),g=r(1228),y=r(2229),E=r(4620),A=["authSource","replicaSet","loadBalanced"];t.resolveSRVRecord=async function(e){if("string"!=typeof e.srvHost)throw new h.MongoAPIError('Option "srvHost" must not be empty');if(e.srvHost.split(".").length<3)throw new h.MongoAPIError("URI must include hostname, domain name, and tld");const t=e.srvHost,r=await n.promises.resolveSrv(`_${e.srvServiceName}._tcp.${t}`);if(0===r.length)throw new h.MongoAPIError("No addresses found at host");for(const{name:e}of r)if(!(0,y.matchesParentDomain)(e,t))throw new h.MongoAPIError("Server record does not share hostname with parent URI");const o=r.map((e=>y.HostAddress.fromString(`${e.name}:${e.port??27017}`)));let i;_(o,e,!0);try{i=await n.promises.resolveTxt(t)}catch(e){if("ENODATA"!==e.code&&"ENOTFOUND"!==e.code)throw e;return o}if(i.length>1)throw new h.MongoParseError("Multiple text records not allowed");const c=new s.URLSearchParams(i[0].join(""));if([...c.keys()].some((e=>!A.includes(e))))throw new h.MongoParseError(`Text record may only set any of: ${A.join(", ")}`);if(A.some((e=>""===c.get(e))))throw new h.MongoParseError("Cannot have empty URI params in DNS TXT Record");const l=c.get("authSource")??void 0,d=c.get("replicaSet")??void 0,p=c.get("loadBalanced")??void 0;if(!e.userSpecifiedAuthSource&&l&&e.credentials&&!u.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(e.credentials.mechanism)&&(e.credentials=a.MongoCredentials.merge(e.credentials,{source:l})),!e.userSpecifiedReplicaSet&&d&&(e.replicaSet=d),"true"===p&&(e.loadBalanced=!0),e.replicaSet&&e.srvMaxHosts>0)throw new h.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return _(o,e,!0),o};const v=new Set(["true","t","1","y","yes"]),C=new Set(["false","f","0","n","no","-1"]);function b(e,t){if("boolean"==typeof t)return t;const r=String(t).toLowerCase();if(v.has(r))return"true"!==r&&(0,y.emitWarningOnce)(`deprecated value for ${e} : ${r} - please update to ${e} : true instead`),!0;if(C.has(r))return"false"!==r&&(0,y.emitWarningOnce)(`deprecated value for ${e} : ${r} - please update to ${e} : false instead`),!1;throw new h.MongoParseError(`Expected ${e} to be stringified boolean value, got: ${t}`)}function S(e,t){const r=(0,y.parseInteger)(t);if(null!=r)return r;throw new h.MongoParseError(`Expected ${e} to be stringified int value, got: ${t}`)}function w(e,t){const r=S(e,t);if(r<0)throw new h.MongoParseError(`${e} can only be a positive int value, got: ${t}`);return r}function*O(e){const t=e.split(",");for(const e of t){const[t,r]=e.split(/:(.*)/);if(null==r)throw new h.MongoParseError("Cannot have undefined values in key value pairs");yield[t,r]}}class x extends Map{constructor(e=[]){super(e.map((([e,t])=>[e.toLowerCase(),t])))}has(e){return super.has(e.toLowerCase())}get(e){return super.get(e.toLowerCase())}set(e,t){return super.set(e.toLowerCase(),t)}delete(e){return super.delete(e.toLowerCase())}}function _(e,t,r){if(t.loadBalanced){if(e.length>1)throw new h.MongoParseError("loadBalanced option only supported with a single host in the URI");if(t.replicaSet)throw new h.MongoParseError("loadBalanced option not supported with a replicaSet option");if(t.directConnection)throw new h.MongoParseError("loadBalanced option not supported when directConnection is provided");if(r&&t.srvMaxHosts>0)throw new h.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}}function D(e,t,r,n){const{target:o,type:i,transform:s}=r,a=o??t;switch(i){case"boolean":e[a]=b(a,n[0]);break;case"int":e[a]=S(a,n[0]);break;case"uint":e[a]=w(a,n[0]);break;case"string":if(null==n[0])break;e[a]=String(n[0]);break;case"record":if(!(0,y.isRecord)(n[0]))throw new h.MongoParseError(`${a} must be an object`);e[a]=n[0];break;case"any":e[a]=n[0];break;default:{if(!s)throw new h.MongoParseError("Descriptors missing a type must define a transform");const t=s({name:a,options:e,values:n});e[a]=t;break}}}t.parseOptions=function(e,r=void 0,n={}){if(null==r||r instanceof p.MongoClient||(n=r,r=void 0),n.useBigInt64&&"boolean"==typeof n.promoteLongs&&!n.promoteLongs)throw new h.MongoAPIError("Must request either bigint or Long for int64 deserialization");if(n.useBigInt64&&"boolean"==typeof n.promoteValues&&!n.promoteValues)throw new h.MongoAPIError("Must request either bigint or Long for int64 deserialization");const o=new i.default(e),{hosts:s,isSRV:l}=o,m=Object.create(null);for(const e of Object.getOwnPropertySymbols(n))t.FEATURE_FLAGS.has(e)&&(m[e]=n[e]);m.hosts=l?[]:s.map(y.HostAddress.fromString);const g=new x;if("/"!==o.pathname&&""!==o.pathname){const e=decodeURIComponent("/"===o.pathname[0]?o.pathname.slice(1):o.pathname);e&&g.set("dbName",[e])}if(""!==o.username){const e={username:decodeURIComponent(o.username)};"string"==typeof o.password&&(e.password=decodeURIComponent(o.password)),g.set("auth",[e])}for(const e of o.searchParams.keys()){const t=[...o.searchParams.getAll(e)];if(t.includes(""))throw new h.MongoAPIError("URI cannot contain options with no value");g.has(e)||g.set(e,t)}const E=new x(Object.entries(n).filter((([,e])=>null!=e)));if(g.has("serverApi"))throw new h.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");const A=g.get("authMechanismProperties");if(A)for(const e of A)if(/(^|,)ALLOWED_HOSTS:/.test(e))throw new h.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.");if(E.has("loadBalanced"))throw new h.MongoParseError("loadBalanced is only a valid option in the URI");const v=new x,C=new Set([...g.keys(),...E.keys()]);for(const e of C){const t=[],r=E.get(e);null!=r&&t.push(r);const n=g.get(e)??[];t.push(...n),v.set(e,t)}if(v.has("tlsCertificateKeyFile")&&!v.has("tlsCertificateFile")&&v.set("tlsCertificateFile",v.get("tlsCertificateKeyFile")),v.has("tls")||v.has("ssl")){const e=(v.get("tls")||[]).concat(v.get("ssl")||[]).map(b.bind(null,"tls/ssl"));if(1!==new Set(e).size)throw new h.MongoParseError("All values of tls/ssl must be the same.")}!function(e){if(!e)return;const t=(t,r)=>{if(e.has(t)&&e.has(r))throw new h.MongoAPIError(`The '${t}' option cannot be used with the '${r}' option`)};t("tlsInsecure","tlsAllowInvalidCertificates"),t("tlsInsecure","tlsAllowInvalidHostnames"),t("tlsInsecure","tlsDisableCertificateRevocationCheck"),t("tlsInsecure","tlsDisableOCSPEndpointCheck"),t("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),t("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),t("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")}(v);const S=(0,y.setDifference)(C,Array.from(Object.keys(t.OPTIONS)).map((e=>e.toLowerCase())));if(0!==S.size){const e=S.size>1?"options":"option",t=S.size>1?"are":"is";throw new h.MongoParseError(`${e} ${Array.from(S).join(", ")} ${t} not supported`)}for(const[e,r]of Object.entries(t.OPTIONS)){const n=v.get(e);if(n&&0!==n.length){const{deprecated:t}=r;if(t){const r="string"==typeof t?`: ${t}`:"";(0,y.emitWarning)(`${e} is a deprecated option${r}`)}D(m,e,r,n)}else t.DEFAULT_OPTIONS.has(e)&&D(m,e,r,[t.DEFAULT_OPTIONS.get(e)])}if(m.credentials){const e=m.credentials.mechanism===u.AuthMechanism.MONGODB_GSSAPI,t=m.credentials.mechanism===u.AuthMechanism.MONGODB_X509,r=m.credentials.mechanism===u.AuthMechanism.MONGODB_AWS,n=m.credentials.mechanism===u.AuthMechanism.MONGODB_OIDC;if((e||t)&&v.has("authSource")&&"$external"!==m.credentials.source)throw new h.MongoParseError(`authMechanism ${m.credentials.mechanism} requires an authSource of '$external'`);if(e||t||r||n||!m.dbName||v.has("authSource")||(m.credentials=a.MongoCredentials.merge(m.credentials,{source:m.dbName})),r&&m.credentials.username&&!m.credentials.password)throw new h.MongoMissingCredentialsError(`When using ${m.credentials.mechanism} password must be set when a username is specified`);m.credentials.validate(),""===m.credentials.password&&""===m.credentials.username&&m.credentials.mechanism===u.AuthMechanism.MONGODB_DEFAULT&&0===Object.keys(m.credentials.mechanismProperties).length&&delete m.credentials}if(m.dbName||(m.dbName="test"),_(s,m,l),r&&m.autoEncryption&&(d.Encrypter.checkForMongoCrypt(),m.encrypter=new d.Encrypter(r,e,n),m.autoEncrypter=m.encrypter.autoEncrypter),m.userSpecifiedAuthSource=E.has("authSource")||g.has("authSource"),m.userSpecifiedReplicaSet=E.has("replicaSet")||g.has("replicaSet"),l){if(m.srvHost=s[0],m.directConnection)throw new h.MongoAPIError("SRV URI does not support directConnection");if(m.srvMaxHosts>0&&"string"==typeof m.replicaSet)throw new h.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const e=!E.has("tls")&&!g.has("tls"),t=!E.has("ssl")&&!g.has("ssl");e&&t&&(m.tls=!0)}else if(g.has("srvMaxHosts")||E.has("srvMaxHosts")||g.has("srvServiceName")||E.has("srvServiceName"))throw new h.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(m.directConnection&&1!==m.hosts.length)throw new h.MongoParseError("directConnection option requires exactly one host");if(!m.proxyHost&&(m.proxyPort||m.proxyUsername||m.proxyPassword))throw new h.MongoParseError("Must specify proxyHost if other proxy options are passed");if(m.proxyUsername&&!m.proxyPassword||!m.proxyUsername&&m.proxyPassword)throw new h.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((e=>g.get(e)??[])).some((e=>e.length>1)))throw new h.MongoParseError("Proxy options cannot be specified multiple times in the connection string");const w=Symbol.for("@@mdb.enableMongoLogger");m[w]=m[w]??!1;let O={},T={};return m[w]&&(O={MONGODB_LOG_COMMAND:process.env.MONGODB_LOG_COMMAND,MONGODB_LOG_TOPOLOGY:process.env.MONGODB_LOG_TOPOLOGY,MONGODB_LOG_SERVER_SELECTION:process.env.MONGODB_LOG_SERVER_SELECTION,MONGODB_LOG_CONNECTION:process.env.MONGODB_LOG_CONNECTION,MONGODB_LOG_ALL:process.env.MONGODB_LOG_ALL,MONGODB_LOG_MAX_DOCUMENT_LENGTH:process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,MONGODB_LOG_PATH:process.env.MONGODB_LOG_PATH,...m[Symbol.for("@@mdb.internalLoggerConfig")]},T={mongodbLogPath:m.mongodbLogPath}),m.mongoLoggerOptions=f.MongoLogger.resolveOptions(O,T),m.metadata=(0,c.makeClientMetadata)(m),m},t.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:e,options:t,values:[r]}){if(!(0,y.isRecord)(r,["username","password"]))throw new h.MongoParseError(`${e} must be an object with 'username' and 'password' properties`);return a.MongoCredentials.merge(t.credentials,{username:r.username,password:r.password})}},authMechanism:{target:"credentials",transform({options:e,values:[t]}){const r=Object.values(u.AuthMechanism),[n]=r.filter((e=>e.match(RegExp(String.raw`\b${t}\b`,"i"))));if(!n)throw new h.MongoParseError(`authMechanism one of ${r}, got ${t}`);let o=e.credentials?.source;(n===u.AuthMechanism.MONGODB_PLAIN||u.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(n))&&(o="$external");let i=e.credentials?.password;return n===u.AuthMechanism.MONGODB_X509&&""===i&&(i=void 0),a.MongoCredentials.merge(e.credentials,{mechanism:n,source:o,password:i})}},authMechanismProperties:{target:"credentials",transform({options:e,values:t}){let r=Object.create(null);for(const e of t)if("string"==typeof e)for(const[t,n]of O(e))try{r[t]=b(t,n)}catch{r[t]=n}else{if(!(0,y.isRecord)(e))throw new h.MongoParseError("AuthMechanismProperties must be an object");r={...e}}return a.MongoCredentials.merge(e.credentials,{mechanismProperties:r})}},authSource:{target:"credentials",transform({options:e,values:[t]}){const r=String(t);return a.MongoCredentials.merge(e.credentials,{source:r})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[e]}){const t="string"==typeof e?{version:e}:e,r=t&&t.version;if(!r)throw new h.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(p.ServerApiVersion).join('", "')}"]`);if(!Object.values(p.ServerApiVersion).some((e=>e===r)))throw new h.MongoParseError(`Invalid server API version=${r}; must be in the following enum: ["${Object.values(p.ServerApiVersion).join('", "')}"]`);return t}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:e}){const t=new Set;for(const r of e){const e="string"==typeof r?r.split(","):r;if(!Array.isArray(e))throw new h.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(const r of e){if(!Object.keys(l.Compressor).includes(String(r)))throw new h.MongoInvalidArgumentError(`${r} is not a valid compression mechanism. Must be one of: ${Object.keys(l.Compressor)}.`);t.add(String(r))}}return[...t]}},connectTimeoutMS:{default:3e4,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:e,values:[t]}){const r=S(e,t);if(4===r||6===r)return r;throw new h.MongoParseError(`Option 'family' must be 4 or 6 got ${r}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:e,options:t,values:[r]}){const n=E.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,fsync:b(e,r)}});if(!n)throw new h.MongoParseError(`Unable to make a writeConcern from fsync=${r}`);return n}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:e,options:t,values:[r]}){const n=E.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,journal:b(e,r)}});if(!n)throw new h.MongoParseError(`Unable to make a writeConcern from journal=${r}`);return n}},journal:{target:"writeConcern",transform({name:e,options:t,values:[r]}){const n=E.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,journal:b(e,r)}});if(!n)throw new h.MongoParseError(`Unable to make a writeConcern from journal=${r}`);return n}},keepAlive:{default:!0,type:"boolean",deprecated:"Will not be able to turn off in the future."},keepAliveInitialDelay:{default:12e4,type:"uint",deprecated:"Will not be configurable in the future."},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:e,values:[t]}){const r=w(e,t);if(0===r)throw new h.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return r}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:e,options:t,values:[r]}){const n=w(e,r);return t.readPreference?g.ReadPreference.fromOptions({readPreference:{...t.readPreference,maxStalenessSeconds:n}}):new g.ReadPreference("secondary",void 0,{maxStalenessSeconds:n})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform:({values:[e],options:t})=>({...t.driverInfo,name:String(e)})},noDelay:{default:!0,type:"boolean"},pkFactory:{default:y.DEFAULT_PK_FACTORY,transform({values:[e]}){if((0,y.isRecord)(e,["createPk"])&&"function"==typeof e.createPk)return e;throw new h.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${e}`)}},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},useBigInt64:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[e],options:t}){if(e instanceof m.ReadConcern||(0,y.isRecord)(e,["level"]))return m.ReadConcern.fromOptions({...t.readConcern,...e});throw new h.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(e)}`)}},readConcernLevel:{target:"readConcern",transform:({values:[e],options:t})=>m.ReadConcern.fromOptions({...t.readConcern,level:e})},readPreference:{default:g.ReadPreference.primary,transform({values:[e],options:t}){if(e instanceof g.ReadPreference)return g.ReadPreference.fromOptions({readPreference:{...t.readPreference,...e},...e});if((0,y.isRecord)(e,["mode"])){const r=g.ReadPreference.fromOptions({readPreference:{...t.readPreference,...e},...e});if(r)return r;throw new h.MongoParseError(`Cannot make read preference from ${JSON.stringify(e)}`)}if("string"==typeof e){const r={hedge:t.readPreference?.hedge,maxStalenessSeconds:t.readPreference?.maxStalenessSeconds};return new g.ReadPreference(e,t.readPreference?.tags,r)}throw new h.MongoParseError(`Unknown ReadPreference value: ${e}`)}},readPreferenceTags:{target:"readPreference",transform({values:e,options:t}){const r=Array.isArray(e[0])?e[0]:e,n=[];for(const e of r){const t=Object.create(null);if("string"==typeof e)for(const[r,n]of O(e))t[r]=n;if((0,y.isRecord)(e))for(const[r,n]of Object.entries(e))t[r]=n;n.push(t)}return g.ReadPreference.fromOptions({readPreference:t.readPreference,readPreferenceTags:n})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverSelectionTimeoutMS:{default:3e4,type:"uint"},servername:{type:"string"},socketTimeoutMS:{default:0,type:"uint"},srvMaxHosts:{type:"uint",default:0},srvServiceName:{type:"string",default:"mongodb"},ssl:{target:"tls",type:"boolean"},sslCA:{deprecated:"sslCA is deprecated and will be removed in the next major version. Please use tlsCAFile instead.",target:"ca",transform:({values:[e]})=>o.readFileSync(String(e),{encoding:"ascii"})},sslCRL:{deprecated:"sslCRL is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"crl",transform:({values:[e]})=>o.readFileSync(String(e),{encoding:"ascii"})},sslCert:{deprecated:"sslCert is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform:({values:[e]})=>o.readFileSync(String(e),{encoding:"ascii"})},sslKey:{deprecated:"sslKey is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"key",transform:({values:[e]})=>o.readFileSync(String(e),{encoding:"ascii"})},sslPass:{deprecated:"sslPass is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFilePassword instead.",target:"passphrase",type:"string"},sslValidate:{deprecated:"sslValidate is deprecated and will be removed in the next major version. Please use tlsAllowInvalidCertificates instead.",target:"rejectUnauthorized",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform:({name:e,values:[t]})=>!b(e,t)},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform:({name:e,values:[t]})=>b(e,t)?()=>{}:void 0},tlsCAFile:{target:"ca",transform:({values:[e]})=>o.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateFile:{deprecated:"tlsCertificateFile is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform:({values:[e]})=>o.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateKeyFile:{target:"key",transform:({values:[e]})=>o.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:e,options:t,values:[r]}){const n=b(e,r);return n?(t.checkServerIdentity=()=>{},t.rejectUnauthorized=!1):(t.checkServerIdentity=t.tlsAllowInvalidHostnames?()=>{}:void 0,t.rejectUnauthorized=!t.tlsAllowInvalidCertificates),n}},w:{target:"writeConcern",transform:({values:[e],options:t})=>E.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,w:e}})},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[e],options:t}){if((0,y.isRecord)(e)||e instanceof E.WriteConcern)return E.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,...e}});if("majority"===e||"number"==typeof e)return E.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,w:e}});throw new h.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(e)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[e],options:t}){const r=E.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,wtimeout:w("wtimeout",e)}});if(r)return r;throw new h.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[e],options:t}){const r=E.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,wtimeoutMS:w("wtimeoutMS",e)}});if(r)return r;throw new h.MongoParseError("Cannot make WriteConcern from wtimeout")}},zlibCompressionLevel:{default:0,type:"int"},connectionType:{type:"any"},srvPoller:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},ALPNProtocols:{type:"any"},SNICallback:{type:"any"},session:{type:"any"},requestOCSP:{type:"any"},localAddress:{type:"any"},localPort:{type:"any"},hints:{type:"any"},lookup:{type:"any"},ca:{type:"any"},cert:{type:"any"},ciphers:{type:"any"},crl:{type:"any"},ecdhCurve:{type:"any"},key:{type:"any"},passphrase:{type:"any"},pfx:{type:"any"},secureProtocol:{type:"any"},index:{type:"any"},useNewUrlParser:{type:"boolean"},useUnifiedTopology:{type:"boolean"},mongodbLogPath:{type:"any"}},t.DEFAULT_OPTIONS=new x(Object.entries(t.OPTIONS).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]))),t.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])},5006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TOPOLOGY_EVENTS=t.CMAP_EVENTS=t.HEARTBEAT_EVENTS=t.RESUME_TOKEN_CHANGED=t.END=t.CHANGE=t.INIT=t.MORE=t.RESPONSE=t.SERVER_HEARTBEAT_FAILED=t.SERVER_HEARTBEAT_SUCCEEDED=t.SERVER_HEARTBEAT_STARTED=t.COMMAND_FAILED=t.COMMAND_SUCCEEDED=t.COMMAND_STARTED=t.CLUSTER_TIME_RECEIVED=t.CONNECTION_CHECKED_IN=t.CONNECTION_CHECKED_OUT=t.CONNECTION_CHECK_OUT_FAILED=t.CONNECTION_CHECK_OUT_STARTED=t.CONNECTION_CLOSED=t.CONNECTION_READY=t.CONNECTION_CREATED=t.CONNECTION_POOL_READY=t.CONNECTION_POOL_CLEARED=t.CONNECTION_POOL_CLOSED=t.CONNECTION_POOL_CREATED=t.TOPOLOGY_DESCRIPTION_CHANGED=t.TOPOLOGY_CLOSED=t.TOPOLOGY_OPENING=t.SERVER_DESCRIPTION_CHANGED=t.SERVER_CLOSED=t.SERVER_OPENING=t.DESCRIPTION_RECEIVED=t.UNPINNED=t.PINNED=t.MESSAGE=t.ENDED=t.CLOSED=t.CONNECT=t.OPEN=t.CLOSE=t.TIMEOUT=t.ERROR=t.SYSTEM_JS_COLLECTION=t.SYSTEM_COMMAND_COLLECTION=t.SYSTEM_USER_COLLECTION=t.SYSTEM_PROFILE_COLLECTION=t.SYSTEM_INDEX_COLLECTION=t.SYSTEM_NAMESPACE_COLLECTION=void 0,t.LEGACY_HELLO_COMMAND_CAMEL_CASE=t.LEGACY_HELLO_COMMAND=t.MONGO_CLIENT_EVENTS=t.LOCAL_SERVER_EVENTS=t.SERVER_RELAY_EVENTS=t.APM_EVENTS=void 0,t.SYSTEM_NAMESPACE_COLLECTION="system.namespaces",t.SYSTEM_INDEX_COLLECTION="system.indexes",t.SYSTEM_PROFILE_COLLECTION="system.profile",t.SYSTEM_USER_COLLECTION="system.users",t.SYSTEM_COMMAND_COLLECTION="$cmd",t.SYSTEM_JS_COLLECTION="system.js",t.ERROR="error",t.TIMEOUT="timeout",t.CLOSE="close",t.OPEN="open",t.CONNECT="connect",t.CLOSED="closed",t.ENDED="ended",t.MESSAGE="message",t.PINNED="pinned",t.UNPINNED="unpinned",t.DESCRIPTION_RECEIVED="descriptionReceived",t.SERVER_OPENING="serverOpening",t.SERVER_CLOSED="serverClosed",t.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged",t.TOPOLOGY_OPENING="topologyOpening",t.TOPOLOGY_CLOSED="topologyClosed",t.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged",t.CONNECTION_POOL_CREATED="connectionPoolCreated",t.CONNECTION_POOL_CLOSED="connectionPoolClosed",t.CONNECTION_POOL_CLEARED="connectionPoolCleared",t.CONNECTION_POOL_READY="connectionPoolReady",t.CONNECTION_CREATED="connectionCreated",t.CONNECTION_READY="connectionReady",t.CONNECTION_CLOSED="connectionClosed",t.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted",t.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed",t.CONNECTION_CHECKED_OUT="connectionCheckedOut",t.CONNECTION_CHECKED_IN="connectionCheckedIn",t.CLUSTER_TIME_RECEIVED="clusterTimeReceived",t.COMMAND_STARTED="commandStarted",t.COMMAND_SUCCEEDED="commandSucceeded",t.COMMAND_FAILED="commandFailed",t.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted",t.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded",t.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed",t.RESPONSE="response",t.MORE="more",t.INIT="init",t.CHANGE="change",t.END="end",t.RESUME_TOKEN_CHANGED="resumeTokenChanged",t.HEARTBEAT_EVENTS=Object.freeze([t.SERVER_HEARTBEAT_STARTED,t.SERVER_HEARTBEAT_SUCCEEDED,t.SERVER_HEARTBEAT_FAILED]),t.CMAP_EVENTS=Object.freeze([t.CONNECTION_POOL_CREATED,t.CONNECTION_POOL_READY,t.CONNECTION_POOL_CLEARED,t.CONNECTION_POOL_CLOSED,t.CONNECTION_CREATED,t.CONNECTION_READY,t.CONNECTION_CLOSED,t.CONNECTION_CHECK_OUT_STARTED,t.CONNECTION_CHECK_OUT_FAILED,t.CONNECTION_CHECKED_OUT,t.CONNECTION_CHECKED_IN]),t.TOPOLOGY_EVENTS=Object.freeze([t.SERVER_OPENING,t.SERVER_CLOSED,t.SERVER_DESCRIPTION_CHANGED,t.TOPOLOGY_OPENING,t.TOPOLOGY_CLOSED,t.TOPOLOGY_DESCRIPTION_CHANGED,t.ERROR,t.TIMEOUT,t.CLOSE]),t.APM_EVENTS=Object.freeze([t.COMMAND_STARTED,t.COMMAND_SUCCEEDED,t.COMMAND_FAILED]),t.SERVER_RELAY_EVENTS=Object.freeze([t.SERVER_HEARTBEAT_STARTED,t.SERVER_HEARTBEAT_SUCCEEDED,t.SERVER_HEARTBEAT_FAILED,t.COMMAND_STARTED,t.COMMAND_SUCCEEDED,t.COMMAND_FAILED,...t.CMAP_EVENTS]),t.LOCAL_SERVER_EVENTS=Object.freeze([t.CONNECT,t.DESCRIPTION_RECEIVED,t.CLOSED,t.ENDED]),t.MONGO_CLIENT_EVENTS=Object.freeze([...t.CMAP_EVENTS,...t.APM_EVENTS,...t.TOPOLOGY_EVENTS,...t.HEARTBEAT_EVENTS]),t.LEGACY_HELLO_COMMAND="ismaster",t.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"},6829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertUninitialized=t.AbstractCursor=t.CURSOR_FLAGS=void 0;const n=r(2781),o=r(3849),i=r(9064),s=r(4947),a=r(334),u=r(7445),c=r(4170),l=r(9602),d=r(3389),h=r(1228),p=r(1296),f=r(2229),m=Symbol("id"),g=Symbol("documents"),y=Symbol("server"),E=Symbol("namespace"),A=Symbol("client"),v=Symbol("session"),C=Symbol("options"),b=Symbol("transform"),S=Symbol("initialized"),w=Symbol("closed"),O=Symbol("killed"),x=Symbol("kInit");t.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class _ extends a.TypedEventEmitter{constructor(e,t,r={}){if(super(),!e.s.isMongoClient)throw new s.MongoRuntimeError("Cursor must be constructed with MongoClient");this[A]=e,this[E]=t,this[m]=null,this[g]=new f.List,this[S]=!1,this[w]=!1,this[O]=!1,this[C]={readPreference:r.readPreference&&r.readPreference instanceof h.ReadPreference?r.readPreference:h.ReadPreference.primary,...(0,i.pluckBSONSerializeOptions)(r)};const n=d.ReadConcern.fromOptions(r);n&&(this[C].readConcern=n),"number"==typeof r.batchSize&&(this[C].batchSize=r.batchSize),void 0!==r.comment&&(this[C].comment=r.comment),"number"==typeof r.maxTimeMS&&(this[C].maxTimeMS=r.maxTimeMS),"number"==typeof r.maxAwaitTimeMS&&(this[C].maxAwaitTimeMS=r.maxAwaitTimeMS),r.session instanceof p.ClientSession?this[v]=r.session:this[v]=this[A].startSession({owner:this,explicit:!1})}get id(){return this[m]??void 0}get client(){return this[A]}get server(){return this[y]}get namespace(){return this[E]}get readPreference(){return this[C].readPreference}get readConcern(){return this[C].readConcern}get session(){return this[v]}set session(e){this[v]=e}get cursorOptions(){return this[C]}get closed(){return this[w]}get killed(){return this[O]}get loadBalanced(){return!!this[A].topology?.loadBalanced}bufferedCount(){return this[g].length}readBufferedDocuments(e){const t=[],r=Math.min(e??this[g].length,this[g].length);for(let e=0;e<r;e++){const e=this[g].shift();null!=e&&t.push(e)}return t}async*[Symbol.asyncIterator](){if(!this.closed)try{for(;;){const e=await this.next();if(null===e){if(!this.closed){const e="Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.";throw await I(this,{needsToEmitClosed:!0}).catch((()=>null)),new s.MongoAPIError(e)}break}if(yield e,this[m]===i.Long.ZERO)break}}finally{this.closed||await this.close().catch((()=>null))}}stream(e){if(e?.transform){const t=e.transform;return new F(this).pipe(new n.Transform({objectMode:!0,highWaterMark:1,transform(e,r,n){try{n(void 0,t(e))}catch(e){n(e)}}}))}return new F(this)}async hasNext(){if(this[m]===i.Long.ZERO)return!1;if(0!==this[g].length)return!0;const e=await D(this,{blocking:!0,transform:!1});return!!e&&(this[g].unshift(e),!0)}async next(){if(this[m]===i.Long.ZERO)throw new s.MongoCursorExhaustedError;return D(this,{blocking:!0,transform:!0})}async tryNext(){if(this[m]===i.Long.ZERO)throw new s.MongoCursorExhaustedError;return D(this,{blocking:!1,transform:!0})}async forEach(e){if("function"!=typeof e)throw new s.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(const t of this)if(!1===e(t))break}async close(){const e=!this[w];this[w]=!0,await I(this,{needsToEmitClosed:e})}async toArray(){const e=[];for await(const t of this)e.push(t);return e}addCursorFlag(e,r){if(R(this),!t.CURSOR_FLAGS.includes(e))throw new s.MongoInvalidArgumentError(`Flag ${e} is not one of ${t.CURSOR_FLAGS}`);if("boolean"!=typeof r)throw new s.MongoInvalidArgumentError(`Flag ${e} must be a boolean value`);return this[C][e]=r,this}map(e){R(this);const t=this[b];return this[b]=t?r=>e(t(r)):e,this}withReadPreference(e){if(R(this),e instanceof h.ReadPreference)this[C].readPreference=e;else{if("string"!=typeof e)throw new s.MongoInvalidArgumentError(`Invalid read preference: ${e}`);this[C].readPreference=h.ReadPreference.fromString(e)}return this}withReadConcern(e){R(this);const t=d.ReadConcern.fromOptions({readConcern:e});return t&&(this[C].readConcern=t),this}maxTimeMS(e){if(R(this),"number"!=typeof e)throw new s.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[C].maxTimeMS=e,this}batchSize(e){if(R(this),this[C].tailable)throw new s.MongoTailableCursorError("Tailable cursor does not support batchSize");if("number"!=typeof e)throw new s.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[C].batchSize=e,this}rewind(){if(!this[S])return;this[m]=null,this[g].clear(),this[w]=!1,this[O]=!1,this[S]=!1;const e=this[v];e&&!1===e.explicit&&(e.hasEnded||e.endSession().catch((()=>null)),this[v]=this.client.startSession({owner:this,explicit:!1}))}_getMore(e,t){const r=new c.GetMoreOperation(this[E],this[m],this[y],{...this[C],session:this[v],batchSize:e});(0,u.executeOperation)(this[A],r,t)}[x](e){this._initialize(this[v],((t,r)=>{if(r){const e=r.response;this[y]=r.server,e.cursor&&(this[m]="number"==typeof e.cursor.id?i.Long.fromNumber(e.cursor.id):"bigint"==typeof e.cursor.id?i.Long.fromBigInt(e.cursor.id):e.cursor.id,e.cursor.ns&&(this[E]=(0,f.ns)(e.cursor.ns)),this[g].pushMany(e.cursor.firstBatch)),null==this[m]&&(this[m]=i.Long.ZERO,this[g].push(r.response))}return this[S]=!0,t?B(this,{error:t},(()=>e(t,void 0))):T(this)?B(this,void 0,(()=>e())):void e()}))}}async function D(e,{blocking:t,transform:r}){const n=e[m];if(e.closed)return null;if(0!==e[g].length){const t=e[g].shift();if(null!=t&&r&&e[b])try{return e[b](t)}catch(t){throw await I(e,{error:t,needsToEmitClosed:!0}).catch((()=>{})),t}return t}if(null==n){const n=(0,o.promisify)((t=>e[x](t)));return await n(),D(e,{blocking:t,transform:r})}if(T(e))return await I(e,{}),null;const s=e[C].batchSize||1e3,a=(0,o.promisify)(((t,r)=>e._getMore(t,r)));let u;try{u=await a(s)}catch(t){if(t)throw await I(e,{error:t}).catch((()=>{})),t}if(u){const t="number"==typeof u.cursor.id?i.Long.fromNumber(u.cursor.id):"bigint"==typeof u.cursor.id?i.Long.fromBigInt(u.cursor.id):u.cursor.id;e[g].pushMany(u.cursor.nextBatch),e[m]=t}return T(e)&&await I(e,{}),0===e[g].length&&!1===t?null:D(e,{blocking:t,transform:r})}function T(e){const t=e[m];return!!t&&t.isZero()}_.CLOSE="close",t.AbstractCursor=_;const I=(0,o.promisify)(B);function B(e,t,r){const n=e[m],o=e[E],a=e[y],c=e[v],d=t?.error,h=t?.needsToEmitClosed??0===e[g].length;if(d&&e.loadBalanced&&d instanceof s.MongoNetworkError)return f();if(null==n||null==a||n.isZero()||null==o){if(h&&(e[w]=!0,e[m]=i.Long.ZERO,e.emit(_.CLOSE)),c){if(c.owner===e)return void c.endSession({error:d}).finally((()=>{r()}));c.inTransaction()||(0,p.maybeClearPinnedConnection)(c,{error:d})}return r()}function f(){if(c){if(c.owner===e)return void c.endSession({error:d}).finally((()=>{e.emit(_.CLOSE),r()}));c.inTransaction()||(0,p.maybeClearPinnedConnection)(c,{error:d})}return e.emit(_.CLOSE),r()}if(e[O]=!0,c.hasEnded)return f();(0,u.executeOperation)(e[A],new l.KillCursorsOperation(n,o,a,{session:c})).catch((()=>null)).finally(f)}function R(e){if(e[S])throw new s.MongoCursorInUseError}t.assertUninitialized=R;class F extends n.Readable{constructor(e){super({objectMode:!0,autoDestroy:!1,highWaterMark:1}),this._readInProgress=!1,this._cursor=e}_read(e){this._readInProgress||(this._readInProgress=!0,this._readNext())}_destroy(e,t){this._cursor.close().then((()=>t(e)),(e=>t(e)))}_readNext(){D(this._cursor,{blocking:!0,transform:!0}).then((e=>{if(null==e)this.push(null);else if(this.destroyed)this._cursor.close().catch((()=>null));else{if(this.push(e))return this._readNext();this._readInProgress=!1}}),(e=>e.message.match(/server is closed/)?(this._cursor.close().catch((()=>null)),this.push(null)):e.message.match(/operation was interrupted/)?this.push(null):this.destroy(e)))}}},3490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregationCursor=void 0;const n=r(4213),o=r(7445),i=r(2229),s=r(6829),a=Symbol("pipeline"),u=Symbol("options");class c extends s.AbstractCursor{constructor(e,t,r=[],n={}){super(e,t,n),this[a]=r,this[u]=n}get pipeline(){return this[a]}clone(){const e=(0,i.mergeOptions)({},this[u]);return delete e.session,new c(this.client,this.namespace,this[a],{...e})}map(e){return super.map(e)}_initialize(e,t){const r=new n.AggregateOperation(this.namespace,this[a],{...this[u],...this.cursorOptions,session:e});(0,o.executeOperation)(this.client,r,((n,o)=>{if(n||null==o)return t(n);t(void 0,{server:r.server,session:e,response:o})}))}async explain(e){return(0,o.executeOperation)(this.client,new n.AggregateOperation(this.namespace,this[a],{...this[u],...this.cursorOptions,explain:e??!0}))}group(e){return(0,s.assertUninitialized)(this),this[a].push({$group:e}),this}limit(e){return(0,s.assertUninitialized)(this),this[a].push({$limit:e}),this}match(e){return(0,s.assertUninitialized)(this),this[a].push({$match:e}),this}out(e){return(0,s.assertUninitialized)(this),this[a].push({$out:e}),this}project(e){return(0,s.assertUninitialized)(this),this[a].push({$project:e}),this}lookup(e){return(0,s.assertUninitialized)(this),this[a].push({$lookup:e}),this}redact(e){return(0,s.assertUninitialized)(this),this[a].push({$redact:e}),this}skip(e){return(0,s.assertUninitialized)(this),this[a].push({$skip:e}),this}sort(e){return(0,s.assertUninitialized)(this),this[a].push({$sort:e}),this}unwind(e){return(0,s.assertUninitialized)(this),this[a].push({$unwind:e}),this}geoNear(e){return(0,s.assertUninitialized)(this),this[a].push({$geoNear:e}),this}}t.AggregationCursor=c},2206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStreamCursor=void 0;const n=r(4747),o=r(5006),i=r(4213),s=r(7445),a=r(2229),u=r(6829);class c extends u.AbstractCursor{constructor(e,t,r=[],n={}){super(e,t,n),this.pipeline=r,this.options=n,this._resumeToken=null,this.startAtOperationTime=n.startAtOperationTime,n.startAfter?this.resumeToken=n.startAfter:n.resumeAfter&&(this.resumeToken=n.resumeAfter)}set resumeToken(e){this._resumeToken=e,this.emit(n.ChangeStream.RESUME_TOKEN_CHANGED,e)}get resumeToken(){return this._resumeToken}get resumeOptions(){const e={...this.options};for(const t of["resumeAfter","startAfter","startAtOperationTime"])delete e[t];return null!=this.resumeToken?this.options.startAfter&&!this.hasReceived?e.startAfter=this.resumeToken:e.resumeAfter=this.resumeToken:null!=this.startAtOperationTime&&(0,a.maxWireVersion)(this.server)>=7&&(e.startAtOperationTime=this.startAtOperationTime),e}cacheResumeToken(e){0===this.bufferedCount()&&this.postBatchResumeToken?this.resumeToken=this.postBatchResumeToken:this.resumeToken=e,this.hasReceived=!0}_processBatch(e){const t=e.cursor;t.postBatchResumeToken&&(this.postBatchResumeToken=e.cursor.postBatchResumeToken,0===("firstBatch"in e.cursor?e.cursor.firstBatch:e.cursor.nextBatch).length&&(this.resumeToken=t.postBatchResumeToken))}clone(){return new c(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}_initialize(e,t){const r=new i.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:e});(0,s.executeOperation)(e.client,r,((n,i)=>{if(n||null==i)return t(n);const s=r.server;this.maxWireVersion=(0,a.maxWireVersion)(s),null==this.startAtOperationTime&&null==this.resumeAfter&&null==this.startAfter&&this.maxWireVersion>=7&&(this.startAtOperationTime=i.operationTime),this._processBatch(i),this.emit(o.INIT,i),this.emit(o.RESPONSE),t(void 0,{server:s,session:e,response:i})}))}_getMore(e,t){super._getMore(e,((e,r)=>{if(e)return t(e);this.maxWireVersion=(0,a.maxWireVersion)(this.server),this._processBatch(r),this.emit(n.ChangeStream.MORE,r),this.emit(n.ChangeStream.RESPONSE),t(e,r)}))}}t.ChangeStreamCursor=c},6331:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindCursor=t.FLAGS=void 0;const n=r(4947),o=r(2566),i=r(7445),s=r(1709),a=r(649),u=r(2229),c=r(6829),l=Symbol("filter"),d=Symbol("numReturned"),h=Symbol("builtOptions");t.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class p extends c.AbstractCursor{constructor(e,t,r={},n={}){super(e,t,n),this[l]=r,this[h]=n,null!=n.sort&&(this[h].sort=(0,a.formatSort)(n.sort))}clone(){const e=(0,u.mergeOptions)({},this[h]);return delete e.session,new p(this.client,this.namespace,this[l],{...e})}map(e){return super.map(e)}_initialize(e,t){const r=new s.FindOperation(void 0,this.namespace,this[l],{...this[h],...this.cursorOptions,session:e});(0,i.executeOperation)(this.client,r,((n,o)=>{if(n||null==o)return t(n);o.cursor?this[d]=o.cursor.firstBatch.length:this[d]=o.documents?o.documents.length:0,t(void 0,{server:r.server,session:e,response:o})}))}_getMore(e,t){const r=this[d];if(r){const n=this[h].limit;if((e=n&&n>0&&r+e>n?n-r:e)<=0)return void this.close().finally((()=>t()))}super._getMore(e,((e,r)=>{if(e)return t(e);r&&(this[d]=this[d]+r.cursor.nextBatch.length),t(void 0,r)}))}async count(e){if((0,u.emitWarningOnce)("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),"boolean"==typeof e)throw new n.MongoInvalidArgumentError("Invalid first parameter to count");return(0,i.executeOperation)(this.client,new o.CountOperation(this.namespace,this[l],{...this[h],...this.cursorOptions,...e}))}async explain(e){return(0,i.executeOperation)(this.client,new s.FindOperation(void 0,this.namespace,this[l],{...this[h],...this.cursorOptions,explain:e??!0}))}filter(e){return(0,c.assertUninitialized)(this),this[l]=e,this}hint(e){return(0,c.assertUninitialized)(this),this[h].hint=e,this}min(e){return(0,c.assertUninitialized)(this),this[h].min=e,this}max(e){return(0,c.assertUninitialized)(this),this[h].max=e,this}returnKey(e){return(0,c.assertUninitialized)(this),this[h].returnKey=e,this}showRecordId(e){return(0,c.assertUninitialized)(this),this[h].showRecordId=e,this}addQueryModifier(e,t){if((0,c.assertUninitialized)(this),"$"!==e[0])throw new n.MongoInvalidArgumentError(`${e} is not a valid query modifier`);switch(e.substr(1)){case"comment":this[h].comment=t;break;case"explain":this[h].explain=t;break;case"hint":this[h].hint=t;break;case"max":this[h].max=t;break;case"maxTimeMS":this[h].maxTimeMS=t;break;case"min":this[h].min=t;break;case"orderby":this[h].sort=(0,a.formatSort)(t);break;case"query":this[l]=t;break;case"returnKey":this[h].returnKey=t;break;case"showDiskLoc":this[h].showRecordId=t;break;default:throw new n.MongoInvalidArgumentError(`Invalid query modifier: ${e}`)}return this}comment(e){return(0,c.assertUninitialized)(this),this[h].comment=e,this}maxAwaitTimeMS(e){if((0,c.assertUninitialized)(this),"number"!=typeof e)throw new n.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[h].maxAwaitTimeMS=e,this}maxTimeMS(e){if((0,c.assertUninitialized)(this),"number"!=typeof e)throw new n.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[h].maxTimeMS=e,this}project(e){return(0,c.assertUninitialized)(this),this[h].projection=e,this}sort(e,t){if((0,c.assertUninitialized)(this),this[h].tailable)throw new n.MongoTailableCursorError("Tailable cursor does not support sorting");return this[h].sort=(0,a.formatSort)(e,t),this}allowDiskUse(e=!0){if((0,c.assertUninitialized)(this),!this[h].sort)throw new n.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');return e?(this[h].allowDiskUse=!0,this):(this[h].allowDiskUse=!1,this)}collation(e){return(0,c.assertUninitialized)(this),this[h].collation=e,this}limit(e){if((0,c.assertUninitialized)(this),this[h].tailable)throw new n.MongoTailableCursorError("Tailable cursor does not support limit");if("number"!=typeof e)throw new n.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[h].limit=e,this}skip(e){if((0,c.assertUninitialized)(this),this[h].tailable)throw new n.MongoTailableCursorError("Tailable cursor does not support skip");if("number"!=typeof e)throw new n.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[h].skip=e,this}}t.FindCursor=p},1640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListCollectionsCursor=void 0;const n=r(7445),o=r(2320),i=r(6829);class s extends i.AbstractCursor{constructor(e,t,r){super(e.client,e.s.namespace,r),this.parent=e,this.filter=t,this.options=r}clone(){return new s(this.parent,this.filter,{...this.options,...this.cursorOptions})}_initialize(e,t){const r=new o.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:e});(0,n.executeOperation)(this.parent.client,r,((n,o)=>{if(n||null==o)return t(n);t(void 0,{server:r.server,session:e,response:o})}))}}t.ListCollectionsCursor=s},5051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListIndexesCursor=void 0;const n=r(7445),o=r(2139),i=r(6829);class s extends i.AbstractCursor{constructor(e,t){super(e.client,e.s.namespace,t),this.parent=e,this.options=t}clone(){return new s(this.parent,{...this.options,...this.cursorOptions})}_initialize(e,t){const r=new o.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:e});(0,n.executeOperation)(this.parent.client,r,((n,o)=>{if(n||null==o)return t(n);t(void 0,{server:r.server,session:e,response:o})}))}}t.ListIndexesCursor=s},2496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListSearchIndexesCursor=void 0;const n=r(3490);class o extends n.AggregationCursor{constructor({fullNamespace:e,client:t},r,n={}){super(t,e,null==r?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:r}}],n)}}t.ListSearchIndexesCursor=o},9724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunCommandCursor=void 0;const n=r(4947),o=r(7445),i=r(4170),s=r(25),a=r(2229),u=r(6829);class c extends u.AbstractCursor{setComment(e){return this.getMoreOptions.comment=e,this}setMaxTimeMS(e){return this.getMoreOptions.maxAwaitTimeMS=e,this}setBatchSize(e){return this.getMoreOptions.batchSize=e,this}clone(){throw new n.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(e){throw new n.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(e,t){throw new n.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(e){throw new n.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(e){throw new n.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(e,t,r={}){super(e.client,(0,a.ns)(e.namespace),r),this.getMoreOptions={},this.db=e,this.command=Object.freeze({...t})}_initialize(e,t){const r=new s.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:e,readPreference:this.cursorOptions.readPreference});(0,o.executeOperation)(this.client,r).then((o=>{null!=o.cursor?t(void 0,{server:r.server,session:e,response:o}):t(new n.MongoUnexpectedServerResponseError("Expected server to respond with cursor"))}),(e=>t(e)))}_getMore(e,t){const r=new i.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});(0,o.executeOperation)(this.client,r,t)}}t.RunCommandCursor=c},2644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Db=void 0;const n=r(5716),o=r(9064),i=r(4747),s=r(8971),a=r(5006),u=r(3490),c=r(1640),l=r(9724),d=r(4947),h=r(3186),p=r(4916),f=r(7711),m=r(3226),g=r(7445),y=r(2139),E=r(8528),A=r(8521),v=r(8955),C=r(25),b=r(4671),S=r(6577),w=r(3389),O=r(1228),x=r(2229),_=r(4620),D=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class T{constructor(e,t,r){r=r??{},r=(0,x.filterOptions)(r,D),function(e){if("string"!=typeof e)throw new d.MongoInvalidArgumentError("Database name must be a string");if(0===e.length)throw new d.MongoInvalidArgumentError("Database name cannot be the empty string");if("$external"===e)return;const t=[" ",".","$","/","\\"];for(let r=0;r<t.length;r++)if(-1!==e.indexOf(t[r]))throw new d.MongoAPIError(`database names cannot contain the character '${t[r]}'`)}(t),this.s={options:r,readPreference:O.ReadPreference.fromOptions(r),bsonOptions:(0,o.resolveBSONOptions)(r,e),pkFactory:r?.pkFactory??x.DEFAULT_PK_FACTORY,readConcern:w.ReadConcern.fromOptions(r),writeConcern:_.WriteConcern.fromOptions(r),namespace:new x.MongoDBNamespace(t)},this.client=e}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return"primary"!==this.s.readPreference?.preference||!1}get readConcern(){return this.s.readConcern}get readPreference(){return null==this.s.readPreference?this.client.readPreference:this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}async createCollection(e,t){return(0,g.executeOperation)(this.client,new f.CreateCollectionOperation(this,e,(0,x.resolveOptions)(this,t)))}async command(e,t){return(0,g.executeOperation)(this.client,new C.RunCommandOperation(this,e,t))}aggregate(e=[],t){return new u.AggregationCursor(this.client,this.s.namespace,e,(0,x.resolveOptions)(this,t))}admin(){return new n.Admin(this)}collection(e,t={}){if("function"==typeof t)throw new d.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new s.Collection(this,e,(0,x.resolveOptions)(this,t))}async stats(e){return(0,g.executeOperation)(this.client,new S.DbStatsOperation(this,(0,x.resolveOptions)(this,e)))}listCollections(e={},t={}){return new c.ListCollectionsCursor(this,e,(0,x.resolveOptions)(this,t))}async renameCollection(e,t,r){return(0,g.executeOperation)(this.client,new v.RenameOperation(this.collection(e),t,{...r,new_collection:!0,readPreference:O.ReadPreference.primary}))}async dropCollection(e,t){return(0,g.executeOperation)(this.client,new m.DropCollectionOperation(this,e,(0,x.resolveOptions)(this,t)))}async dropDatabase(e){return(0,g.executeOperation)(this.client,new m.DropDatabaseOperation(this,(0,x.resolveOptions)(this,e)))}async collections(e){return(0,g.executeOperation)(this.client,new p.CollectionsOperation(this,(0,x.resolveOptions)(this,e)))}async createIndex(e,t,r){return(0,g.executeOperation)(this.client,new y.CreateIndexOperation(this,e,t,(0,x.resolveOptions)(this,r)))}async addUser(e,t,r){r=null!=r&&"object"==typeof r?r:null!=t&&"object"==typeof t?t:void 0;const n="string"==typeof t?t:void 0;return(0,g.executeOperation)(this.client,new h.AddUserOperation(this,e,n,(0,x.resolveOptions)(this,r)))}async removeUser(e,t){return(0,g.executeOperation)(this.client,new A.RemoveUserOperation(this,e,(0,x.resolveOptions)(this,t)))}async setProfilingLevel(e,t){return(0,g.executeOperation)(this.client,new b.SetProfilingLevelOperation(this,e,(0,x.resolveOptions)(this,t)))}async profilingLevel(e){return(0,g.executeOperation)(this.client,new E.ProfilingLevelOperation(this,(0,x.resolveOptions)(this,e)))}async indexInformation(e,t){return(0,g.executeOperation)(this.client,new y.IndexInformationOperation(this,e,(0,x.resolveOptions)(this,t)))}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new i.ChangeStream(this,e,(0,x.resolveOptions)(this,t))}runCursorCommand(e,t){return new l.RunCommandCursor(this,e,t)}}T.SYSTEM_NAMESPACE_COLLECTION=a.SYSTEM_NAMESPACE_COLLECTION,T.SYSTEM_INDEX_COLLECTION=a.SYSTEM_INDEX_COLLECTION,T.SYSTEM_PROFILE_COLLECTION=a.SYSTEM_PROFILE_COLLECTION,T.SYSTEM_USER_COLLECTION=a.SYSTEM_USER_COLLECTION,T.SYSTEM_COMMAND_COLLECTION=a.SYSTEM_COMMAND_COLLECTION,T.SYSTEM_JS_COLLECTION=a.SYSTEM_JS_COLLECTION,t.Db=T},8808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoEncryptionLoggerLevel=t.aws4=t.saslprep=t.getSnappy=t.getAwsCredentialProvider=t.getZstdLibrary=t.ZStandard=t.getKerberos=t.Kerberos=void 0;const n=r(4947);function o(e){return new Proxy(e?{kModuleError:e}:{},{get:(t,r)=>{if("kModuleError"===r)return e;throw e},set:()=>{throw e}})}t.Kerberos=o(new n.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication")),t.getKerberos=function(){try{return t.Kerberos=r(3617),t.Kerberos}catch{return t.Kerberos}},t.ZStandard=o(new n.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression")),t.getZstdLibrary=function(){try{return t.ZStandard=Object(function(){var e=new Error("Cannot find module '@mongodb-js/zstd'");throw e.code="MODULE_NOT_FOUND",e}()),t.ZStandard}catch{return t.ZStandard}},t.getAwsCredentialProvider=function(){try{return r(904)}catch{return o(new n.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},t.getSnappy=function(){try{return r(8349)}catch(e){return{kModuleError:new n.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:e})}}},t.saslprep=o(new n.MongoMissingDependencyError("Optional module `saslprep` not found. Please install it to enable Stringprep Profile for User Names and Passwords"));try{t.saslprep=r(7017)}catch{}t.aws4=o(new n.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{t.aws4=r(1595)}catch{}t.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4})},3748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Encrypter=void 0;const n=r(5006),o=r(4947),i=r(2319),s=r(2229);let a;const u=Symbol("internalClient");t.Encrypter=class{constructor(e,t,r){if("object"!=typeof r.autoEncryption)throw new o.MongoInvalidArgumentError('Option "autoEncryption" must be specified');this[u]=null,this.bypassAutoEncryption=!!r.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,0===r.maxPoolSize&&null==r.autoEncryption.keyVaultClient?r.autoEncryption.keyVaultClient=e:null==r.autoEncryption.keyVaultClient&&(r.autoEncryption.keyVaultClient=this.getInternalClient(e,t,r)),this.bypassAutoEncryption?r.autoEncryption.metadataClient=void 0:0===r.maxPoolSize?r.autoEncryption.metadataClient=e:r.autoEncryption.metadataClient=this.getInternalClient(e,t,r),r.proxyHost&&(r.autoEncryption.proxyOptions={proxyHost:r.proxyHost,proxyPort:r.proxyPort,proxyUsername:r.proxyUsername,proxyPassword:r.proxyPassword}),this.autoEncrypter=new a(e,r.autoEncryption)}getInternalClient(e,t,r){let o=this[u];if(null==o){const s={};for(const e of[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)])["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(e)||Reflect.set(s,e,Reflect.get(r,e));s.minPoolSize=0,o=new i.MongoClient(t,s),this[u]=o;for(const t of n.MONGO_CLIENT_EVENTS)for(const r of e.listeners(t))o.on(t,r);e.on("newListener",((e,t)=>{o?.on(e,t)})),this.needsConnecting=!0}return o}async connectInternalClient(){const e=this[u];this.needsConnecting&&null!=e&&(this.needsConnecting=!1,await e.connect())}close(e,t,r){this.autoEncrypter.teardown(!!t,(n=>{const o=this[u];null==o||e===o?r(n):o.close(t).then((()=>r()),(e=>r(e)))}))}static checkForMongoCrypt(){const e=(0,s.getMongoDBClientEncryption)();if(null==e)throw new o.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project");a=e.extension(r(8761)).AutoEncrypter}}},4947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isResumableError=t.isNetworkTimeoutError=t.isSDAMUnrecoverableError=t.isNodeShuttingDownError=t.isRetryableReadError=t.isRetryableWriteError=t.needsRetryableWriteLabel=t.MongoWriteConcernError=t.MongoServerSelectionError=t.MongoSystemError=t.MongoMissingDependencyError=t.MongoMissingCredentialsError=t.MongoCompatibilityError=t.MongoInvalidArgumentError=t.MongoParseError=t.MongoNetworkTimeoutError=t.MongoNetworkError=t.isNetworkErrorBeforeHandshake=t.MongoTopologyClosedError=t.MongoCursorExhaustedError=t.MongoServerClosedError=t.MongoCursorInUseError=t.MongoUnexpectedServerResponseError=t.MongoGridFSChunkError=t.MongoGridFSStreamError=t.MongoTailableCursorError=t.MongoChangeStreamError=t.MongoAzureError=t.MongoAWSError=t.MongoKerberosError=t.MongoExpiredSessionError=t.MongoTransactionError=t.MongoNotConnectedError=t.MongoDecompressionError=t.MongoBatchReExecutionError=t.MongoRuntimeError=t.MongoAPIError=t.MongoDriverError=t.MongoServerError=t.MongoError=t.MongoErrorLabel=t.GET_MORE_RESUMABLE_CODES=t.MONGODB_ERROR_CODES=t.NODE_IS_RECOVERING_ERROR_MESSAGE=t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;const r=Symbol("errorLabels");t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i"),t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i"),t.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i"),t.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,NetworkTimeout:89,ShutdownInProgress:91,PrimarySteppedDown:189,ExceededTimeLimit:262,SocketException:9001,NotWritablePrimary:10107,InterruptedAtShutdown:11600,InterruptedDueToReplStateChange:11602,NotPrimaryNoSecondaryOk:13435,NotPrimaryOrSecondary:13436,StaleShardVersion:63,StaleEpoch:150,StaleConfig:13388,RetryChangeStream:234,FailedToSatisfyReadPreference:133,CursorNotFound:43,LegacyNotPrimary:10058,WriteConcernFailed:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100,Reauthenticate:391}),t.GET_MORE_RESUMABLE_CODES=new Set([t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.ExceededTimeLimit,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,t.MONGODB_ERROR_CODES.StaleShardVersion,t.MONGODB_ERROR_CODES.StaleEpoch,t.MONGODB_ERROR_CODES.StaleConfig,t.MONGODB_ERROR_CODES.RetryChangeStream,t.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,t.MONGODB_ERROR_CODES.CursorNotFound]),t.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class n extends Error{constructor(e){super(n.buildErrorMessage(e)),e instanceof Error&&(this.cause=e),this[r]=new Set}static buildErrorMessage(e){return"string"==typeof e?e:function(e){return"errors"in e&&Array.isArray(e.errors)}(e)&&0===e.message.length?0===e.errors.length?"AggregateError has an empty errors array. Please check the `cause` property for more information.":e.errors.map((({message:e})=>e)).join(", "):e.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(e){return this[r].has(e)}addErrorLabel(e){this[r].add(e)}get errorLabels(){return Array.from(this[r])}}t.MongoError=n;class o extends n{constructor(e){super(e.message||e.errmsg||e.$err||"n/a"),e.errorLabels&&(this[r]=new Set(e.errorLabels));for(const t in e)"errorLabels"!==t&&"errmsg"!==t&&"message"!==t&&(this[t]=e[t])}get name(){return"MongoServerError"}}t.MongoServerError=o;class i extends n{constructor(e){super(e)}get name(){return"MongoDriverError"}}t.MongoDriverError=i;class s extends i{constructor(e){super(e)}get name(){return"MongoAPIError"}}t.MongoAPIError=s;class a extends i{constructor(e){super(e)}get name(){return"MongoRuntimeError"}}t.MongoRuntimeError=a,t.MongoBatchReExecutionError=class extends s{constructor(e="This batch has already been executed, create new batch to execute"){super(e)}get name(){return"MongoBatchReExecutionError"}},t.MongoDecompressionError=class extends a{constructor(e){super(e)}get name(){return"MongoDecompressionError"}},t.MongoNotConnectedError=class extends s{constructor(e){super(e)}get name(){return"MongoNotConnectedError"}},t.MongoTransactionError=class extends s{constructor(e){super(e)}get name(){return"MongoTransactionError"}},t.MongoExpiredSessionError=class extends s{constructor(e="Cannot use a session that has ended"){super(e)}get name(){return"MongoExpiredSessionError"}},t.MongoKerberosError=class extends a{constructor(e){super(e)}get name(){return"MongoKerberosError"}},t.MongoAWSError=class extends a{constructor(e){super(e)}get name(){return"MongoAWSError"}},t.MongoAzureError=class extends a{constructor(e){super(e)}get name(){return"MongoAzureError"}},t.MongoChangeStreamError=class extends a{constructor(e){super(e)}get name(){return"MongoChangeStreamError"}},t.MongoTailableCursorError=class extends s{constructor(e="Tailable cursor does not support this operation"){super(e)}get name(){return"MongoTailableCursorError"}},t.MongoGridFSStreamError=class extends a{constructor(e){super(e)}get name(){return"MongoGridFSStreamError"}},t.MongoGridFSChunkError=class extends a{constructor(e){super(e)}get name(){return"MongoGridFSChunkError"}},t.MongoUnexpectedServerResponseError=class extends a{constructor(e){super(e)}get name(){return"MongoUnexpectedServerResponseError"}},t.MongoCursorInUseError=class extends s{constructor(e="Cursor is already initialized"){super(e)}get name(){return"MongoCursorInUseError"}},t.MongoServerClosedError=class extends s{constructor(e="Server is closed"){super(e)}get name(){return"MongoServerClosedError"}},t.MongoCursorExhaustedError=class extends s{constructor(e){super(e||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}},t.MongoTopologyClosedError=class extends s{constructor(e="Topology is closed"){super(e)}get name(){return"MongoTopologyClosedError"}};const u=Symbol("beforeHandshake");t.isNetworkErrorBeforeHandshake=function(e){return!0===e[u]};class c extends n{constructor(e,t){super(e),t&&"boolean"==typeof t.beforeHandshake&&(this[u]=t.beforeHandshake)}get name(){return"MongoNetworkError"}}t.MongoNetworkError=c,t.MongoNetworkTimeoutError=class extends c{constructor(e,t){super(e,t)}get name(){return"MongoNetworkTimeoutError"}};class l extends i{constructor(e){super(e)}get name(){return"MongoParseError"}}t.MongoParseError=l,t.MongoInvalidArgumentError=class extends s{constructor(e){super(e)}get name(){return"MongoInvalidArgumentError"}},t.MongoCompatibilityError=class extends s{constructor(e){super(e)}get name(){return"MongoCompatibilityError"}},t.MongoMissingCredentialsError=class extends s{constructor(e){super(e)}get name(){return"MongoMissingCredentialsError"}},t.MongoMissingDependencyError=class extends s{constructor(e,{cause:t}={}){super(e),t&&(this.cause=t)}get name(){return"MongoMissingDependencyError"}};class d extends n{constructor(e,t){t&&t.error?super(t.error.message||t.error):super(e),t&&(this.reason=t),this.code=t.error?.code}get name(){return"MongoSystemError"}}t.MongoSystemError=d,t.MongoServerSelectionError=class extends d{constructor(e,t){super(e,t)}get name(){return"MongoServerSelectionError"}};class h extends o{constructor(e,t){t&&Array.isArray(t.errorLabels)&&(e.errorLabels=t.errorLabels),super(e),this.errInfo=e.errInfo,null!=t&&(this.result=function(e){const t=Object.assign({},e);return 0===t.ok&&(t.ok=1,delete t.errmsg,delete t.code,delete t.codeName),t}(t))}get name(){return"MongoWriteConcernError"}}t.MongoWriteConcernError=h;const p=new Set([t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),f=new Set([...p,t.MONGODB_ERROR_CODES.ExceededTimeLimit]);t.needsRetryableWriteLabel=function(e,r){return e instanceof c||!(e instanceof n&&(r>=9||e.hasErrorLabel(t.MongoErrorLabel.RetryableWriteError))&&!e.hasErrorLabel(t.MongoErrorLabel.HandshakeError))&&(e instanceof h?f.has(e.result?.code??e.code??0):e instanceof n&&"number"==typeof e.code?f.has(e.code):!!t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(e.message)||!!t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message))},t.isRetryableWriteError=function(e){return e.hasErrorLabel(t.MongoErrorLabel.RetryableWriteError)},t.isRetryableReadError=function(e){return!("number"!=typeof e.code||!p.has(e.code))||e instanceof c||!!t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(e.message)||!!t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message)};const m=new Set([t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),g=new Set([t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.LegacyNotPrimary]),y=new Set([t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.ShutdownInProgress]);function E(e){return"number"==typeof e.code?m.has(e.code):t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(e.message)||t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message)}t.isNodeShuttingDownError=function(e){return!("number"!=typeof e.code||!y.has(e.code))},t.isSDAMUnrecoverableError=function(e){return e instanceof l||null==e||E(e)||("number"==typeof(r=e).code?g.has(r.code):!E(r)&&t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(r.message));var r},t.isNetworkTimeoutError=function(e){return!!(e instanceof c&&e.message.match(/timed out/))},t.isResumableError=function(e,r){return null!=e&&e instanceof n&&(e instanceof c||(null!=r&&r>=9?e.code===t.MONGODB_ERROR_CODES.CursorNotFound||e.hasErrorLabel(t.MongoErrorLabel.ResumableChangeStreamError):"number"==typeof e.code&&t.GET_MORE_RESUMABLE_CODES.has(e.code)))}},223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explain=t.ExplainVerbosity=void 0;const n=r(4947);t.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class o{constructor(e){this.verbosity="boolean"==typeof e?e?t.ExplainVerbosity.allPlansExecution:t.ExplainVerbosity.queryPlanner:e}static fromOptions(e){if(null==e?.explain)return;const t=e.explain;if("boolean"==typeof t||"string"==typeof t)return new o(t);throw new n.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}t.Explain=o},3890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucketReadStream=void 0;const n=r(2781),o=r(4947);class i extends n.Readable{constructor(e,t,r,n,o){super(),this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:e,expected:0,files:t,filter:n,init:!1,expectedEnd:0,options:{start:0,end:0,...o},readPreference:r}}_read(){this.destroyed||function(e,t){if(e.s.file)return t();e.s.init||(function(e){const t={};e.s.readPreference&&(t.readPreference=e.s.readPreference),e.s.options&&e.s.options.sort&&(t.sort=e.s.options.sort),e.s.options&&e.s.options.skip&&(t.skip=e.s.options.skip);const r=({error:t,doc:r})=>{if(t)return e.emit(i.ERROR,t);if(!r){const t=`FileNotFound: file ${e.s.filter._id?e.s.filter._id.toString():e.s.filter.filename} was not found`,r=new o.MongoRuntimeError(t);return r.code="ENOENT",e.emit(i.ERROR,r)}if(r.length<=0)return void e.push(null);if(e.destroyed)return void e.emit(i.CLOSE);try{e.s.bytesToSkip=function(e,t,r){if(r&&null!=r.start){if(r.start>t.length)throw new o.MongoInvalidArgumentError(`Stream start (${r.start}) must not be more than the length of the file (${t.length})`);if(r.start<0)throw new o.MongoInvalidArgumentError(`Stream start (${r.start}) must not be negative`);if(null!=r.end&&r.end<r.start)throw new o.MongoInvalidArgumentError(`Stream start (${r.start}) must not be greater than stream end (${r.end})`);return e.s.bytesRead=Math.floor(r.start/t.chunkSize)*t.chunkSize,e.s.expected=Math.floor(r.start/t.chunkSize),r.start-e.s.bytesRead}throw new o.MongoInvalidArgumentError("Start option must be defined")}(e,r,e.s.options)}catch(t){return e.emit(i.ERROR,t)}const n={files_id:r._id};if(e.s.options&&null!=e.s.options.start){const t=Math.floor(e.s.options.start/r.chunkSize);t>0&&(n.n={$gte:t})}e.s.cursor=e.s.chunks.find(n).sort({n:1}),e.s.readPreference&&e.s.cursor.withReadPreference(e.s.readPreference),e.s.expectedEnd=Math.ceil(r.length/r.chunkSize),e.s.file=r;try{e.s.bytesToTrim=function(e,t,r,n){if(n&&null!=n.end){if(n.end>t.length)throw new o.MongoInvalidArgumentError(`Stream end (${n.end}) must not be more than the length of the file (${t.length})`);if(null==n.start||n.start<0)throw new o.MongoInvalidArgumentError(`Stream end (${n.end}) must not be negative`);const i=null!=n.start?Math.floor(n.start/t.chunkSize):0;return r.limit(Math.ceil(n.end/t.chunkSize)-i),e.s.expectedEnd=Math.ceil(n.end/t.chunkSize),Math.ceil(n.end/t.chunkSize)*t.chunkSize-n.end}throw new o.MongoInvalidArgumentError("End option must be defined")}(e,r,e.s.cursor,e.s.options)}catch(t){return e.emit(i.ERROR,t)}e.emit(i.FILE,r)};e.s.files.findOne(e.s.filter,t).then((e=>r({error:null,doc:e})),(e=>r({error:e,doc:null})))}(e),e.s.init=!0),e.once("file",(()=>{t()}))}(this,(()=>function(e){if(e.destroyed)return;if(!e.s.cursor)return;if(!e.s.file)return;const t=({error:t,doc:r})=>{if(e.destroyed)return;if(t)return void e.emit(i.ERROR,t);if(!r)return e.push(null),void e.s.cursor?.close().then((()=>{e.emit(i.CLOSE)}),(t=>{e.emit(i.ERROR,t)}));if(!e.s.file)return;const n=e.s.file.length-e.s.bytesRead,s=e.s.expected++,a=Math.min(e.s.file.chunkSize,n);if(r.n>s)return e.emit(i.ERROR,new o.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${r.n}, expected: ${s}`));if(r.n<s)return e.emit(i.ERROR,new o.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${r.n}, expected: ${s}`));let u=Buffer.isBuffer(r.data)?r.data:r.data.buffer;if(u.byteLength!==a)return n<=0?e.emit(i.ERROR,new o.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${r.n}, expected file length ${e.s.file.length} bytes but already read ${e.s.bytesRead} bytes`)):e.emit(i.ERROR,new o.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${u.byteLength}, expected: ${a}`));if(e.s.bytesRead+=u.byteLength,0===u.byteLength)return e.push(null);let c=null,l=null;null!=e.s.bytesToSkip&&(c=e.s.bytesToSkip,e.s.bytesToSkip=0);const d=s===e.s.expectedEnd-1,h=e.s.options.end-e.s.bytesToSkip;d&&null!=e.s.bytesToTrim?l=e.s.file.chunkSize-e.s.bytesToTrim:e.s.options.end&&h<r.data.byteLength&&(l=h),null==c&&null==l||(u=u.slice(c||0,l||u.byteLength)),e.push(u)};e.s.cursor.next().then((e=>t({error:null,doc:e})),(e=>t({error:e,doc:null})))}(this)))}start(e=0){return s(this),this.s.options.start=e,this}end(e=0){return s(this),this.s.options.end=e,this}async abort(){if(this.push(null),this.destroyed=!0,this.s.cursor)try{await this.s.cursor.close()}finally{this.emit(i.CLOSE)}else this.s.init||this.emit(i.CLOSE)}}function s(e){if(e.s.init)throw new o.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")}i.ERROR="error",i.FILE="file",i.DATA="data",i.END="end",i.CLOSE="close",t.GridFSBucketReadStream=i},2227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucket=void 0;const n=r(4947),o=r(334),i=r(4620),s=r(3890),a=r(7632),u={bucketName:"fs",chunkSizeBytes:261120};class c extends o.TypedEventEmitter{constructor(e,t){super(),this.setMaxListeners(0);const r={...u,...t,writeConcern:i.WriteConcern.fromOptions(t)};this.s={db:e,options:r,_chunksCollection:e.collection(r.bucketName+".chunks"),_filesCollection:e.collection(r.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(e,t){return new a.GridFSBucketWriteStream(this,e,t)}openUploadStreamWithId(e,t,r){return new a.GridFSBucketWriteStream(this,t,{...r,id:e})}openDownloadStream(e,t){return new s.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:e},t)}async delete(e){const{deletedCount:t}=await this.s._filesCollection.deleteOne({_id:e});if(await this.s._chunksCollection.deleteMany({files_id:e}),0===t)throw new n.MongoRuntimeError(`File not found for id ${e}`)}find(e={},t={}){return this.s._filesCollection.find(e,t)}openDownloadStreamByName(e,t){let r,n={uploadDate:-1};return t&&null!=t.revision&&(t.revision>=0?(n={uploadDate:1},r=t.revision):r=-t.revision-1),new s.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:e},{...t,sort:n,skip:r})}async rename(e,t){const r={_id:e},o={$set:{filename:t}},{matchedCount:i}=await this.s._filesCollection.updateOne(r,o);if(0===i)throw new n.MongoRuntimeError(`File with id ${e} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}c.INDEX="index",t.GridFSBucket=c},7632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucketWriteStream=void 0;const n=r(2781),o=r(9064),i=r(4947),s=r(4620);class a extends n.Writable{constructor(e,t,r){super(),r=r??{},this.bucket=e,this.chunks=e.s._chunksCollection,this.filename=t,this.files=e.s._filesCollection,this.options=r,this.writeConcern=s.WriteConcern.fromOptions(r)||e.s.options.writeConcern,this.done=!1,this.id=r.id?r.id:new o.ObjectId,this.chunkSizeBytes=r.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes,this.bufToStore=Buffer.alloc(this.chunkSizeBytes),this.length=0,this.n=0,this.pos=0,this.state={streamEnd:!1,outstandingRequests:0,errored:!1,aborted:!1},this.bucket.s.calledOpenUploadStream||(this.bucket.s.calledOpenUploadStream=!0,async function(e){if(null!=await e.files.findOne({},{projection:{_id:1}}))return;let t;try{t=await e.files.listIndexes().toArray()}catch(e){if(!(e instanceof i.MongoError&&e.code===i.MONGODB_ERROR_CODES.NamespaceNotFound))throw e;t=[]}t.find((e=>2===Object.keys(e.key).length&&1===e.key.filename&&1===e.key.uploadDate))||await e.files.createIndex({filename:1,uploadDate:1},{background:!1}),await async function(e){let t;try{t=await e.chunks.listIndexes().toArray()}catch(e){if(!(e instanceof i.MongoError&&e.code===i.MONGODB_ERROR_CODES.NamespaceNotFound))throw e;t=[]}const r=!!t.find((e=>2===Object.keys(e.key).length&&1===e.key.files_id&&1===e.key.n));r||await e.chunks.createIndex({files_id:1,n:1},{...e.writeConcern,background:!0,unique:!0})}(e)}(this).then((()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")}),(()=>null)))}write(e,t,r){const n="function"==typeof t?void 0:t;return r="function"==typeof t?t:r,d(this,(()=>function(e,t,r,n){if(p(e,n))return!1;const o=Buffer.isBuffer(t)?t:Buffer.from(t,r);if(e.length+=o.length,e.pos+o.length<e.chunkSizeBytes)return o.copy(e.bufToStore,e.pos),e.pos+=o.length,n&&n(),!0;let i=o.length,s=e.chunkSizeBytes-e.pos,a=Math.min(s,o.length),d=0;for(;i>0;){const t=o.length-i;let r;if(o.copy(e.bufToStore,e.pos,t,t+a),e.pos+=a,s-=a,0===s){if(r=c(e.id,e.n,Buffer.from(e.bufToStore)),++e.state.outstandingRequests,++d,p(e,n))return!1;e.chunks.insertOne(r,{writeConcern:e.writeConcern}).then((()=>{--e.state.outstandingRequests,--d,d||(e.emit("drain",r),n&&n(),l(e))}),(t=>u(e,t))),s=e.chunkSizeBytes,e.pos=0,++e.n}i-=a,a=Math.min(s,i)}return!1}(this,e,n,r)))}async abort(){if(this.state.streamEnd)throw new i.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new i.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=!0,await this.chunks.deleteMany({files_id:this.id})}end(e,t,r){const n="function"==typeof e?void 0:e,o="function"==typeof t?void 0:t;return r="function"==typeof e?e:"function"==typeof t?t:r,this.state.streamEnd||p(this,r)?this:(this.state.streamEnd=!0,r&&this.once(a.FINISH,(e=>{r&&r(void 0,e)})),n?(this.write(n,o,(()=>{h(this)})),this):(d(this,(()=>!!h(this))),this))}}function u(e,t,r){if(!e.state.errored){if(e.state.errored=!0,r)return r(t);e.emit(a.ERROR,t)}}function c(e,t,r){return{_id:new o.ObjectId,files_id:e,n:t,data:r}}function l(e,t){if(e.done)return!0;if(e.state.streamEnd&&0===e.state.outstandingRequests&&!e.state.errored){e.done=!0;const r=function(e,t,r,n,o,i,s){const a={_id:e,length:t,chunkSize:r,uploadDate:new Date,filename:n};return o&&(a.contentType=o),i&&(a.aliases=i),s&&(a.metadata=s),a}(e.id,e.length,e.chunkSizeBytes,e.filename,e.options.contentType,e.options.aliases,e.options.metadata);return!p(e,t)&&(e.files.insertOne(r,{writeConcern:e.writeConcern}).then((()=>{e.emit(a.FINISH,r),e.emit(a.CLOSE)}),(r=>u(e,r,t))),!0)}return!1}function d(e,t){return e.bucket.s.checkedIndexes?t(!1):(e.bucket.once("index",(()=>{t(!0)})),!0)}function h(e,t){if(0===e.pos)return l(e,t);++e.state.outstandingRequests;const r=Buffer.alloc(e.pos);e.bufToStore.copy(r,0,0,e.pos);const n=c(e.id,e.n,r);return!p(e,t)&&(e.chunks.insertOne(n,{writeConcern:e.writeConcern}).then((()=>{--e.state.outstandingRequests,l(e)}),(t=>u(e,t))),!0)}function p(e,t){return!!e.state.aborted&&("function"==typeof t&&t(new i.MongoAPIError("Stream has been aborted")),!0)}a.CLOSE="close",a.ERROR="error",a.FINISH="finish",t.GridFSBucketWriteStream=a},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCursor=t.MongoWriteConcernError=t.MongoUnexpectedServerResponseError=t.MongoTransactionError=t.MongoTopologyClosedError=t.MongoTailableCursorError=t.MongoSystemError=t.MongoServerSelectionError=t.MongoServerError=t.MongoServerClosedError=t.MongoRuntimeError=t.MongoParseError=t.MongoNotConnectedError=t.MongoNetworkTimeoutError=t.MongoNetworkError=t.MongoMissingDependencyError=t.MongoMissingCredentialsError=t.MongoKerberosError=t.MongoInvalidArgumentError=t.MongoGridFSStreamError=t.MongoGridFSChunkError=t.MongoExpiredSessionError=t.MongoError=t.MongoDriverError=t.MongoDecompressionError=t.MongoCursorInUseError=t.MongoCursorExhaustedError=t.MongoCompatibilityError=t.MongoChangeStreamError=t.MongoBatchReExecutionError=t.MongoAzureError=t.MongoAWSError=t.MongoAPIError=t.ChangeStreamCursor=t.MongoBulkWriteError=t.Timestamp=t.ObjectId=t.MinKey=t.MaxKey=t.Long=t.Int32=t.Double=t.Decimal128=t.DBRef=t.Code=t.BSONType=t.BSONSymbol=t.BSONRegExp=t.Binary=t.BSON=void 0,t.ServerClosedEvent=t.ConnectionReadyEvent=t.ConnectionPoolReadyEvent=t.ConnectionPoolMonitoringEvent=t.ConnectionPoolCreatedEvent=t.ConnectionPoolClosedEvent=t.ConnectionPoolClearedEvent=t.ConnectionCreatedEvent=t.ConnectionClosedEvent=t.ConnectionCheckOutStartedEvent=t.ConnectionCheckOutFailedEvent=t.ConnectionCheckedOutEvent=t.ConnectionCheckedInEvent=t.CommandSucceededEvent=t.CommandStartedEvent=t.CommandFailedEvent=t.WriteConcern=t.ReadPreference=t.ReadConcern=t.TopologyType=t.ServerType=t.ReadPreferenceMode=t.ReadConcernLevel=t.ProfilingLevel=t.ReturnDocument=t.ServerApiVersion=t.ExplainVerbosity=t.MongoErrorLabel=t.AutoEncryptionLoggerLevel=t.CURSOR_FLAGS=t.Compressor=t.AuthMechanism=t.GSSAPICanonicalizationValue=t.BatchType=t.UnorderedBulkOperation=t.OrderedBulkOperation=t.MongoClient=t.ListIndexesCursor=t.ListCollectionsCursor=t.GridFSBucketWriteStream=t.GridFSBucketReadStream=t.GridFSBucket=t.FindCursor=t.Db=t.Collection=t.ClientSession=t.ChangeStream=t.CancellationToken=t.AggregationCursor=t.Admin=void 0,t.SrvPollingEvent=t.TopologyOpeningEvent=t.TopologyDescriptionChangedEvent=t.TopologyClosedEvent=t.ServerOpeningEvent=t.ServerHeartbeatSucceededEvent=t.ServerHeartbeatStartedEvent=t.ServerHeartbeatFailedEvent=t.ServerDescriptionChangedEvent=void 0;const n=r(5716);Object.defineProperty(t,"Admin",{enumerable:!0,get:function(){return n.Admin}});const o=r(3868);Object.defineProperty(t,"OrderedBulkOperation",{enumerable:!0,get:function(){return o.OrderedBulkOperation}});const i=r(1625);Object.defineProperty(t,"UnorderedBulkOperation",{enumerable:!0,get:function(){return i.UnorderedBulkOperation}});const s=r(4747);Object.defineProperty(t,"ChangeStream",{enumerable:!0,get:function(){return s.ChangeStream}});const a=r(8971);Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return a.Collection}});const u=r(6829);Object.defineProperty(t,"AbstractCursor",{enumerable:!0,get:function(){return u.AbstractCursor}});const c=r(3490);Object.defineProperty(t,"AggregationCursor",{enumerable:!0,get:function(){return c.AggregationCursor}});const l=r(6331);Object.defineProperty(t,"FindCursor",{enumerable:!0,get:function(){return l.FindCursor}});const d=r(1640);Object.defineProperty(t,"ListCollectionsCursor",{enumerable:!0,get:function(){return d.ListCollectionsCursor}});const h=r(5051);Object.defineProperty(t,"ListIndexesCursor",{enumerable:!0,get:function(){return h.ListIndexesCursor}});const p=r(2644);Object.defineProperty(t,"Db",{enumerable:!0,get:function(){return p.Db}});const f=r(2227);Object.defineProperty(t,"GridFSBucket",{enumerable:!0,get:function(){return f.GridFSBucket}});const m=r(3890);Object.defineProperty(t,"GridFSBucketReadStream",{enumerable:!0,get:function(){return m.GridFSBucketReadStream}});const g=r(7632);Object.defineProperty(t,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return g.GridFSBucketWriteStream}});const y=r(2319);Object.defineProperty(t,"MongoClient",{enumerable:!0,get:function(){return y.MongoClient}});const E=r(334);Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return E.CancellationToken}});const A=r(1296);Object.defineProperty(t,"ClientSession",{enumerable:!0,get:function(){return A.ClientSession}});var v=r(9064);Object.defineProperty(t,"BSON",{enumerable:!0,get:function(){return v.BSON}});var C=r(9064);Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return C.Binary}}),Object.defineProperty(t,"BSONRegExp",{enumerable:!0,get:function(){return C.BSONRegExp}}),Object.defineProperty(t,"BSONSymbol",{enumerable:!0,get:function(){return C.BSONSymbol}}),Object.defineProperty(t,"BSONType",{enumerable:!0,get:function(){return C.BSONType}}),Object.defineProperty(t,"Code",{enumerable:!0,get:function(){return C.Code}}),Object.defineProperty(t,"DBRef",{enumerable:!0,get:function(){return C.DBRef}}),Object.defineProperty(t,"Decimal128",{enumerable:!0,get:function(){return C.Decimal128}}),Object.defineProperty(t,"Double",{enumerable:!0,get:function(){return C.Double}}),Object.defineProperty(t,"Int32",{enumerable:!0,get:function(){return C.Int32}}),Object.defineProperty(t,"Long",{enumerable:!0,get:function(){return C.Long}}),Object.defineProperty(t,"MaxKey",{enumerable:!0,get:function(){return C.MaxKey}}),Object.defineProperty(t,"MinKey",{enumerable:!0,get:function(){return C.MinKey}}),Object.defineProperty(t,"ObjectId",{enumerable:!0,get:function(){return C.ObjectId}}),Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return C.Timestamp}});var b=r(363);Object.defineProperty(t,"MongoBulkWriteError",{enumerable:!0,get:function(){return b.MongoBulkWriteError}});var S=r(2206);Object.defineProperty(t,"ChangeStreamCursor",{enumerable:!0,get:function(){return S.ChangeStreamCursor}});var w=r(4947);Object.defineProperty(t,"MongoAPIError",{enumerable:!0,get:function(){return w.MongoAPIError}}),Object.defineProperty(t,"MongoAWSError",{enumerable:!0,get:function(){return w.MongoAWSError}}),Object.defineProperty(t,"MongoAzureError",{enumerable:!0,get:function(){return w.MongoAzureError}}),Object.defineProperty(t,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return w.MongoBatchReExecutionError}}),Object.defineProperty(t,"MongoChangeStreamError",{enumerable:!0,get:function(){return w.MongoChangeStreamError}}),Object.defineProperty(t,"MongoCompatibilityError",{enumerable:!0,get:function(){return w.MongoCompatibilityError}}),Object.defineProperty(t,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return w.MongoCursorExhaustedError}}),Object.defineProperty(t,"MongoCursorInUseError",{enumerable:!0,get:function(){return w.MongoCursorInUseError}}),Object.defineProperty(t,"MongoDecompressionError",{enumerable:!0,get:function(){return w.MongoDecompressionError}}),Object.defineProperty(t,"MongoDriverError",{enumerable:!0,get:function(){return w.MongoDriverError}}),Object.defineProperty(t,"MongoError",{enumerable:!0,get:function(){return w.MongoError}}),Object.defineProperty(t,"MongoExpiredSessionError",{enumerable:!0,get:function(){return w.MongoExpiredSessionError}}),Object.defineProperty(t,"MongoGridFSChunkError",{enumerable:!0,get:function(){return w.MongoGridFSChunkError}}),Object.defineProperty(t,"MongoGridFSStreamError",{enumerable:!0,get:function(){return w.MongoGridFSStreamError}}),Object.defineProperty(t,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return w.MongoInvalidArgumentError}}),Object.defineProperty(t,"MongoKerberosError",{enumerable:!0,get:function(){return w.MongoKerberosError}}),Object.defineProperty(t,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return w.MongoMissingCredentialsError}}),Object.defineProperty(t,"MongoMissingDependencyError",{enumerable:!0,get:function(){return w.MongoMissingDependencyError}}),Object.defineProperty(t,"MongoNetworkError",{enumerable:!0,get:function(){return w.MongoNetworkError}}),Object.defineProperty(t,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return w.MongoNetworkTimeoutError}}),Object.defineProperty(t,"MongoNotConnectedError",{enumerable:!0,get:function(){return w.MongoNotConnectedError}}),Object.defineProperty(t,"MongoParseError",{enumerable:!0,get:function(){return w.MongoParseError}}),Object.defineProperty(t,"MongoRuntimeError",{enumerable:!0,get:function(){return w.MongoRuntimeError}}),Object.defineProperty(t,"MongoServerClosedError",{enumerable:!0,get:function(){return w.MongoServerClosedError}}),Object.defineProperty(t,"MongoServerError",{enumerable:!0,get:function(){return w.MongoServerError}}),Object.defineProperty(t,"MongoServerSelectionError",{enumerable:!0,get:function(){return w.MongoServerSelectionError}}),Object.defineProperty(t,"MongoSystemError",{enumerable:!0,get:function(){return w.MongoSystemError}}),Object.defineProperty(t,"MongoTailableCursorError",{enumerable:!0,get:function(){return w.MongoTailableCursorError}}),Object.defineProperty(t,"MongoTopologyClosedError",{enumerable:!0,get:function(){return w.MongoTopologyClosedError}}),Object.defineProperty(t,"MongoTransactionError",{enumerable:!0,get:function(){return w.MongoTransactionError}}),Object.defineProperty(t,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return w.MongoUnexpectedServerResponseError}}),Object.defineProperty(t,"MongoWriteConcernError",{enumerable:!0,get:function(){return w.MongoWriteConcernError}});var O=r(363);Object.defineProperty(t,"BatchType",{enumerable:!0,get:function(){return O.BatchType}});var x=r(2403);Object.defineProperty(t,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return x.GSSAPICanonicalizationValue}});var _=r(4511);Object.defineProperty(t,"AuthMechanism",{enumerable:!0,get:function(){return _.AuthMechanism}});var D=r(942);Object.defineProperty(t,"Compressor",{enumerable:!0,get:function(){return D.Compressor}});var T=r(6829);Object.defineProperty(t,"CURSOR_FLAGS",{enumerable:!0,get:function(){return T.CURSOR_FLAGS}});var I=r(8808);Object.defineProperty(t,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return I.AutoEncryptionLoggerLevel}});var B=r(4947);Object.defineProperty(t,"MongoErrorLabel",{enumerable:!0,get:function(){return B.MongoErrorLabel}});var R=r(223);Object.defineProperty(t,"ExplainVerbosity",{enumerable:!0,get:function(){return R.ExplainVerbosity}});var F=r(2319);Object.defineProperty(t,"ServerApiVersion",{enumerable:!0,get:function(){return F.ServerApiVersion}});var k=r(8448);Object.defineProperty(t,"ReturnDocument",{enumerable:!0,get:function(){return k.ReturnDocument}});var P=r(4671);Object.defineProperty(t,"ProfilingLevel",{enumerable:!0,get:function(){return P.ProfilingLevel}});var N=r(3389);Object.defineProperty(t,"ReadConcernLevel",{enumerable:!0,get:function(){return N.ReadConcernLevel}});var M=r(1228);Object.defineProperty(t,"ReadPreferenceMode",{enumerable:!0,get:function(){return M.ReadPreferenceMode}});var L=r(5896);Object.defineProperty(t,"ServerType",{enumerable:!0,get:function(){return L.ServerType}}),Object.defineProperty(t,"TopologyType",{enumerable:!0,get:function(){return L.TopologyType}});var j=r(3389);Object.defineProperty(t,"ReadConcern",{enumerable:!0,get:function(){return j.ReadConcern}});var U=r(1228);Object.defineProperty(t,"ReadPreference",{enumerable:!0,get:function(){return U.ReadPreference}});var $=r(4620);Object.defineProperty(t,"WriteConcern",{enumerable:!0,get:function(){return $.WriteConcern}});var V=r(2457);Object.defineProperty(t,"CommandFailedEvent",{enumerable:!0,get:function(){return V.CommandFailedEvent}}),Object.defineProperty(t,"CommandStartedEvent",{enumerable:!0,get:function(){return V.CommandStartedEvent}}),Object.defineProperty(t,"CommandSucceededEvent",{enumerable:!0,get:function(){return V.CommandSucceededEvent}});var z=r(1654);Object.defineProperty(t,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return z.ConnectionCheckedInEvent}}),Object.defineProperty(t,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return z.ConnectionCheckedOutEvent}}),Object.defineProperty(t,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return z.ConnectionCheckOutFailedEvent}}),Object.defineProperty(t,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return z.ConnectionCheckOutStartedEvent}}),Object.defineProperty(t,"ConnectionClosedEvent",{enumerable:!0,get:function(){return z.ConnectionClosedEvent}}),Object.defineProperty(t,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return z.ConnectionCreatedEvent}}),Object.defineProperty(t,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return z.ConnectionPoolClearedEvent}}),Object.defineProperty(t,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return z.ConnectionPoolClosedEvent}}),Object.defineProperty(t,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return z.ConnectionPoolCreatedEvent}}),Object.defineProperty(t,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return z.ConnectionPoolMonitoringEvent}}),Object.defineProperty(t,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return z.ConnectionPoolReadyEvent}}),Object.defineProperty(t,"ConnectionReadyEvent",{enumerable:!0,get:function(){return z.ConnectionReadyEvent}});var W=r(8214);Object.defineProperty(t,"ServerClosedEvent",{enumerable:!0,get:function(){return W.ServerClosedEvent}}),Object.defineProperty(t,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return W.ServerDescriptionChangedEvent}}),Object.defineProperty(t,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return W.ServerHeartbeatFailedEvent}}),Object.defineProperty(t,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return W.ServerHeartbeatStartedEvent}}),Object.defineProperty(t,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return W.ServerHeartbeatSucceededEvent}}),Object.defineProperty(t,"ServerOpeningEvent",{enumerable:!0,get:function(){return W.ServerOpeningEvent}}),Object.defineProperty(t,"TopologyClosedEvent",{enumerable:!0,get:function(){return W.TopologyClosedEvent}}),Object.defineProperty(t,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return W.TopologyDescriptionChangedEvent}}),Object.defineProperty(t,"TopologyOpeningEvent",{enumerable:!0,get:function(){return W.TopologyOpeningEvent}});var H=r(8709);Object.defineProperty(t,"SrvPollingEvent",{enumerable:!0,get:function(){return H.SrvPollingEvent}})},2319:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoClient=t.ServerApiVersion=void 0;const n=r(3849),o=r(9064),i=r(4747),s=r(4064),a=r(4511),u=r(2395),c=r(5006),l=r(2644),d=r(4947),h=r(9925),p=r(334),f=r(1228),m=r(114),g=r(9281),y=r(1296),E=r(2229);t.ServerApiVersion=Object.freeze({v1:"1"});const A=Symbol("options");class v extends p.TypedEventEmitter{constructor(e,t){super(),this[A]=(0,u.parseOptions)(e,this,t),this.mongoLogger=new h.MongoLogger(this[A].mongoLoggerOptions);const r=this;this.s={url:e,bsonOptions:(0,o.resolveBSONOptions)(this[A]),namespace:(0,E.ns)("admin"),hasBeenClosed:!1,sessionPool:new y.ServerSessionPool(this),activeSessions:new Set,get options(){return r[A]},get readConcern(){return r[A].readConcern},get writeConcern(){return r[A].writeConcern},get readPreference(){return r[A].readPreference},get isMongoClient(){return!0}}}get options(){return Object.freeze({...this[A]})}get serverApi(){return this[A].serverApi&&Object.freeze({...this[A].serverApi})}get monitorCommands(){return this[A].monitorCommands}set monitorCommands(e){this[A].monitorCommands=e}get autoEncrypter(){return this[A].autoEncrypter}get readConcern(){return this.s.readConcern}get writeConcern(){return this.s.writeConcern}get readPreference(){return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}async connect(){if(this.connectionLock)return this.connectionLock;try{this.connectionLock=this._connect(),await this.connectionLock}finally{this.connectionLock=void 0}return this}async _connect(){if(this.topology&&this.topology.isConnected())return this;const e=this[A];if("string"==typeof e.srvHost){const t=await(0,u.resolveSRVRecord)(e);for(const[r,n]of t.entries())e.hosts[r]=n}if(e.credentials?.mechanism===a.AuthMechanism.MONGODB_OIDC){const t=e.credentials?.mechanismProperties?.ALLOWED_HOSTS||s.DEFAULT_ALLOWED_HOSTS;if(!e.credentials?.mechanismProperties?.PROVIDER_NAME)for(const r of e.hosts)if(!(0,E.hostMatchesWildcards)(r.toHostPort().host,t))throw new d.MongoInvalidArgumentError(`Host '${r}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${t.join(",")}'`)}this.topology=new g.Topology(this,e.hosts,e),this.topology.once(g.Topology.OPEN,(()=>this.emit("open",this)));for(const e of c.MONGO_CLIENT_EVENTS)this.topology.on(e,((...t)=>this.emit(e,...t)));const t=async()=>{try{await(0,n.promisify)((t=>this.topology?.connect(e,t)))()}catch(e){throw this.topology?.close({force:!0}),e}};if(this.autoEncrypter){const r=(0,n.promisify)((e=>this.autoEncrypter?.init(e)));await r(),await t(),await e.encrypter.connectInternalClient()}else await t();return this}async close(e=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const t=Array.from(this.s.activeSessions,(e=>e.endSession()));if(this.s.activeSessions.clear(),await Promise.all(t),null==this.topology)return;const r=(0,m.readPreferenceServerSelector)(f.ReadPreference.primaryPreferred),n=this.topology.description,o=Array.from(n.servers.values());if(0!==r(n,o).length){const e=Array.from(this.s.sessionPool.sessions,(({id:e})=>e));0!==e.length&&await this.db("admin").command({endSessions:e},{readPreference:f.ReadPreference.primaryPreferred,noResponse:!0}).catch((()=>null))}const i=this.topology;this.topology=void 0,await new Promise(((t,r)=>{i.close({force:e},(n=>{if(n)return r(n);const{encrypter:o}=this[A];if(o)return o.close(this,e,(e=>{if(e)return r(e);t()}));t()}))}))}db(e,t){t=t??{},e||(e=this.options.dbName);const r=Object.assign({},this[A],t);return new l.Db(this,e,r)}static async connect(e,t){return new this(e,t).connect()}startSession(e){const t=new y.ClientSession(this,this.s.sessionPool,{explicit:!0,...e},this[A]);return this.s.activeSessions.add(t),t.once("ended",(()=>{this.s.activeSessions.delete(t)})),t}async withSession(e,t){const r={owner:Symbol(),..."object"==typeof e?e:{}},n="function"==typeof e?e:t;if(null==n)throw new d.MongoInvalidArgumentError("Missing required callback parameter");const o=this.startSession(r);try{await n(o)}finally{try{await o.endSession()}catch{}}}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new i.ChangeStream(this,e,(0,E.resolveOptions)(this,t))}}t.MongoClient=v},9925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoLogger=t.stringifyWithMaxLen=t.createStdioLogger=t.MongoLoggableComponent=t.SEVERITY_LEVEL_MAP=t.DEFAULT_MAX_DOCUMENT_LENGTH=t.SeverityLevel=void 0;const n=r(345),o=r(3849),i=r(5006),s=r(2229);t.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"}),t.DEFAULT_MAX_DOCUMENT_LENGTH=1e3;class a extends Map{constructor(e){const t=[];for(const[r,n]of e)t.push([n,r]);t.push(...e),super(t)}getNumericSeverityLevel(e){return this.get(e)}getSeverityLevelName(e){return this.get(e)}}function u(e){const r=Object.values(t.SeverityLevel),n=e?.toLowerCase();return null!=n&&r.includes(n)?n:null}function c(e){return{write:t=>{e.write((0,o.inspect)(t,{compact:!0,breakLength:1/0}),"utf-8")}}}function l({MONGODB_LOG_PATH:e},{mongodbLogPath:t}){return"string"==typeof t&&/^stderr$/i.test(t)?c(process.stderr):"string"==typeof t&&/^stdout$/i.test(t)?c(process.stdout):"object"==typeof t&&"function"==typeof t?.write?t:e&&/^stderr$/i.test(e)?c(process.stderr):e&&/^stdout$/i.test(e)?c(process.stdout):c(process.stderr)}function d(e,t){const r=n.EJSON.stringify(e);return 0!==t&&r.length>t?`${r.slice(0,t)}...`:r}function h(e,t){e.commandName=t.commandName,e.requestId=t.requestId,e.driverConnectionId=t?.connectionId;const{host:r,port:n}=s.HostAddress.fromString(t.address).toHostPort();return e.serverHost=r,e.serverPort=n,t?.serviceId&&(e.serviceId=t.serviceId.toHexString()),e}function p(e,t){const{host:r,port:n}=s.HostAddress.fromString(t.address).toHostPort();return e.serverHost=r,e.serverPort=n,e}function f(e,r=t.DEFAULT_MAX_DOCUMENT_LENGTH){let n=Object.create(null);switch(e.name){case i.COMMAND_STARTED:return n=h(n,e),n.message="Command started",n.command=d(e.command,r),n.databaseName=e.databaseName,n;case i.COMMAND_SUCCEEDED:return n=h(n,e),n.message="Command succeeded",n.durationMS=e.duration,n.reply=d(e.reply,r),n;case i.COMMAND_FAILED:return n=h(n,e),n.message="Command failed",n.durationMS=e.duration,n.failure=e.failure,n;case i.CONNECTION_POOL_CREATED:if(n=p(n,e),n.message="Connection pool created",e.options){const{maxIdleTimeMS:t,minPoolSize:r,maxPoolSize:o,maxConnecting:i,waitQueueTimeoutMS:s}=e.options;n={...n,maxIdleTimeMS:t,minPoolSize:r,maxPoolSize:o,maxConnecting:i,waitQueueTimeoutMS:s}}return n;case i.CONNECTION_POOL_READY:return n=p(n,e),n.message="Connection pool ready",n;case i.CONNECTION_POOL_CLEARED:return n=p(n,e),n.message="Connection pool cleared","ObjectId"===e.serviceId?._bsontype&&(n.serviceId=e.serviceId.toHexString()),n;case i.CONNECTION_POOL_CLOSED:return n=p(n,e),n.message="Connection pool closed",n;case i.CONNECTION_CREATED:return n=p(n,e),n.message="Connection created",n.driverConnectionId=e.connectionId,n;case i.CONNECTION_READY:return n=p(n,e),n.message="Connection ready",n.driverConnectionId=e.connectionId,n;case i.CONNECTION_CLOSED:switch(n=p(n,e),n.message="Connection closed",n.driverConnectionId=e.connectionId,e.reason){case"stale":n.reason="Connection became stale because the pool was cleared";break;case"idle":n.reason="Connection has been available but unused for longer than the configured max idle time";break;case"error":n.reason="An error occurred while using the connection",e.error&&(n.error=e.error);break;case"poolClosed":n.reason="Connection pool was closed";break;default:n.reason=`Unknown close reason: ${e.reason}`}return n;case i.CONNECTION_CHECK_OUT_STARTED:return n=p(n,e),n.message="Connection checkout started",n;case i.CONNECTION_CHECK_OUT_FAILED:switch(n=p(n,e),n.message="Connection checkout failed",e.reason){case"poolClosed":n.reason="Connection pool was closed";break;case"timeout":n.reason="Wait queue timeout elapsed without a connection becoming available";break;case"connectionError":n.reason="An error occurred while trying to establish a new connection",e.error&&(n.error=e.error);break;default:n.reason=`Unknown close reason: ${e.reason}`}return n;case i.CONNECTION_CHECKED_OUT:return n=p(n,e),n.message="Connection checked out",n.driverConnectionId=e.connectionId,n;case i.CONNECTION_CHECKED_IN:return n=p(n,e),n.message="Connection checked in",n.driverConnectionId=e.connectionId,n;default:for(const[t,r]of Object.entries(e))null!=r&&(n[t]=r)}return n}t.SEVERITY_LEVEL_MAP=new a([[t.SeverityLevel.OFF,-1/0],[t.SeverityLevel.EMERGENCY,0],[t.SeverityLevel.ALERT,1],[t.SeverityLevel.CRITICAL,2],[t.SeverityLevel.ERROR,3],[t.SeverityLevel.WARNING,4],[t.SeverityLevel.NOTICE,5],[t.SeverityLevel.INFORMATIONAL,6],[t.SeverityLevel.DEBUG,7],[t.SeverityLevel.TRACE,8]]),t.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection"}),t.createStdioLogger=c,t.stringifyWithMaxLen=d,t.MongoLogger=class{constructor(e){this.error=this.log.bind(this,"error"),this.warn=this.log.bind(this,"warn"),this.info=this.log.bind(this,"info"),this.debug=this.log.bind(this,"debug"),this.trace=this.log.bind(this,"trace"),this.componentSeverities=e.componentSeverities,this.maxDocumentLength=e.maxDocumentLength,this.logDestination=e.logDestination}log(e,r,n){if(function(e,r){const n=t.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(e),o=t.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(r);return n<o?-1:n>o?1:0}(e,this.componentSeverities[r])>0)return;let o={t:new Date,c:r,s:e};"string"==typeof n?o.message=n:"object"==typeof n&&(o=function(e){const t=e;return void 0!==t.toLog&&"function"==typeof t.toLog}(n)?{...o,...n.toLog()}:{...o,...f(n,this.maxDocumentLength)}),this.logDestination.write(o)}static resolveOptions(e,r){const n={...e,...r,mongodbLogPath:l(e,r)},o=u(n.MONGODB_LOG_ALL)??t.SeverityLevel.OFF;return{componentSeverities:{command:u(n.MONGODB_LOG_COMMAND)??o,topology:u(n.MONGODB_LOG_TOPOLOGY)??o,serverSelection:u(n.MONGODB_LOG_SERVER_SELECTION)??o,connection:u(n.MONGODB_LOG_CONNECTION)??o,default:o},maxDocumentLength:(0,s.parseUnsignedInteger)(n.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1e3,logDestination:n.mongodbLogPath}}}},334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationToken=t.TypedEventEmitter=void 0;const n=r(2361);class o extends n.EventEmitter{emitAndLog(e,...t){this.emit(e,...t),this.component&&this.mongoLogger?.debug(this.component,t[0])}}t.TypedEventEmitter=o,t.CancellationToken=class extends o{}},3186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddUserOperation=void 0;const n=r(6113),o=r(4947),i=r(2229),s=r(8945),a=r(5172);class u extends s.CommandOperation{constructor(e,t,r,n){super(e,n),this.db=e,this.username=t,this.password=r,this.options=n??{}}executeCallback(e,t,r){const s=this.db,a=this.username,u=this.password,c=this.options;if("digestPassword"in c&&null!=c.digestPassword)return r(new o.MongoInvalidArgumentError('Option "digestPassword" not supported via addUser, use db.command(...) instead'));let l,d;!c.roles||Array.isArray(c.roles)&&0===c.roles.length?((0,i.emitWarningOnce)('Creating a user without roles is deprecated. Defaults to "root" if db is "admin" or "dbOwner" otherwise'),l="admin"===s.databaseName.toLowerCase()?["root"]:["dbOwner"]):l=Array.isArray(c.roles)?c.roles:[c.roles];try{d=(0,i.getTopology)(s)}catch(e){return r(e)}const h=d.lastHello().maxWireVersion>=7;let p=u;if(!h){const e=n.createHash("md5");e.update(`${a}:mongo:${u}`),p=e.digest("hex")}const f={createUser:a,customData:c.customData||{},roles:l,digestPassword:h};"string"==typeof u&&(f.pwd=p),super.executeCommand(e,t,f,r)}}t.AddUserOperation=u,(0,a.defineAspects)(u,[a.Aspect.WRITE_OPERATION])},4213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateOperation=t.DB_AGGREGATE_COLLECTION=void 0;const n=r(4947),o=r(2229),i=r(4620),s=r(8945),a=r(5172);t.DB_AGGREGATE_COLLECTION=1;class u extends s.CommandOperation{constructor(e,r,o){if(super(void 0,{...o,dbName:e.db}),this.options={...o},this.target=e.collection||t.DB_AGGREGATE_COLLECTION,this.pipeline=r,this.hasWriteStage=!1,"string"==typeof o?.out)this.pipeline=this.pipeline.concat({$out:o.out}),this.hasWriteStage=!0;else if(r.length>0){const e=r[r.length-1];(e.$out||e.$merge)&&(this.hasWriteStage=!0)}if(this.hasWriteStage?this.trySecondaryWrite=!0:delete this.options.writeConcern,this.explain&&this.writeConcern)throw new n.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if(null!=o?.cursor&&"object"!=typeof o.cursor)throw new n.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(e){this.pipeline.push(e)}executeCallback(e,t,r){const n=this.options,s=(0,o.maxWireVersion)(e),a={aggregate:this.target,pipeline:this.pipeline};this.hasWriteStage&&s<8&&(this.readConcern=void 0),this.hasWriteStage&&this.writeConcern&&i.WriteConcern.apply(a,this.writeConcern),!0===n.bypassDocumentValidation&&(a.bypassDocumentValidation=n.bypassDocumentValidation),"boolean"==typeof n.allowDiskUse&&(a.allowDiskUse=n.allowDiskUse),n.hint&&(a.hint=n.hint),n.let&&(a.let=n.let),void 0!==n.comment&&(a.comment=n.comment),a.cursor=n.cursor||{},n.batchSize&&!this.hasWriteStage&&(a.cursor.batchSize=n.batchSize),super.executeCommand(e,t,a,r)}}t.AggregateOperation=u,(0,a.defineAspects)(u,[a.Aspect.READ_OPERATION,a.Aspect.RETRYABLE,a.Aspect.EXPLAINABLE,a.Aspect.CURSOR_CREATING])},6192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BulkWriteOperation=void 0;const n=r(5172);class o extends n.AbstractCallbackOperation{constructor(e,t,r){super(r),this.options=r,this.collection=e,this.operations=t}executeCallback(e,t,r){const n=this.collection,o=this.operations,i={...this.options,...this.bsonOptions,readPreference:this.readPreference},s=!1===i.ordered?n.initializeUnorderedBulkOp(i):n.initializeOrderedBulkOp(i);try{for(let e=0;e<o.length;e++)s.raw(o[e])}catch(e){return r(e)}s.execute({...i,session:t}).then((e=>r(void 0,e)),(e=>r(e)))}}t.BulkWriteOperation=o,(0,n.defineAspects)(o,[n.Aspect.WRITE_OPERATION])},4916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionsOperation=void 0;const n=r(8971),o=r(5172);class i extends o.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t,this.db=e}executeCallback(e,t,r){this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:t}).toArray().then((e=>{const t=[];for(const{name:r}of e)r.includes("$")||t.push(new n.Collection(this.db,r,this.db.s.options));r(void 0,t)}),(e=>r(e)))}}t.CollectionsOperation=i},8945:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandOperation=void 0;const n=r(4947),o=r(223),i=r(3389),s=r(114),a=r(2229),u=r(4620),c=r(5172);class l extends c.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t??{};const r=t?.dbName||t?.authdb;if(this.ns=r?new a.MongoDBNamespace(r,"$cmd"):e?e.s.namespace.withCollection("$cmd"):new a.MongoDBNamespace("admin","$cmd"),this.readConcern=i.ReadConcern.fromOptions(t),this.writeConcern=u.WriteConcern.fromOptions(t),this.hasAspect(c.Aspect.EXPLAINABLE))this.explain=o.Explain.fromOptions(t);else if(null!=t?.explain)throw new n.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){return!this.hasAspect(c.Aspect.EXPLAINABLE)||null==this.explain}executeCommand(e,t,r,n){this.server=e;const o={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:t},i=(0,a.maxWireVersion)(e),l=this.session&&this.session.inTransaction();this.readConcern&&(0,a.commandSupportsReadConcern)(r)&&!l&&Object.assign(r,{readConcern:this.readConcern}),this.trySecondaryWrite&&i<s.MIN_SECONDARY_WRITE_WIRE_VERSION&&(o.omitReadPreference=!0),this.writeConcern&&this.hasAspect(c.Aspect.WRITE_OPERATION)&&!l&&u.WriteConcern.apply(r,this.writeConcern),o.collation&&"object"==typeof o.collation&&!this.hasAspect(c.Aspect.SKIP_COLLATION)&&Object.assign(r,{collation:o.collation}),"number"==typeof o.maxTimeMS&&(r.maxTimeMS=o.maxTimeMS),this.hasAspect(c.Aspect.EXPLAINABLE)&&this.explain&&(r=(0,a.decorateWithExplain)(r,this.explain)),e.command(this.ns,r,o,n)}}t.CommandOperation=l},8741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareDocs=t.indexInformation=void 0;const n=r(4947),o=r(2229);t.indexInformation=function(e,t,r,i){let s=r,a=i;"function"==typeof r&&(a=r,s={});const u=null!=s.full&&s.full;let c;try{c=(0,o.getTopology)(e)}catch(e){return a(e)}if(c.isDestroyed())return a(new n.MongoTopologyClosedError);e.collection(t).listIndexes(s).toArray().then((e=>Array.isArray(e)?u?a(void 0,e):void a(void 0,function(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[n.name]=[];for(const e in n.key)t[n.name].push([e,n.key[e]])}return t}(e)):a(void 0,[])),(e=>a(e)))},t.prepareDocs=function(e,t,r){return!0===("boolean"==typeof r.forceServerObjectId?r.forceServerObjectId:e.s.db.options?.forceServerObjectId)?t:t.map((t=>(null==t._id&&(t._id=e.s.pkFactory.createPk()),t)))}},2566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountOperation=void 0;const n=r(8945),o=r(5172);class i extends n.CommandOperation{constructor(e,t,r){super({s:{namespace:e}},r),this.options=r,this.collectionName=e.collection,this.query=t}executeCallback(e,t,r){const n=this.options,o={count:this.collectionName,query:this.query};"number"==typeof n.limit&&(o.limit=n.limit),"number"==typeof n.skip&&(o.skip=n.skip),null!=n.hint&&(o.hint=n.hint),"number"==typeof n.maxTimeMS&&(o.maxTimeMS=n.maxTimeMS),super.executeCommand(e,t,o,((e,t)=>{r(e,t?t.n:0)}))}}t.CountOperation=i,(0,o.defineAspects)(i,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE])},7643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountDocumentsOperation=void 0;const n=r(4213);class o extends n.AggregateOperation{constructor(e,t,r){const n=[];n.push({$match:t}),"number"==typeof r.skip&&n.push({$skip:r.skip}),"number"==typeof r.limit&&n.push({$limit:r.limit}),n.push({$group:{_id:1,n:{$sum:1}}}),super(e.s.namespace,n,r)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>{if(e||!t)return void r(e);const n=t;if(null==n.cursor||null==n.cursor.firstBatch)return void r(void 0,0);const o=n.cursor.firstBatch;r(void 0,o.length?o[0].n:0)}))}}t.CountDocumentsOperation=o},7711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateCollectionOperation=void 0;const n=r(3496),o=r(8971),i=r(4947),s=r(8945),a=r(2139),u=r(5172),c=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]);class l extends s.CommandOperation{constructor(e,t,r={}){super(e,r),this.options=r,this.db=e,this.name=t}executeCallback(e,t,r){(async()=>{const r=this.db,o=this.name,s=this.options,u=s.encryptedFields??r.client.options.autoEncryption?.encryptedFieldsMap?.[`${r.databaseName}.${o}`];if(u){if(!e.loadBalanced&&e.description.maxWireVersion<n.MIN_SUPPORTED_QE_WIRE_VERSION)throw new i.MongoCompatibilityError(`Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption. The minimum server version required is ${n.MIN_SUPPORTED_QE_SERVER_VERSION}`);const a=u.escCollection??`enxcol_.${o}.esc`,c=u.ecocCollection??`enxcol_.${o}.ecoc`;for(const n of[a,c]){const o=new l(r,n,{clusteredIndex:{key:{_id:1},unique:!0}});await o.executeWithoutEncryptedFieldsCheck(e,t)}s.encryptedFields||(this.options={...this.options,encryptedFields:u})}const c=await this.executeWithoutEncryptedFieldsCheck(e,t);if(u){const n=new a.CreateIndexOperation(r,o,{__safeContent__:1},{});await n.execute(e,t)}return c})().then((e=>r(void 0,e)),(e=>r(e)))}executeWithoutEncryptedFieldsCheck(e,t){return new Promise(((r,n)=>{const i=this.db,s=this.name,a=this.options,u={create:s};for(const e in a)null==a[e]||"function"==typeof a[e]||c.has(e)||(u[e]=a[e]);super.executeCommand(e,t,u,(e=>{if(e)return n(e);r(new o.Collection(i,s,a))}))}))}}t.CreateCollectionOperation=l,(0,u.defineAspects)(l,[u.Aspect.WRITE_OPERATION])},7237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeDeleteStatement=t.DeleteManyOperation=t.DeleteOneOperation=t.DeleteOperation=void 0;const n=r(4947),o=r(8945),i=r(5172);class s extends o.CommandOperation{constructor(e,t,r){super(void 0,r),this.options=r,this.ns=e,this.statements=t}get canRetryWrite(){return!1!==super.canRetryWrite&&this.statements.every((e=>null==e.limit||e.limit>0))}executeCallback(e,t,r){const o=this.options??{},i="boolean"!=typeof o.ordered||o.ordered,s={delete:this.ns.collection,deletes:this.statements,ordered:i};o.let&&(s.let=o.let),void 0!==o.comment&&(s.comment=o.comment),this.writeConcern&&0===this.writeConcern.w&&this.statements.find((e=>e.hint))?r(new n.MongoCompatibilityError("hint is not supported with unacknowledged writes")):super.executeCommand(e,t,s,r)}}t.DeleteOperation=s;class a extends s{constructor(e,t,r){super(e.s.namespace,[c(t,{...r,limit:1})],r)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||null==t?r(e):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):this.explain?r(void 0,t):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,deletedCount:t.n})))}}t.DeleteOneOperation=a;class u extends s{constructor(e,t,r){super(e.s.namespace,[c(t,r)],r)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||null==t?r(e):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):this.explain?r(void 0,t):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,deletedCount:t.n})))}}function c(e,t){const r={q:e,limit:"number"==typeof t.limit?t.limit:0};return t.collation&&(r.collation=t.collation),t.hint&&(r.hint=t.hint),r}t.DeleteManyOperation=u,t.makeDeleteStatement=c,(0,i.defineAspects)(s,[i.Aspect.RETRYABLE,i.Aspect.WRITE_OPERATION]),(0,i.defineAspects)(a,[i.Aspect.RETRYABLE,i.Aspect.WRITE_OPERATION,i.Aspect.EXPLAINABLE,i.Aspect.SKIP_COLLATION]),(0,i.defineAspects)(u,[i.Aspect.WRITE_OPERATION,i.Aspect.EXPLAINABLE,i.Aspect.SKIP_COLLATION])},9579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DistinctOperation=void 0;const n=r(2229),o=r(8945),i=r(5172);class s extends o.CommandOperation{constructor(e,t,r,n){super(e,n),this.options=n??{},this.collection=e,this.key=t,this.query=r}executeCallback(e,t,r){const o=this.collection,i=this.key,s=this.query,a=this.options,u={distinct:o.collectionName,key:i,query:s};"number"==typeof a.maxTimeMS&&(u.maxTimeMS=a.maxTimeMS),void 0!==a.comment&&(u.comment=a.comment),(0,n.decorateWithReadConcern)(u,o,a);try{(0,n.decorateWithCollation)(u,o,a)}catch(e){return r(e)}super.executeCommand(e,t,u,((e,t)=>{e?r(e):r(void 0,this.explain?t:t.values)}))}}t.DistinctOperation=s,(0,i.defineAspects)(s,[i.Aspect.READ_OPERATION,i.Aspect.RETRYABLE,i.Aspect.EXPLAINABLE])},3226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropDatabaseOperation=t.DropCollectionOperation=void 0;const n=r(4947),o=r(8945),i=r(5172);class s extends o.CommandOperation{constructor(e,t,r={}){super(e,r),this.db=e,this.options=r,this.name=t}executeCallback(e,t,r){(async()=>{const r=this.db,o=this.options,i=this.name,a=r.client.options.autoEncryption?.encryptedFieldsMap;let u=o.encryptedFields??a?.[`${r.databaseName}.${i}`];if(!u&&a){const e=await r.listCollections({name:i},{nameOnly:!1}).toArray();u=e?.[0]?.options?.encryptedFields}if(u){const o=u.escCollection||`enxcol_.${i}.esc`,a=u.ecocCollection||`enxcol_.${i}.ecoc`;for(const i of[o,a]){const o=new s(r,i);try{await o.executeWithoutEncryptedFieldsCheck(e,t)}catch(e){if(!(e instanceof n.MongoServerError)||e.code!==n.MONGODB_ERROR_CODES.NamespaceNotFound)throw e}}}return this.executeWithoutEncryptedFieldsCheck(e,t)})().then((e=>r(void 0,e)),(e=>r(e)))}executeWithoutEncryptedFieldsCheck(e,t){return new Promise(((r,n)=>{super.executeCommand(e,t,{drop:this.name},((e,t)=>{if(e)return n(e);r(!!t.ok)}))}))}}t.DropCollectionOperation=s;class a extends o.CommandOperation{constructor(e,t){super(e,t),this.options=t}executeCallback(e,t,r){super.executeCommand(e,t,{dropDatabase:1},((e,t)=>e?r(e):t.ok?r(void 0,!0):void r(void 0,!1)))}}t.DropDatabaseOperation=a,(0,i.defineAspects)(s,[i.Aspect.WRITE_OPERATION]),(0,i.defineAspects)(a,[i.Aspect.WRITE_OPERATION])},3345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimatedDocumentCountOperation=void 0;const n=r(8945),o=r(5172);class i extends n.CommandOperation{constructor(e,t={}){super(e,t),this.options=t,this.collectionName=e.collectionName}executeCallback(e,t,r){const n={count:this.collectionName};"number"==typeof this.options.maxTimeMS&&(n.maxTimeMS=this.options.maxTimeMS),void 0!==this.options.comment&&(n.comment=this.options.comment),super.executeCommand(e,t,n,((e,t)=>{e?r(e):r(void 0,t?.n||0)}))}}t.EstimatedDocumentCountOperation=i,(0,o.defineAspects)(i,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE,o.Aspect.CURSOR_CREATING])},7445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeOperation=void 0;const n=r(4947),o=r(1228),i=r(114),s=r(2229),a=r(5172),u=n.MONGODB_ERROR_CODES.IllegalOperation,c="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";t.executeOperation=function(e,t,r){return(0,s.maybeCallback)((()=>async function(e,t){if(!(t instanceof a.AbstractCallbackOperation))throw new n.MongoRuntimeError("This method requires a valid operation instance");if(null==e.topology){if(e.s.hasBeenClosed)throw new n.MongoNotConnectedError("Client must be connected before running operations");e.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await e.connect()}finally{delete e.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:r}=e;if(null==r)throw new n.MongoRuntimeError("client.connect did not create a topology but also did not throw");let l,d=t.session;if(null==d)l=Symbol(),d=e.startSession({owner:l,explicit:!1});else{if(d.hasEnded)throw new n.MongoExpiredSessionError("Use of expired sessions is not permitted");if(d.snapshotEnabled&&!r.capabilities.supportsSnapshotReads)throw new n.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later")}const h=t.readPreference??o.ReadPreference.primary,p=!!d?.inTransaction();if(p&&!h.equals(o.ReadPreference.primary))throw new n.MongoTransactionError(`Read preference in a transaction must be primary, not: ${h.mode}`);let f;d?.isPinned&&d.transaction.isCommitted&&!t.bypassPinningCheck&&d.unpin(),f=t.hasAspect(a.Aspect.MUST_SELECT_SAME_SERVER)?(0,i.sameServerSelector)(t.server?.description):t.trySecondaryWrite?(0,i.secondaryWritableServerSelector)(r.commonWireVersion,h):h;const m=await r.selectServerAsync(f,{session:d});if(null==d)return t.execute(m,void 0);if(!t.hasAspect(a.Aspect.RETRYABLE))try{return await t.execute(m,d)}finally{null!=d?.owner&&d.owner===l&&await d.endSession().catch((()=>null))}const g=r.s.options.retryReads&&!p&&t.canRetryRead,y=r.s.options.retryWrites&&!p&&(0,s.supportsRetryableWrites)(m)&&t.canRetryWrite,E=t.hasAspect(a.Aspect.READ_OPERATION),A=t.hasAspect(a.Aspect.WRITE_OPERATION),v=E&&g||A&&y;A&&y&&(t.options.willRetryWrite=!0,d.incrementTransactionNumber());try{return await t.execute(m,d)}catch(e){if(v&&e instanceof n.MongoError)return await async function(e,t,{session:r,topology:o,selector:i}){const l=e.hasAspect(a.Aspect.WRITE_OPERATION),d=e.hasAspect(a.Aspect.READ_OPERATION);if(l&&t.code===u)throw new n.MongoServerError({message:c,errmsg:c,originalError:t});if(l&&!(0,n.isRetryableWriteError)(t))throw t;if(d&&!(0,n.isRetryableReadError)(t))throw t;t instanceof n.MongoNetworkError&&r.isPinned&&!r.inTransaction()&&e.hasAspect(a.Aspect.CURSOR_CREATING)&&r.unpin({force:!0,forceClear:!0});const h=await o.selectServerAsync(i,{session:r});if(l&&!(0,s.supportsRetryableWrites)(h))throw new n.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await e.execute(h,r)}catch(e){if(e instanceof n.MongoError&&e.hasErrorLabel(n.MongoErrorLabel.NoWritesPerformed))throw t;throw e}}(t,e,{session:d,topology:r,selector:f});throw e}finally{null!=d?.owner&&d.owner===l&&await d.endSession().catch((()=>null))}}(e,t)),r)}},1709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindOperation=void 0;const n=r(4947),o=r(3389),i=r(649),s=r(2229),a=r(8945),u=r(5172);class c extends a.CommandOperation{constructor(e,t,r={},o={}){if(super(e,o),this.options={...o},delete this.options.writeConcern,this.ns=t,"object"!=typeof r||Array.isArray(r))throw new n.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=null!=r&&"ObjectId"===r._bsontype?{_id:r}:r}executeCallback(e,t,r){this.server=e;const n=this.options;let a=function(e,t,r){const n={find:e.collection,filter:t};if(r.sort&&(n.sort=(0,i.formatSort)(r.sort)),r.projection){let e=r.projection;e&&Array.isArray(e)&&(e=e.length?e.reduce(((e,t)=>(e[t]=1,e)),{}):{_id:1}),n.projection=e}r.hint&&(n.hint=(0,s.normalizeHintField)(r.hint)),"number"==typeof r.skip&&(n.skip=r.skip),"number"==typeof r.limit&&(r.limit<0?(n.limit=-r.limit,n.singleBatch=!0):n.limit=r.limit),"number"==typeof r.batchSize&&(r.batchSize<0?(r.limit&&0!==r.limit&&Math.abs(r.batchSize)<Math.abs(r.limit)&&(n.limit=-r.batchSize),n.singleBatch=!0):n.batchSize=r.batchSize),"boolean"==typeof r.singleBatch&&(n.singleBatch=r.singleBatch),void 0!==r.comment&&(n.comment=r.comment),"number"==typeof r.maxTimeMS&&(n.maxTimeMS=r.maxTimeMS);const a=o.ReadConcern.fromOptions(r);return a&&(n.readConcern=a.toJSON()),r.max&&(n.max=r.max),r.min&&(n.min=r.min),"boolean"==typeof r.returnKey&&(n.returnKey=r.returnKey),"boolean"==typeof r.showRecordId&&(n.showRecordId=r.showRecordId),"boolean"==typeof r.tailable&&(n.tailable=r.tailable),"boolean"==typeof r.oplogReplay&&(n.oplogReplay=r.oplogReplay),"boolean"==typeof r.timeout?n.noCursorTimeout=!r.timeout:"boolean"==typeof r.noCursorTimeout&&(n.noCursorTimeout=r.noCursorTimeout),"boolean"==typeof r.awaitData&&(n.awaitData=r.awaitData),"boolean"==typeof r.allowPartialResults&&(n.allowPartialResults=r.allowPartialResults),r.collation&&(n.collation=r.collation),"boolean"==typeof r.allowDiskUse&&(n.allowDiskUse=r.allowDiskUse),r.let&&(n.let=r.let),n}(this.ns,this.filter,n);this.explain&&(a=(0,s.decorateWithExplain)(a,this.explain)),e.command(this.ns,a,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:t},r)}}t.FindOperation=c,(0,u.defineAspects)(c,[u.Aspect.READ_OPERATION,u.Aspect.RETRYABLE,u.Aspect.EXPLAINABLE,u.Aspect.CURSOR_CREATING])},8448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindOneAndUpdateOperation=t.FindOneAndReplaceOperation=t.FindOneAndDeleteOperation=t.ReturnDocument=void 0;const n=r(4947),o=r(1228),i=r(649),s=r(2229),a=r(8945),u=r(5172);function c(e,r){return e.new=r.returnDocument===t.ReturnDocument.AFTER,e.upsert=!0===r.upsert,!0===r.bypassDocumentValidation&&(e.bypassDocumentValidation=r.bypassDocumentValidation),e}t.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class l extends a.CommandOperation{constructor(e,t,r){super(e,r),this.options=r??{},this.cmdBase={remove:!1,new:!1,upsert:!1},r.includeResultMetadata??(r.includeResultMetadata=!0);const n=(0,i.formatSort)(r.sort);n&&(this.cmdBase.sort=n),r.projection&&(this.cmdBase.fields=r.projection),r.maxTimeMS&&(this.cmdBase.maxTimeMS=r.maxTimeMS),r.writeConcern&&(this.cmdBase.writeConcern=r.writeConcern),r.let&&(this.cmdBase.let=r.let),void 0!==r.comment&&(this.cmdBase.comment=r.comment),this.readPreference=o.ReadPreference.primary,this.collection=e,this.query=t}executeCallback(e,t,r){const o=this.collection,i=this.query,a={...this.options,...this.bsonOptions},u={findAndModify:o.collectionName,query:i,...this.cmdBase};try{(0,s.decorateWithCollation)(u,o,a)}catch(e){return r(e)}if(a.hint){if(0===this.writeConcern?.w||(0,s.maxWireVersion)(e)<8)return void r(new n.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands"));u.hint=a.hint}super.executeCommand(e,t,u,((e,t)=>e?r(e):r(void 0,a.includeResultMetadata?t:t.value??null)))}}t.FindOneAndDeleteOperation=class extends l{constructor(e,t,r){if(null==t||"object"!=typeof t)throw new n.MongoInvalidArgumentError('Argument "filter" must be an object');super(e,t,r),this.cmdBase.remove=!0}},t.FindOneAndReplaceOperation=class extends l{constructor(e,t,r,o){if(null==t||"object"!=typeof t)throw new n.MongoInvalidArgumentError('Argument "filter" must be an object');if(null==r||"object"!=typeof r)throw new n.MongoInvalidArgumentError('Argument "replacement" must be an object');if((0,s.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(e,t,o),this.cmdBase.update=r,c(this.cmdBase,o)}},t.FindOneAndUpdateOperation=class extends l{constructor(e,t,r,o){if(null==t||"object"!=typeof t)throw new n.MongoInvalidArgumentError('Argument "filter" must be an object');if(null==r||"object"!=typeof r)throw new n.MongoInvalidArgumentError('Argument "update" must be an object');if(!(0,s.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Update document requires atomic operators");super(e,t,o),this.cmdBase.update=r,c(this.cmdBase,o),o.arrayFilters&&(this.cmdBase.arrayFilters=o.arrayFilters)}},(0,u.defineAspects)(l,[u.Aspect.WRITE_OPERATION,u.Aspect.RETRYABLE,u.Aspect.EXPLAINABLE])},4170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetMoreOperation=void 0;const n=r(4947),o=r(2229),i=r(5172);class s extends i.AbstractCallbackOperation{constructor(e,t,r,n){super(n),this.options=n,this.ns=e,this.cursorId=t,this.server=r}executeCallback(e,t,r){if(e!==this.server)return r(new n.MongoRuntimeError("Getmore must run on the same server operation began on"));if(null==this.cursorId||this.cursorId.isZero())return r(new n.MongoRuntimeError("Unable to iterate cursor with no id"));const i=this.ns.collection;if(null==i)return r(new n.MongoRuntimeError("A collection name must be determined before getMore"));const s={getMore:this.cursorId,collection:i};"number"==typeof this.options.batchSize&&(s.batchSize=Math.abs(this.options.batchSize)),"number"==typeof this.options.maxAwaitTimeMS&&(s.maxTimeMS=this.options.maxAwaitTimeMS),void 0!==this.options.comment&&(0,o.maxWireVersion)(e)>=9&&(s.comment=this.options.comment);const a={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};e.command(this.ns,s,a,r)}}t.GetMoreOperation=s,(0,i.defineAspects)(s,[i.Aspect.READ_OPERATION,i.Aspect.MUST_SELECT_SAME_SERVER])},2139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexInformationOperation=t.IndexExistsOperation=t.ListIndexesOperation=t.DropIndexesOperation=t.DropIndexOperation=t.EnsureIndexOperation=t.CreateIndexOperation=t.CreateIndexesOperation=t.IndexesOperation=void 0;const n=r(4947),o=r(1228),i=r(2229),s=r(8945),a=r(8741),u=r(5172),c=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);function l(e,t){const r=new Map,n=Array.isArray(e)&&(o=e,!Array.isArray(o)||2!==o.length||"number"!=typeof(s=o[1])&&"2d"!==s&&"2dsphere"!==s&&"text"!==s&&"geoHaystack"!==s)?e:[e];var o,s;for(const e of n)if("string"==typeof e)r.set(e,1);else if(Array.isArray(e))r.set(e[0],e[1]??1);else if(e instanceof Map)for(const[t,n]of e)r.set(t,n);else if((0,i.isObject)(e))for(const[t,n]of Object.entries(e))r.set(t,n);return{...t,key:r}}class d extends u.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t,this.collection=e}executeCallback(e,t,r){const n=this.collection,o=this.options;(0,a.indexInformation)(n.s.db,n.collectionName,{full:!0,...o,readPreference:this.readPreference,session:t},r)}}t.IndexesOperation=d;class h extends s.CommandOperation{constructor(e,t,r,n){super(e,n),this.options=n??{},this.collectionName=t,this.indexes=r.map((e=>{const t=e.key instanceof Map?e.key:new Map(Object.entries(e.key)),r=null!=e.name?e.name:Array.from(t).flat().join("_");return{...Object.fromEntries(Object.entries({...e}).filter((([e])=>c.has(e)))),name:r,key:t}}))}executeCallback(e,t,r){const o=this.options,s=this.indexes,a=(0,i.maxWireVersion)(e),u={createIndexes:this.collectionName,indexes:s};if(null!=o.commitQuorum){if(a<9)return void r(new n.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4"));u.commitQuorum=o.commitQuorum}this.options.collation=void 0,super.executeCommand(e,t,u,(e=>{if(e)return void r(e);const t=s.map((e=>e.name||""));r(void 0,t)}))}}t.CreateIndexesOperation=h;class p extends h{constructor(e,t,r,n){super(e,t,[l(r,n)],n)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||!t?r(e):r(void 0,t[0])))}}t.CreateIndexOperation=p;class f extends p{constructor(e,t,r,n){super(e,t,r,n),this.readPreference=o.ReadPreference.primary,this.db=e,this.collectionName=t}executeCallback(e,t,r){const o=this.indexes[0].name;this.db.collection(this.collectionName).listIndexes({session:t}).toArray().then((n=>{(n=Array.isArray(n)?n:[n]).some((e=>e.name===o))?r(void 0,o):super.executeCallback(e,t,r)}),(o=>o instanceof n.MongoError&&o.code===n.MONGODB_ERROR_CODES.NamespaceNotFound?super.executeCallback(e,t,r):r(o)))}}t.EnsureIndexOperation=f;class m extends s.CommandOperation{constructor(e,t,r){super(e,r),this.options=r??{},this.collection=e,this.indexName=t}executeCallback(e,t,r){const n={dropIndexes:this.collection.collectionName,index:this.indexName};super.executeCommand(e,t,n,r)}}t.DropIndexOperation=m;class g extends m{constructor(e,t){super(e,"*",t)}executeCallback(e,t,r){super.executeCallback(e,t,(e=>{if(e)return r(e,!1);r(void 0,!0)}))}}t.DropIndexesOperation=g;class y extends s.CommandOperation{constructor(e,t){super(e,t),this.options={...t},delete this.options.writeConcern,this.collectionNamespace=e.s.namespace}executeCallback(e,t,r){const n=(0,i.maxWireVersion)(e),o=this.options.batchSize?{batchSize:this.options.batchSize}:{},s={listIndexes:this.collectionNamespace.collection,cursor:o};n>=9&&void 0!==this.options.comment&&(s.comment=this.options.comment),super.executeCommand(e,t,s,r)}}t.ListIndexesOperation=y;class E extends u.AbstractCallbackOperation{constructor(e,t,r){super(r),this.options=r,this.collection=e,this.indexes=t}executeCallback(e,t,r){const n=this.collection,o=this.indexes;(0,a.indexInformation)(n.s.db,n.collectionName,{...this.options,readPreference:this.readPreference,session:t},((e,t)=>{if(null!=e)return r(e);if(!Array.isArray(o))return r(void 0,null!=t[o]);for(let e=0;e<o.length;e++)if(null==t[o[e]])return r(void 0,!1);return r(void 0,!0)}))}}t.IndexExistsOperation=E;class A extends u.AbstractCallbackOperation{constructor(e,t,r){super(r),this.options=r??{},this.db=e,this.name=t}executeCallback(e,t,r){const n=this.db,o=this.name;(0,a.indexInformation)(n,o,{...this.options,readPreference:this.readPreference,session:t},r)}}t.IndexInformationOperation=A,(0,u.defineAspects)(y,[u.Aspect.READ_OPERATION,u.Aspect.RETRYABLE,u.Aspect.CURSOR_CREATING]),(0,u.defineAspects)(h,[u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(p,[u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(f,[u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(m,[u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(g,[u.Aspect.WRITE_OPERATION])},7159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsertManyOperation=t.InsertOneOperation=t.InsertOperation=void 0;const n=r(4947),o=r(4620),i=r(6192),s=r(8945),a=r(8741),u=r(5172);class c extends s.CommandOperation{constructor(e,t,r){super(void 0,r),this.options={...r,checkKeys:r.checkKeys??!1},this.ns=e,this.documents=t}executeCallback(e,t,r){const n=this.options??{},o="boolean"!=typeof n.ordered||n.ordered,i={insert:this.ns.collection,documents:this.documents,ordered:o};"boolean"==typeof n.bypassDocumentValidation&&(i.bypassDocumentValidation=n.bypassDocumentValidation),void 0!==n.comment&&(i.comment=n.comment),super.executeCommand(e,t,i,r)}}t.InsertOperation=c;class l extends c{constructor(e,t,r){super(e.s.namespace,(0,a.prepareDocs)(e,[t],r),r)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||null==t?r(e):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,insertedId:this.documents[0]._id})))}}t.InsertOneOperation=l;class d extends u.AbstractCallbackOperation{constructor(e,t,r){if(super(r),!Array.isArray(t))throw new n.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=r,this.collection=e,this.docs=t}executeCallback(e,t,r){const s=this.collection,u={...this.options,...this.bsonOptions,readPreference:this.readPreference},c=o.WriteConcern.fromOptions(u);new i.BulkWriteOperation(s,(0,a.prepareDocs)(s,this.docs,u).map((e=>({insertOne:{document:e}}))),u).executeCallback(e,t,((e,t)=>{if(e||null==t)return e&&"Operation must be an object with an operation key"===e.message&&(e=new n.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values")),r(e);r(void 0,{acknowledged:0!==c?.w??!0,insertedCount:t.insertedCount,insertedIds:t.insertedIds})}))}}t.InsertManyOperation=d,(0,u.defineAspects)(c,[u.Aspect.RETRYABLE,u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(l,[u.Aspect.RETRYABLE,u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(d,[u.Aspect.WRITE_OPERATION])},2062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsCappedOperation=void 0;const n=r(4947),o=r(5172);class i extends o.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t,this.collection=e}executeCallback(e,t,r){const o=this.collection;o.s.db.listCollections({name:o.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:t}).toArray().then((e=>{if(0===e.length)return r(new n.MongoAPIError(`collection ${o.namespace} not found`));r(void 0,!!e[0].options?.capped)}),(e=>r(e)))}}t.IsCappedOperation=i},9602:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KillCursorsOperation=void 0;const n=r(4947),o=r(5172);class i extends o.AbstractCallbackOperation{constructor(e,t,r,n){super(n),this.ns=t,this.cursorId=e,this.server=r}executeCallback(e,t,r){if(e!==this.server)return r(new n.MongoRuntimeError("Killcursor must run on the same server operation began on"));const o=this.ns.collection;if(null==o)return r(new n.MongoRuntimeError("A collection name must be determined before killCursors"));const i={killCursors:o,cursors:[this.cursorId]};e.command(this.ns,i,{session:t},(()=>r()))}}t.KillCursorsOperation=i,(0,o.defineAspects)(i,[o.Aspect.MUST_SELECT_SAME_SERVER])},2320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListCollectionsOperation=void 0;const n=r(2229),o=r(8945),i=r(5172);class s extends o.CommandOperation{constructor(e,t,r){super(e,r),this.options={...r},delete this.options.writeConcern,this.db=e,this.filter=t,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,"number"==typeof this.options.batchSize&&(this.batchSize=this.options.batchSize)}executeCallback(e,t,r){return super.executeCommand(e,t,this.generateCommand((0,n.maxWireVersion)(e)),r)}generateCommand(e){const t={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};return e>=9&&void 0!==this.options.comment&&(t.comment=this.options.comment),t}}t.ListCollectionsOperation=s,(0,i.defineAspects)(s,[i.Aspect.READ_OPERATION,i.Aspect.RETRYABLE,i.Aspect.CURSOR_CREATING])},1608:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListDatabasesOperation=void 0;const n=r(2229),o=r(8945),i=r(5172);class s extends o.CommandOperation{constructor(e,t){super(e,t),this.options=t??{},this.ns=new n.MongoDBNamespace("admin","$cmd")}executeCallback(e,t,r){const o={listDatabases:1};"boolean"==typeof this.options.nameOnly&&(o.nameOnly=this.options.nameOnly),this.options.filter&&(o.filter=this.options.filter),"boolean"==typeof this.options.authorizedDatabases&&(o.authorizedDatabases=this.options.authorizedDatabases),(0,n.maxWireVersion)(e)>=9&&void 0!==this.options.comment&&(o.comment=this.options.comment),super.executeCommand(e,t,o,r)}}t.ListDatabasesOperation=s,(0,i.defineAspects)(s,[i.Aspect.READ_OPERATION,i.Aspect.RETRYABLE])},5172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineAspects=t.AbstractCallbackOperation=t.AbstractOperation=t.Aspect=void 0;const n=r(3849),o=r(9064),i=r(1228);t.Aspect={READ_OPERATION:Symbol("READ_OPERATION"),WRITE_OPERATION:Symbol("WRITE_OPERATION"),RETRYABLE:Symbol("RETRYABLE"),EXPLAINABLE:Symbol("EXPLAINABLE"),SKIP_COLLATION:Symbol("SKIP_COLLATION"),CURSOR_CREATING:Symbol("CURSOR_CREATING"),MUST_SELECT_SAME_SERVER:Symbol("MUST_SELECT_SAME_SERVER")};const s=Symbol("session");class a{constructor(e={}){this.readPreference=this.hasAspect(t.Aspect.WRITE_OPERATION)?i.ReadPreference.primary:i.ReadPreference.fromOptions(e)??i.ReadPreference.primary,this.bsonOptions=(0,o.resolveBSONOptions)(e),this[s]=null!=e.session?e.session:void 0,this.options=e,this.bypassPinningCheck=!!e.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(e){const t=this.constructor;return null!=t.aspects&&t.aspects.has(e)}get session(){return this[s]}clearSession(){this[s]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}t.AbstractOperation=a,t.AbstractCallbackOperation=class extends a{constructor(e={}){super(e)}execute(e,t){return(0,n.promisify)((r=>{this.executeCallback(e,t,r)}))()}},t.defineAspects=function(e,t){return Array.isArray(t)||t instanceof Set||(t=[t]),t=new Set(t),Object.defineProperty(e,"aspects",{value:t,writable:!1}),t}},2552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsOperation=void 0;const n=r(4947),o=r(5172);class i extends o.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t,this.collection=e}executeCallback(e,t,r){const o=this.collection;o.s.db.listCollections({name:o.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:t}).toArray().then((e=>{if(0===e.length)return r(new n.MongoAPIError(`collection ${o.namespace} not found`));r(void 0,e[0].options)}),(e=>r(e)))}}t.OptionsOperation=i},8528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfilingLevelOperation=void 0;const n=r(4947),o=r(8945);class i extends o.CommandOperation{constructor(e,t){super(e,t),this.options=t}executeCallback(e,t,r){super.executeCommand(e,t,{profile:-1},((e,t)=>{if(null==e&&1===t.ok){const e=t.was;return 0===e?r(void 0,"off"):1===e?r(void 0,"slow_only"):2===e?r(void 0,"all"):r(new n.MongoRuntimeError(`Illegal profiling level value ${e}`))}r(null!=e?e:new n.MongoRuntimeError("Error with profile command"))}))}}t.ProfilingLevelOperation=i},8521:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveUserOperation=void 0;const n=r(8945),o=r(5172);class i extends n.CommandOperation{constructor(e,t,r){super(e,r),this.options=r,this.username=t}executeCallback(e,t,r){super.executeCommand(e,t,{dropUser:this.username},(e=>{r(e,!e)}))}}t.RemoveUserOperation=i,(0,o.defineAspects)(i,[o.Aspect.WRITE_OPERATION])},8955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenameOperation=void 0;const n=r(8971),o=r(4947),i=r(2229),s=r(5172),a=r(25);class u extends a.RunAdminCommandOperation{constructor(e,t,r){(0,i.checkCollectionName)(t);const n=e.namespace,o=e.s.namespace.withCollection(t).toString();super(e,{renameCollection:n,to:o,dropTarget:"boolean"==typeof r.dropTarget&&r.dropTarget},r),this.options=r,this.collection=e,this.newName=t}executeCallback(e,t,r){const i=this.collection;super.executeCallback(e,t,((e,t)=>{if(e)return r(e);if(t?.errmsg)return r(new o.MongoServerError(t));let s;try{s=new n.Collection(i.s.db,this.newName,i.s.options)}catch(e){return r(e)}return r(void 0,s)}))}}t.RenameOperation=u,(0,s.defineAspects)(u,[s.Aspect.WRITE_OPERATION])},25:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunAdminCommandOperation=t.RunCommandOperation=void 0;const n=r(2229),o=r(8945);class i extends o.CommandOperation{constructor(e,t,r){super(e,r),this.options=r??{},this.command=t}executeCallback(e,t,r){const n=this.command;this.executeCommand(e,t,n,r)}}t.RunCommandOperation=i,t.RunAdminCommandOperation=class extends i{constructor(e,t,r){super(e,t,r),this.ns=new n.MongoDBNamespace("admin")}}},2195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateSearchIndexesOperation=void 0;const n=r(5172);class o extends n.AbstractCallbackOperation{constructor(e,t){super(),this.collection=e,this.descriptions=t}executeCallback(e,t,r){const n=this.collection.fullNamespace,o={createSearchIndexes:n.collection,indexes:this.descriptions};e.command(n,o,{session:t},((e,t)=>{!e&&t?r(void 0,(t?.indexesCreated??[]).map((({name:e})=>e))):r(e)}))}}t.CreateSearchIndexesOperation=o},3060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropSearchIndexOperation=void 0;const n=r(5172);class o extends n.AbstractCallbackOperation{constructor(e,t){super(),this.collection=e,this.name=t}executeCallback(e,t,r){const n=this.collection.fullNamespace,o={dropSearchIndex:n.collection};"string"==typeof this.name&&(o.name=this.name),e.command(n,o,{session:t},(e=>{e?r(e):r()}))}}t.DropSearchIndexOperation=o},88:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateSearchIndexOperation=void 0;const n=r(5172);class o extends n.AbstractCallbackOperation{constructor(e,t,r){super(),this.collection=e,this.name=t,this.definition=r}executeCallback(e,t,r){const n=this.collection.fullNamespace,o={updateSearchIndex:n.collection,name:this.name,definition:this.definition};e.command(n,o,{session:t},(e=>{e?r(e):r()}))}}t.UpdateSearchIndexOperation=o},4671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetProfilingLevelOperation=t.ProfilingLevel=void 0;const n=r(4947),o=r(2229),i=r(8945),s=new Set(["off","slow_only","all"]);t.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class a extends i.CommandOperation{constructor(e,r,n){switch(super(e,n),this.options=n,r){case t.ProfilingLevel.off:this.profile=0;break;case t.ProfilingLevel.slowOnly:this.profile=1;break;case t.ProfilingLevel.all:this.profile=2;break;default:this.profile=0}this.level=r}executeCallback(e,r,i){const a=this.level;if(!s.has(a))return i(new n.MongoInvalidArgumentError(`Profiling level must be one of "${(0,o.enumToString)(t.ProfilingLevel)}"`));super.executeCommand(e,r,{profile:this.profile},((e,t)=>null==e&&1===t.ok?i(void 0,a):i(null!=e?e:new n.MongoRuntimeError("Error with profile command"))))}}t.SetProfilingLevelOperation=a},6577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DbStatsOperation=t.CollStatsOperation=void 0;const n=r(8945),o=r(5172);class i extends n.CommandOperation{constructor(e,t){super(e,t),this.options=t??{},this.collectionName=e.collectionName}executeCallback(e,t,r){const n={collStats:this.collectionName};null!=this.options.scale&&(n.scale=this.options.scale),super.executeCommand(e,t,n,r)}}t.CollStatsOperation=i;class s extends n.CommandOperation{constructor(e,t){super(e,t),this.options=t}executeCallback(e,t,r){const n={dbStats:!0};null!=this.options.scale&&(n.scale=this.options.scale),super.executeCommand(e,t,n,r)}}t.DbStatsOperation=s,(0,o.defineAspects)(i,[o.Aspect.READ_OPERATION]),(0,o.defineAspects)(s,[o.Aspect.READ_OPERATION])},5556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeUpdateStatement=t.ReplaceOneOperation=t.UpdateManyOperation=t.UpdateOneOperation=t.UpdateOperation=void 0;const n=r(4947),o=r(2229),i=r(8945),s=r(5172);class a extends i.CommandOperation{constructor(e,t,r){super(void 0,r),this.options=r,this.ns=e,this.statements=t}get canRetryWrite(){return!1!==super.canRetryWrite&&this.statements.every((e=>null==e.multi||!1===e.multi))}executeCallback(e,t,r){const o=this.options??{},i="boolean"!=typeof o.ordered||o.ordered,s={update:this.ns.collection,updates:this.statements,ordered:i};"boolean"==typeof o.bypassDocumentValidation&&(s.bypassDocumentValidation=o.bypassDocumentValidation),o.let&&(s.let=o.let),void 0!==o.comment&&(s.comment=o.comment),this.writeConcern&&0===this.writeConcern.w&&this.statements.find((e=>e.hint))?r(new n.MongoCompatibilityError("hint is not supported with unacknowledged writes")):super.executeCommand(e,t,s,r)}}t.UpdateOperation=a;class u extends a{constructor(e,t,r,i){if(super(e.s.namespace,[d(t,r,{...i,multi:!1})],i),!(0,o.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||!t?r(e):null!=this.explain?r(void 0,t):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})))}}t.UpdateOneOperation=u;class c extends a{constructor(e,t,r,i){if(super(e.s.namespace,[d(t,r,{...i,multi:!0})],i),!(0,o.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||!t?r(e):null!=this.explain?r(void 0,t):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})))}}t.UpdateManyOperation=c;class l extends a{constructor(e,t,r,i){if(super(e.s.namespace,[d(t,r,{...i,multi:!1})],i),(0,o.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||!t?r(e):null!=this.explain?r(void 0,t):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})))}}function d(e,t,r){if(null==e||"object"!=typeof e)throw new n.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(null==t||"object"!=typeof t)throw new n.MongoInvalidArgumentError("Document must be a valid JavaScript object");const o={q:e,u:t};return"boolean"==typeof r.upsert&&(o.upsert=r.upsert),r.multi&&(o.multi=r.multi),r.hint&&(o.hint=r.hint),r.arrayFilters&&(o.arrayFilters=r.arrayFilters),r.collation&&(o.collation=r.collation),o}t.ReplaceOneOperation=l,t.makeUpdateStatement=d,(0,s.defineAspects)(a,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.SKIP_COLLATION]),(0,s.defineAspects)(u,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.EXPLAINABLE,s.Aspect.SKIP_COLLATION]),(0,s.defineAspects)(c,[s.Aspect.WRITE_OPERATION,s.Aspect.EXPLAINABLE,s.Aspect.SKIP_COLLATION]),(0,s.defineAspects)(l,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.SKIP_COLLATION])},6540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCollectionOperation=void 0;const n=r(4947),o=r(8945);class i extends o.CommandOperation{constructor(e,t,r){const n={validate:t},o=Object.keys(r);for(let e=0;e<o.length;e++)Object.prototype.hasOwnProperty.call(r,o[e])&&"session"!==o[e]&&(n[o[e]]=r[o[e]]);super(e.s.db,r),this.options=r,this.command=n,this.collectionName=t}executeCallback(e,t,r){const o=this.collectionName;super.executeCommand(e,t,this.command,((e,t)=>null!=e?r(e):0===t.ok?r(new n.MongoRuntimeError("Error with validate command")):null!=t.result&&"string"!=typeof t.result?r(new n.MongoRuntimeError("Error with validation data")):null!=t.result&&null!=t.result.match(/exception|corrupt/)?r(new n.MongoRuntimeError(`Invalid collection ${o}`)):null==t.valid||t.valid?r(void 0,t):r(new n.MongoRuntimeError(`Invalid collection ${o}`))))}}t.ValidateCollectionOperation=i},3389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadConcern=t.ReadConcernLevel=void 0,t.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class r{constructor(e){this.level=t.ReadConcernLevel[e]??e}static fromOptions(e){if(null!=e){if(e.readConcern){const{readConcern:t}=e;if(t instanceof r)return t;if("string"==typeof t)return new r(t);if("level"in t&&t.level)return new r(t.level)}return e.level?new r(e.level):void 0}}static get MAJORITY(){return t.ReadConcernLevel.majority}static get AVAILABLE(){return t.ReadConcernLevel.available}static get LINEARIZABLE(){return t.ReadConcernLevel.linearizable}static get SNAPSHOT(){return t.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}t.ReadConcern=r},1228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadPreference=t.ReadPreferenceMode=void 0;const n=r(4947);t.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class o{constructor(e,t,r){if(!o.isValid(e))throw new n.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(e)}`);if(null!=r||"object"!=typeof t||Array.isArray(t)){if(t&&!Array.isArray(t))throw new n.MongoInvalidArgumentError("ReadPreference tags must be an array")}else r=t,t=void 0;if(this.mode=e,this.tags=t,this.hedge=r?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,null!=(r=r??{}).maxStalenessSeconds){if(r.maxStalenessSeconds<=0)throw new n.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=r.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===o.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(e){return new o(e)}static fromOptions(e){if(!e)return;const t=e.readPreference??e.session?.transaction.options.readPreference,r=e.readPreferenceTags;if(null!=t){if("string"==typeof t)return new o(t,r,{maxStalenessSeconds:e.maxStalenessSeconds,hedge:e.hedge});if(!(t instanceof o)&&"object"==typeof t){const n=t.mode||t.preference;if(n&&"string"==typeof n)return new o(n,t.tags??r,{maxStalenessSeconds:t.maxStalenessSeconds,hedge:e.hedge})}return r&&(t.tags=r),t}}static translate(e){if(null==e.readPreference)return e;const t=e.readPreference;if("string"==typeof t)e.readPreference=new o(t);else if(!t||t instanceof o||"object"!=typeof t){if(!(t instanceof o))throw new n.MongoInvalidArgumentError(`Invalid read preference: ${t}`)}else{const r=t.mode||t.preference;r&&"string"==typeof r&&(e.readPreference=new o(r,t.tags,{maxStalenessSeconds:t.maxStalenessSeconds}))}return e}static isValid(e){return new Set([o.PRIMARY,o.PRIMARY_PREFERRED,o.SECONDARY,o.SECONDARY_PREFERRED,o.NEAREST,null]).has(e)}isValid(e){return o.isValid("string"==typeof e?e:this.mode)}secondaryOk(){return new Set([o.PRIMARY_PREFERRED,o.SECONDARY,o.SECONDARY_PREFERRED,o.NEAREST]).has(this.mode)}equals(e){return e.mode===this.mode}toJSON(){const e={mode:this.mode};return Array.isArray(this.tags)&&(e.tags=this.tags),this.maxStalenessSeconds&&(e.maxStalenessSeconds=this.maxStalenessSeconds),this.hedge&&(e.hedge=this.hedge),e}}o.PRIMARY=t.ReadPreferenceMode.primary,o.PRIMARY_PREFERRED=t.ReadPreferenceMode.primaryPreferred,o.SECONDARY=t.ReadPreferenceMode.secondary,o.SECONDARY_PREFERRED=t.ReadPreferenceMode.secondaryPreferred,o.NEAREST=t.ReadPreferenceMode.nearest,o.primary=new o(t.ReadPreferenceMode.primary),o.primaryPreferred=new o(t.ReadPreferenceMode.primaryPreferred),o.secondary=new o(t.ReadPreferenceMode.secondary),o.secondaryPreferred=new o(t.ReadPreferenceMode.secondaryPreferred),o.nearest=new o(t.ReadPreferenceMode.nearest),t.ReadPreference=o},5896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._advanceClusterTime=t.drainTimerQueue=t.ServerType=t.TopologyType=t.STATE_CONNECTED=t.STATE_CONNECTING=t.STATE_CLOSED=t.STATE_CLOSING=void 0;const n=r(9512);t.STATE_CLOSING="closing",t.STATE_CLOSED="closed",t.STATE_CONNECTING="connecting",t.STATE_CONNECTED="connected",t.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"}),t.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"}),t.drainTimerQueue=function(e){e.forEach(n.clearTimeout),e.clear()},t._advanceClusterTime=function(e,t){(null==e.clusterTime||t.clusterTime.greaterThan(e.clusterTime.clusterTime))&&(e.clusterTime=t)}},8214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerHeartbeatFailedEvent=t.ServerHeartbeatSucceededEvent=t.ServerHeartbeatStartedEvent=t.TopologyClosedEvent=t.TopologyOpeningEvent=t.TopologyDescriptionChangedEvent=t.ServerClosedEvent=t.ServerOpeningEvent=t.ServerDescriptionChangedEvent=void 0,t.ServerDescriptionChangedEvent=class{constructor(e,t,r,n){this.topologyId=e,this.address=t,this.previousDescription=r,this.newDescription=n}},t.ServerOpeningEvent=class{constructor(e,t){this.topologyId=e,this.address=t}},t.ServerClosedEvent=class{constructor(e,t){this.topologyId=e,this.address=t}},t.TopologyDescriptionChangedEvent=class{constructor(e,t,r){this.topologyId=e,this.previousDescription=t,this.newDescription=r}},t.TopologyOpeningEvent=class{constructor(e){this.topologyId=e}},t.TopologyClosedEvent=class{constructor(e){this.topologyId=e}},t.ServerHeartbeatStartedEvent=class{constructor(e){this.connectionId=e}},t.ServerHeartbeatSucceededEvent=class{constructor(e,t,r){this.connectionId=e,this.duration=t,this.reply=r??{}}},t.ServerHeartbeatFailedEvent=class{constructor(e,t,r){this.connectionId=e,this.duration=t,this.failure=r}}},2295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonitorInterval=t.RTTPinger=t.Monitor=void 0;const n=r(9512),o=r(9064),i=r(231),s=r(8345),a=r(5006),u=r(4947),c=r(334),l=r(2229),d=r(5896),h=r(8214),p=r(8631),f=Symbol("server"),m=Symbol("monitorId"),g=Symbol("connection"),y=Symbol("cancellationToken"),E=Symbol("rttPinger"),A=Symbol("roundTripTime"),v="idle",C="monitoring",b=(0,l.makeStateMachine)({[d.STATE_CLOSING]:[d.STATE_CLOSING,v,d.STATE_CLOSED],[d.STATE_CLOSED]:[d.STATE_CLOSED,C],[v]:[v,C,d.STATE_CLOSING],[C]:[C,v,d.STATE_CLOSING]}),S=new Set([d.STATE_CLOSING,d.STATE_CLOSED,C]);function w(e){return e.s.state===d.STATE_CLOSED||e.s.state===d.STATE_CLOSING}class O extends c.TypedEventEmitter{get connection(){return this[g]}constructor(e,t){super(),this[f]=e,this[g]=void 0,this[y]=new c.CancellationToken,this[y].setMaxListeners(1/0),this[m]=void 0,this.s={state:d.STATE_CLOSED},this.address=e.description.address,this.options=Object.freeze({connectTimeoutMS:t.connectTimeoutMS??1e4,heartbeatFrequencyMS:t.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:t.minHeartbeatFrequencyMS??500});const r=this[y],n=Object.assign({id:"<monitor>",generation:e.pool.generation,connectionType:s.Connection,cancellationToken:r,hostAddress:e.description.hostAddress},t,{raw:!1,useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});delete n.credentials,n.autoEncrypter&&delete n.autoEncrypter,this.connectOptions=Object.freeze(n)}connect(){if(this.s.state!==d.STATE_CLOSED)return;const e=this.options.heartbeatFrequencyMS,t=this.options.minHeartbeatFrequencyMS;this[m]=new I(_(this),{heartbeatFrequencyMS:e,minHeartbeatFrequencyMS:t,immediate:!0})}requestCheck(){S.has(this.s.state)||this[m]?.wake()}reset(){const e=this[f].description.topologyVersion;if(w(this)||null==e)return;b(this,d.STATE_CLOSING),x(this),b(this,v);const t=this.options.heartbeatFrequencyMS,r=this.options.minHeartbeatFrequencyMS;this[m]=new I(_(this),{heartbeatFrequencyMS:t,minHeartbeatFrequencyMS:r})}close(){w(this)||(b(this,d.STATE_CLOSING),x(this),this.emit("close"),b(this,d.STATE_CLOSED))}}function x(e){e[m]?.stop(),e[m]=void 0,e[E]?.close(),e[E]=void 0,e[y].emit("cancel"),e[g]?.destroy({force:!0}),e[g]=void 0}function _(e){return t=>{function r(){w(e)||b(e,v),t()}e.s.state!==C?(b(e,C),function(e,t){let r=(0,l.now)();function n(n){e[g]?.destroy({force:!0}),e[g]=void 0,e.emit(p.Server.SERVER_HEARTBEAT_FAILED,new h.ServerHeartbeatFailedEvent(e.address,(0,l.calculateDurationInMs)(r),n));const o=n instanceof u.MongoError?n:new u.MongoError(n);o.addErrorLabel(u.MongoErrorLabel.ResetPool),o instanceof u.MongoNetworkTimeoutError&&o.addErrorLabel(u.MongoErrorLabel.InterruptInUseConnections),e.emit("resetServer",o),t(n)}e.emit(p.Server.SERVER_HEARTBEAT_STARTED,new h.ServerHeartbeatStartedEvent(e.address));const s=e[g];if(s&&!s.closed){const{serverApi:i,helloOk:u}=s,d=e.options.connectTimeoutMS,m=e.options.heartbeatFrequencyMS,g=e[f].description.topologyVersion,A=null!=g,v={[i?.version||u?"hello":a.LEGACY_HELLO_COMMAND]:1,...A&&g?{maxAwaitTimeMS:m,topologyVersion:(c=g,{processId:c.processId,counter:o.Long.isLong(c.counter)?c.counter:o.Long.fromNumber(c.counter)})}:{}},C=A?{socketTimeoutMS:d?d+m:0,exhaustAllowed:!0}:{socketTimeoutMS:d};return A&&null==e[E]&&(e[E]=new D(e[y],Object.assign({heartbeatFrequencyMS:e.options.heartbeatFrequencyMS},e.connectOptions))),void s.command((0,l.ns)("admin.$cmd"),v,C,((o,i)=>{if(o)return n(o);"isWritablePrimary"in i||(i.isWritablePrimary=i[a.LEGACY_HELLO_COMMAND]);const s=e[E],u=A&&s?s.roundTripTime:(0,l.calculateDurationInMs)(r);e.emit(p.Server.SERVER_HEARTBEAT_SUCCEEDED,new h.ServerHeartbeatSucceededEvent(e.address,u,i)),A&&i.topologyVersion?(e.emit(p.Server.SERVER_HEARTBEAT_STARTED,new h.ServerHeartbeatStartedEvent(e.address)),r=(0,l.now)()):(e[E]?.close(),e[E]=void 0,t(void 0,i))}))}var c;(0,i.connect)(e.connectOptions,((o,i)=>{if(o)return e[g]=void 0,void n(o);if(i){if(i.isMonitoringConnection=!0,w(e))return void i.destroy({force:!0});e[g]=i,e.emit(p.Server.SERVER_HEARTBEAT_SUCCEEDED,new h.ServerHeartbeatSucceededEvent(e.address,(0,l.calculateDurationInMs)(r),i.hello)),t(void 0,i.hello)}}))}(e,((t,o)=>{if(t&&e[f].description.type===d.ServerType.Unknown)return r();o&&o.topologyVersion&&(0,n.setTimeout)((()=>{w(e)||e[m]?.wake()}),0),r()}))):process.nextTick(t)}}t.Monitor=O;class D{constructor(e,t){this[g]=void 0,this[y]=e,this[A]=0,this.closed=!1;const r=t.heartbeatFrequencyMS;this[m]=(0,n.setTimeout)((()=>T(this,t)),r)}get roundTripTime(){return this[A]}close(){this.closed=!0,(0,n.clearTimeout)(this[m]),this[g]?.destroy({force:!0}),this[g]=void 0}}function T(e,t){const r=(0,l.now)();t.cancellationToken=e[y];const o=t.heartbeatFrequencyMS;if(e.closed)return;function s(i){e.closed?i?.destroy({force:!0}):(null==e[g]&&(e[g]=i),e[A]=(0,l.calculateDurationInMs)(r),e[m]=(0,n.setTimeout)((()=>T(e,t)),o))}const u=e[g];null!=u?u.command((0,l.ns)("admin.$cmd"),{[a.LEGACY_HELLO_COMMAND]:1},void 0,(t=>{if(t)return e[g]=void 0,void(e[A]=0);s()})):(0,i.connect)(t,((t,r)=>{if(t)return e[g]=void 0,void(e[A]=0);s(r)}))}t.RTTPinger=D;class I{constructor(e,t={}){this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{this.stopped||(this.timerId&&(0,n.clearTimeout)(this.timerId),this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn((()=>{this.lastExecutionEnded=(0,l.now)(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})))},this.fn=e,this.lastExecutionEnded=-1/0,this.heartbeatFrequencyMS=t.heartbeatFrequencyMS??1e3,this.minHeartbeatFrequencyMS=t.minHeartbeatFrequencyMS??500,t.immediate?this._executeAndReschedule():this._reschedule(void 0)}wake(){const e=(0,l.now)()-this.lastExecutionEnded;return e<0?this._executeAndReschedule():this.isExecutionInProgress||this.isExpeditedCallToFnScheduled?void 0:e<this.minHeartbeatFrequencyMS?(this.isExpeditedCallToFnScheduled=!0,void this._reschedule(this.minHeartbeatFrequencyMS-e)):void this._executeAndReschedule()}stop(){this.stopped=!0,this.timerId&&((0,n.clearTimeout)(this.timerId),this.timerId=void 0),this.lastExecutionEnded=-1/0,this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const e=(0,l.now)(),t=e-this.lastExecutionEnded;return{timerId:null!=this.timerId?"set":"cleared",lastCallTime:this.lastExecutionEnded,isExpeditedCheckScheduled:this.isExpeditedCallToFnScheduled,stopped:this.stopped,heartbeatFrequencyMS:this.heartbeatFrequencyMS,minHeartbeatFrequencyMS:this.minHeartbeatFrequencyMS,currentTime:e,timeSinceLastCall:t}}_reschedule(e){this.stopped||(this.timerId&&(0,n.clearTimeout)(this.timerId),this.timerId=(0,n.setTimeout)(this._executeAndReschedule,e||this.heartbeatFrequencyMS))}}t.MonitorInterval=I},8631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const n=r(3849),o=r(8345),i=r(8343),s=r(8122),a=r(5006),u=r(4947),c=r(334),l=r(6204),d=r(2229),h=r(5896),p=r(2295),f=r(9735),m=(0,d.makeStateMachine)({[h.STATE_CLOSED]:[h.STATE_CLOSED,h.STATE_CONNECTING],[h.STATE_CONNECTING]:[h.STATE_CONNECTING,h.STATE_CLOSING,h.STATE_CONNECTED,h.STATE_CLOSED],[h.STATE_CONNECTED]:[h.STATE_CONNECTED,h.STATE_CLOSING,h.STATE_CLOSED],[h.STATE_CLOSING]:[h.STATE_CLOSING,h.STATE_CLOSED]}),g=Symbol("monitor");class y extends c.TypedEventEmitter{constructor(e,t,r){super(),this.commandAsync=(0,n.promisify)(((e,t,r,n)=>this.command(e,t,r,n))),this.serverApi=r.serverApi;const s={hostAddress:t.hostAddress,...r};this.topology=e,this.pool=new i.ConnectionPool(this,s),this.s={description:t,options:r,state:h.STATE_CLOSED,operationCount:0};for(const e of[...a.CMAP_EVENTS,...a.APM_EVENTS])this.pool.on(e,(t=>this.emit(e,t)));if(this.pool.on(o.Connection.CLUSTER_TIME_RECEIVED,(e=>{this.clusterTime=e})),this.loadBalanced)return void(this[g]=null);const u=new p.Monitor(this,this.s.options);this[g]=u;for(const e of a.HEARTBEAT_EVENTS)u.on(e,(t=>this.emit(e,t)));u.on("resetServer",(e=>A(this,e))),u.on(y.SERVER_HEARTBEAT_SUCCEEDED,(e=>{this.emit(y.DESCRIPTION_RECEIVED,new f.ServerDescription(this.description.hostAddress,e.reply,{roundTripTime:E(this.description.roundTripTime,e.duration)})),this.s.state===h.STATE_CONNECTING&&(m(this,h.STATE_CONNECTED),this.emit(y.CONNECT,this))}))}get clusterTime(){return this.topology.clusterTime}set clusterTime(e){this.topology.clusterTime=e}get description(){return this.s.description}get name(){return this.s.description.address}get autoEncrypter(){if(this.s.options&&this.s.options.autoEncrypter)return this.s.options.autoEncrypter}get loadBalanced(){return this.topology.description.type===h.TopologyType.LoadBalanced}connect(){this.s.state===h.STATE_CLOSED&&(m(this,h.STATE_CONNECTING),this.loadBalanced?(m(this,h.STATE_CONNECTED),this.emit(y.CONNECT,this)):this[g]?.connect())}destroy(e,t){"function"==typeof e&&(t=e,e={force:!1}),e=Object.assign({},{force:!1},e),this.s.state!==h.STATE_CLOSED?(m(this,h.STATE_CLOSING),this.loadBalanced||this[g]?.close(),this.pool.close(e,(e=>{m(this,h.STATE_CLOSED),this.emit("closed"),"function"==typeof t&&t(e)}))):"function"==typeof t&&t()}requestCheck(){this.loadBalanced||this[g]?.requestCheck()}command(e,t,r,n){if(null==n)throw new u.MongoInvalidArgumentError("Callback must be provided");if(null==e.db||"string"==typeof e)throw new u.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===h.STATE_CLOSING||this.s.state===h.STATE_CLOSED)return void n(new u.MongoServerClosedError);const o=Object.assign({},r,{wireProtocolCommand:!1});o.omitReadPreference&&delete o.readPreference;const i=o.session,a=i?.pinnedConnection;this.loadBalanced&&i&&null==a&&function(e,t){return!!t&&(t.inTransaction()||"aggregate"in e||"find"in e||"getMore"in e||"listCollections"in e||"listIndexes"in e)}(t,i)?this.pool.checkOut(((r,s)=>{if(r||null==s)return n?n(r):void 0;i.pin(s),this.command(e,t,o,n)})):(this.incrementOperationCount(),this.pool.withConnection(a,((r,n,i)=>{if(r||!n)return this.decrementOperationCount(),r?(r instanceof s.PoolClearedError||this.handleError(r),i(r)):i(new u.MongoRuntimeError("Failed to create connection without error"));n.command(e,t,o,function(e,t,r,n,o){const i=n?.session;return function(s,a){return null==s&&null!=a?o(void 0,a):null!=n&&"noResponse"in n&&!0===n.noResponse?o(void 0,null):s?s instanceof u.MongoError?(function(e,t){return t.serviceId?t.generation!==e.serviceGenerations.get(t.serviceId.toHexString()):t.generation!==e.generation}(e.pool,t)||(s instanceof u.MongoNetworkError?(i&&!i.hasEnded&&i.serverSession&&(i.serverSession.isDirty=!0),v(i,r)&&!s.hasErrorLabel(u.MongoErrorLabel.TransientTransactionError)&&s.addErrorLabel(u.MongoErrorLabel.TransientTransactionError),(C(e.topology)||(0,l.isTransactionCommand)(r))&&(0,d.supportsRetryableWrites)(e)&&!v(i,r)&&s.addErrorLabel(u.MongoErrorLabel.RetryableWriteError)):(C(e.topology)||(0,l.isTransactionCommand)(r))&&(0,u.needsRetryableWriteLabel)(s,(0,d.maxWireVersion)(e))&&!v(i,r)&&s.addErrorLabel(u.MongoErrorLabel.RetryableWriteError),i&&i.isPinned&&s.hasErrorLabel(u.MongoErrorLabel.TransientTransactionError)&&i.unpin({force:!0}),e.handleError(s,t)),o(s)):o(s):o(new u.MongoUnexpectedServerResponseError("Empty response with no error"))}}(this,n,t,o,((e,t)=>{this.decrementOperationCount(),i(e,t)})))}),n))}handleError(e,t){if(!(e instanceof u.MongoError))return;if(e.connectionGeneration&&e.connectionGeneration<this.pool.generation)return;const r=e instanceof u.MongoNetworkError&&!(e instanceof u.MongoNetworkTimeoutError),n=(0,u.isNetworkErrorBeforeHandshake)(e),o=e.hasErrorLabel(u.MongoErrorLabel.HandshakeError);if(r||n||o)this.loadBalanced?t&&this.pool.clear({serviceId:t.serviceId}):(e.addErrorLabel(u.MongoErrorLabel.ResetPool),A(this,e));else if((0,u.isSDAMUnrecoverableError)(e)&&function(e,t){const r=t.topologyVersion,n=e.description.topologyVersion;return(0,f.compareTopologyVersion)(n,r)<0}(this,e)){const r=(0,d.maxWireVersion)(this)<=7||(0,u.isNodeShuttingDownError)(e);this.loadBalanced&&t&&r&&this.pool.clear({serviceId:t.serviceId}),this.loadBalanced||(r&&e.addErrorLabel(u.MongoErrorLabel.ResetPool),A(this,e),process.nextTick((()=>this.requestCheck())))}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}function E(e,t){return-1===e?t:.2*t+.8*e}function A(e,t){e.loadBalanced||(t instanceof u.MongoNetworkError&&!(t instanceof u.MongoNetworkTimeoutError)&&e[g]?.reset(),e.emit(y.DESCRIPTION_RECEIVED,new f.ServerDescription(e.description.hostAddress,void 0,{error:t})))}function v(e,t){return e&&e.inTransaction()&&!(0,l.isTransactionCommand)(t)}function C(e){return!1!==e.s.options.retryWrites}y.SERVER_HEARTBEAT_STARTED=a.SERVER_HEARTBEAT_STARTED,y.SERVER_HEARTBEAT_SUCCEEDED=a.SERVER_HEARTBEAT_SUCCEEDED,y.SERVER_HEARTBEAT_FAILED=a.SERVER_HEARTBEAT_FAILED,y.CONNECT=a.CONNECT,y.DESCRIPTION_RECEIVED=a.DESCRIPTION_RECEIVED,y.CLOSED=a.CLOSED,y.ENDED=a.ENDED,t.Server=y},9735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareTopologyVersion=t.parseServerType=t.ServerDescription=void 0;const n=r(9064),o=r(4947),i=r(2229),s=r(5896),a=new Set([s.ServerType.RSPrimary,s.ServerType.Standalone,s.ServerType.Mongos,s.ServerType.LoadBalancer]),u=new Set([s.ServerType.RSPrimary,s.ServerType.RSSecondary,s.ServerType.Mongos,s.ServerType.Standalone,s.ServerType.LoadBalancer]);function c(e,t){return t?.loadBalanced?s.ServerType.LoadBalancer:e&&e.ok?e.isreplicaset?s.ServerType.RSGhost:e.msg&&"isdbgrid"===e.msg?s.ServerType.Mongos:e.setName?e.hidden?s.ServerType.RSOther:e.isWritablePrimary?s.ServerType.RSPrimary:e.secondary?s.ServerType.RSSecondary:e.arbiterOnly?s.ServerType.RSArbiter:s.ServerType.RSOther:s.ServerType.Standalone:s.ServerType.Unknown}function l(e,t){if(null==e||null==t)return-1;if(!e.processId.equals(t.processId))return-1;const r=n.Long.isLong(e.counter)?e.counter:n.Long.fromNumber(e.counter),o=n.Long.isLong(t.counter)?t.counter:n.Long.fromNumber(t.counter);return r.compare(o)}t.ServerDescription=class{constructor(e,t,r={}){if(null==e||""===e)throw new o.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address="string"==typeof e?i.HostAddress.fromString(e).toString():e.toString(),this.type=c(t,r),this.hosts=t?.hosts?.map((e=>e.toLowerCase()))??[],this.passives=t?.passives?.map((e=>e.toLowerCase()))??[],this.arbiters=t?.arbiters?.map((e=>e.toLowerCase()))??[],this.tags=t?.tags??{},this.minWireVersion=t?.minWireVersion??0,this.maxWireVersion=t?.maxWireVersion??0,this.roundTripTime=r?.roundTripTime??-1,this.lastUpdateTime=(0,i.now)(),this.lastWriteDate=t?.lastWrite?.lastWriteDate??0,this.error=r.error??null,this.topologyVersion=this.error?.topologyVersion??t?.topologyVersion??null,this.setName=t?.setName??null,this.setVersion=t?.setVersion??null,this.electionId=t?.electionId??null,this.logicalSessionTimeoutMinutes=t?.logicalSessionTimeoutMinutes??null,this.primary=t?.primary??null,this.me=t?.me?.toLowerCase()??null,this.$clusterTime=t?.$clusterTime??null}get hostAddress(){return i.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===s.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return u.has(this.type)}get isWritable(){return a.has(this.type)}get host(){const e=`:${this.port}`.length;return this.address.slice(0,-e)}get port(){const e=this.address.split(":").pop();return e?Number.parseInt(e,10):27017}equals(e){const t=this.topologyVersion===e?.topologyVersion||0===l(this.topologyVersion,e?.topologyVersion),r=null!=this.electionId&&null!=e?.electionId?0===(0,i.compareObjectId)(this.electionId,e.electionId):this.electionId===e?.electionId;return null!=e&&(0,i.errorStrictEqual)(this.error,e.error)&&this.type===e.type&&this.minWireVersion===e.minWireVersion&&(0,i.arrayStrictEqual)(this.hosts,e.hosts)&&function(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every((r=>t[r]===e[r]))}(this.tags,e.tags)&&this.setName===e.setName&&this.setVersion===e.setVersion&&r&&this.primary===e.primary&&this.logicalSessionTimeoutMinutes===e.logicalSessionTimeoutMinutes&&t}},t.parseServerType=c,t.compareTopologyVersion=l},114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readPreferenceServerSelector=t.secondaryWritableServerSelector=t.sameServerSelector=t.writableServerSelector=t.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;const n=r(4947),o=r(1228),i=r(5896);function s(e,t){const r=Object.keys(e),n=Object.keys(t);for(let o=0;o<r.length;++o){const i=r[o];if(-1===n.indexOf(i)||t[i]!==e[i])return!1}return!0}function a(e,t){const r=t.reduce(((e,t)=>-1===e?t.roundTripTime:Math.min(t.roundTripTime,e)),-1),n=r+e.localThresholdMS;return t.reduce(((e,t)=>(t.roundTripTime<=n&&t.roundTripTime>=r&&e.push(t),e)),[])}function u(e){return e.type===i.ServerType.RSPrimary}function c(e){return e.type===i.ServerType.RSSecondary}function l(e){return e.type===i.ServerType.RSSecondary||e.type===i.ServerType.RSPrimary}function d(e){return e.type!==i.ServerType.Unknown}function h(e){return e.type===i.ServerType.LoadBalancer}function p(e){if(!e.isValid())throw new n.MongoInvalidArgumentError("Invalid read preference specified");return(t,r)=>{const p=t.commonWireVersion;if(p&&e.minWireVersion&&e.minWireVersion>p)throw new n.MongoCompatibilityError(`Minimum wire version '${e.minWireVersion}' required, but found '${p}'`);if(t.type===i.TopologyType.LoadBalanced)return r.filter(h);if(t.type===i.TopologyType.Unknown)return[];if(t.type===i.TopologyType.Single||t.type===i.TopologyType.Sharded)return a(t,r.filter(d));const f=e.mode;if(f===o.ReadPreference.PRIMARY)return r.filter(u);if(f===o.ReadPreference.PRIMARY_PREFERRED){const e=r.filter(u);if(e.length)return e}const m=f===o.ReadPreference.NEAREST?l:c,g=a(t,function(e,t){if(null==e.tags||Array.isArray(e.tags)&&0===e.tags.length)return t;for(let r=0;r<e.tags.length;++r){const n=e.tags[r],o=t.reduce(((e,t)=>(s(n,t.tags)&&e.push(t),e)),[]);if(o.length)return o}return[]}(e,function(e,t,r){if(null==e.maxStalenessSeconds||e.maxStalenessSeconds<0)return r;const o=e.maxStalenessSeconds,s=(t.heartbeatFrequencyMS+1e4)/1e3;if(o<s)throw new n.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${s} seconds`);if(o<90)throw new n.MongoInvalidArgumentError('Option "maxStalenessSeconds" must be at least 90 seconds');if(t.type===i.TopologyType.ReplicaSetWithPrimary){const n=Array.from(t.servers.values()).filter(u)[0];return r.reduce(((r,o)=>((o.lastUpdateTime-o.lastWriteDate-(n.lastUpdateTime-n.lastWriteDate)+t.heartbeatFrequencyMS)/1e3<=(e.maxStalenessSeconds??0)&&r.push(o),r)),[])}if(t.type===i.TopologyType.ReplicaSetNoPrimary){if(0===r.length)return r;const n=r.reduce(((e,t)=>t.lastWriteDate>e.lastWriteDate?t:e));return r.reduce(((r,o)=>((n.lastWriteDate-o.lastWriteDate+t.heartbeatFrequencyMS)/1e3<=(e.maxStalenessSeconds??0)&&r.push(o),r)),[])}return r}(e,t,r.filter(m))));return f===o.ReadPreference.SECONDARY_PREFERRED&&0===g.length?r.filter(u):g}}t.MIN_SECONDARY_WRITE_WIRE_VERSION=13,t.writableServerSelector=function(){return(e,t)=>a(e,t.filter((e=>e.isWritable)))},t.sameServerSelector=function(e){return(t,r)=>e?r.filter((t=>t.address===e.address&&t.type!==i.ServerType.Unknown)):[]},t.secondaryWritableServerSelector=function(e,r){return!r||!e||e&&e<t.MIN_SECONDARY_WRITE_WIRE_VERSION?p(o.ReadPreference.primary):p(r)},t.readPreferenceServerSelector=p},8709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SrvPoller=t.SrvPollingEvent=void 0;const n=r(9523),o=r(9512),i=r(4947),s=r(334),a=r(2229);class u{constructor(e){this.srvRecords=e}hostnames(){return new Set(this.srvRecords.map((e=>a.HostAddress.fromSrvRecord(e).toString())))}}t.SrvPollingEvent=u;class c extends s.TypedEventEmitter{constructor(e){if(super(),!e||!e.srvHost)throw new i.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=e.srvHost,this.srvMaxHosts=e.srvMaxHosts??0,this.srvServiceName=e.srvServiceName??"mongodb",this.rescanSrvIntervalMS=6e4,this.heartbeatFrequencyMS=e.heartbeatFrequencyMS??1e4,this.haMode=!1,this.generation=0,this._timeout=void 0}get srvAddress(){return`_${this.srvServiceName}._tcp.${this.srvHost}`}get intervalMS(){return this.haMode?this.heartbeatFrequencyMS:this.rescanSrvIntervalMS}start(){this._timeout||this.schedule()}stop(){this._timeout&&((0,o.clearTimeout)(this._timeout),this.generation+=1,this._timeout=void 0)}schedule(){this._timeout&&(0,o.clearTimeout)(this._timeout),this._timeout=(0,o.setTimeout)((()=>{this._poll().catch((()=>null))}),this.intervalMS)}success(e){this.haMode=!1,this.schedule(),this.emit(c.SRV_RECORD_DISCOVERY,new u(e))}failure(){this.haMode=!0,this.schedule()}async _poll(){const e=this.generation;let t;try{t=await n.promises.resolveSrv(this.srvAddress)}catch(e){return void this.failure()}if(e!==this.generation)return;const r=[];for(const e of t)(0,a.matchesParentDomain)(e.name,this.srvHost)&&r.push(e);r.length?this.success(r):this.failure()}}c.SRV_RECORD_DISCOVERY="srvRecordDiscovery",t.SrvPoller=c},9281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerCapabilities=t.Topology=void 0;const n=r(9512),o=r(3849),i=r(2395),s=r(5006),a=r(4947),u=r(334),c=r(1228),l=r(2229),d=r(5896),h=r(8214),p=r(8631),f=r(9735),m=r(114),g=r(8709),y=r(7411);let E=0;const A=(0,l.makeStateMachine)({[d.STATE_CLOSED]:[d.STATE_CLOSED,d.STATE_CONNECTING],[d.STATE_CONNECTING]:[d.STATE_CONNECTING,d.STATE_CLOSING,d.STATE_CONNECTED,d.STATE_CLOSED],[d.STATE_CONNECTED]:[d.STATE_CONNECTED,d.STATE_CLOSING,d.STATE_CLOSED],[d.STATE_CLOSING]:[d.STATE_CLOSING,d.STATE_CLOSED]}),v=Symbol("cancelled"),C=Symbol("waitQueue");class b extends u.TypedEventEmitter{constructor(e,t,r){super(),this.client=e,this.selectServerAsync=(0,o.promisify)(((e,t,r)=>this.selectServer(e,t,r))),r=r??{hosts:[l.HostAddress.fromString("localhost:27017")],...Object.fromEntries(i.DEFAULT_OPTIONS.entries()),...Object.fromEntries(i.FEATURE_FLAGS.entries())},"string"==typeof t?t=[l.HostAddress.fromString(t)]:Array.isArray(t)||(t=[t]);const n=[];for(const e of t)if("string"==typeof e)n.push(l.HostAddress.fromString(e));else{if(!(e instanceof l.HostAddress))throw new a.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(e)}`);n.push(e)}const s=function(e){return e?.directConnection?d.TopologyType.Single:e?.replicaSet?d.TopologyType.ReplicaSetNoPrimary:e?.loadBalanced?d.TopologyType.LoadBalanced:d.TopologyType.Unknown}(r),u=E++,c=null==r.srvMaxHosts||0===r.srvMaxHosts||r.srvMaxHosts>=n.length?n:(0,l.shuffle)(n,r.srvMaxHosts),h=new Map;for(const e of c)h.set(e.toString(),new f.ServerDescription(e));this[C]=new l.List,this.s={id:u,options:r,seedlist:n,state:d.STATE_CLOSED,description:new y.TopologyDescription(s,h,r.replicaSet,void 0,void 0,void 0,r),serverSelectionTimeoutMS:r.serverSelectionTimeoutMS,heartbeatFrequencyMS:r.heartbeatFrequencyMS,minHeartbeatFrequencyMS:r.minHeartbeatFrequencyMS,servers:new Map,credentials:r?.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:e=>this.detectShardedTopology(e),detectSrvRecords:e=>this.detectSrvRecords(e)},r.srvHost&&!r.loadBalanced&&(this.s.srvPoller=r.srvPoller??new g.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:r.srvHost,srvMaxHosts:r.srvMaxHosts,srvServiceName:r.srvServiceName}),this.on(b.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology))}detectShardedTopology(e){const t=e.previousDescription.type,r=e.newDescription.type,n=t!==d.TopologyType.Sharded&&r===d.TopologyType.Sharded,o=this.s.srvPoller?.listeners(g.SrvPoller.SRV_RECORD_DISCOVERY),i=!!o?.includes(this.s.detectSrvRecords);n&&!i&&(this.s.srvPoller?.on(g.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start())}detectSrvRecords(e){const t=this.s.description;this.s.description=this.s.description.updateFromSrvPollingEvent(e,this.s.options.srvMaxHosts),this.s.description!==t&&(O(this),this.emit(b.TOPOLOGY_DESCRIPTION_CHANGED,new h.TopologyDescriptionChangedEvent(this.s.id,t,this.s.description)))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new D(this.lastHello())}connect(e,t){if("function"==typeof e&&(t=e,e={}),e=e??{},this.s.state===d.STATE_CONNECTED)return void("function"==typeof t&&t());A(this,d.STATE_CONNECTING),this.emit(b.TOPOLOGY_OPENING,new h.TopologyOpeningEvent(this.s.id)),this.emit(b.TOPOLOGY_DESCRIPTION_CHANGED,new h.TopologyDescriptionChangedEvent(this.s.id,new y.TopologyDescription(d.TopologyType.Unknown),this.s.description));const r=Array.from(this.s.description.servers.values());if(this.s.servers=new Map(r.map((e=>[e.address,w(this,e)]))),this.s.options.loadBalanced)for(const e of r){const t=new f.ServerDescription(e.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(t)}const n=e=>t?t(e):this.emit(b.ERROR,e),o=e.readPreference??c.ReadPreference.primary;this.selectServer((0,m.readPreferenceServerSelector)(o),e,((e,r)=>{if(e)return this.close({force:!1},(()=>n(e)));!0!==this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]&&r&&this.s.credentials?r.command((0,l.ns)("admin.$cmd"),{ping:1},{},(e=>{if(e)return n(e);A(this,d.STATE_CONNECTED),this.emit(b.OPEN,this),this.emit(b.CONNECT,this),t?.(void 0,this)})):(A(this,d.STATE_CONNECTED),this.emit(b.OPEN,this),this.emit(b.CONNECT,this),t?.(void 0,this))}))}close(e,t){if(e=e??{force:!1},this.s.state===d.STATE_CLOSED||this.s.state===d.STATE_CLOSING)return t?.();const r=Array.from(this.s.servers.values(),(t=>(0,o.promisify)(S)(t,this,{force:!!e?.force})));Promise.all(r).then((()=>{this.s.servers.clear(),A(this,d.STATE_CLOSING),x(this[C],new a.MongoTopologyClosedError),(0,d.drainTimerQueue)(this.s.connectionTimers),this.s.srvPoller&&(this.s.srvPoller.stop(),this.s.srvPoller.removeListener(g.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords)),this.removeListener(b.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),A(this,d.STATE_CLOSED),this.emit(b.TOPOLOGY_CLOSED,new h.TopologyClosedEvent(this.s.id))})).finally((()=>t?.()))}selectServer(e,t,r){let o;if("function"!=typeof e)if("string"==typeof e)o=(0,m.readPreferenceServerSelector)(c.ReadPreference.fromString(e));else{let r;e instanceof c.ReadPreference?r=e:(c.ReadPreference.translate(t),r=t.readPreference||c.ReadPreference.primary),o=(0,m.readPreferenceServerSelector)(r)}else o=e;t=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},t);const i=this.description.type===d.TopologyType.Sharded,s=t.session,u=s&&s.transaction;if(i&&u&&u.server)return void r(void 0,u.server);const l={serverSelector:o,transaction:u,callback:r},h=t.serverSelectionTimeoutMS;h&&(l.timer=(0,n.setTimeout)((()=>{l[v]=!0,l.timer=void 0;const e=new a.MongoServerSelectionError(`Server selection timed out after ${h} ms`,this.description);l.callback(e)}),h)),this[C].push(l),_(this)}serverUpdateHandler(e){if(!this.s.description.hasServer(e.address))return;if(function(e,t){const r=e.servers.get(t.address),n=r?.topologyVersion;return(0,f.compareTopologyVersion)(n,t.topologyVersion)>0}(this.s.description,e))return;const t=this.s.description,r=this.s.description.servers.get(e.address);if(!r)return;const n=e.$clusterTime;n&&(0,d._advanceClusterTime)(this,n);const o=r&&r.equals(e);if(this.s.description=this.s.description.update(e),this.s.description.compatibilityError)this.emit(b.ERROR,new a.MongoCompatibilityError(this.s.description.compatibilityError));else{if(!o){const t=this.s.description.servers.get(e.address);t&&this.emit(b.SERVER_DESCRIPTION_CHANGED,new h.ServerDescriptionChangedEvent(this.s.id,e.address,r,t))}O(this,e),this[C].length>0&&_(this),o||this.emit(b.TOPOLOGY_DESCRIPTION_CHANGED,new h.TopologyDescriptionChangedEvent(this.s.id,t,this.s.description))}}auth(e,t){"function"==typeof e&&(t=e,e=void 0),"function"==typeof t&&t(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===d.STATE_CONNECTED}isDestroyed(){return this.s.state===d.STATE_CLOSED}lastHello(){const e=Array.from(this.description.servers.values());return 0===e.length?{}:e.filter((e=>e.type!==d.ServerType.Unknown))[0]||{maxWireVersion:this.description.commonWireVersion}}get commonWireVersion(){return this.description.commonWireVersion}get logicalSessionTimeoutMinutes(){return this.description.logicalSessionTimeoutMinutes}get clusterTime(){return this.s.clusterTime}set clusterTime(e){this.s.clusterTime=e}}function S(e,t,r,n){r=r??{force:!1};for(const t of s.LOCAL_SERVER_EVENTS)e.removeAllListeners(t);e.destroy(r,(()=>{t.emit(b.SERVER_CLOSED,new h.ServerClosedEvent(t.s.id,e.description.address));for(const t of s.SERVER_RELAY_EVENTS)e.removeAllListeners(t);"function"==typeof n&&n()}))}function w(e,t){e.emit(b.SERVER_OPENING,new h.ServerOpeningEvent(e.s.id,t.address));const r=new p.Server(e,t,e.s.options);for(const t of s.SERVER_RELAY_EVENTS)r.on(t,(r=>e.emit(t,r)));return r.on(p.Server.DESCRIPTION_RECEIVED,(t=>e.serverUpdateHandler(t))),r.connect(),r}function O(e,t){if(t&&e.s.servers.has(t.address)){const r=e.s.servers.get(t.address);if(r)if(r.s.description=t,t.error instanceof a.MongoError&&t.error.hasErrorLabel(a.MongoErrorLabel.ResetPool)){const e=t.error.hasErrorLabel(a.MongoErrorLabel.InterruptInUseConnections);r.pool.clear({interruptInUseConnections:e})}else if(null==t.error){const n=e.s.description.type;(t.isDataBearing||t.type!==d.ServerType.Unknown&&n===d.TopologyType.Single)&&r.pool.ready()}}for(const t of e.description.servers.values())if(!e.s.servers.has(t.address)){const r=w(e,t);e.s.servers.set(t.address,r)}for(const t of e.s.servers){const r=t[0];if(e.description.hasServer(r))continue;if(!e.s.servers.has(r))continue;const n=e.s.servers.get(r);e.s.servers.delete(r),n&&S(n,e)}}function x(e,t){for(;e.length;){const r=e.shift();r&&(r.timer&&(0,n.clearTimeout)(r.timer),r[v]||r.callback(t))}}function _(e){if(e.s.state===d.STATE_CLOSED)return void x(e[C],new a.MongoTopologyClosedError);const t=e.description.type===d.TopologyType.Sharded,r=Array.from(e.description.servers.values()),o=e[C].length;for(let i=0;i<o;++i){const o=e[C].shift();if(!o)continue;if(o[v])continue;let i,s;try{const t=o.serverSelector;i=t?t(e.description,r):r}catch(e){o.timer&&(0,n.clearTimeout)(o.timer),o.callback(e);continue}if(0===i.length){e[C].push(o);continue}if(1===i.length)s=e.s.servers.get(i[0].address);else{const t=(0,l.shuffle)(i,2),r=e.s.servers.get(t[0].address),n=e.s.servers.get(t[1].address);s=r&&n&&r.s.operationCount<n.s.operationCount?r:n}if(!s)return void o.callback(new a.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",e.description));const u=o.transaction;t&&u&&u.isActive&&s&&u.pinServer(s),o.timer&&(0,n.clearTimeout)(o.timer),o.callback(void 0,s)}if(e[C].length>0)for(const[,t]of e.s.servers)process.nextTick((function(){return t.requestCheck()}))}b.SERVER_OPENING=s.SERVER_OPENING,b.SERVER_CLOSED=s.SERVER_CLOSED,b.SERVER_DESCRIPTION_CHANGED=s.SERVER_DESCRIPTION_CHANGED,b.TOPOLOGY_OPENING=s.TOPOLOGY_OPENING,b.TOPOLOGY_CLOSED=s.TOPOLOGY_CLOSED,b.TOPOLOGY_DESCRIPTION_CHANGED=s.TOPOLOGY_DESCRIPTION_CHANGED,b.ERROR=s.ERROR,b.OPEN=s.OPEN,b.CONNECT=s.CONNECT,b.CLOSE=s.CLOSE,b.TIMEOUT=s.TIMEOUT,t.Topology=b;class D{constructor(e){this.minWireVersion=e.minWireVersion||0,this.maxWireVersion=e.maxWireVersion||0}get hasAggregationCursor(){return this.maxWireVersion>=1}get hasWriteCommands(){return this.maxWireVersion>=2}get hasTextSearch(){return this.minWireVersion>=0}get hasAuthCommands(){return this.maxWireVersion>=1}get hasListCollectionsCommand(){return this.maxWireVersion>=3}get hasListIndexesCommand(){return this.maxWireVersion>=3}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return this.maxWireVersion>=5}get commandsTakeCollation(){return this.maxWireVersion>=5}}t.ServerCapabilities=D},7411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopologyDescription=void 0;const n=r(3496),o=r(4947),i=r(2229),s=r(5896),a=r(9735),u=n.MIN_SUPPORTED_SERVER_VERSION,c=n.MAX_SUPPORTED_SERVER_VERSION,l=n.MIN_SUPPORTED_WIRE_VERSION,d=n.MAX_SUPPORTED_WIRE_VERSION,h=new Set([s.ServerType.Mongos,s.ServerType.Unknown]),p=new Set([s.ServerType.Mongos,s.ServerType.Standalone]),f=new Set([s.ServerType.RSSecondary,s.ServerType.RSArbiter,s.ServerType.RSOther]);class m{constructor(e,t=null,r=null,n=null,o=null,i=null,a=null){a=a??{},this.type=e??s.TopologyType.Unknown,this.servers=t??new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=a.heartbeatFrequencyMS??0,this.localThresholdMS=a.localThresholdMS??15,this.setName=r??null,this.maxElectionId=o??null,this.maxSetVersion=n??null,this.commonWireVersion=i??0;for(const e of this.servers.values())if(e.type!==s.ServerType.Unknown&&e.type!==s.ServerType.LoadBalancer&&(e.minWireVersion>d&&(this.compatible=!1,this.compatibilityError=`Server at ${e.address} requires wire version ${e.minWireVersion}, but this version of the driver only supports up to ${d} (MongoDB ${c})`),e.maxWireVersion<l)){this.compatible=!1,this.compatibilityError=`Server at ${e.address} reports wire version ${e.maxWireVersion}, but this version of the driver requires at least ${l} (MongoDB ${u}).`;break}this.logicalSessionTimeoutMinutes=null;for(const[,e]of this.servers)if(e.isReadable){if(null==e.logicalSessionTimeoutMinutes){this.logicalSessionTimeoutMinutes=null;break}if(null==this.logicalSessionTimeoutMinutes){this.logicalSessionTimeoutMinutes=e.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,e.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(e,t=0){const r=e.hostnames(),n=new Set(this.servers.keys()),o=new Set(r),s=new Set;for(const e of n)o.delete(e),r.has(e)||s.add(e);if(0===o.size&&0===s.size)return this;const u=new Map(this.servers);for(const e of s)u.delete(e);if(o.size>0)if(0===t)for(const e of o)u.set(e,new a.ServerDescription(e));else if(u.size<t){const e=(0,i.shuffle)(o,t-u.size);for(const t of e)u.set(t,new a.ServerDescription(t))}return new m(this.type,u,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(e){const t=e.address;let{type:r,setName:n,maxSetVersion:i,maxElectionId:u,commonWireVersion:c}=this;const l=e.type,d=new Map(this.servers);if(0!==e.maxWireVersion&&(c=null==c?e.maxWireVersion:Math.min(c,e.maxWireVersion)),"string"==typeof e.setName&&"string"==typeof n&&e.setName!==n&&(r===s.TopologyType.Single?e=new a.ServerDescription(t):d.delete(t)),d.set(t,e),r===s.TopologyType.Single)return new m(s.TopologyType.Single,d,n,i,u,c,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if(r===s.TopologyType.Unknown&&(l===s.ServerType.Standalone&&1!==this.servers.size?d.delete(t):r=function(e){switch(e){case s.ServerType.Standalone:return s.TopologyType.Single;case s.ServerType.Mongos:return s.TopologyType.Sharded;case s.ServerType.RSPrimary:return s.TopologyType.ReplicaSetWithPrimary;case s.ServerType.RSOther:case s.ServerType.RSSecondary:return s.TopologyType.ReplicaSetNoPrimary;default:return s.TopologyType.Unknown}}(l)),r===s.TopologyType.Sharded&&(h.has(l)||d.delete(t)),r===s.TopologyType.ReplicaSetNoPrimary)if(p.has(l)&&d.delete(t),l===s.ServerType.RSPrimary){const t=g(d,e,n,i,u);r=t[0],n=t[1],i=t[2],u=t[3]}else if(f.has(l)){const t=function(e,t,r=null){const n=s.TopologyType.ReplicaSetNoPrimary;return(r=r??t.setName)!==t.setName?(e.delete(t.address),[n,r]):(t.allHosts.forEach((t=>{e.has(t)||e.set(t,new a.ServerDescription(t))})),t.me&&t.address!==t.me&&e.delete(t.address),[n,r])}(d,e,n);r=t[0],n=t[1]}if(r===s.TopologyType.ReplicaSetWithPrimary)if(p.has(l))d.delete(t),r=y(d);else if(l===s.ServerType.RSPrimary){const t=g(d,e,n,i,u);r=t[0],n=t[1],i=t[2],u=t[3]}else r=f.has(l)?function(e,t,r=null){if(null==r)throw new o.MongoRuntimeError('Argument "setName" is required if connected to a replica set');return(r!==t.setName||t.me&&t.address!==t.me)&&e.delete(t.address),y(e)}(d,e,n):y(d);return new m(r,d,n,i,u,c,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const e=Array.from(this.servers.values()).filter((e=>e.error));return e.length>0?e[0].error:null}get hasKnownServers(){return Array.from(this.servers.values()).some((e=>e.type!==s.ServerType.Unknown))}get hasDataBearingServers(){return Array.from(this.servers.values()).some((e=>e.isDataBearing))}hasServer(e){return this.servers.has(e)}}function g(e,t,r=null,n=null,o=null){if((r=r||t.setName)!==t.setName)return e.delete(t.address),[y(e),r,n,o];if(t.maxWireVersion>=17){const s=(0,i.compareObjectId)(o,t.electionId),u=0===s,c=-1===s,l=(n??-1)<=(t.setVersion??-1);if(!(c||u&&l))return e.set(t.address,new a.ServerDescription(t.address)),[y(e),r,n,o];o=t.electionId,n=t.setVersion}else{const s=t.electionId?t.electionId:null;if(t.setVersion&&s){if(n&&o&&(n>t.setVersion||(0,i.compareObjectId)(o,s)>0))return e.set(t.address,new a.ServerDescription(t.address)),[y(e),r,n,o];o=t.electionId}null!=t.setVersion&&(null==n||t.setVersion>n)&&(n=t.setVersion)}for(const[r,n]of e)if(n.type===s.ServerType.RSPrimary&&n.address!==t.address){e.set(r,new a.ServerDescription(n.address));break}t.allHosts.forEach((t=>{e.has(t)||e.set(t,new a.ServerDescription(t))}));const u=Array.from(e.keys()),c=t.allHosts;return u.filter((e=>-1===c.indexOf(e))).forEach((t=>{e.delete(t)})),[y(e),r,n,o]}function y(e){for(const t of e.values())if(t.type===s.ServerType.RSPrimary)return s.TopologyType.ReplicaSetWithPrimary;return s.TopologyType.ReplicaSetNoPrimary}t.TopologyDescription=m},1296:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.updateSessionFromResponse=t.applySession=t.ServerSessionPool=t.ServerSession=t.maybeClearPinnedConnection=t.ClientSession=void 0;const o=r(3849),i=r(9064),s=r(8547),a=r(3377),u=r(5006),c=r(4947),l=r(334),d=r(7445),h=r(25),p=r(3389),f=r(1228),m=r(5896),g=r(6204),y=r(2229),E=r(4620),A=Symbol("serverSession"),v=Symbol("snapshotTime"),C=Symbol("snapshotEnabled"),b=Symbol("pinnedConnection"),S=Symbol("txnNumberIncrement");class w extends l.TypedEventEmitter{constructor(e,t,r,o){if(super(),this[n]=!1,null==e)throw new c.MongoRuntimeError("ClientSession requires a MongoClient");if(null==t||!(t instanceof P))throw new c.MongoRuntimeError("ClientSession requires a ServerSessionPool");if(!0===(r=r??{}).snapshot&&(this[C]=!0,!0===r.causalConsistency))throw new c.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive');this.client=e,this.sessionPool=t,this.hasEnded=!1,this.clientOptions=o,this.explicit=!!r.explicit,this[A]=this.explicit?this.sessionPool.acquire():null,this[S]=0;const i=this.explicit&&!0!==r.snapshot;this.supports={causalConsistency:r.causalConsistency??i},this.clusterTime=r.initialClusterTime,this.operationTime=void 0,this.owner=r.owner,this.defaultTransactionOptions=Object.assign({},r.defaultTransactionOptions),this.transaction=new g.Transaction}get id(){return this[A]?.id}get serverSession(){let e=this[A];if(null==e){if(this.explicit)throw new c.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new c.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");e=this.sessionPool.acquire(),this[A]=e}return e}get snapshotEnabled(){return this[C]}get loadBalanced(){return this.client.topology?.description.type===m.TopologyType.LoadBalanced}get pinnedConnection(){return this[b]}pin(e){if(this[b])throw TypeError("Cannot pin multiple connections to the same session");this[b]=e,e.emit(u.PINNED,this.inTransaction()?s.ConnectionPoolMetrics.TXN:s.ConnectionPoolMetrics.CURSOR)}unpin(e){if(this.loadBalanced)return D(this,e);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[b]:this.transaction.isPinned}async endSession(e){try{if(this.inTransaction()&&await this.abortTransaction(),!this.hasEnded){const e=this[A];null!=e&&(this.sessionPool.release(e),Object.defineProperty(this,A,{value:k.clone(e),writable:!1})),this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{D(this,{force:!0,...e})}}advanceOperationTime(e){null!=this.operationTime?e.greaterThan(this.operationTime)&&(this.operationTime=e):this.operationTime=e}advanceClusterTime(e){if(!e||"object"!=typeof e)throw new c.MongoInvalidArgumentError("input cluster time must be an object");if(!e.clusterTime||"Timestamp"!==e.clusterTime._bsontype)throw new c.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!e.signature||"Binary"!==e.signature.hash?._bsontype||"bigint"!=typeof e.signature.keyId&&"number"!=typeof e.signature.keyId&&"Long"!==e.signature.keyId?._bsontype)throw new c.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');(0,m._advanceClusterTime)(this,e)}equals(e){return e instanceof w&&null!=this.id&&null!=e.id&&y.ByteUtils.equals(this.id.id.buffer,e.id.id.buffer)}incrementTransactionNumber(){this[S]+=1}inTransaction(){return this.transaction.isActive}startTransaction(e){if(this[C])throw new c.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new c.MongoTransactionError("Transaction already in progress");this.isPinned&&this.transaction.isCommitted&&this.unpin();const t=(0,y.maxWireVersion)(this.client.topology);if((0,a.isSharded)(this.client.topology)&&null!=t&&t<8)throw new c.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new g.Transaction({readConcern:e?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:e?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:e?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:e?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(g.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return F(this,"commitTransaction")}async abortTransaction(){return F(this,"abortTransaction")}toBSON(){throw new c.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(e,t){return R(this,(0,y.now)(),e,t)}}t.ClientSession=w,n=C;const O=12e4,x=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);function _(e,t){return(0,y.calculateDurationInMs)(e)<t}function D(e,t){const r=e[b],n=t?.error;if(e.inTransaction()&&n&&n instanceof c.MongoError&&n.hasErrorLabel(c.MongoErrorLabel.TransientTransactionError))return;const o=e.client.topology;if(r&&null!=o){const n=Array.from(o.s.servers.values())[0];(null==t?.error||t?.force)&&(n.pool.checkIn(r),r.emit(u.UNPINNED,e.transaction.state!==g.TxnState.NO_TRANSACTION?s.ConnectionPoolMetrics.TXN:s.ConnectionPoolMetrics.CURSOR),t?.forceClear&&n.pool.clear({serviceId:r.serviceId})),e[b]=void 0}}function T(e){return null!=e&&e instanceof c.MongoServerError&&(e.code===c.MONGODB_ERROR_CODES.MaxTimeMSExpired||e.writeConcernError&&e.writeConcernError.code===c.MONGODB_ERROR_CODES.MaxTimeMSExpired)}function I(e,t,r,n){return e.commitTransaction().catch((o=>{if(o instanceof c.MongoError&&_(t,O)&&!T(o)){if(o.hasErrorLabel(c.MongoErrorLabel.UnknownTransactionCommitResult))return I(e,t,r,n);if(o.hasErrorLabel(c.MongoErrorLabel.TransientTransactionError))return R(e,t,r,n)}throw o}))}t.maybeClearPinnedConnection=D;const B=new Set([g.TxnState.NO_TRANSACTION,g.TxnState.TRANSACTION_COMMITTED,g.TxnState.TRANSACTION_ABORTED]);function R(e,t,r,n){let o;e.startTransaction(n);try{o=r(e)}catch(e){o=Promise.reject(e)}if(!(0,y.isPromiseLike)(o))throw e.abortTransaction().catch((()=>null)),new c.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise");return o.then((()=>{if(!function(e){return B.has(e.transaction.state)}(e))return I(e,t,r,n)}),(o=>{function i(o){if(o instanceof c.MongoError&&o.hasErrorLabel(c.MongoErrorLabel.TransientTransactionError)&&_(t,O))return R(e,t,r,n);throw T(o)&&o.addErrorLabel(c.MongoErrorLabel.UnknownTransactionCommitResult),o}return e.inTransaction()?e.abortTransaction().then((()=>i(o))):i(o)}))}const F=(0,o.promisify)((function(e,t,r){const n=e.transaction.state;if(n===g.TxnState.NO_TRANSACTION)return void r(new c.MongoTransactionError("No transaction started"));if("commitTransaction"===t){if(n===g.TxnState.STARTING_TRANSACTION||n===g.TxnState.TRANSACTION_COMMITTED_EMPTY)return e.transaction.transition(g.TxnState.TRANSACTION_COMMITTED_EMPTY),void r();if(n===g.TxnState.TRANSACTION_ABORTED)return void r(new c.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"))}else{if(n===g.TxnState.STARTING_TRANSACTION)return e.transaction.transition(g.TxnState.TRANSACTION_ABORTED),void r();if(n===g.TxnState.TRANSACTION_ABORTED)return void r(new c.MongoTransactionError("Cannot call abortTransaction twice"));if(n===g.TxnState.TRANSACTION_COMMITTED||n===g.TxnState.TRANSACTION_COMMITTED_EMPTY)return void r(new c.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"))}const o={[t]:1};let i;function s(n,o){if("commitTransaction"!==t)return e.transaction.transition(g.TxnState.TRANSACTION_ABORTED),e.loadBalanced&&D(e,{force:!1}),r();e.transaction.transition(g.TxnState.TRANSACTION_COMMITTED),n instanceof c.MongoError&&(n.hasErrorLabel(c.MongoErrorLabel.RetryableWriteError)||n instanceof c.MongoWriteConcernError||T(n)?function(e){const t=e instanceof c.MongoServerError&&e.codeName&&x.has(e.codeName);return T(e)||!t&&e.code!==c.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&e.code!==c.MONGODB_ERROR_CODES.UnknownReplWriteConcern}(n)&&(n.addErrorLabel(c.MongoErrorLabel.UnknownTransactionCommitResult),e.unpin({error:n})):n.hasErrorLabel(c.MongoErrorLabel.TransientTransactionError)&&e.unpin({error:n})),r(n,o)}e.transaction.options.writeConcern?i=Object.assign({},e.transaction.options.writeConcern):e.clientOptions&&e.clientOptions.writeConcern&&(i={w:e.clientOptions.writeConcern.w}),n===g.TxnState.TRANSACTION_COMMITTED&&(i=Object.assign({wtimeoutMS:1e4},i,{w:"majority"})),i&&E.WriteConcern.apply(o,i),"commitTransaction"===t&&e.transaction.options.maxTimeMS&&Object.assign(o,{maxTimeMS:e.transaction.options.maxTimeMS}),e.transaction.recoveryToken&&(o.recoveryToken=e.transaction.recoveryToken),(0,d.executeOperation)(e.client,new h.RunAdminCommandOperation(void 0,o,{session:e,readPreference:f.ReadPreference.primary,bypassPinningCheck:!0}),((t,r)=>{if(o.abortTransaction&&e.unpin(),t instanceof c.MongoError&&t.hasErrorLabel(c.MongoErrorLabel.RetryableWriteError))return o.commitTransaction&&(e.unpin({force:!0}),o.writeConcern=Object.assign({wtimeout:1e4},o.writeConcern,{w:"majority"})),(0,d.executeOperation)(e.client,new h.RunAdminCommandOperation(void 0,o,{session:e,readPreference:f.ReadPreference.primary,bypassPinningCheck:!0}),s);s(t,r)}))}));class k{constructor(){this.id={id:new i.Binary((0,y.uuidV4)(),i.Binary.SUBTYPE_UUID)},this.lastUse=(0,y.now)(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(e){return Math.round((0,y.calculateDurationInMs)(this.lastUse)%864e5%36e5/6e4)>e-1}static clone(e){const t=new ArrayBuffer(16),r=Buffer.from(t);r.set(e.id.id.buffer);const n=new i.Binary(r,e.id.id.sub_type);return Object.setPrototypeOf({id:{id:n},lastUse:e.lastUse,txnNumber:e.txnNumber,isDirty:e.isDirty},k.prototype)}}t.ServerSession=k;class P{constructor(e){if(null==e)throw new c.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=e,this.sessions=new y.List}acquire(){const e=this.client.topology?.logicalSessionTimeoutMinutes??10;let t=null;for(;this.sessions.length>0;){const r=this.sessions.shift();if(null!=r&&(this.client.topology?.loadBalanced||!r.hasTimedOut(e))){t=r;break}}return null==t&&(t=new k),t}release(e){const t=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!t&&this.sessions.unshift(e),t&&(this.sessions.prune((e=>e.hasTimedOut(t))),!e.hasTimedOut(t))){if(e.isDirty)return;this.sessions.unshift(e)}}}t.ServerSessionPool=P,t.applySession=function(e,t,r){if(e.hasEnded)return new c.MongoExpiredSessionError;const n=e.serverSession;if(null==n)return new c.MongoRuntimeError("Unable to acquire server session");if(0===r.writeConcern?.w)return e&&e.explicit?new c.MongoAPIError("Cannot have explicit session with unacknowledged writes"):void 0;n.lastUse=(0,y.now)(),t.lsid=n.id;const o=e.inTransaction()||(0,g.isTransactionCommand)(t);if((!!r.willRetryWrite||o)&&(n.txnNumber+=e[S],e[S]=0,t.txnNumber=i.Long.fromNumber(n.txnNumber)),!o)return e.transaction.state!==g.TxnState.NO_TRANSACTION&&e.transaction.transition(g.TxnState.NO_TRANSACTION),void(e.supports.causalConsistency&&e.operationTime&&(0,y.commandSupportsReadConcern)(t,r)?(t.readConcern=t.readConcern||{},Object.assign(t.readConcern,{afterClusterTime:e.operationTime})):e[C]&&(t.readConcern=t.readConcern||{level:p.ReadConcernLevel.snapshot},null!=e[v]&&Object.assign(t.readConcern,{atClusterTime:e[v]})));if(t.autocommit=!1,e.transaction.state===g.TxnState.STARTING_TRANSACTION){e.transaction.transition(g.TxnState.TRANSACTION_IN_PROGRESS),t.startTransaction=!0;const r=e.transaction.options.readConcern||e?.clientOptions?.readConcern;r&&(t.readConcern=r),e.supports.causalConsistency&&e.operationTime&&(t.readConcern=t.readConcern||{},Object.assign(t.readConcern,{afterClusterTime:e.operationTime}))}},t.updateSessionFromResponse=function(e,t){if(t.$clusterTime&&(0,m._advanceClusterTime)(e,t.$clusterTime),t.operationTime&&e&&e.supports.causalConsistency&&e.advanceOperationTime(t.operationTime),t.recoveryToken&&e&&e.inTransaction()&&(e.transaction._recoveryToken=t.recoveryToken),e?.[C]&&null==e[v]){const r=t.cursor?.atClusterTime||t.atClusterTime;r&&(e[v]=r)}}},649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatSort=void 0;const n=r(4947);function o(e=1){const t=`${e}`.toLowerCase();if("object"==typeof(r=e)&&null!=r&&"$meta"in r&&"string"==typeof r.$meta)return e;var r;switch(t){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new n.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(e)}`)}}t.formatSort=function(e,t){if(null!=e){if("string"==typeof e)return new Map([[e,o(t)]]);if("object"!=typeof e)throw new n.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(e)} Sort must be a valid object`);if(!Array.isArray(e))return(r=e)instanceof Map&&r.size>0?function(e){const t=Array.from(e).map((([e,t])=>[`${e}`,o(t)]));return new Map(t)}(e):Object.keys(e).length?function(e){const t=Object.entries(e).map((([e,t])=>[`${e}`,o(t)]));return new Map(t)}(e):void 0;var r,i;if(e.length)return function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?function(e){const t=e.map((([e,t])=>[`${e}`,o(t)]));return new Map(t)}(e):function(e){if(Array.isArray(e)&&2===e.length)try{return o(e[1]),!0}catch(e){return!1}return!1}(e)?(i=e,new Map([[`${i[0]}`,o([i[1]])]])):function(e){const t=e.map((e=>[`${e}`,1]));return new Map(t)}(e)}}},6204:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTransactionCommand=t.Transaction=t.TxnState=void 0;const n=r(4947),o=r(3389),i=r(1228),s=r(4620);t.TxnState=Object.freeze({NO_TRANSACTION:"NO_TRANSACTION",STARTING_TRANSACTION:"STARTING_TRANSACTION",TRANSACTION_IN_PROGRESS:"TRANSACTION_IN_PROGRESS",TRANSACTION_COMMITTED:"TRANSACTION_COMMITTED",TRANSACTION_COMMITTED_EMPTY:"TRANSACTION_COMMITTED_EMPTY",TRANSACTION_ABORTED:"TRANSACTION_ABORTED"});const a={[t.TxnState.NO_TRANSACTION]:[t.TxnState.NO_TRANSACTION,t.TxnState.STARTING_TRANSACTION],[t.TxnState.STARTING_TRANSACTION]:[t.TxnState.TRANSACTION_IN_PROGRESS,t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.TRANSACTION_ABORTED],[t.TxnState.TRANSACTION_IN_PROGRESS]:[t.TxnState.TRANSACTION_IN_PROGRESS,t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_ABORTED],[t.TxnState.TRANSACTION_COMMITTED]:[t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.STARTING_TRANSACTION,t.TxnState.NO_TRANSACTION],[t.TxnState.TRANSACTION_ABORTED]:[t.TxnState.STARTING_TRANSACTION,t.TxnState.NO_TRANSACTION],[t.TxnState.TRANSACTION_COMMITTED_EMPTY]:[t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.NO_TRANSACTION]},u=new Set([t.TxnState.STARTING_TRANSACTION,t.TxnState.TRANSACTION_IN_PROGRESS]),c=new Set([t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.TRANSACTION_ABORTED]);t.Transaction=class{constructor(e){e=e??{},this.state=t.TxnState.NO_TRANSACTION,this.options={};const r=s.WriteConcern.fromOptions(e);if(r){if(0===r.w)throw new n.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=r}e.readConcern&&(this.options.readConcern=o.ReadConcern.fromOptions(e)),e.readPreference&&(this.options.readPreference=i.ReadPreference.fromOptions(e)),e.maxCommitTimeMS&&(this.options.maxTimeMS=e.maxCommitTimeMS),this._pinnedServer=void 0,this._recoveryToken=void 0}get server(){return this._pinnedServer}get recoveryToken(){return this._recoveryToken}get isPinned(){return!!this.server}get isStarting(){return this.state===t.TxnState.STARTING_TRANSACTION}get isActive(){return u.has(this.state)}get isCommitted(){return c.has(this.state)}transition(e){const r=a[this.state];if(r&&r.includes(e))return this.state=e,void(this.state!==t.TxnState.NO_TRANSACTION&&this.state!==t.TxnState.STARTING_TRANSACTION&&this.state!==t.TxnState.TRANSACTION_ABORTED||this.unpinServer());throw new n.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${e}]`)}pinServer(e){this.isActive&&(this._pinnedServer=e)}unpinServer(){this._pinnedServer=void 0}},t.isTransactionCommand=function(e){return!(!e.commitTransaction&&!e.abortTransaction)}},2229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesParentDomain=t.parseUnsignedInteger=t.parseInteger=t.compareObjectId=t.getMongoDBClientEncryption=t.commandSupportsReadConcern=t.shuffle=t.supportsRetryableWrites=t.enumToString=t.emitWarningOnce=t.emitWarning=t.MONGODB_WARNING_CODE=t.DEFAULT_PK_FACTORY=t.HostAddress=t.BufferPool=t.List=t.deepCopy=t.isRecord=t.setDifference=t.isHello=t.isSuperset=t.resolveOptions=t.hasAtomicOperators=t.calculateDurationInMs=t.now=t.makeStateMachine=t.errorStrictEqual=t.arrayStrictEqual=t.eachAsync=t.maxWireVersion=t.uuidV4=t.databaseNamespace=t.maybeCallback=t.makeCounter=t.MongoDBCollectionNamespace=t.MongoDBNamespace=t.ns=t.getTopology=t.decorateWithExplain=t.decorateWithReadConcern=t.decorateWithCollation=t.isPromiseLike=t.applyRetryableWrites=t.filterOptions=t.mergeOptions=t.isObject=t.normalizeHintField=t.checkCollectionName=t.hostMatchesWildcards=t.ByteUtils=void 0,t.request=void 0;const n=r(6113),o=r(3685),i=r(7310),s=r(7310),a=r(9064),u=r(3496),c=r(5006),l=r(4947),d=r(3389),h=r(1228),p=r(5896),f=r(4620);t.ByteUtils={toLocalBufferType:e=>Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength),equals:(e,r)=>t.ByteUtils.toLocalBufferType(e).equals(r),compare:(e,r)=>t.ByteUtils.toLocalBufferType(e).compare(r),toBase64:e=>t.ByteUtils.toLocalBufferType(e).toString("base64")},t.hostMatchesWildcards=function(e,t){for(const r of t)if(e===r||r.startsWith("*.")&&e?.endsWith(r.substring(2,r.length))||r.startsWith("*/")&&e?.endsWith(r.substring(2,r.length)))return!0;return!1},t.checkCollectionName=function(e){if("string"!=typeof e)throw new l.MongoInvalidArgumentError("Collection name must be a String");if(!e||-1!==e.indexOf(".."))throw new l.MongoInvalidArgumentError("Collection names cannot be empty");if(-1!==e.indexOf("$")&&null==e.match(/((^\$cmd)|(oplog\.\$main))/))throw new l.MongoInvalidArgumentError("Collection names must not contain '$'");if(null!=e.match(/^\.|\.$/))throw new l.MongoInvalidArgumentError("Collection names must not start or end with '.'");if(-1!==e.indexOf("\0"))throw new l.MongoInvalidArgumentError("Collection names cannot contain a null character")},t.normalizeHintField=function(e){let t;if("string"==typeof e)t=e;else if(Array.isArray(e))t={},e.forEach((e=>{t[e]=1}));else if(null!=e&&"object"==typeof e){t={};for(const r in e)t[r]=e[r]}return t};const m=e=>Object.prototype.toString.call(e);function g(e){return"[object Object]"===m(e)}function y(e){if("topology"in e&&e.topology)return e.topology;if("client"in e&&e.client.topology)return e.client.topology;throw new l.MongoNotConnectedError("MongoClient must be connected to perform this operation")}t.isObject=g,t.mergeOptions=function(e,t){return{...e,...t}},t.filterOptions=function(e,t){const r={};for(const n in e)t.includes(n)&&(r[n]=e[n]);return r},t.applyRetryableWrites=function(e,t){return t&&t.s.options?.retryWrites&&(e.retryWrites=!0),e},t.isPromiseLike=function(e){return!!e&&"function"==typeof e.then},t.decorateWithCollation=function(e,t,r){const n=y(t).capabilities;if(r.collation&&"object"==typeof r.collation){if(!n||!n.commandsTakeCollation)throw new l.MongoCompatibilityError("Current topology does not support collation");e.collation=r.collation}},t.decorateWithReadConcern=function(e,t,r){if(r&&r.session&&r.session.inTransaction())return;const n=Object.assign({},e.readConcern||{});t.s.readConcern&&Object.assign(n,t.s.readConcern),Object.keys(n).length>0&&Object.assign(e,{readConcern:n})},t.decorateWithExplain=function(e,t){return e.explain?e:{explain:e,verbosity:t.verbosity}},t.getTopology=y,t.ns=function(e){return E.fromString(e)};class E{constructor(e,t){this.db=e,this.collection=t,this.collection=""===t?void 0:t}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(e){return new A(this.db,e)}static fromString(e){if("string"!=typeof e||""===e)throw new l.MongoRuntimeError(`Cannot parse namespace from "${e}"`);const[t,...r]=e.split("."),n=r.join(".");return new E(t,""===n?void 0:n)}}t.MongoDBNamespace=E;class A extends E{constructor(e,t){super(e,t),this.collection=t}}function v(){const e=process.hrtime();return Math.floor(1e3*e[0]+e[1]/1e6)}function C(e,t){e=Array.isArray(e)?new Set(e):e,t=Array.isArray(t)?new Set(t):t;for(const r of t)if(!e.has(r))return!1;return!0}t.MongoDBCollectionNamespace=A,t.makeCounter=function*(e=0){let t=e;for(;;){const e=t;t+=1,yield e}},t.maybeCallback=function(e,t){const r=e();if(null==t)return r;r.then((e=>t(void 0,e)),(e=>t(e)))},t.databaseNamespace=function(e){return e.split(".")[0]},t.uuidV4=function(){const e=n.randomBytes(16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e},t.maxWireVersion=function(e){if(e){if(e.loadBalanced)return u.MAX_SUPPORTED_WIRE_VERSION;if(e.hello)return e.hello.maxWireVersion;if("lastHello"in e&&"function"==typeof e.lastHello){const t=e.lastHello();if(t)return t.maxWireVersion}if(e.description&&"maxWireVersion"in e.description&&null!=e.description.maxWireVersion)return e.description.maxWireVersion}return 0},t.eachAsync=function(e,t,r){e=e||[];let n=0,o=0;for(n=0;n<e.length;++n)o++,t(e[n],i);function i(t){o--,t?r(t):n===e.length&&o<=0&&r()}0!==o||r()},t.arrayStrictEqual=function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length===t.length&&e.every(((e,r)=>e===t[r]))},t.errorStrictEqual=function(e,t){return e===t||(e&&t?!(null==e&&null!=t||null!=e&&null==t)&&e.constructor.name===t.constructor.name&&e.message===t.message:e===t)},t.makeStateMachine=function(e){return function(t,r){const n=e[t.s.state];if(n&&n.indexOf(r)<0)throw new l.MongoRuntimeError(`illegal state transition from [${t.s.state}] => [${r}], allowed: [${n}]`);t.emit("stateChanged",t.s.state,r),t.s.state=r}},t.now=v,t.calculateDurationInMs=function(e){if("number"!=typeof e)throw new l.MongoInvalidArgumentError("Numeric value required to calculate duration");const t=v()-e;return t<0?0:t},t.hasAtomicOperators=function e(t){if(Array.isArray(t)){for(const r of t)if(e(r))return!0;return!1}const r=Object.keys(t);return r.length>0&&"$"===r[0][0]},t.resolveOptions=function(e,t){const r=Object.assign({},t,(0,a.resolveBSONOptions)(t,e)),n=t?.session;if(!n?.inTransaction()){const n=d.ReadConcern.fromOptions(t)??e?.readConcern;n&&(r.readConcern=n);const o=f.WriteConcern.fromOptions(t)??e?.writeConcern;o&&(r.writeConcern=o)}const o=h.ReadPreference.fromOptions(t)??e?.readPreference;return o&&(r.readPreference=o),r},t.isSuperset=C,t.isHello=function(e){return!(!e[c.LEGACY_HELLO_COMMAND]&&!e.hello)},t.setDifference=function(e,t){const r=new Set(e);for(const e of t)r.delete(e);return r};function b(e,t=void 0){if(!g(e))return!1;const r=e.constructor;if(r&&r.prototype){if(!g(r.prototype))return!1;if(n=r.prototype,o="isPrototypeOf",!Object.prototype.hasOwnProperty.call(n,o))return!1}var n,o;return!t||C(Object.keys(e),t)}t.isRecord=b,t.deepCopy=function e(t){if(null==t)return t;if(Array.isArray(t))return t.map((t=>e(t)));if(b(t)){const r={};for(const n in t)r[n]=e(t[n]);return r}const r=t.constructor;if(r)switch(r.name.toLowerCase()){case"date":return new r(Number(t));case"map":return new Map(t);case"set":return new Set(t);case"buffer":return Buffer.from(t)}return t};class S{get length(){return this.count}get[Symbol.toStringTag](){return"List"}constructor(){this.count=0,this.head={next:null,prev:null,value:null},this.head.next=this.head,this.head.prev=this.head}toArray(){return Array.from(this)}toString(){return`head <=> ${this.toArray().join(" <=> ")} <=> head`}*[Symbol.iterator](){for(const e of this.nodes())yield e.value}*nodes(){let e=this.head.next;for(;e!==this.head;){const{next:t}=e;yield e,e=t}}push(e){this.count+=1;const t={next:this.head,prev:this.head.prev,value:e};this.head.prev.next=t,this.head.prev=t}pushMany(e){for(const t of e)this.push(t)}unshift(e){this.count+=1;const t={next:this.head.next,prev:this.head,value:e};this.head.next.prev=t,this.head.next=t}remove(e){if(e===this.head||0===this.length)return null;this.count-=1;const t=e.prev,r=e.next;return t.next=r,r.prev=t,e.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(e){for(const t of this.nodes())e(t.value)&&this.remove(t)}clear(){this.count=0,this.head.next=this.head,this.head.prev=this.head}first(){return this.head.next.value}last(){return this.head.prev.value}}t.List=S,t.BufferPool=class{constructor(){this.buffers=new S,this.totalByteLength=0}get length(){return this.totalByteLength}append(e){this.buffers.push(e),this.totalByteLength+=e.length}getInt32(){if(this.totalByteLength<4)return null;const e=this.buffers.first();if(null!=e&&e.byteLength>=4)return e.readInt32LE(0);const t=this.read(4),r=t.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(t),r}read(e){if("number"!=typeof e||e<0)throw new l.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(e>this.totalByteLength)return Buffer.alloc(0);const t=Buffer.allocUnsafe(e);for(let r=0;r<e;){const n=this.buffers.shift();if(null==n)break;const o=e-r,i=Math.min(o,n.byteLength),s=n.subarray(0,i);t.set(s,r),r+=i,this.totalByteLength-=i,i<n.byteLength&&this.buffers.unshift(n.subarray(i))}return t}};class w{constructor(e){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const t=e.split(" ").join("%20");if(t.endsWith(".sock"))return void(this.socketPath=decodeURIComponent(t));const r=`iLoveJS://${t}`;let n;try{n=new s.URL(r)}catch(e){const r=new l.MongoRuntimeError(`Unable to parse ${t} with URL`);throw r.cause=e,r}const o=n.hostname,i=n.port;let a=decodeURIComponent(o).toLowerCase();if(a.startsWith("[")&&a.endsWith("]")&&(this.isIPv6=!0,a=a.substring(1,o.length-1)),this.host=a.toLowerCase(),this.port="number"==typeof i?i:"string"==typeof i&&""!==i?Number.parseInt(i,10):27017,0===this.port)throw new l.MongoParseError("Invalid port (zero) with hostname");Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString()}')`}toString(){return"string"==typeof this.host?this.isIPv6?`[${this.host}]:${this.port}`:`${this.host}:${this.port}`:`${this.socketPath}`}static fromString(e){return new w(e)}static fromHostPort(e,t){return e.includes(":")&&(e=`[${e}]`),w.fromString(`${e}:${t}`)}static fromSrvRecord({name:e,port:t}){return w.fromHostPort(e,t)}toHostPort(){return this.socketPath?{host:this.socketPath,port:0}:{host:this.host??"",port:this.port??0}}}function O(e){return process.emitWarning(e,{code:t.MONGODB_WARNING_CODE})}t.HostAddress=w,t.DEFAULT_PK_FACTORY={createPk:()=>new a.ObjectId},t.MONGODB_WARNING_CODE="MONGODB DRIVER",t.emitWarning=O;const x=new Set;function _(e){if("number"==typeof e)return Math.trunc(e);const t=Number.parseInt(String(e),10);return Number.isNaN(t)?null:t}t.emitWarningOnce=function(e){if(!x.has(e))return x.add(e),O(e)},t.enumToString=function(e){return Object.values(e).join(", ")},t.supportsRetryableWrites=function(e){return!!e&&(!!e.loadBalanced||null!=e.description.logicalSessionTimeoutMinutes&&e.description.type!==p.ServerType.Standalone)},t.shuffle=function(e,t=0){const r=Array.from(e);if(t>r.length)throw new l.MongoRuntimeError("Limit must be less than the number of items");let n=r.length;const o=t%r.length==0?1:r.length-t;for(;n>o;){const e=Math.floor(Math.random()*n);n-=1;const t=r[n];r[n]=r[e],r[e]=t}return t%r.length==0?r:r.slice(o)},t.commandSupportsReadConcern=function(e,t){return!!(e.aggregate||e.count||e.distinct||e.find||e.geoNear)||!(!(e.mapReduce&&t&&t.out)||1!==t.out.inline&&"inline"!==t.out)},t.getMongoDBClientEncryption=function(){let e=null;if("string"==typeof process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE&&process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE.length>0)try{e=r(6007)(process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE)}catch{}else try{e=r(4529)}catch{}return e},t.compareObjectId=function(e,r){return null==e&&null==r?0:null==e?-1:null==r?1:t.ByteUtils.compare(e.id,r.id)},t.parseInteger=_,t.parseUnsignedInteger=function(e){const t=_(e);return null!=t&&t>=0?t:null},t.matchesParentDomain=function(e,t){const r=e.endsWith(".")?e.slice(0,e.length-1):e,n=t.endsWith(".")?t.slice(0,t.length-1):t,o=/^.*?\./,i=`.${r.replace(o,"")}`,s=`.${n.replace(o,"")}`;return i.endsWith(s)},t.request=async function(e,t={}){return new Promise(((r,n)=>{const s={method:"GET",timeout:1e4,json:!0,...i.parse(e),...t},a=o.request(s,(e=>{e.setEncoding("utf8");let o="";e.on("data",(e=>{o+=e})),e.once("end",(()=>{if(!1!==t.json)try{const e=JSON.parse(o);r(e)}catch{n(new l.MongoRuntimeError(`Invalid JSON response: "${o}"`))}else r(o)}))}));a.once("timeout",(()=>a.destroy(new l.MongoNetworkTimeoutError(`Network request to ${e} timed out after ${t.timeout} ms`)))),a.once("error",(e=>n(e))),a.end()}))}},4620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteConcern=t.WRITE_CONCERN_KEYS=void 0,t.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class r{constructor(e,t,r,n){null!=e&&(Number.isNaN(Number(e))?this.w=e:this.w=Number(e)),null!=t&&(this.wtimeoutMS=this.wtimeout=t),null!=r&&(this.journal=this.j=r),null!=n&&(this.journal=this.j=!!n)}static apply(e,t){const r={};return null!=t.w&&(r.w=t.w),null!=t.wtimeoutMS&&(r.wtimeout=t.wtimeoutMS),null!=t.journal&&(r.j=t.j),e.writeConcern=r,e}static fromOptions(e,t){if(null==e)return;let n;t=t??{},n="string"==typeof e||"number"==typeof e?{w:e}:e instanceof r?e:e.writeConcern;const o=t instanceof r?t:t.writeConcern,{w:i,wtimeout:s,j:a,fsync:u,journal:c,wtimeoutMS:l}={...o,...n};return null!=i||null!=s||null!=l||null!=a||null!=c||null!=u?new r(i,s??l,a??c,u):void 0}}t.WriteConcern=r},6007:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=6007,e.exports=t},1378:e=>{var t=1e3,r=60*t,n=60*r,o=24*n;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,s){s=s||{};var a,u,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===c&&isFinite(e))return s.long?(a=e,(u=Math.abs(a))>=o?i(a,u,o,"day"):u>=n?i(a,u,n,"hour"):u>=r?i(a,u,r,"minute"):u>=t?i(a,u,t,"second"):a+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in i=Object(arguments[u]))r.call(i,c)&&(a[c]=i[c]);if(t){s=t(i);for(var l=0;l<s.length;l++)n.call(i,s[l])&&(a[s[l]]=i[s[l]])}}return a}},8262:(e,t,r)=>{"use strict";var n=r(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},3980:(e,t,r)=>{e.exports=r(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2967:(e,t,r)=>{"use strict";var n=r(9497),o=r(7320),i=r(2941);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(s(227));var a=new Set,u={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,f={},m={};function g(e,t,r,n,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var E=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}function v(e,t,r,n){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0===o.type:!n&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!p.call(m,e)||!p.call(f,e)&&(h.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(E,A);y[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(E,A);y[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(E,A);y[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var C=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=60103,S=60106,w=60107,O=60108,x=60114,_=60109,D=60110,T=60112,I=60113,B=60120,R=60115,F=60116,k=60121,P=60128,N=60129,M=60130,L=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;b=j("react.element"),S=j("react.portal"),w=j("react.fragment"),O=j("react.strict_mode"),x=j("react.profiler"),_=j("react.provider"),D=j("react.context"),T=j("react.forward_ref"),I=j("react.suspense"),B=j("react.suspense_list"),R=j("react.memo"),F=j("react.lazy"),k=j("react.block"),j("react.scope"),P=j("react.opaque.id"),N=j("react.debug_trace_mode"),M=j("react.offscreen"),L=j("react.legacy_hidden")}var U,$="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}function z(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var W=!1;function H(e,t){if(!e||W)return"";W=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=n.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a])return"\n"+o[s].replace(" at new "," at ")}while(1<=s&&0<=a);break}}}finally{W=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function q(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 22:return H(e.type._render,!1);case 1:return H(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case S:return"Portal";case x:return"Profiler";case O:return"StrictMode";case I:return"Suspense";case B:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case D:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return G(e.type);case k:return G(e._render);case F:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Y(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var r=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=K(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function re(e,t){te(e,t);var r=K(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,r):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ne(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function oe(e,t,r){"number"===t&&Z(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+K(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(s(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(s(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ce(e,t){var r=K(t.value),n=K(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var fe,me,ge=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((fe=fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ye(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var Ee={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ae=["Webkit","ms","Moz","O"];function ve(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Ee.hasOwnProperty(e)&&Ee[e]?(""+t).trim():t+"px"}function Ce(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=ve(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(Ee).forEach((function(e){Ae.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ee[t]=Ee[e]}))}));var be=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,_e=null,De=null;function Te(e){if(e=to(e)){if("function"!=typeof xe)throw Error(s(280));var t=e.stateNode;t&&(t=no(t),xe(e.stateNode,e.type,t))}}function Ie(e){_e?De?De.push(e):De=[e]:_e=e}function Be(){if(_e){var e=_e,t=De;if(De=_e=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Re(e,t){return e(t)}function Fe(e,t,r,n,o){return e(t,r,n,o)}function ke(){}var Pe=Re,Ne=!1,Me=!1;function Le(){null===_e&&null===De||(ke(),Be())}function je(e,t){var r=e.stateNode;if(null===r)return null;var n=no(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(s(231,t,typeof r));return r}var Ue=!1;if(d)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,$e)}catch(me){Ue=!1}function Ve(e,t,r,n,o,i,s,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var ze=!1,We=null,He=!1,qe=null,Ge={onError:function(e){ze=!0,We=e}};function Ke(e,t,r,n,o,i,s,a,u){ze=!1,We=null,Ve.apply(Ge,arguments)}function Ye(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(s(188))}function Ze(e,t){for(var r=e.alternate;null!==t;){if(t===e||t===r)return!0;t=t.return}return!1}var Je,et,tt,rt,nt=!1,ot=[],it=null,st=null,at=null,ut=new Map,ct=new Map,lt=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,r,n,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|r,nativeEvent:o,targetContainers:[n]}}function pt(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function ft(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,r,n,o,i),null!==t&&null!==(t=to(t))&&et(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function mt(e){var t=eo(e.target);if(null!==t){var r=Ye(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Qe(r)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){tt(r)}))}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=to(r))&&et(t),e.blockedOn=r,!1;t.shift()}return!0}function yt(e,t,r){gt(e)&&r.delete(t)}function Et(){for(nt=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=to(e.blockedOn))&&Je(e);break}for(var t=e.targetContainers;0<t.length;){var r=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r){e.blockedOn=r;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==it&&gt(it)&&(it=null),null!==st&&gt(st)&&(st=null),null!==at&&gt(at)&&(at=null),ut.forEach(yt),ct.forEach(yt)}function At(e,t){e.blockedOn===t&&(e.blockedOn=null,nt||(nt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Et)))}function vt(e){function t(t){return At(t,e)}if(0<ot.length){At(ot[0],e);for(var r=1;r<ot.length;r++){var n=ot[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==it&&At(it,e),null!==st&&At(st,e),null!==at&&At(at,e),ut.forEach(t),ct.forEach(t),r=0;r<lt.length;r++)(n=lt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<lt.length&&null===(r=lt[0]).blockedOn;)mt(r),null===r.blockedOn&&lt.shift()}function Ct(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var bt={animationend:Ct("Animation","AnimationEnd"),animationiteration:Ct("Animation","AnimationIteration"),animationstart:Ct("Animation","AnimationStart"),transitionend:Ct("Transition","TransitionEnd")},St={},wt={};function Ot(e){if(St[e])return St[e];if(!bt[e])return e;var t,r=bt[e];for(t in r)if(r.hasOwnProperty(t)&&t in wt)return St[e]=r[t];return e}d&&(wt=document.createElement("div").style,"AnimationEvent"in window||(delete bt.animationend.animation,delete bt.animationiteration.animation,delete bt.animationstart.animation),"TransitionEvent"in window||delete bt.transitionend.transition);var xt=Ot("animationend"),_t=Ot("animationiteration"),Dt=Ot("animationstart"),Tt=Ot("transitionend"),It=new Map,Bt=new Map,Rt=["abort","abort",xt,"animationEnd",_t,"animationIteration",Dt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function Ft(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],o=e[r+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Bt.set(n,t),It.set(n,o),c(o,[n])}}(0,i.unstable_now)();var kt=8;function Pt(e){if(0!=(1&e))return kt=15,1;if(0!=(2&e))return kt=14,2;if(0!=(4&e))return kt=13,4;var t=24&e;return 0!==t?(kt=12,t):0!=(32&e)?(kt=11,32):0!=(t=192&e)?(kt=10,t):0!=(256&e)?(kt=9,256):0!=(t=3584&e)?(kt=8,t):0!=(4096&e)?(kt=7,4096):0!=(t=4186112&e)?(kt=6,t):0!=(t=62914560&e)?(kt=5,t):67108864&e?(kt=4,67108864):0!=(134217728&e)?(kt=3,134217728):0!=(t=805306368&e)?(kt=2,t):0!=(1073741824&e)?(kt=1,1073741824):(kt=8,e)}function Nt(e,t){var r=e.pendingLanes;if(0===r)return kt=0;var n=0,o=0,i=e.expiredLanes,s=e.suspendedLanes,a=e.pingedLanes;if(0!==i)n=i,o=kt=15;else if(0!=(i=134217727&r)){var u=i&~s;0!==u?(n=Pt(u),o=kt):0!=(a&=i)&&(n=Pt(a),o=kt)}else 0!=(i=r&~s)?(n=Pt(i),o=kt):0!==a&&(n=Pt(a),o=kt);if(0===n)return 0;if(n=r&((0>(n=31-Vt(n))?0:1<<n)<<1)-1,0!==t&&t!==n&&0==(t&s)){if(Pt(t),o<=kt)return t;kt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Vt(t)),n|=e[r],t&=~o;return n}function Mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Lt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?Lt(10,t):e;case 10:return 0===(e=jt(192&~t))?Lt(8,t):e;case 8:return 0===(e=jt(3584&~t))&&0===(e=jt(4186112&~t))&&(e=512),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function jt(e){return e&-e}function Ut(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function $t(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,(e=e.eventTimes)[t=31-Vt(t)]=r}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(zt(e)/Wt|0)|0},zt=Math.log,Wt=Math.LN2,Ht=i.unstable_UserBlockingPriority,qt=i.unstable_runWithPriority,Gt=!0;function Kt(e,t,r,n){Ne||ke();var o=Qt,i=Ne;Ne=!0;try{Fe(o,e,t,r,n)}finally{(Ne=i)||Le()}}function Yt(e,t,r,n){qt(Ht,Qt.bind(null,e,t,r,n))}function Qt(e,t,r,n){var o;if(Gt)if((o=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=ht(null,e,t,r,n),ot.push(e);else{var i=Xt(e,t,r,n);if(null===i)o&&pt(e,n);else{if(o){if(-1<dt.indexOf(e))return e=ht(i,e,t,r,n),void ot.push(e);if(function(e,t,r,n,o){switch(t){case"focusin":return it=ft(it,e,t,r,n,o),!0;case"dragenter":return st=ft(st,e,t,r,n,o),!0;case"mouseover":return at=ft(at,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,ft(ut.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,ct.set(i,ft(ct.get(i)||null,e,t,r,n,o)),!0}return!1}(i,e,t,r,n))return;pt(e,n)}Fn(e,t,n,null,r)}}}function Xt(e,t,r,n){var o=Oe(n);if(null!==(o=eo(o))){var i=Ye(o);if(null===i)o=null;else{var s=i.tag;if(13===s){if(null!==(o=Qe(i)))return o;o=null}else if(3===s){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Fn(e,t,n,o,r),null}var Zt=null,Jt=null,er=null;function tr(){if(er)return er;var e,t,r=Jt,n=r.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var s=n-e;for(t=1;t<=s&&r[n-t]===o[i-t];t++);return er=o.slice(e,1<t?1-t:void 0)}function rr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nr(){return!0}function or(){return!1}function ir(e){function t(t,r,n,o,i){for(var s in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nr:or,this.isPropagationStopped=or,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){},isPersistent:nr}),t}var sr,ar,ur,cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=ir(cr),dr=o({},cr,{view:0,detail:0}),hr=ir(dr),pr=o({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Or,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ur&&(ur&&"mousemove"===e.type?(sr=e.screenX-ur.screenX,ar=e.screenY-ur.screenY):ar=sr=0,ur=e),sr)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),fr=ir(pr),mr=ir(o({},pr,{dataTransfer:0})),gr=ir(o({},dr,{relatedTarget:0})),yr=ir(o({},cr,{animationName:0,elapsedTime:0,pseudoElement:0})),Er=o({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ar=ir(Er),vr=ir(o({},cr,{data:0})),Cr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},br={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function Or(){return wr}var xr=o({},dr,{key:function(e){if(e.key){var t=Cr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?br[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Or,charCode:function(e){return"keypress"===e.type?rr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_r=ir(xr),Dr=ir(o({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tr=ir(o({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Or})),Ir=ir(o({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Br=o({},pr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rr=ir(Br),Fr=[9,13,27,32],kr=d&&"CompositionEvent"in window,Pr=null;d&&"documentMode"in document&&(Pr=document.documentMode);var Nr=d&&"TextEvent"in window&&!Pr,Mr=d&&(!kr||Pr&&8<Pr&&11>=Pr),Lr=String.fromCharCode(32),jr=!1;function Ur(e,t){switch(e){case"keyup":return-1!==Fr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $r(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vr=!1,zr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Hr(e,t,r,n){Ie(n),0<(t=Pn(t,"onChange")).length&&(r=new lr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var qr=null,Gr=null;function Kr(e){_n(e,0)}function Yr(e){if(X(ro(e)))return e}function Qr(e,t){if("change"===e)return t}var Xr=!1;if(d){var Zr;if(d){var Jr="oninput"in document;if(!Jr){var en=document.createElement("div");en.setAttribute("oninput","return;"),Jr="function"==typeof en.oninput}Zr=Jr}else Zr=!1;Xr=Zr&&(!document.documentMode||9<document.documentMode)}function tn(){qr&&(qr.detachEvent("onpropertychange",rn),Gr=qr=null)}function rn(e){if("value"===e.propertyName&&Yr(Gr)){var t=[];if(Hr(t,Gr,e,Oe(e)),e=Kr,Ne)e(t);else{Ne=!0;try{Re(e,t)}finally{Ne=!1,Le()}}}}function nn(e,t,r){"focusin"===e?(tn(),Gr=r,(qr=t).attachEvent("onpropertychange",rn)):"focusout"===e&&tn()}function on(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yr(Gr)}function sn(e,t){if("click"===e)return Yr(t)}function an(e,t){if("input"===e||"change"===e)return Yr(t)}var un="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cn=Object.prototype.hasOwnProperty;function ln(e,t){if(un(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!cn.call(t,r[n])||!un(e[r[n]],t[r[n]]))return!1;return!0}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var r,n=dn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dn(n)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fn(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Z((e=t.contentWindow).document)}return t}function mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn=d&&"documentMode"in document&&11>=document.documentMode,yn=null,En=null,An=null,vn=!1;function Cn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;vn||null==yn||yn!==Z(n)||(n="selectionStart"in(n=yn)&&mn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},An&&ln(An,n)||(An=n,0<(n=Pn(En,"onSelect")).length&&(t=new lr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=yn)))}Ft("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ft("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ft(Rt,2);for(var bn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sn=0;Sn<bn.length;Sn++)Bt.set(bn[Sn],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),On=new Set("cancel close invalid load scroll toggle".split(" ").concat(wn));function xn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,i,a,u,c){if(Ke.apply(this,arguments),ze){if(!ze)throw Error(s(198));var l=We;ze=!1,We=null,He||(He=!0,qe=l)}}(n,t,void 0,e),e.currentTarget=null}function _n(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==i&&o.isPropagationStopped())break e;xn(o,a,c),i=u}else for(s=0;s<n.length;s++){if(u=(a=n[s]).instance,c=a.currentTarget,a=a.listener,u!==i&&o.isPropagationStopped())break e;xn(o,a,c),i=u}}}if(He)throw e=qe,He=!1,qe=null,e}function Dn(e,t){var r=oo(t),n=e+"__bubble";r.has(n)||(Rn(t,e,2,!1),r.add(n))}var Tn="_reactListening"+Math.random().toString(36).slice(2);function In(e){e[Tn]||(e[Tn]=!0,a.forEach((function(t){On.has(t)||Bn(t,!1,e,null),Bn(t,!0,e,null)})))}function Bn(e,t,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=r;if("selectionchange"===e&&9!==r.nodeType&&(i=r.ownerDocument),null!==n&&!t&&On.has(e)){if("scroll"!==e)return;o|=2,i=n}var s=oo(i),a=e+"__"+(t?"capture":"bubble");s.has(a)||(t&&(o|=4),Rn(i,e,o,t),s.add(a))}function Rn(e,t,r,n){var o=Bt.get(t);switch(void 0===o?2:o){case 0:o=Kt;break;case 1:o=Yt;break;default:o=Qt}r=o.bind(null,t,r,e),o=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Fn(e,t,r,n,o){var i=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var s=n.tag;if(3===s||4===s){var a=n.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=n.return;null!==s;){var u=s.tag;if((3===u||4===u)&&((u=s.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=eo(a)))return;if(5===(u=s.tag)||6===u){n=i=s;continue e}a=a.parentNode}}n=n.return}!function(e,t,r){if(Me)return e();Me=!0;try{return Pe(e,t,r)}finally{Me=!1,Le()}}((function(){var n=i,o=Oe(r),s=[];e:{var a=It.get(e);if(void 0!==a){var u=lr,c=e;switch(e){case"keypress":if(0===rr(r))break e;case"keydown":case"keyup":u=_r;break;case"focusin":c="focus",u=gr;break;case"focusout":c="blur",u=gr;break;case"beforeblur":case"afterblur":u=gr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Tr;break;case xt:case _t:case Dt:u=yr;break;case Tt:u=Ir;break;case"scroll":u=hr;break;case"wheel":u=Rr;break;case"copy":case"cut":case"paste":u=Ar;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Dr}var l=0!=(4&t),d=!l&&"scroll"===e,h=l?null!==a?a+"Capture":null:a;l=[];for(var p,f=n;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&null!=(m=je(f,h))&&l.push(kn(f,m,p))),d)break;f=f.return}0<l.length&&(a=new u(a,c,null,r,o),s.push({event:a,listeners:l}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=r.relatedTarget||r.fromElement)||!eo(c)&&!c[Zn])&&(u||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,u?(u=n,null!==(c=(c=r.relatedTarget||r.toElement)?eo(c):null)&&(c!==(d=Ye(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=n),u!==c)){if(l=fr,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(l=Dr,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==u?a:ro(u),p=null==c?a:ro(c),(a=new l(m,f+"leave",u,r,o)).target=d,a.relatedTarget=p,m=null,eo(o)===n&&((l=new l(h,f+"enter",c,r,o)).target=p,l.relatedTarget=d,m=l),d=m,u&&c)e:{for(h=c,f=0,p=l=u;p;p=Nn(p))f++;for(p=0,m=h;m;m=Nn(m))p++;for(;0<f-p;)l=Nn(l),f--;for(;0<p-f;)h=Nn(h),p--;for(;f--;){if(l===h||null!==h&&l===h.alternate)break e;l=Nn(l),h=Nn(h)}l=null}else l=null;null!==u&&Mn(s,a,u,l,!1),null!==c&&null!==d&&Mn(s,d,c,l,!0)}if("select"===(u=(a=n?ro(n):window).nodeName&&a.nodeName.toLowerCase())||"input"===u&&"file"===a.type)var g=Qr;else if(Wr(a))if(Xr)g=an;else{g=on;var y=nn}else(u=a.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=sn);switch(g&&(g=g(e,n))?Hr(s,g,r,o):(y&&y(e,a,n),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&oe(a,"number",a.value)),y=n?ro(n):window,e){case"focusin":(Wr(y)||"true"===y.contentEditable)&&(yn=y,En=n,An=null);break;case"focusout":An=En=yn=null;break;case"mousedown":vn=!0;break;case"contextmenu":case"mouseup":case"dragend":vn=!1,Cn(s,r,o);break;case"selectionchange":if(gn)break;case"keydown":case"keyup":Cn(s,r,o)}var E;if(kr)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Vr?Ur(e,r)&&(A="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(A="onCompositionStart");A&&(Mr&&"ko"!==r.locale&&(Vr||"onCompositionStart"!==A?"onCompositionEnd"===A&&Vr&&(E=tr()):(Jt="value"in(Zt=o)?Zt.value:Zt.textContent,Vr=!0)),0<(y=Pn(n,A)).length&&(A=new vr(A,e,null,r,o),s.push({event:A,listeners:y}),(E||null!==(E=$r(r)))&&(A.data=E))),(E=Nr?function(e,t){switch(e){case"compositionend":return $r(t);case"keypress":return 32!==t.which?null:(jr=!0,Lr);case"textInput":return(e=t.data)===Lr&&jr?null:e;default:return null}}(e,r):function(e,t){if(Vr)return"compositionend"===e||!kr&&Ur(e,t)?(e=tr(),er=Jt=Zt=null,Vr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=Pn(n,"onBeforeInput")).length&&(o=new vr("onBeforeInput","beforeinput",null,r,o),s.push({event:o,listeners:n}),o.data=E)}_n(s,t)}))}function kn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Pn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=je(e,r))&&n.unshift(kn(e,i,o)),null!=(i=je(e,t))&&n.push(kn(e,i,o))),e=e.return}return n}function Nn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mn(e,t,r,n,o){for(var i=t._reactName,s=[];null!==r&&r!==n;){var a=r,u=a.alternate,c=a.stateNode;if(null!==u&&u===n)break;5===a.tag&&null!==c&&(a=c,o?null!=(u=je(r,i))&&s.unshift(kn(r,u,a)):o||null!=(u=je(r,i))&&s.push(kn(r,u,a))),r=r.return}0!==s.length&&e.push({event:t,listeners:s})}function Ln(){}var jn=null,Un=null;function $n(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var zn="function"==typeof setTimeout?setTimeout:void 0,Wn="function"==typeof clearTimeout?clearTimeout:void 0;function Hn(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function qn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Kn=0,Yn=Math.random().toString(36).slice(2),Qn="__reactFiber$"+Yn,Xn="__reactProps$"+Yn,Zn="__reactContainer$"+Yn,Jn="__reactEvents$"+Yn;function eo(e){var t=e[Qn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Zn]||r[Qn]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Gn(e);null!==e;){if(r=e[Qn])return r;e=Gn(e)}return t}r=(e=r).parentNode}return null}function to(e){return!(e=e[Qn]||e[Zn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ro(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function no(e){return e[Xn]||null}function oo(e){var t=e[Jn];return void 0===t&&(t=e[Jn]=new Set),t}var io=[],so=-1;function ao(e){return{current:e}}function uo(e){0>so||(e.current=io[so],io[so]=null,so--)}function co(e,t){so++,io[so]=e.current,e.current=t}var lo={},ho=ao(lo),po=ao(!1),fo=lo;function mo(e,t){var r=e.type.contextTypes;if(!r)return lo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function go(e){return null!=e.childContextTypes}function yo(){uo(po),uo(ho)}function Eo(e,t,r){if(ho.current!==lo)throw Error(s(168));co(ho,t),co(po,r)}function Ao(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in e))throw Error(s(108,G(t)||"Unknown",i));return o({},r,n)}function vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lo,fo=ho.current,co(ho,e),co(po,po.current),!0}function Co(e,t,r){var n=e.stateNode;if(!n)throw Error(s(169));r?(e=Ao(e,t,fo),n.__reactInternalMemoizedMergedChildContext=e,uo(po),uo(ho),co(ho,e)):uo(po),co(po,r)}var bo=null,So=null,wo=i.unstable_runWithPriority,Oo=i.unstable_scheduleCallback,xo=i.unstable_cancelCallback,_o=i.unstable_shouldYield,Do=i.unstable_requestPaint,To=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,Bo=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,Fo=i.unstable_NormalPriority,ko=i.unstable_LowPriority,Po=i.unstable_IdlePriority,No={},Mo=void 0!==Do?Do:function(){},Lo=null,jo=null,Uo=!1,$o=To(),Vo=1e4>$o?To:function(){return To()-$o};function zo(){switch(Io()){case Bo:return 99;case Ro:return 98;case Fo:return 97;case ko:return 96;case Po:return 95;default:throw Error(s(332))}}function Wo(e){switch(e){case 99:return Bo;case 98:return Ro;case 97:return Fo;case 96:return ko;case 95:return Po;default:throw Error(s(332))}}function Ho(e,t){return e=Wo(e),wo(e,t)}function qo(e,t,r){return e=Wo(e),Oo(e,t,r)}function Go(){if(null!==jo){var e=jo;jo=null,xo(e)}Ko()}function Ko(){if(!Uo&&null!==Lo){Uo=!0;var e=0;try{var t=Lo;Ho(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Lo=null}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),Oo(Bo,Go),t}finally{Uo=!1}}}var Yo=C.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var r in t=o({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var Xo=ao(null),Zo=null,Jo=null,ei=null;function ti(){ei=Jo=Zo=null}function ri(e){var t=Xo.current;uo(Xo),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)===t){if(null===r||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,null!==r&&(r.childLanes|=t);e=e.return}}function oi(e,t){Zo=e,ei=Jo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ps=!0),e.firstContext=null)}function ii(e,t){if(ei!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ei=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jo){if(null===Zo)throw Error(s(308));Jo=t,Zo.dependencies={lanes:0,firstContext:t,responders:null}}else Jo=Jo.next=t;return e._currentValue}var si=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function li(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function di(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=s:i=i.next=s,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function hi(e,t,r,n){var i=e.updateQueue;si=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var c=u,l=c.next;c.next=null,null===a?s=l:a.next=l,a=c;var d=e.alternate;if(null!==d){var h=(d=d.updateQueue).lastBaseUpdate;h!==a&&(null===h?d.firstBaseUpdate=l:h.next=l,d.lastBaseUpdate=c)}}if(null!==s){for(h=i.baseState,a=0,d=l=c=null;;){u=s.lane;var p=s.eventTime;if((n&u)===u){null!==d&&(d=d.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(u=t,p=r,m.tag){case 1:if("function"==typeof(f=m.payload)){h=f.call(p,h,u);break e}h=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null==(u="function"==typeof(f=m.payload)?f.call(p,h,u):f))break e;h=o({},h,u);break e;case 2:si=!0}}null!==s.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[s]:u.push(s))}else p={eventTime:p,lane:u,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(l=d=p,c=h):d=d.next=p,a|=u;if(null===(s=s.next)){if(null===(u=i.shared.pending))break;s=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===d&&(c=h),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=d,La|=a,e.lanes=a,e.memoizedState=h}}function pi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(s(191,o));o.call(n)}}}var fi=(new n.Component).refs;function mi(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:o({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var gi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=cu(),o=lu(e),i=ci(n,o);i.payload=t,null!=r&&(i.callback=r),li(e,i),du(e,o,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=cu(),o=lu(e),i=ci(n,o);i.tag=1,i.payload=t,null!=r&&(i.callback=r),li(e,i),du(e,o,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=cu(),n=lu(e),o=ci(r,n);o.tag=2,null!=t&&(o.callback=t),li(e,o),du(e,n,r)}};function yi(e,t,r,n,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(o,i))}function Ei(e,t,r){var n=!1,o=lo,i=t.contextType;return"object"==typeof i&&null!==i?i=ii(i):(o=go(t)?fo:ho.current,i=(n=null!=(n=t.contextTypes))?mo(e,o):lo),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=gi,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ai(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&gi.enqueueReplaceState(t,t.state,null)}function vi(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=fi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ii(i):(i=go(t)?fo:ho.current,o.context=mo(e,i)),hi(e,r,o,n),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(mi(e,t,i,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&gi.enqueueReplaceState(o,o.state,null),hi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Ci=Array.isArray;function bi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(s(309));var n=r.stateNode}if(!n)throw Error(s(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=n.refs;t===fi&&(t=n.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function Si(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wi(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Vu(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags=2,r):n:(t.flags=2,r):r}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,r,n){return null===t||6!==t.tag?((t=qu(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=o(t,r.props)).ref=bi(e,t,r),n.return=e,n):((n=zu(r.type,r.key,r.props,null,e.mode,n)).ref=bi(e,t,r),n.return=e,n)}function l(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Gu(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function d(e,t,r,n,i){return null===t||7!==t.tag?((t=Wu(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function h(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=qu(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(r=zu(t.type,t.key,t.props,null,e.mode,r)).ref=bi(e,null,t),r.return=e,r;case S:return(t=Gu(t,e.mode,r)).return=e,t}if(Ci(t)||V(t))return(t=Wu(t,e.mode,r,null)).return=e,t;Si(e,t)}return null}function p(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==o?null:u(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return r.key===o?r.type===w?d(e,t,r.props.children,n,o):c(e,t,r,n):null;case S:return r.key===o?l(e,t,r,n):null}if(Ci(r)||V(r))return null!==o?null:d(e,t,r,n,null);Si(e,r)}return null}function f(e,t,r,n,o){if("string"==typeof n||"number"==typeof n)return u(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return e=e.get(null===n.key?r:n.key)||null,n.type===w?d(t,e,n.props.children,o,n.key):c(t,e,n,o);case S:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o)}if(Ci(n)||V(n))return d(t,e=e.get(r)||null,n,o,null);Si(t,n)}return null}function m(o,s,a,u){for(var c=null,l=null,d=s,m=s=0,g=null;null!==d&&m<a.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=p(o,d,a[m],u);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),s=i(y,s,m),null===l?c=y:l.sibling=y,l=y,d=g}if(m===a.length)return r(o,d),c;if(null===d){for(;m<a.length;m++)null!==(d=h(o,a[m],u))&&(s=i(d,s,m),null===l?c=d:l.sibling=d,l=d);return c}for(d=n(o,d);m<a.length;m++)null!==(g=f(d,o,m,a[m],u))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),s=i(g,s,m),null===l?c=g:l.sibling=g,l=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,a,u,c){var l=V(u);if("function"!=typeof l)throw Error(s(150));if(null==(u=l.call(u)))throw Error(s(151));for(var d=l=null,m=a,g=a=0,y=null,E=u.next();null!==m&&!E.done;g++,E=u.next()){m.index>g?(y=m,m=null):y=m.sibling;var A=p(o,m,E.value,c);if(null===A){null===m&&(m=y);break}e&&m&&null===A.alternate&&t(o,m),a=i(A,a,g),null===d?l=A:d.sibling=A,d=A,m=y}if(E.done)return r(o,m),l;if(null===m){for(;!E.done;g++,E=u.next())null!==(E=h(o,E.value,c))&&(a=i(E,a,g),null===d?l=E:d.sibling=E,d=E);return l}for(m=n(o,m);!E.done;g++,E=u.next())null!==(E=f(m,o,g,E.value,c))&&(e&&null!==E.alternate&&m.delete(null===E.key?g:E.key),a=i(E,a,g),null===d?l=E:d.sibling=E,d=E);return e&&m.forEach((function(e){return t(o,e)})),l}return function(e,n,i,u){var c="object"==typeof i&&null!==i&&i.type===w&&null===i.key;c&&(i=i.props.children);var l="object"==typeof i&&null!==i;if(l)switch(i.$$typeof){case b:e:{for(l=i.key,c=n;null!==c;){if(c.key===l){if(7===c.tag){if(i.type===w){r(e,c.sibling),(n=o(c,i.props.children)).return=e,e=n;break e}}else if(c.elementType===i.type){r(e,c.sibling),(n=o(c,i.props)).ref=bi(e,c,i),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}i.type===w?((n=Wu(i.props.children,e.mode,u,i.key)).return=e,e=n):((u=zu(i.type,i.key,i.props,null,e.mode,u)).ref=bi(e,n,i),u.return=e,e=u)}return a(e);case S:e:{for(c=i.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=o(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Gu(i,e.mode,u)).return=e,e=n}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=o(n,i)).return=e,e=n):(r(e,n),(n=qu(i,e.mode,u)).return=e,e=n),a(e);if(Ci(i))return m(e,n,i,u);if(V(i))return g(e,n,i,u);if(l&&Si(e,i),void 0===i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,G(e.type)||"Component"))}return r(e,n)}}var Oi=wi(!0),xi=wi(!1),_i={},Di=ao(_i),Ti=ao(_i),Ii=ao(_i);function Bi(e){if(e===_i)throw Error(s(174));return e}function Ri(e,t){switch(co(Ii,t),co(Ti,e),co(Di,_i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Di),co(Di,t)}function Fi(){uo(Di),uo(Ti),uo(Ii)}function ki(e){Bi(Ii.current);var t=Bi(Di.current),r=pe(t,e.type);t!==r&&(co(Ti,e),co(Di,r))}function Pi(e){Ti.current===e&&(uo(Di),uo(Ti))}var Ni=ao(0);function Mi(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Li=null,ji=null,Ui=!1;function $i(e,t){var r=Uu(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Vi(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function zi(e){if(Ui){var t=ji;if(t){var r=t;if(!Vi(e,t)){if(!(t=qn(r.nextSibling))||!Vi(e,t))return e.flags=-1025&e.flags|2,Ui=!1,void(Li=e);$i(Li,r)}Li=e,ji=qn(t.firstChild)}else e.flags=-1025&e.flags|2,Ui=!1,Li=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Li=e}function Hi(e){if(e!==Li)return!1;if(!Ui)return Wi(e),Ui=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vn(t,e.memoizedProps))for(t=ji;t;)$i(e,t),t=qn(t.nextSibling);if(Wi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ji=qn(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ji=null}}else ji=Li?qn(e.stateNode.nextSibling):null;return!0}function qi(){ji=Li=null,Ui=!1}var Gi=[];function Ki(){for(var e=0;e<Gi.length;e++)Gi[e]._workInProgressVersionPrimary=null;Gi.length=0}var Yi=C.ReactCurrentDispatcher,Qi=C.ReactCurrentBatchConfig,Xi=0,Zi=null,Ji=null,es=null,ts=!1,rs=!1;function ns(){throw Error(s(321))}function os(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!un(e[r],t[r]))return!1;return!0}function is(e,t,r,n,o,i){if(Xi=i,Zi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yi.current=null===e||null===e.memoizedState?Bs:Rs,e=r(n,o),rs){i=0;do{if(rs=!1,!(25>i))throw Error(s(301));i+=1,es=Ji=null,t.updateQueue=null,Yi.current=Fs,e=r(n,o)}while(rs)}if(Yi.current=Is,t=null!==Ji&&null!==Ji.next,Xi=0,es=Ji=Zi=null,ts=!1,t)throw Error(s(300));return e}function ss(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===es?Zi.memoizedState=es=e:es=es.next=e,es}function as(){if(null===Ji){var e=Zi.alternate;e=null!==e?e.memoizedState:null}else e=Ji.next;var t=null===es?Zi.memoizedState:es.next;if(null!==t)es=t,Ji=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Ji=e).memoizedState,baseState:Ji.baseState,baseQueue:Ji.baseQueue,queue:Ji.queue,next:null},null===es?Zi.memoizedState=es=e:es=es.next=e}return es}function us(e,t){return"function"==typeof t?t(e):t}function cs(e){var t=as(),r=t.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=e;var n=Ji,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(null!==o){o=o.next,n=n.baseState;var u=a=i=null,c=o;do{var l=c.lane;if((Xi&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),n=c.eagerReducer===e?c.eagerState:e(n,c.action);else{var d={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(a=u=d,i=n):u=u.next=d,Zi.lanes|=l,La|=l}c=c.next}while(null!==c&&c!==o);null===u?i=n:u.next=a,un(n,t.memoizedState)||(Ps=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=u,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ls(e){var t=as(),r=t.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);un(i,t.memoizedState)||(Ps=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function ds(e,t,r){var n=t._getVersion;n=n(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===n:(e=e.mutableReadLanes,(e=(Xi&e)===e)&&(t._workInProgressVersionPrimary=n,Gi.push(t))),e)return r(t._source);throw Gi.push(t),Error(s(350))}function hs(e,t,r,n){var o=Ia;if(null===o)throw Error(s(349));var i=t._getVersion,a=i(t._source),u=Yi.current,c=u.useState((function(){return ds(o,t,r)})),l=c[1],d=c[0];c=es;var h=e.memoizedState,p=h.refs,f=p.getSnapshot,m=h.source;h=h.subscribe;var g=Zi;return e.memoizedState={refs:p,source:t,subscribe:n},u.useEffect((function(){p.getSnapshot=r,p.setSnapshot=l;var e=i(t._source);if(!un(a,e)){e=r(t._source),un(d,e)||(l(e),e=lu(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var n=o.entanglements,s=e;0<s;){var u=31-Vt(s),c=1<<u;n[u]|=e,s&=~c}}}),[r,t,n]),u.useEffect((function(){return n(t._source,(function(){var e=p.getSnapshot,r=p.setSnapshot;try{r(e(t._source));var n=lu(g);o.mutableReadLanes|=n&o.pendingLanes}catch(e){r((function(){throw e}))}}))}),[t,n]),un(f,r)&&un(m,t)&&un(h,n)||((e={pending:null,dispatch:null,lastRenderedReducer:us,lastRenderedState:d}).dispatch=l=Ts.bind(null,Zi,e),c.queue=e,c.baseQueue=null,d=ds(o,t,r),c.memoizedState=c.baseState=d),d}function ps(e,t,r){return hs(as(),e,t,r)}function fs(e){var t=ss();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:us,lastRenderedState:e}).dispatch=Ts.bind(null,Zi,e),[t.memoizedState,e]}function ms(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Zi.updateQueue)?(t={lastEffect:null},Zi.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function gs(e){return e={current:e},ss().memoizedState=e}function ys(){return as().memoizedState}function Es(e,t,r,n){var o=ss();Zi.flags|=e,o.memoizedState=ms(1|t,r,void 0,void 0===n?null:n)}function As(e,t,r,n){var o=as();n=void 0===n?null:n;var i=void 0;if(null!==Ji){var s=Ji.memoizedState;if(i=s.destroy,null!==n&&os(n,s.deps))return void ms(t,r,i,n)}Zi.flags|=e,o.memoizedState=ms(1|t,r,i,n)}function vs(e,t){return Es(516,4,e,t)}function Cs(e,t){return As(516,4,e,t)}function bs(e,t){return As(4,2,e,t)}function Ss(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ws(e,t,r){return r=null!=r?r.concat([e]):null,As(4,2,Ss.bind(null,t,e),r)}function Os(){}function xs(e,t){var r=as();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&os(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function _s(e,t){var r=as();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&os(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ds(e,t){var r=zo();Ho(98>r?98:r,(function(){e(!0)})),Ho(97<r?97:r,(function(){var r=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=r}}))}function Ts(e,t,r){var n=cu(),o=lu(e),i={lane:o,action:r,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(null===s?i.next=i:(i.next=s.next,s.next=i),t.pending=i,s=e.alternate,e===Zi||null!==s&&s===Zi)rs=ts=!0;else{if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=s(a,r);if(i.eagerReducer=s,i.eagerState=u,un(u,a))return}catch(e){}du(e,o,n)}}var Is={readContext:ii,useCallback:ns,useContext:ns,useEffect:ns,useImperativeHandle:ns,useLayoutEffect:ns,useMemo:ns,useReducer:ns,useRef:ns,useState:ns,useDebugValue:ns,useDeferredValue:ns,useTransition:ns,useMutableSource:ns,useOpaqueIdentifier:ns,unstable_isNewReconciler:!1},Bs={readContext:ii,useCallback:function(e,t){return ss().memoizedState=[e,void 0===t?null:t],e},useContext:ii,useEffect:vs,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Es(4,2,Ss.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Es(4,2,e,t)},useMemo:function(e,t){var r=ss();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ss();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ts.bind(null,Zi,e),[n.memoizedState,e]},useRef:gs,useState:fs,useDebugValue:Os,useDeferredValue:function(e){var t=fs(e),r=t[0],n=t[1];return vs((function(){var t=Qi.transition;Qi.transition=1;try{n(e)}finally{Qi.transition=t}}),[e]),r},useTransition:function(){var e=fs(!1),t=e[0];return gs(e=Ds.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,r){var n=ss();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},hs(n,e,t,r)},useOpaqueIdentifier:function(){if(Ui){var e=!1,t=function(e){return{$$typeof:P,toString:e,valueOf:e}}((function(){throw e||(e=!0,r("r:"+(Kn++).toString(36))),Error(s(355))})),r=fs(t)[1];return 0==(2&Zi.mode)&&(Zi.flags|=516,ms(5,(function(){r("r:"+(Kn++).toString(36))}),void 0,null)),t}return fs(t="r:"+(Kn++).toString(36)),t},unstable_isNewReconciler:!1},Rs={readContext:ii,useCallback:xs,useContext:ii,useEffect:Cs,useImperativeHandle:ws,useLayoutEffect:bs,useMemo:_s,useReducer:cs,useRef:ys,useState:function(){return cs(us)},useDebugValue:Os,useDeferredValue:function(e){var t=cs(us),r=t[0],n=t[1];return Cs((function(){var t=Qi.transition;Qi.transition=1;try{n(e)}finally{Qi.transition=t}}),[e]),r},useTransition:function(){var e=cs(us)[0];return[ys().current,e]},useMutableSource:ps,useOpaqueIdentifier:function(){return cs(us)[0]},unstable_isNewReconciler:!1},Fs={readContext:ii,useCallback:xs,useContext:ii,useEffect:Cs,useImperativeHandle:ws,useLayoutEffect:bs,useMemo:_s,useReducer:ls,useRef:ys,useState:function(){return ls(us)},useDebugValue:Os,useDeferredValue:function(e){var t=ls(us),r=t[0],n=t[1];return Cs((function(){var t=Qi.transition;Qi.transition=1;try{n(e)}finally{Qi.transition=t}}),[e]),r},useTransition:function(){var e=ls(us)[0];return[ys().current,e]},useMutableSource:ps,useOpaqueIdentifier:function(){return ls(us)[0]},unstable_isNewReconciler:!1},ks=C.ReactCurrentOwner,Ps=!1;function Ns(e,t,r,n){t.child=null===e?xi(t,null,r,n):Oi(t,e.child,r,n)}function Ms(e,t,r,n,o){r=r.render;var i=t.ref;return oi(t,o),n=is(e,t,r,n,i,o),null===e||Ps?(t.flags|=1,Ns(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,ra(e,t,o))}function Ls(e,t,r,n,o,i){if(null===e){var s=r.type;return"function"!=typeof s||$u(s)||void 0!==s.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=zu(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,js(e,t,s,n,o,i))}return s=e.child,0==(o&i)&&(o=s.memoizedProps,(r=null!==(r=r.compare)?r:ln)(o,n)&&e.ref===t.ref)?ra(e,t,i):(t.flags|=1,(e=Vu(s,n)).ref=t.ref,e.return=t,t.child=e)}function js(e,t,r,n,o,i){if(null!==e&&ln(e.memoizedProps,n)&&e.ref===t.ref){if(Ps=!1,0==(i&o))return t.lanes=e.lanes,ra(e,t,i);0!=(16384&e.flags)&&(Ps=!0)}return Vs(e,t,r,n,i)}function Us(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode||"unstable-defer-without-hiding"===n.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},Eu(0,r);else{if(0==(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Eu(0,e),null;t.memoizedState={baseLanes:0},Eu(0,null!==i?i.baseLanes:r)}else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Eu(0,n);return Ns(e,t,o,r),t.child}function $s(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=128)}function Vs(e,t,r,n,o){var i=go(r)?fo:ho.current;return i=mo(t,i),oi(t,o),r=is(e,t,r,n,i,o),null===e||Ps?(t.flags|=1,Ns(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,ra(e,t,o))}function zs(e,t,r,n,o){if(go(r)){var i=!0;vo(t)}else i=!1;if(oi(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Ei(t,r,n),vi(t,r,n,o),n=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,c=r.contextType;c="object"==typeof c&&null!==c?ii(c):mo(t,c=go(r)?fo:ho.current);var l=r.getDerivedStateFromProps,d="function"==typeof l||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==n||u!==c)&&Ai(t,s,n,c),si=!1;var h=t.memoizedState;s.state=h,hi(t,n,s,o),u=t.memoizedState,a!==n||h!==u||po.current||si?("function"==typeof l&&(mi(t,r,l,n),u=t.memoizedState),(a=si||yi(t,r,a,n,h,u,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4)):("function"==typeof s.componentDidMount&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=u),s.props=n,s.state=u,s.context=c,n=a):("function"==typeof s.componentDidMount&&(t.flags|=4),n=!1)}else{s=t.stateNode,ui(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Qo(t.type,a),s.props=c,d=t.pendingProps,h=s.context,u="object"==typeof(u=r.contextType)&&null!==u?ii(u):mo(t,u=go(r)?fo:ho.current);var p=r.getDerivedStateFromProps;(l="function"==typeof p||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==d||h!==u)&&Ai(t,s,n,u),si=!1,h=t.memoizedState,s.state=h,hi(t,n,s,o);var f=t.memoizedState;a!==d||h!==f||po.current||si?("function"==typeof p&&(mi(t,r,p,n),f=t.memoizedState),(c=si||yi(t,r,c,n,h,f,u))?(l||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(n,f,u),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(n,f,u)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=f),s.props=n,s.state=f,s.context=u,n=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),n=!1)}return Ws(e,t,r,n,i,o)}function Ws(e,t,r,n,o,i){$s(e,t);var s=0!=(64&t.flags);if(!n&&!s)return o&&Co(t,r,!1),ra(e,t,i);n=t.stateNode,ks.current=t;var a=s&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&s?(t.child=Oi(t,e.child,null,i),t.child=Oi(t,null,a,i)):Ns(e,t,a,i),t.memoizedState=n.state,o&&Co(t,r,!0),t.child}function Hs(e){var t=e.stateNode;t.pendingContext?Eo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Eo(0,t.context,!1),Ri(e,t.containerInfo)}var qs,Gs,Ks,Ys,Qs={dehydrated:null,retryLane:0};function Xs(e,t,r){var n,o=t.pendingProps,i=Ni.current,s=!1;return(n=0!=(64&t.flags))||(n=(null===e||null!==e.memoizedState)&&0!=(2&i)),n?(s=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),co(Ni,1&i),null===e?(void 0!==o.fallback&&zi(t),e=o.children,i=o.fallback,s?(e=Zs(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Qs,e):"number"==typeof o.unstable_expectedLoadTime?(e=Zs(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Qs,t.lanes=33554432,e):((r=Hu({mode:"visible",children:e},t.mode,r,null)).return=t,t.child=r)):(e.memoizedState,s?(o=function(e,t,r,n,o){var i=t.mode,s=e.child;e=s.sibling;var a={mode:"hidden",children:r};return 0==(2&i)&&t.child!==s?((r=t.child).childLanes=0,r.pendingProps=a,null!==(s=r.lastEffect)?(t.firstEffect=r.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Vu(s,a),null!==e?n=Vu(e,n):(n=Wu(n,i,o,null)).flags|=2,n.return=t,r.return=t,r.sibling=n,t.child=r,n}(e,t,o.children,o.fallback,r),s=t.child,i=e.child.memoizedState,s.memoizedState=null===i?{baseLanes:r}:{baseLanes:i.baseLanes|r},s.childLanes=e.childLanes&~r,t.memoizedState=Qs,o):(r=function(e,t,r,n){var o=e.child;return e=o.sibling,r=Vu(o,{mode:"visible",children:r}),0==(2&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}(e,t,o.children,r),t.memoizedState=null,r))}function Zs(e,t,r,n){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Hu(t,o,0,null),r=Wu(r,o,n,null),i.return=e,r.return=e,i.sibling=r,e.child=i,r}function Js(e,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ni(e.return,t)}function ea(e,t,r,n,o,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o,lastEffect:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=o,s.lastEffect=i)}function ta(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Ns(e,t,n.children,r),0!=(2&(n=Ni.current)))n=1&n|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Js(e,r);else if(19===e.tag)Js(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(co(Ni,n),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===Mi(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),ea(t,!1,o,r,i,t.lastEffect);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Mi(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}ea(t,!0,r,null,i,t.lastEffect);break;case"together":ea(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ra(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),La|=t.lanes,0!=(r&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(r=Vu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Vu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}return null}function na(e,t){if(!Ui)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function oa(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return go(t.type)&&yo(),null;case 3:return Fi(),uo(po),uo(ho),Ki(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Hi(t)?t.flags|=4:n.hydrate||(t.flags|=256)),Gs(t),null;case 5:Pi(t);var i=Bi(Ii.current);if(r=t.type,null!==e&&null!=t.stateNode)Ks(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(null===t.stateNode)throw Error(s(166));return null}if(e=Bi(Di.current),Hi(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Qn]=t,n[Xn]=a,r){case"dialog":Dn("cancel",n),Dn("close",n);break;case"iframe":case"object":case"embed":Dn("load",n);break;case"video":case"audio":for(e=0;e<wn.length;e++)Dn(wn[e],n);break;case"source":Dn("error",n);break;case"img":case"image":case"link":Dn("error",n),Dn("load",n);break;case"details":Dn("toggle",n);break;case"input":ee(n,a),Dn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Dn("invalid",n);break;case"textarea":ue(n,a),Dn("invalid",n)}for(var c in Se(r,a),e=null,a)a.hasOwnProperty(c)&&(i=a[c],"children"===c?"string"==typeof i?n.textContent!==i&&(e=["children",i]):"number"==typeof i&&n.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Dn("scroll",n));switch(r){case"input":Q(n),ne(n,a,!0);break;case"textarea":Q(n),le(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Ln)}n=e,t.updateQueue=n,null!==n&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de.html&&(e=he(r)),e===de.html?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[Qn]=t,e[Xn]=n,qs(e,t,!1,!1),t.stateNode=e,c=we(r,n),r){case"dialog":Dn("cancel",e),Dn("close",e),i=n;break;case"iframe":case"object":case"embed":Dn("load",e),i=n;break;case"video":case"audio":for(i=0;i<wn.length;i++)Dn(wn[i],e);i=n;break;case"source":Dn("error",e),i=n;break;case"img":case"image":case"link":Dn("error",e),Dn("load",e),i=n;break;case"details":Dn("toggle",e),i=n;break;case"input":ee(e,n),i=J(e,n),Dn("invalid",e);break;case"option":i=ie(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=o({},n,{value:void 0}),Dn("invalid",e);break;case"textarea":ue(e,n),i=ae(e,n),Dn("invalid",e);break;default:i=n}Se(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var d=l[a];"style"===a?Ce(e,d):"dangerouslySetInnerHTML"===a?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===a?"string"==typeof d?("textarea"!==r||""!==d)&&ye(e,d):"number"==typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=d&&"onScroll"===a&&Dn("scroll",e):null!=d&&v(e,a,d,c))}switch(r){case"input":Q(e),ne(e,n,!1);break;case"textarea":Q(e),le(e);break;case"option":null!=n.value&&e.setAttribute("value",""+K(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?se(e,!!n.multiple,a,!1):null!=n.defaultValue&&se(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Ln)}$n(r,n)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ys(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(s(166));r=Bi(Ii.current),Bi(Di.current),Hi(t)?(n=t.stateNode,r=t.memoizedProps,n[Qn]=t,n.nodeValue!==r&&(t.flags|=4)):((n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Qn]=t,t.stateNode=n)}return null;case 13:return uo(Ni),n=t.memoizedState,0!=(64&t.flags)?(t.lanes=r,t):(n=null!==n,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Hi(t):r=null!==e.memoizedState,n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ni.current)?0===Pa&&(Pa=3):(0!==Pa&&3!==Pa||(Pa=4),null===Ia||0==(134217727&La)&&0==(134217727&ja)||mu(Ia,Ra))),(n||r)&&(t.flags|=4),null);case 4:return Fi(),Gs(t),null===e&&In(t.stateNode.containerInfo),null;case 10:return ri(t),null;case 19:if(uo(Ni),null===(n=t.memoizedState))return null;if(a=0!=(64&t.flags),null===(c=n.rendering))if(a)na(n,!1);else{if(0!==Pa||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Mi(e))){for(t.flags|=64,na(n,!1),null!==(a=c.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return co(Ni,1&Ni.current|2),t.child}e=e.sibling}null!==n.tail&&Vo()>za&&(t.flags|=64,a=!0,na(n,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Mi(c))){if(t.flags|=64,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),na(n,!0),null===n.tail&&"hidden"===n.tailMode&&!c.alternate&&!Ui)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Vo()-n.renderingStartTime>za&&1073741824!==r&&(t.flags|=64,a=!0,na(n,!1),t.lanes=33554432);n.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=n.last)?r.sibling=c:t.child=c,n.last=c)}return null!==n.tail?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Vo(),r.sibling=null,t=Ni.current,co(Ni,a?1&t|2:1&t),r):null;case 23:case 24:return Au(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==n.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function ia(e){switch(e.tag){case 1:go(e.type)&&yo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Fi(),uo(po),uo(ho),Ki(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return Pi(e),null;case 13:return uo(Ni),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(Ni),null;case 4:return Fi(),null;case 10:return ri(e),null;case 23:case 24:return Au(),null;default:return null}}function sa(e,t){try{var r="",n=t;do{r+=q(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function aa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Gs=function(){},Ks=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Bi(Di.current);var s,a=null;switch(r){case"input":i=J(e,i),n=J(e,n),a=[];break;case"option":i=ie(e,i),n=ie(e,n),a=[];break;case"select":i=o({},i,{value:void 0}),n=o({},n,{value:void 0}),a=[];break;case"textarea":i=ae(e,i),n=ae(e,n),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=Ln)}for(d in Se(r,n),r=null,i)if(!n.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(s in c)c.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(u.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in n){var l=n[d];if(c=null!=i?i[d]:void 0,n.hasOwnProperty(d)&&l!==c&&(null!=l||null!=c))if("style"===d)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(a||(a=[]),a.push(d,r)),r=l;else"dangerouslySetInnerHTML"===d?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(a=a||[]).push(d,l)):"children"===d?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(d,""+l):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(u.hasOwnProperty(d)?(null!=l&&"onScroll"===d&&Dn("scroll",e),a||c===l||(a=[])):"object"==typeof l&&null!==l&&l.$$typeof===P?l.toString():(a=a||[]).push(d,l))}r&&(a=a||[]).push("style",r);var d=a;(t.updateQueue=d)&&(t.flags|=4)}},Ys=function(e,t,r,n){r!==n&&(t.flags|=4)};var ua="function"==typeof WeakMap?WeakMap:Map;function ca(e,t,r){(r=ci(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ga||(Ga=!0,Ka=n),aa(0,t)},r}function la(e,t,r){(r=ci(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return aa(0,t),n(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Ya?Ya=new Set([this]):Ya.add(this),aa(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}var da="function"==typeof WeakSet?WeakSet:Set;function ha(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Nu(e,t)}else t.current=null}function pa(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Qo(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hn(t.stateNode.containerInfo))}throw Error(s(163))}function fa(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;n=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Fu(r,e),Ru(r,e)),e=n}while(e!==t)}return;case 1:return e=r.stateNode,4&r.flags&&(null===t?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Qo(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=r.updateQueue)&&pi(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}pi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.flags&&$n(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&vt(r)))))}throw Error(s(163))}function ma(e,t){for(var r=e;;){if(5===r.tag){var n=r.stateNode;if(t)"function"==typeof(n=n.style).setProperty?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var o=r.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,n.style.display=ve("display",o)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function ga(e,t){if(So&&"function"==typeof So.onCommitFiberUnmount)try{So.onCommitFiberUnmount(bo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var n=r,o=n.destroy;if(n=n.tag,void 0!==o)if(0!=(4&n))Fu(t,r);else{n=t;try{o()}catch(e){Nu(n,e)}}r=r.next}while(r!==e)}break;case 1:if(ha(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Nu(t,e)}break;case 5:ha(t);break;case 4:ba(e,t)}}function ya(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Ea(e){return 5===e.tag||3===e.tag||4===e.tag}function Aa(e){e:{for(var t=e.return;null!==t;){if(Ea(t))break e;t=t.return}throw Error(s(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(s(161))}16&r.flags&&(ye(t,""),r.flags&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||Ea(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break e}}n?va(e,r,t):Ca(e,r,t)}function va(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ln));else if(4!==n&&null!==(e=e.child))for(va(e,t,r),e=e.sibling;null!==e;)va(e,t,r),e=e.sibling}function Ca(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(Ca(e,t,r),e=e.sibling;null!==e;)Ca(e,t,r),e=e.sibling}function ba(e,t){for(var r,n,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(s(160));switch(r=i.stateNode,i.tag){case 5:n=!1;break e;case 3:case 4:r=r.containerInfo,n=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var a=e,u=o,c=u;;)if(ga(a,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n?(a=r,u=o.stateNode,8===a.nodeType?a.parentNode.removeChild(u):a.removeChild(u)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,n=!0,o.child.return=o,o=o.child;continue}}else if(ga(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Sa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var n=r=r.next;do{3==(3&n.tag)&&(e=n.destroy,n.destroy=void 0,void 0!==e&&e()),n=n.next}while(n!==r)}return;case 1:case 12:case 17:return;case 5:if(null!=(r=t.stateNode)){n=t.memoizedProps;var o=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[Xn]=n,"input"===e&&"radio"===n.type&&null!=n.name&&te(r,n),we(e,o),t=we(e,n),o=0;o<i.length;o+=2){var a=i[o],u=i[o+1];"style"===a?Ce(r,u):"dangerouslySetInnerHTML"===a?ge(r,u):"children"===a?ye(r,u):v(r,a,u,t)}switch(e){case"input":re(r,n);break;case"textarea":ce(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(i=n.value)?se(r,!!n.multiple,i,!1):e!==!!n.multiple&&(null!=n.defaultValue?se(r,!!n.multiple,n.defaultValue,!0):se(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((r=t.stateNode).hydrate&&(r.hydrate=!1,vt(r.containerInfo)));case 13:return null!==t.memoizedState&&(Va=Vo(),ma(t.child,!0)),void wa(t);case 19:return void wa(t);case 23:case 24:return void ma(t,null!==t.memoizedState)}throw Error(s(163))}function wa(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new da),t.forEach((function(t){var n=Lu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function Oa(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var xa=Math.ceil,_a=C.ReactCurrentDispatcher,Da=C.ReactCurrentOwner,Ta=0,Ia=null,Ba=null,Ra=0,Fa=0,ka=ao(0),Pa=0,Na=null,Ma=0,La=0,ja=0,Ua=0,$a=null,Va=0,za=1/0;function Wa(){za=Vo()+500}var Ha,qa=null,Ga=!1,Ka=null,Ya=null,Qa=!1,Xa=null,Za=90,Ja=[],eu=[],tu=null,ru=0,nu=null,ou=-1,iu=0,su=0,au=null,uu=!1;function cu(){return 0!=(48&Ta)?Vo():-1!==ou?ou:ou=Vo()}function lu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zo()?1:2;if(0===iu&&(iu=Ma),0!==Yo.transition){0!==su&&(su=null!==$a?$a.pendingLanes:0),e=iu;var t=4186112&~su;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=zo(),e=Lt(0!=(4&Ta)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),iu)}function du(e,t,r){if(50<ru)throw ru=0,nu=null,Error(s(185));if(null===(e=hu(e,t)))return null;$t(e,t,r),e===Ia&&(ja|=t,4===Pa&&mu(e,Ra));var n=zo();1===t?0!=(8&Ta)&&0==(48&Ta)?gu(e):(pu(e,r),0===Ta&&(Wa(),Go())):(0==(4&Ta)||98!==n&&99!==n||(null===tu?tu=new Set([e]):tu.add(e)),pu(e,r)),$a=e}function hu(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function pu(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-Vt(a),c=1<<u,l=i[u];if(-1===l){if(0==(c&n)||0!=(c&o)){l=t,Pt(c);var d=kt;i[u]=10<=d?l+250:6<=d?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);a&=~c}if(n=Nt(e,e===Ia?Ra:0),t=kt,0===n)null!==r&&(r!==No&&xo(r),e.callbackNode=null,e.callbackPriority=0);else{if(null!==r){if(e.callbackPriority===t)return;r!==No&&xo(r)}15===t?(r=gu.bind(null,e),null===Lo?(Lo=[r],jo=Oo(Bo,Ko)):Lo.push(r),r=No):14===t?r=qo(99,gu.bind(null,e)):(r=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),r=qo(r,fu.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function fu(e){if(ou=-1,su=iu=0,0!=(48&Ta))throw Error(s(327));var t=e.callbackNode;if(Bu()&&e.callbackNode!==t)return null;var r=Nt(e,e===Ia?Ra:0);if(0===r)return null;var n=r,o=Ta;Ta|=16;var i=bu();for(Ia===e&&Ra===n||(Wa(),vu(e,n));;)try{Ou();break}catch(t){Cu(e,t)}if(ti(),_a.current=i,Ta=o,null!==Ba?n=0:(Ia=null,Ra=0,n=Pa),0!=(Ma&ja))vu(e,0);else if(0!==n){if(2===n&&(Ta|=64,e.hydrate&&(e.hydrate=!1,Hn(e.containerInfo)),0!==(r=Mt(e))&&(n=Su(e,r))),1===n)throw t=Na,vu(e,0),mu(e,r),pu(e,Vo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(s(345));case 2:case 5:Du(e);break;case 3:if(mu(e,r),(62914560&r)===r&&10<(n=Va+500-Vo())){if(0!==Nt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){cu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=zn(Du.bind(null,e),n);break}Du(e);break;case 4:if(mu(e,r),(4186112&r)===r)break;for(n=e.eventTimes,o=-1;0<r;){var a=31-Vt(r);i=1<<a,(a=n[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=Vo()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xa(r/1960))-r)){e.timeoutHandle=zn(Du.bind(null,e),r);break}Du(e);break;default:throw Error(s(329))}}return pu(e,Vo()),e.callbackNode===t?fu.bind(null,e):null}function mu(e,t){for(t&=~Ua,t&=~ja,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Vt(t),n=1<<r;e[r]=-1,t&=~n}}function gu(e){if(0!=(48&Ta))throw Error(s(327));if(Bu(),e===Ia&&0!=(e.expiredLanes&Ra)){var t=Ra,r=Su(e,t);0!=(Ma&ja)&&(r=Su(e,t=Nt(e,t)))}else r=Su(e,t=Nt(e,0));if(0!==e.tag&&2===r&&(Ta|=64,e.hydrate&&(e.hydrate=!1,Hn(e.containerInfo)),0!==(t=Mt(e))&&(r=Su(e,t))),1===r)throw r=Na,vu(e,0),mu(e,t),pu(e,Vo()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Du(e),pu(e,Vo()),null}function yu(e,t){var r=Ta;Ta|=1;try{return e(t)}finally{0===(Ta=r)&&(Wa(),Go())}}function Eu(e,t){co(ka,Fa),Fa|=t,Ma|=t}function Au(){Fa=ka.current,uo(ka)}function vu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Wn(r)),null!==Ba)for(r=Ba.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&yo();break;case 3:Fi(),uo(po),uo(ho),Ki();break;case 5:Pi(n);break;case 4:Fi();break;case 13:case 19:uo(Ni);break;case 10:ri(n);break;case 23:case 24:Au()}r=r.return}Ia=e,Ba=Vu(e.current,null),Ra=Fa=Ma=t,Pa=0,Na=null,Ua=ja=La=0}function Cu(e,t){for(;;){var r=Ba;try{if(ti(),Yi.current=Is,ts){for(var n=Zi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ts=!1}if(Xi=0,es=Ji=Zi=null,rs=!1,Da.current=null,null===r||null===r.return){Pa=1,Na=t,Ba=null;break}e:{var i=e,s=r.return,a=r,u=t;if(t=Ra,a.flags|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.lanes=l.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=0!=(1&Ni.current),h=s;do{var p;if(p=13===h.tag){var f=h.memoizedState;if(null!==f)p=null!==f.dehydrated;else{var m=h.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var g=h.updateQueue;if(null===g){var y=new Set;y.add(c),h.updateQueue=y}else g.add(c);if(0==(2&h.mode)){if(h.flags|=64,a.flags|=16384,a.flags&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var E=ci(-1,1);E.tag=2,li(a,E)}a.lanes|=1;break e}u=void 0,a=t;var A=i.pingCache;if(null===A?(A=i.pingCache=new ua,u=new Set,A.set(c,u)):void 0===(u=A.get(c))&&(u=new Set,A.set(c,u)),!u.has(a)){u.add(a);var v=Mu.bind(null,i,c,a);c.then(v,v)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);u=Error((G(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Pa&&(Pa=2),u=sa(u,a),h=s;do{switch(h.tag){case 3:i=u,h.flags|=4096,t&=-t,h.lanes|=t,di(h,ca(0,i,t));break e;case 1:i=u;var C=h.type,b=h.stateNode;if(0==(64&h.flags)&&("function"==typeof C.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ya||!Ya.has(b)))){h.flags|=4096,t&=-t,h.lanes|=t,di(h,la(h,i,t));break e}}h=h.return}while(null!==h)}_u(r)}catch(e){t=e,Ba===r&&null!==r&&(Ba=r=r.return);continue}break}}function bu(){var e=_a.current;return _a.current=Is,null===e?Is:e}function Su(e,t){var r=Ta;Ta|=16;var n=bu();for(Ia===e&&Ra===t||vu(e,t);;)try{wu();break}catch(t){Cu(e,t)}if(ti(),Ta=r,_a.current=n,null!==Ba)throw Error(s(261));return Ia=null,Ra=0,Pa}function wu(){for(;null!==Ba;)xu(Ba)}function Ou(){for(;null!==Ba&&!_o();)xu(Ba)}function xu(e){var t=Ha(e.alternate,e,Fa);e.memoizedProps=e.pendingProps,null===t?_u(e):Ba=t,Da.current=null}function _u(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(r=oa(r,t,Fa)))return void(Ba=r);if(24!==(r=t).tag&&23!==r.tag||null===r.memoizedState||0!=(1073741824&Fa)||0==(4&r.mode)){for(var n=0,o=r.child;null!==o;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(r=ia(t)))return r.flags&=2047,void(Ba=r);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ba=t);Ba=t=e}while(null!==t);0===Pa&&(Pa=5)}function Du(e){var t=zo();return Ho(99,Tu.bind(null,e,t)),null}function Tu(e,t){do{Bu()}while(null!==Xa);if(0!=(48&Ta))throw Error(s(327));var r=e.finishedWork;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null;var n=r.lanes|r.childLanes,o=n,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var a=e.eventTimes,u=e.expirationTimes;0<i;){var c=31-Vt(i),l=1<<c;o[c]=0,a[c]=-1,u[c]=-1,i&=~l}if(null!==tu&&0==(24&n)&&tu.has(e)&&tu.delete(e),e===Ia&&(Ba=Ia=null,Ra=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,null!==n){if(o=Ta,Ta|=32,Da.current=null,jn=Gt,mn(a=fn())){if("selectionStart"in a)u={start:a.selectionStart,end:a.selectionEnd};else e:if(u=(u=a.ownerDocument)&&u.defaultView||window,(l=u.getSelection&&u.getSelection())&&0!==l.rangeCount){u=l.anchorNode,i=l.anchorOffset,c=l.focusNode,l=l.focusOffset;try{u.nodeType,c.nodeType}catch(e){u=null;break e}var d=0,h=-1,p=-1,f=0,m=0,g=a,y=null;t:for(;;){for(var E;g!==u||0!==i&&3!==g.nodeType||(h=d+i),g!==c||0!==l&&3!==g.nodeType||(p=d+l),3===g.nodeType&&(d+=g.nodeValue.length),null!==(E=g.firstChild);)y=g,g=E;for(;;){if(g===a)break t;if(y===u&&++f===i&&(h=d),y===c&&++m===l&&(p=d),null!==(E=g.nextSibling))break;y=(g=y).parentNode}g=E}u=-1===h||-1===p?null:{start:h,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Un={focusedElem:a,selectionRange:u},Gt=!1,au=null,uu=!1,qa=n;do{try{Iu()}catch(e){if(null===qa)throw Error(s(330));Nu(qa,e),qa=qa.nextEffect}}while(null!==qa);au=null,qa=n;do{try{for(a=e;null!==qa;){var A=qa.flags;if(16&A&&ye(qa.stateNode,""),128&A){var v=qa.alternate;if(null!==v){var C=v.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(1038&A){case 2:Aa(qa),qa.flags&=-3;break;case 6:Aa(qa),qa.flags&=-3,Sa(qa.alternate,qa);break;case 1024:qa.flags&=-1025;break;case 1028:qa.flags&=-1025,Sa(qa.alternate,qa);break;case 4:Sa(qa.alternate,qa);break;case 8:ba(a,u=qa);var b=u.alternate;ya(u),null!==b&&ya(b)}qa=qa.nextEffect}}catch(e){if(null===qa)throw Error(s(330));Nu(qa,e),qa=qa.nextEffect}}while(null!==qa);if(C=Un,v=fn(),A=C.focusedElem,a=C.selectionRange,v!==A&&A&&A.ownerDocument&&pn(A.ownerDocument.documentElement,A)){null!==a&&mn(A)&&(v=a.start,void 0===(C=a.end)&&(C=v),"selectionStart"in A?(A.selectionStart=v,A.selectionEnd=Math.min(C,A.value.length)):(C=(v=A.ownerDocument||document)&&v.defaultView||window).getSelection&&(C=C.getSelection(),u=A.textContent.length,b=Math.min(a.start,u),a=void 0===a.end?b:Math.min(a.end,u),!C.extend&&b>a&&(u=a,a=b,b=u),u=hn(A,b),i=hn(A,a),u&&i&&(1!==C.rangeCount||C.anchorNode!==u.node||C.anchorOffset!==u.offset||C.focusNode!==i.node||C.focusOffset!==i.offset)&&((v=v.createRange()).setStart(u.node,u.offset),C.removeAllRanges(),b>a?(C.addRange(v),C.extend(i.node,i.offset)):(v.setEnd(i.node,i.offset),C.addRange(v))))),v=[];for(C=A;C=C.parentNode;)1===C.nodeType&&v.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof A.focus&&A.focus(),A=0;A<v.length;A++)(C=v[A]).element.scrollLeft=C.left,C.element.scrollTop=C.top}Gt=!!jn,Un=jn=null,e.current=r,qa=n;do{try{for(A=e;null!==qa;){var S=qa.flags;if(36&S&&fa(A,qa.alternate,qa),128&S){v=void 0;var w=qa.ref;if(null!==w){var O=qa.stateNode;qa.tag,v=O,"function"==typeof w?w(v):w.current=v}}qa=qa.nextEffect}}catch(e){if(null===qa)throw Error(s(330));Nu(qa,e),qa=qa.nextEffect}}while(null!==qa);qa=null,Mo(),Ta=o}else e.current=r;if(Qa)Qa=!1,Xa=e,Za=t;else for(qa=n;null!==qa;)t=qa.nextEffect,qa.nextEffect=null,8&qa.flags&&((S=qa).sibling=null,S.stateNode=null),qa=t;if(0===(n=e.pendingLanes)&&(Ya=null),1===n?e===nu?ru++:(ru=0,nu=e):ru=0,r=r.stateNode,So&&"function"==typeof So.onCommitFiberRoot)try{So.onCommitFiberRoot(bo,r,void 0,64==(64&r.current.flags))}catch(e){}if(pu(e,Vo()),Ga)throw Ga=!1,e=Ka,Ka=null,e;return 0!=(8&Ta)||Go(),null}function Iu(){for(;null!==qa;){var e=qa.alternate;uu||null===au||(0!=(8&qa.flags)?Ze(qa,au)&&(uu=!0):13===qa.tag&&Oa(e,qa)&&Ze(qa,au)&&(uu=!0));var t=qa.flags;0!=(256&t)&&pa(e,qa),0==(512&t)||Qa||(Qa=!0,qo(97,(function(){return Bu(),null}))),qa=qa.nextEffect}}function Bu(){if(90!==Za){var e=97<Za?97:Za;return Za=90,Ho(e,ku)}return!1}function Ru(e,t){Ja.push(t,e),Qa||(Qa=!0,qo(97,(function(){return Bu(),null})))}function Fu(e,t){eu.push(t,e),Qa||(Qa=!0,qo(97,(function(){return Bu(),null})))}function ku(){if(null===Xa)return!1;var e=Xa;if(Xa=null,0!=(48&Ta))throw Error(s(331));var t=Ta;Ta|=32;var r=eu;eu=[];for(var n=0;n<r.length;n+=2){var o=r[n],i=r[n+1],a=o.destroy;if(o.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===i)throw Error(s(330));Nu(i,e)}}for(r=Ja,Ja=[],n=0;n<r.length;n+=2){o=r[n],i=r[n+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(s(330));Nu(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Ta=t,Go(),!0}function Pu(e,t,r){li(e,t=ca(0,t=sa(r,t),1)),t=cu(),null!==(e=hu(e,1))&&($t(e,1,t),pu(e,t))}function Nu(e,t){if(3===e.tag)Pu(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Pu(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Ya||!Ya.has(n))){var o=la(r,e=sa(t,e),1);if(li(r,o),o=cu(),null!==(r=hu(r,1)))$t(r,1,o),pu(r,o);else if("function"==typeof n.componentDidCatch&&(null===Ya||!Ya.has(n)))try{n.componentDidCatch(t,e)}catch(e){}break}}r=r.return}}function Mu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=cu(),e.pingedLanes|=e.suspendedLanes&r,Ia===e&&(Ra&r)===r&&(4===Pa||3===Pa&&(62914560&Ra)===Ra&&500>Vo()-Va?vu(e,0):Ua|=r),pu(e,t)}function Lu(e,t){var r=e.stateNode;null!==r&&r.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===zo()?1:2:(0===iu&&(iu=Ma),0===(t=jt(62914560&~iu))&&(t=4194304))),r=cu(),null!==(e=hu(e,t))&&($t(e,t,r),pu(e,r))}function ju(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uu(e,t,r,n){return new ju(e,t,r,n)}function $u(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vu(e,t){var r=e.alternate;return null===r?((r=Uu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function zu(e,t,r,n,o,i){var a=2;if(n=e,"function"==typeof e)$u(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case w:return Wu(r.children,o,i,t);case N:a=8,o|=16;break;case O:a=8,o|=1;break;case x:return(e=Uu(12,r,t,8|o)).elementType=x,e.type=x,e.lanes=i,e;case I:return(e=Uu(13,r,t,o)).type=I,e.elementType=I,e.lanes=i,e;case B:return(e=Uu(19,r,t,o)).elementType=B,e.lanes=i,e;case M:return Hu(r,o,i,t);case L:return(e=Uu(24,r,t,o)).elementType=L,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:a=10;break e;case D:a=9;break e;case T:a=11;break e;case R:a=14;break e;case F:a=16,n=null;break e;case k:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Uu(a,r,t,o)).elementType=e,t.type=n,t.lanes=i,t}function Wu(e,t,r,n){return(e=Uu(7,e,n,t)).lanes=r,e}function Hu(e,t,r,n){return(e=Uu(23,e,n,t)).elementType=M,e.lanes=r,e}function qu(e,t,r){return(e=Uu(6,e,null,t)).lanes=r,e}function Gu(e,t,r){return(t=Uu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ku(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Yu(e,t,r,n){var o=t.current,i=cu(),a=lu(o);e:if(r){t:{if(Ye(r=r._reactInternals)!==r||1!==r.tag)throw Error(s(170));var u=r;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(go(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(s(171))}if(1===r.tag){var c=r.type;if(go(c)){r=Ao(r,c,u);break e}}r=u}else r=lo;return null===t.context?t.context=r:t.pendingContext=r,(t=ci(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),li(o,t),du(o,a,i),a}function Qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Xu(e,t){Qu(e,t),(e=e.alternate)&&Qu(e,t)}function Zu(e,t,r){var n=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Ku(e,t,null!=r&&!0===r.hydrate),t=Uu(3,null,null,2===t?7:1===t?3:0),r.current=t,t.stateNode=r,ai(t),e[Zn]=r.current,In(8===e.nodeType?e.parentNode:e),n)for(e=0;e<n.length;e++){var o=(t=n[e])._getVersion;o=o(t._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[t,o]:r.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=r}Ha=function(e,t,r){var n=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||po.current)Ps=!0;else{if(0==(r&n)){switch(Ps=!1,t.tag){case 3:Hs(t),qi();break;case 5:ki(t);break;case 1:go(t.type)&&vo(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var o=t.type._context;co(Xo,o._currentValue),o._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!=(r&t.child.childLanes)?Xs(e,t,r):(co(Ni,1&Ni.current),null!==(t=ra(e,t,r))?t.sibling:null);co(Ni,1&Ni.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(64&e.flags)){if(n)return ta(e,t,r);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),co(Ni,Ni.current),n)break;return null;case 23:case 24:return t.lanes=0,Us(e,t,r)}return ra(e,t,r)}Ps=0!=(16384&e.flags)}else Ps=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=mo(t,ho.current),oi(t,r),o=is(null,t,n,e,o,r),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(n)){var i=!0;vo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var a=n.getDerivedStateFromProps;"function"==typeof a&&mi(t,n,a,e),o.updater=gi,t.stateNode=o,o._reactInternals=t,vi(t,n,e,r),t=Ws(null,t,n,!0,i,r)}else t.tag=0,Ns(null,t,o,r),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return $u(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===R)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Vs(null,t,o,e,r);break e;case 1:t=zs(null,t,o,e,r);break e;case 11:t=Ms(null,t,o,e,r);break e;case 14:t=Ls(null,t,o,Qo(o.type,e),n,r);break e}throw Error(s(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,Vs(e,t,n,o=t.elementType===n?o:Qo(n,o),r);case 1:return n=t.type,o=t.pendingProps,zs(e,t,n,o=t.elementType===n?o:Qo(n,o),r);case 3:if(Hs(t),n=t.updateQueue,null===e||null===n)throw Error(s(282));if(n=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),hi(t,n,null,r),(n=t.memoizedState.element)===o)qi(),t=ra(e,t,r);else{if((i=(o=t.stateNode).hydrate)&&(ji=qn(t.stateNode.containerInfo.firstChild),Li=t,i=Ui=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Gi.push(i);for(r=xi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else Ns(e,t,n,r),qi();t=t.child}return t;case 5:return ki(t),null===e&&zi(t),n=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,Vn(n,o)?a=null:null!==i&&Vn(n,i)&&(t.flags|=16),$s(e,t),Ns(e,t,a,r),t.child;case 6:return null===e&&zi(t),null;case 13:return Xs(e,t,r);case 4:return Ri(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Oi(t,null,n,r):Ns(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,Ms(e,t,n,o=t.elementType===n?o:Qo(n,o),r);case 7:return Ns(e,t,t.pendingProps,r),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var u=t.type._context;if(co(Xo,u._currentValue),u._currentValue=i,null!==a)if(u=a.value,0==(i=un(u,i)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(u,i):1073741823))){if(a.children===o.children&&!po.current){t=ra(e,t,r);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){a=u.child;for(var l=c.firstContext;null!==l;){if(l.context===n&&0!=(l.observedBits&i)){1===u.tag&&((l=ci(-1,r&-r)).tag=2,li(u,l)),u.lanes|=r,null!==(l=u.alternate)&&(l.lanes|=r),ni(u.return,r),c.lanes|=r;break}l=l.next}}else a=10===u.tag&&u.type===t.type?null:u.child;if(null!==a)a.return=u;else for(a=u;null!==a;){if(a===t){a=null;break}if(null!==(u=a.sibling)){u.return=a.return,a=u;break}a=a.return}u=a}Ns(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=(i=t.pendingProps).children,oi(t,r),n=n(o=ii(o,i.unstable_observedBits)),t.flags|=1,Ns(e,t,n,r),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),Ls(e,t,o,i=Qo(o.type,i),n,r);case 15:return js(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Qo(n,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,go(n)?(e=!0,vo(t)):e=!1,oi(t,r),Ei(t,n,o),vi(t,n,o,r),Ws(null,t,n,!0,e,r);case 19:return ta(e,t,r);case 23:case 24:return Us(e,t,r)}throw Error(s(156,t.tag))},Zu.prototype.render=function(e){Yu(e,this._internalRoot,null,null)},Zu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yu(null,e,null,(function(){t[Zn]=null}))},Je=function(e){13===e.tag&&(du(e,4,cu()),Xu(e,4))},et=function(e){13===e.tag&&(du(e,67108864,cu()),Xu(e,67108864))},tt=function(e){if(13===e.tag){var t=cu(),r=lu(e);du(e,r,t),Xu(e,r)}},rt=function(e,t){return t()},xe=function(e,t,r){switch(t){case"input":if(re(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=no(n);if(!o)throw Error(s(90));X(n),re(n,o)}}}break;case"textarea":ce(e,r);break;case"select":null!=(t=r.value)&&se(e,!!r.multiple,t,!1)}},Re=yu,Fe=function(e,t,r,n,o){var i=Ta;Ta|=4;try{return Ho(98,e.bind(null,t,r,n,o))}finally{0===(Ta=i)&&(Wa(),Go())}},ke=function(){0==(49&Ta)&&(function(){if(null!==tu){var e=tu;tu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pu(e,Vo())}))}Go()}(),Bu())},Pe=function(e,t){var r=Ta;Ta|=2;try{return e(t)}finally{0===(Ta=r)&&(Wa(),Go())}};var Ju={findFiberByHostInstance:eo,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ec={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=function(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(s(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return Xe(o),e;if(i===n)return Xe(o),t;i=i.sibling}throw Error(s(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,u=o.child;u;){if(u===r){a=!0,r=o,n=i;break}if(u===n){a=!0,n=o,r=i;break}u=u.sibling}if(!a){for(u=i.child;u;){if(u===r){a=!0,r=i,n=o;break}if(u===n){a=!0,n=i,r=o;break}u=u.sibling}if(!a)throw Error(s(189))}}if(r.alternate!==n)throw Error(s(190))}if(3!==r.tag)throw Error(s(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{bo=tc.inject(ec),So=tc}catch(me){}}t.unstable_batchedUpdates=yu},8316:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(2967)},9670:(e,t)=>{"use strict";var r,n,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,u=a.now();t.unstable_now=function(){return a.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},n=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,y=-1,E=5,A=0;t.unstable_shouldYield=function(){return t.unstable_now()>=A},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5};var v=new MessageChannel,C=v.port2;v.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();A=e+E;try{g(!0,e)?C.postMessage(null):(m=!1,g=null)}catch(e){throw C.postMessage(null),e}}else m=!1},r=function(e){g=e,m||(m=!0,C.postMessage(null))},n=function(e,r){y=h((function(){e(t.unstable_now())}),r)},o=function(){p(y),y=-1}}function b(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<O(o,t)))break e;e[n]=t,e[r]=o,r=n}}function S(e){return void 0===(e=e[0])?null:e}function w(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,s=e[i],a=i+1,u=e[a];if(void 0!==s&&0>O(s,r))void 0!==u&&0>O(u,s)?(e[n]=u,e[a]=r,n=a):(e[n]=s,e[i]=r,n=i);else{if(!(void 0!==u&&0>O(u,r)))break e;e[n]=u,e[a]=r,n=a}}}return t}return null}function O(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var x=[],_=[],D=1,T=null,I=3,B=!1,R=!1,F=!1;function k(e){for(var t=S(_);null!==t;){if(null===t.callback)w(_);else{if(!(t.startTime<=e))break;w(_),t.sortIndex=t.expirationTime,b(x,t)}t=S(_)}}function P(e){if(F=!1,k(e),!R)if(null!==S(x))R=!0,r(N);else{var t=S(_);null!==t&&n(P,t.startTime-e)}}function N(e,r){R=!1,F&&(F=!1,o()),B=!0;var i=I;try{for(k(r),T=S(x);null!==T&&(!(T.expirationTime>r)||e&&!t.unstable_shouldYield());){var s=T.callback;if("function"==typeof s){T.callback=null,I=T.priorityLevel;var a=s(T.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?T.callback=a:T===S(x)&&w(x),k(r)}else w(x);T=S(x)}if(null!==T)var u=!0;else{var c=S(_);null!==c&&n(P,c.startTime-r),u=!1}return u}finally{T=null,I=i,B=!1}}var M=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||B||(R=!0,r(N))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return S(x)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var r=I;I=t;try{return e()}finally{I=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=I;I=e;try{return t()}finally{I=r}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();switch(s="object"==typeof s&&null!==s&&"number"==typeof(s=s.delay)&&0<s?a+s:a,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:D++,callback:i,priorityLevel:e,startTime:s,expirationTime:u=s+u,sortIndex:-1},s>a?(e.sortIndex=s,b(_,e),null===S(x)&&e===S(_)&&(F?o():F=!0,n(P,s-a))):(e.sortIndex=u,b(x,e),R||B||(R=!0,r(N))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var r=I;I=t;try{return e.apply(this,arguments)}finally{I=r}}}},2941:(e,t,r)=>{"use strict";e.exports=r(9670)},8559:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case i:case d:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case l:case f:case p:case a:return e;default:return t}}case n:return t}}}(e)===u}},3920:(e,t,r)=>{"use strict";e.exports=r(8559)},8139:(e,t,r)=>{"use strict";e.exports=r(9796).gunzipSync(Buffer.from("H4sIAAAAAAACA+3dTYgcWR0A8FfTnekQ47aCkBxiZpYV8RhwYQM7bA/ksoLgSRD0IOSiePAkLrowvWSF4CkHEW856MlTQHA9RKZ1ZJODsEcVcTOyhxUEbXdXtpPp1PNVV39Uz4czEyaTVOb3G6a7XtWrr/devX49/+qekG2Go7Aa2jHGyozG+Dmrzi2mP/xb/zMhLI+WlRm2byubm2h0ivVi7BYzusVjuNkt1l9uFWsutWL8OP4rzV9KeXdsKx1HFhbSc6vIG0fKBZ14UNfLFS6FRrGRtXh98ZvphL/x4uLV/IOzaat/vlikv/TixavxR8PQitfPpKNbffXSwgtr8fV07GX+L1967urwg5W0/t0LV37y/oWFlQtX8ping7reXE3LT680r9yPKyn/3Vn64SwdVs6m/KN0yHrp9D+RvXsqpe6MSia5mH6LSog//Xq/++O74YVTjfDFWK2VIuNSemiPppphcVYeyzcudKqFMiq6cs3vVkrzlcnE0mxeZ1Jf2ZXsSvk8TmRZWYdpalydxd5bc8eUkt1wlEbtqTVLr8XQLFpKMb+dpr9SbSOt4ozTgXUq8+Ihm8cTt0shtCvT6dwao6sxPf5ydmU208/Z0yH8IZtlvZi3e5fG12yn3PLSdPvnQ7vsK9rxyKpqevzFZGVfu3YHezvbnbvit9Xdm5fGbf/MZ7PuuNrTjLJnaofH7gm0h+VKU/g/tdUocrer3cO4yOcuycGoyLrba6Ta+lrlnkZ5ntvWCrfV39wLTuNg9QvsvHb37P8BAGCP0eNTOH5szf154JmnNQIcn7b+FziyAfX4eWnn+C6Lm4M0mj31ubkViiDV4WLvs56qN54xGS3HWER5su6nQtZubl9tcY/4atbr9e5kWewew/g2a8fdy2Yaa97+pgQAAAAAAIBHtt+dYmWwaN/byI5g/9PYVfMvb4YvvDpOLJxvFgueP9VbPXh8/yCZViZxNYATaejmDQAAAACgfjJ/3QUA4JD3Px1InT+5PtQCAAAAAAAAAKD2xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP6G6+khVCgSAAAAAAAAAKidYQjLYVfNcPSyAE+dhQsnvAAq59/VHAAAAAAAAOCJmv8E/w4HiLqf3nWuWCB1pe0esg/pT3sKd+m4XjhpFpZH3/1THTcU6cfRLnrHf3ZNPZs+bf9rwPuIUPYAWb+j/Zy0EaAxAAAAAADwrPJ1IMBenu6ea99M+0W/17wCAAAAAAAAnGRLm8oA4JnQUAQAAAAAAAAAUHvi/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/jdX0ECsUCQAAAAAAAADUTiMCAAAAAAAAAHU3VAQAAAAAAAAAUH8hLNf1uwsWbhT/uWBzUEx/ei1Nxc001VqrnN2wuRjCK3G4HuNgtuJoSVj17Q9QyBQBAAAAAAAAHMKpuJ4/+Otc5L2XZi8dJlQ/LCPXhc4keJ9UI9uFre3rDfY9uoXZPQBFHL34HSWWm8sx5rH83d967IfZMRZHHG/2Qi8MFnbscXnhnzHei5NND8P2bW2OT3G8vFeebBHbz9dGEf5jDt+fK4/mTve1bnwndsNL92+mE/75xhs/yz65Ed/ZbP29SP96oxvCDxrxcjj333R262/d6X6tG66lYy/z/+rtMn83nHvv9nfOv/dw4+pvspCl4v7+1npa/nHvtbSvjSJ/mf79/VuLC7N03LiW8o/SMU8ldO+jPOul1OVQ3vVwK+TZqBLCt3/RXvveS7eaD0L8YyhrJeV/cC0WGTdD1hzlCo2H98vzK9a+963V7qRVTeaNa+ZGpWp+N62jSmOetJD8dn67fB4n8nzchG7n4+os2tcgzLWUQVg70rta8lE7nqW7IW710v7eDsV1F7e6433njYfd9j9Gl2KIveptMePVamOXQuhXO5tUk6Pv+kiPX43T7/3YevDy4MN+HLw8CHPX6OqOOwKe73z0+pnf3rvT6pX76j/SUU7/3UjqX5r7ZW7PdZU8Vq2id+29Pphdh3n1Tqp/t0aXaWVOPnsFGre+waRdpKf/TK+7fiX3bOWluVeJg77AAPNDwr37fwAA2GP0+BSOHwcn6/231ghwfPr6X+DIBtTj582d47s8LD3xMeYktt+YHXHe6XQuH9P4Nu+H3ctmGmve/qYEAAAAAACAR7bfnWJlsGgSNNoM54tPZ23EI4vYzPY1/fzq1ud/GP/01jjx8P2tYsG7DzrrB4/vHySTz5YB+n8AAAAAgJrJ/XEXAIDHEf/2yXUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgGdABAAAAAAAAADqbqgIAAAAAAAAAKD2hv8DWK79UBhoBgA=","base64"))},7017:(e,t,r)=>{"use strict";const{unassigned_code_points:n,commonly_mapped_to_nothing:o,non_ASCII_space_characters:i,prohibited_characters:s,bidirectional_r_al:a,bidirectional_l:u}=r(6392);e.exports=function(e,t={}){if("string"!=typeof e)throw new TypeError("Expected string.");if(0===e.length)return"";const r=f(e).map((e=>c.get(e)?32:e)).filter((e=>!l.get(e))),o=String.fromCodePoint.apply(null,r).normalize("NFKC"),i=f(o);if(i.some((e=>s.get(e))))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==t.allowUnassigned&&i.some((e=>n.get(e))))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");const m=i.some((e=>a.get(e))),g=i.some((e=>u.get(e)));if(m&&g)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const y=a.get(d(h(o))),E=a.get(d(p(o)));if(m&&(!y||!E))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return o};const c=i,l=o,d=e=>e.codePointAt(0),h=e=>e[0],p=e=>e[e.length-1];function f(e){const t=[],r=e.length;for(let n=0;n<r;n+=1){const o=e.charCodeAt(n);if(o>=55296&&o<=56319&&r>n+1){const r=e.charCodeAt(n+1);if(r>=56320&&r<=57343){t.push(1024*(o-55296)+r-56320+65536),n+=1;continue}}t.push(o)}return t}},6392:(e,t,r)=>{"use strict";const n=r(3184),o=r(8139);let i=0;function s(){const e=o.readUInt32BE(i);i+=4;const t=o.slice(i,i+e);return i+=e,n({buffer:t})}const a=s(),u=s(),c=s(),l=s(),d=s(),h=s();e.exports={unassigned_code_points:a,commonly_mapped_to_nothing:u,non_ASCII_space_characters:c,prohibited_characters:l,bidirectional_r_al:d,bidirectional_l:h}},3619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9460);class o{constructor(e){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,o.isSmartBufferOptions(e))if(e.encoding&&(n.checkEncoding(e.encoding),this._encoding=e.encoding),e.size){if(!(n.isFiniteInteger(e.size)&&e.size>0))throw new Error(n.ERRORS.INVALID_SMARTBUFFER_SIZE);this._buff=Buffer.allocUnsafe(e.size)}else if(e.buff){if(!Buffer.isBuffer(e.buff))throw new Error(n.ERRORS.INVALID_SMARTBUFFER_BUFFER);this._buff=e.buff,this.length=e.buff.length}else this._buff=Buffer.allocUnsafe(4096);else{if(void 0!==e)throw new Error(n.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(4096)}}static fromSize(e,t){return new this({size:e,encoding:t})}static fromBuffer(e,t){return new this({buff:e,encoding:t})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){const t=e;return t&&(void 0!==t.encoding||void 0!==t.size||void 0!==t.buff)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return n.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return n.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,t),this}insertInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,t)}writeInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}insertInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}writeInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}insertInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}writeInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}insertInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}writeInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}insertInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}writeBigInt64BE(e,t){return n.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}insertBigInt64BE(e,t){return n.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}writeBigInt64LE(e,t){return n.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}insertBigInt64LE(e,t){return n.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}readUInt8(e){return this._readNumberValue(Buffer.prototype.readUInt8,1,e)}readUInt16BE(e){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,e)}readUInt16LE(e){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,e)}readUInt32BE(e){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,e)}readUInt32LE(e){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,e)}readBigUInt64BE(e){return n.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,e)}readBigUInt64LE(e){return n.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,e)}writeUInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,e,t)}insertUInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,e,t)}writeUInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}insertUInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}writeUInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}insertUInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}writeUInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}insertUInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}writeUInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}insertUInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}writeBigUInt64BE(e,t){return n.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}insertBigUInt64BE(e,t){return n.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}writeBigUInt64LE(e,t){return n.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}insertBigUInt64LE(e,t){return n.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}readFloatBE(e){return this._readNumberValue(Buffer.prototype.readFloatBE,4,e)}readFloatLE(e){return this._readNumberValue(Buffer.prototype.readFloatLE,4,e)}writeFloatBE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}insertFloatBE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}writeFloatLE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}insertFloatLE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}readDoubleBE(e){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,e)}readDoubleLE(e){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,e)}writeDoubleBE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}insertDoubleBE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}writeDoubleLE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}insertDoubleLE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}readString(e,t){let r;"number"==typeof e?(n.checkLengthValue(e),r=Math.min(e,this.length-this._readOffset)):(t=e,r=this.length-this._readOffset),void 0!==t&&n.checkEncoding(t);const o=this._buff.slice(this._readOffset,this._readOffset+r).toString(t||this._encoding);return this._readOffset+=r,o}insertString(e,t,r){return n.checkOffsetValue(t),this._handleString(e,!0,t,r)}writeString(e,t,r){return this._handleString(e,!1,t,r)}readStringNT(e){void 0!==e&&n.checkEncoding(e);let t=this.length;for(let e=this._readOffset;e<this.length;e++)if(0===this._buff[e]){t=e;break}const r=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,r.toString(e||this._encoding)}insertStringNT(e,t,r){return n.checkOffsetValue(t),this.insertString(e,t,r),this.insertUInt8(0,t+e.length),this}writeStringNT(e,t,r){return this.writeString(e,t,r),this.writeUInt8(0,"number"==typeof t?t+e.length:this.writeOffset),this}readBuffer(e){void 0!==e&&n.checkLengthValue(e);const t="number"==typeof e?e:this.length,r=Math.min(this.length,this._readOffset+t),o=this._buff.slice(this._readOffset,r);return this._readOffset=r,o}insertBuffer(e,t){return n.checkOffsetValue(t),this._handleBuffer(e,!0,t)}writeBuffer(e,t){return this._handleBuffer(e,!1,t)}readBufferNT(){let e=this.length;for(let t=this._readOffset;t<this.length;t++)if(0===this._buff[t]){e=t;break}const t=this._buff.slice(this._readOffset,e);return this._readOffset=e+1,t}insertBufferNT(e,t){return n.checkOffsetValue(t),this.insertBuffer(e,t),this.insertUInt8(0,t+e.length),this}writeBufferNT(e,t){return void 0!==t&&n.checkOffsetValue(t),this.writeBuffer(e,t),this.writeUInt8(0,"number"==typeof t?t+e.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(e){n.checkOffsetValue(e),n.checkTargetOffset(e,this),this._readOffset=e}get writeOffset(){return this._writeOffset}set writeOffset(e){n.checkOffsetValue(e),n.checkTargetOffset(e,this),this._writeOffset=e}get encoding(){return this._encoding}set encoding(e){n.checkEncoding(e),this._encoding=e}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(e){const t="string"==typeof e?e:this._encoding;return n.checkEncoding(t),this._buff.toString(t,0,this.length)}destroy(){return this.clear(),this}_handleString(e,t,r,o){let i=this._writeOffset,s=this._encoding;"number"==typeof r?i=r:"string"==typeof r&&(n.checkEncoding(r),s=r),"string"==typeof o&&(n.checkEncoding(o),s=o);const a=Buffer.byteLength(e,s);return t?this.ensureInsertable(a,i):this._ensureWriteable(a,i),this._buff.write(e,i,a,s),t?this._writeOffset+=a:"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,i+a):this._writeOffset+=a,this}_handleBuffer(e,t,r){const n="number"==typeof r?r:this._writeOffset;return t?this.ensureInsertable(e.length,n):this._ensureWriteable(e.length,n),e.copy(this._buff,n),t?this._writeOffset+=e.length:"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,n+e.length):this._writeOffset+=e.length,this}ensureReadable(e,t){let r=this._readOffset;if(void 0!==t&&(n.checkOffsetValue(t),r=t),r<0||r+e>this.length)throw new Error(n.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(e,t){n.checkOffsetValue(t),this._ensureCapacity(this.length+e),t<this.length&&this._buff.copy(this._buff,t+e,t,this._buff.length),t+e>this.length?this.length=t+e:this.length+=e}_ensureWriteable(e,t){const r="number"==typeof t?t:this._writeOffset;this._ensureCapacity(r+e),r+e>this.length&&(this.length=r+e)}_ensureCapacity(e){const t=this._buff.length;if(e>t){let r=this._buff,n=3*t/2+1;n<e&&(n=e),this._buff=Buffer.allocUnsafe(n),r.copy(this._buff,0,0,t)}}_readNumberValue(e,t,r){this.ensureReadable(t,r);const n=e.call(this._buff,"number"==typeof r?r:this._readOffset);return void 0===r&&(this._readOffset+=t),n}_insertNumberValue(e,t,r,o){return n.checkOffsetValue(o),this.ensureInsertable(t,o),e.call(this._buff,r,o),this._writeOffset+=t,this}_writeNumberValue(e,t,r,o){if("number"==typeof o){if(o<0)throw new Error(n.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);n.checkOffsetValue(o)}const i="number"==typeof o?o:this._writeOffset;return this._ensureWriteable(t,i),e.call(this._buff,r,i),"number"==typeof o?this._writeOffset=Math.max(this._writeOffset,i+t):this._writeOffset+=t,this}}t.SmartBuffer=o},9460:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4300),o={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function i(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function s(e,t){if("number"!=typeof e)throw new Error(t?o.INVALID_OFFSET_NON_NUMBER:o.INVALID_LENGTH_NON_NUMBER);if(!i(e)||e<0)throw new Error(t?o.INVALID_OFFSET:o.INVALID_LENGTH)}t.ERRORS=o,t.checkEncoding=function(e){if(!n.Buffer.isEncoding(e))throw new Error(o.INVALID_ENCODING)},t.isFiniteInteger=i,t.checkLengthValue=function(e){s(e,!1)},t.checkOffsetValue=function(e){s(e,!0)},t.checkTargetOffset=function(e,t){if(e<0||e>t.length)throw new Error(o.INVALID_TARGET_OFFSET)},t.bigIntAndBufferInt64Check=function(e){if("undefined"==typeof BigInt)throw new Error("Platform does not support JS BigInt type.");if(void 0===n.Buffer.prototype[e])throw new Error(`Platform does not support Buffer.prototype.${e}.`)}},9875:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SocksClientError=t.SocksClient=void 0;const o=r(2361),i=r(1808),s=r(1450),a=r(3619),u=r(9897),c=r(7385),l=r(9520),d=r(8621);Object.defineProperty(t,"SocksClientError",{enumerable:!0,get:function(){return d.SocksClientError}});class h extends o.EventEmitter{constructor(e){super(),this.options=Object.assign({},e),(0,c.validateSocksClientOptions)(e),this.setState(u.SocksClientState.Created)}static createConnection(e,t){return new Promise(((r,n)=>{try{(0,c.validateSocksClientOptions)(e,["connect"])}catch(e){return"function"==typeof t?(t(e),r(e)):n(e)}const o=new h(e);o.connect(e.existing_socket),o.once("established",(e=>{o.removeAllListeners(),"function"==typeof t?(t(null,e),r(e)):r(e)})),o.once("error",(e=>{o.removeAllListeners(),"function"==typeof t?(t(e),r(e)):n(e)}))}))}static createConnectionChain(e,t){return new Promise(((r,o)=>n(this,void 0,void 0,(function*(){try{(0,c.validateSocksClientChainOptions)(e)}catch(e){return"function"==typeof t?(t(e),r(e)):o(e)}e.randomizeChain&&(0,d.shuffleArray)(e.proxies);try{let n;for(let t=0;t<e.proxies.length;t++){const r=e.proxies[t],o=t===e.proxies.length-1?e.destination:{host:e.proxies[t+1].host||e.proxies[t+1].ipaddress,port:e.proxies[t+1].port},i=yield h.createConnection({command:"connect",proxy:r,destination:o,existing_socket:n});n=n||i.socket}"function"==typeof t?(t(null,{socket:n}),r({socket:n})):r({socket:n})}catch(e){"function"==typeof t?(t(e),r(e)):o(e)}}))))}static createUDPFrame(e){const t=new a.SmartBuffer;return t.writeUInt16BE(0),t.writeUInt8(e.frameNumber||0),i.isIPv4(e.remoteHost.host)?(t.writeUInt8(u.Socks5HostType.IPv4),t.writeUInt32BE(s.toLong(e.remoteHost.host))):i.isIPv6(e.remoteHost.host)?(t.writeUInt8(u.Socks5HostType.IPv6),t.writeBuffer(s.toBuffer(e.remoteHost.host))):(t.writeUInt8(u.Socks5HostType.Hostname),t.writeUInt8(Buffer.byteLength(e.remoteHost.host)),t.writeString(e.remoteHost.host)),t.writeUInt16BE(e.remoteHost.port),t.writeBuffer(e.data),t.toBuffer()}static parseUDPFrame(e){const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r=t.readUInt8(),n=t.readUInt8();let o;return o=n===u.Socks5HostType.IPv4?s.fromLong(t.readUInt32BE()):n===u.Socks5HostType.IPv6?s.toString(t.readBuffer(16)):t.readString(t.readUInt8()),{frameNumber:r,remoteHost:{host:o,port:t.readUInt16BE()},data:t.readBuffer()}}setState(e){this.state!==u.SocksClientState.Error&&(this.state=e)}connect(e){this.onDataReceived=e=>this.onDataReceivedHandler(e),this.onClose=()=>this.onCloseHandler(),this.onError=e=>this.onErrorHandler(e),this.onConnect=()=>this.onConnectHandler();const t=setTimeout((()=>this.onEstablishedTimeout()),this.options.timeout||u.DEFAULT_TIMEOUT);t.unref&&"function"==typeof t.unref&&t.unref(),this.socket=e||new i.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(u.SocksClientState.Connecting),this.receiveBuffer=new l.ReceiveBuffer,e?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),void 0!==this.options.set_tcp_nodelay&&null!==this.options.set_tcp_nodelay&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",(e=>{setImmediate((()=>{if(this.receiveBuffer.length>0){const t=this.receiveBuffer.get(this.receiveBuffer.length);e.socket.emit("data",t)}e.socket.resume()}))}))}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.BoundWaitingForConnection&&this.closeSocket(u.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(u.SocksClientState.Connected),4===this.options.proxy.type?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(u.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(e){this.receiveBuffer.append(e),this.processData()}processData(){for(;this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===u.SocksClientState.SentInitialHandshake)4===this.options.proxy.type?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===u.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===u.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else{if(this.state!==u.SocksClientState.BoundWaitingForConnection){this.closeSocket(u.ERRORS.InternalError);break}4===this.options.proxy.type?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse()}}onCloseHandler(){this.closeSocket(u.ERRORS.SocketClosed)}onErrorHandler(e){this.closeSocket(e.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(e){this.state!==u.SocksClientState.Error&&(this.setState(u.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new d.SocksClientError(e,this.options)))}sendSocks4InitialHandshake(){const e=this.options.proxy.userId||"",t=new a.SmartBuffer;t.writeUInt8(4),t.writeUInt8(u.SocksCommand[this.options.command]),t.writeUInt16BE(this.options.destination.port),i.isIPv4(this.options.destination.host)?(t.writeBuffer(s.toBuffer(this.options.destination.host)),t.writeStringNT(e)):(t.writeUInt8(0),t.writeUInt8(0),t.writeUInt8(0),t.writeUInt8(1),t.writeStringNT(e),t.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(t.toBuffer())}handleSocks4FinalHandshakeResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted)this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedConnection} - (${u.Socks4Response[e[1]]})`);else if(u.SocksCommand[this.options.command]===u.SocksCommand.bind){const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r={port:t.readUInt16BE(),host:s.fromLong(t.readUInt32BE())};"0.0.0.0"===r.host&&(r.host=this.options.proxy.ipaddress),this.setState(u.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:r,socket:this.socket})}else this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted)this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${u.Socks4Response[e[1]]})`);else{const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r={port:t.readUInt16BE(),host:s.fromLong(t.readUInt32BE())};this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket})}}sendSocks5InitialHandshake(){const e=new a.SmartBuffer,t=[u.Socks5Auth.NoAuth];(this.options.proxy.userId||this.options.proxy.password)&&t.push(u.Socks5Auth.UserPass),void 0!==this.options.proxy.custom_auth_method&&t.push(this.options.proxy.custom_auth_method),e.writeUInt8(5),e.writeUInt8(t.length);for(const r of t)e.writeUInt8(r);this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(e.toBuffer()),this.setState(u.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const e=this.receiveBuffer.get(2);5!==e[0]?this.closeSocket(u.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):e[1]===u.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):e[1]===u.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=u.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):e[1]===u.Socks5Auth.UserPass?(this.socks5ChosenAuthType=u.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):e[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const e=this.options.proxy.userId||"",t=this.options.proxy.password||"",r=new a.SmartBuffer;r.writeUInt8(1),r.writeUInt8(Buffer.byteLength(e)),r.writeString(e),r.writeUInt8(Buffer.byteLength(t)),r.writeString(t),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(r.toBuffer()),this.setState(u.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return n(this,void 0,void 0,(function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(u.SocksClientState.SentAuthentication)}))}handleSocks5CustomAuthHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return yield this.options.proxy.custom_auth_response_handler(e)}))}handleSocks5AuthenticationNoAuthHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return 0===e[1]}))}handleSocks5AuthenticationUserPassHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return 0===e[1]}))}handleInitialSocks5AuthenticationHandshakeResponse(){return n(this,void 0,void 0,(function*(){this.setState(u.SocksClientState.ReceivedAuthenticationResponse);let e=!1;this.socks5ChosenAuthType===u.Socks5Auth.NoAuth?e=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===u.Socks5Auth.UserPass?e=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(e=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),e?this.sendSocks5CommandRequest():this.closeSocket(u.ERRORS.Socks5AuthenticationFailed)}))}sendSocks5CommandRequest(){const e=new a.SmartBuffer;e.writeUInt8(5),e.writeUInt8(u.SocksCommand[this.options.command]),e.writeUInt8(0),i.isIPv4(this.options.destination.host)?(e.writeUInt8(u.Socks5HostType.IPv4),e.writeBuffer(s.toBuffer(this.options.destination.host))):i.isIPv6(this.options.destination.host)?(e.writeUInt8(u.Socks5HostType.IPv6),e.writeBuffer(s.toBuffer(this.options.destination.host))):(e.writeUInt8(u.Socks5HostType.Hostname),e.writeUInt8(this.options.destination.host.length),e.writeString(this.options.destination.host)),e.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(e.toBuffer()),this.setState(u.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const e=this.receiveBuffer.peek(5);if(5!==e[0]||e[1]!==u.Socks5Response.Granted)this.closeSocket(`${u.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${u.Socks5Response[e[1]]}`);else{const t=e[3];let r,n;if(t===u.Socks5HostType.IPv4){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),r={host:s.fromLong(n.readUInt32BE()),port:n.readUInt16BE()},"0.0.0.0"===r.host&&(r.host=this.options.proxy.ipaddress)}else if(t===u.Socks5HostType.Hostname){const t=e[4],o=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(t);if(this.receiveBuffer.length<o)return void(this.nextRequiredPacketBufferSize=o);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(o).slice(5)),r={host:n.readString(t),port:n.readUInt16BE()}}else if(t===u.Socks5HostType.IPv6){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),r={host:s.toString(n.readBuffer(16)),port:n.readUInt16BE()}}this.setState(u.SocksClientState.ReceivedFinalResponse),u.SocksCommand[this.options.command]===u.SocksCommand.connect?(this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket})):u.SocksCommand[this.options.command]===u.SocksCommand.bind?(this.setState(u.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:r,socket:this.socket})):u.SocksCommand[this.options.command]===u.SocksCommand.associate&&(this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket}))}}handleSocks5IncomingConnectionResponse(){const e=this.receiveBuffer.peek(5);if(5!==e[0]||e[1]!==u.Socks5Response.Granted)this.closeSocket(`${u.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${u.Socks5Response[e[1]]}`);else{const t=e[3];let r,n;if(t===u.Socks5HostType.IPv4){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),r={host:s.fromLong(n.readUInt32BE()),port:n.readUInt16BE()},"0.0.0.0"===r.host&&(r.host=this.options.proxy.ipaddress)}else if(t===u.Socks5HostType.Hostname){const t=e[4],o=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(t);if(this.receiveBuffer.length<o)return void(this.nextRequiredPacketBufferSize=o);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(o).slice(5)),r={host:n.readString(t),port:n.readUInt16BE()}}else if(t===u.Socks5HostType.IPv6){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),r={host:s.toString(n.readBuffer(16)),port:n.readUInt16BE()}}this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}t.SocksClient=h},9897:(e,t)=>{"use strict";var r,n,o,i,s,a;Object.defineProperty(t,"__esModule",{value:!0}),t.SOCKS5_NO_ACCEPTABLE_AUTH=t.SOCKS5_CUSTOM_AUTH_END=t.SOCKS5_CUSTOM_AUTH_START=t.SOCKS_INCOMING_PACKET_SIZES=t.SocksClientState=t.Socks5Response=t.Socks5HostType=t.Socks5Auth=t.Socks4Response=t.SocksCommand=t.ERRORS=t.DEFAULT_TIMEOUT=void 0,t.DEFAULT_TIMEOUT=3e4,t.ERRORS={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"},t.SOCKS_INCOMING_PACKET_SIZES={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:e=>e+7,Socks4Response:8},function(e){e[e.connect=1]="connect",e[e.bind=2]="bind",e[e.associate=3]="associate"}(r||(r={})),t.SocksCommand=r,function(e){e[e.Granted=90]="Granted",e[e.Failed=91]="Failed",e[e.Rejected=92]="Rejected",e[e.RejectedIdent=93]="RejectedIdent"}(n||(n={})),t.Socks4Response=n,function(e){e[e.NoAuth=0]="NoAuth",e[e.GSSApi=1]="GSSApi",e[e.UserPass=2]="UserPass"}(o||(o={})),t.Socks5Auth=o,t.SOCKS5_CUSTOM_AUTH_START=128,t.SOCKS5_CUSTOM_AUTH_END=254,t.SOCKS5_NO_ACCEPTABLE_AUTH=255,function(e){e[e.Granted=0]="Granted",e[e.Failure=1]="Failure",e[e.NotAllowed=2]="NotAllowed",e[e.NetworkUnreachable=3]="NetworkUnreachable",e[e.HostUnreachable=4]="HostUnreachable",e[e.ConnectionRefused=5]="ConnectionRefused",e[e.TTLExpired=6]="TTLExpired",e[e.CommandNotSupported=7]="CommandNotSupported",e[e.AddressNotSupported=8]="AddressNotSupported"}(i||(i={})),t.Socks5Response=i,function(e){e[e.IPv4=1]="IPv4",e[e.Hostname=3]="Hostname",e[e.IPv6=4]="IPv6"}(s||(s={})),t.Socks5HostType=s,function(e){e[e.Created=0]="Created",e[e.Connecting=1]="Connecting",e[e.Connected=2]="Connected",e[e.SentInitialHandshake=3]="SentInitialHandshake",e[e.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",e[e.SentAuthentication=5]="SentAuthentication",e[e.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",e[e.SentFinalHandshake=7]="SentFinalHandshake",e[e.ReceivedFinalResponse=8]="ReceivedFinalResponse",e[e.BoundWaitingForConnection=9]="BoundWaitingForConnection",e[e.Established=10]="Established",e[e.Disconnected=11]="Disconnected",e[e.Error=99]="Error"}(a||(a={})),t.SocksClientState=a},7385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSocksClientChainOptions=t.validateSocksClientOptions=void 0;const n=r(8621),o=r(9897),i=r(2781);function s(e,t){if(void 0!==e.custom_auth_method){if(e.custom_auth_method<o.SOCKS5_CUSTOM_AUTH_START||e.custom_auth_method>o.SOCKS5_CUSTOM_AUTH_END)throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsCustomAuthRange,t);if(void 0===e.custom_auth_request_handler||"function"!=typeof e.custom_auth_request_handler)throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t);if(void 0===e.custom_auth_response_size)throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t);if(void 0===e.custom_auth_response_handler||"function"!=typeof e.custom_auth_response_handler)throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}}function a(e){return e&&"string"==typeof e.host&&"number"==typeof e.port&&e.port>=0&&e.port<=65535}function u(e){return e&&("string"==typeof e.host||"string"==typeof e.ipaddress)&&"number"==typeof e.port&&e.port>=0&&e.port<=65535&&(4===e.type||5===e.type)}function c(e){return"number"==typeof e&&e>0}t.validateSocksClientOptions=function(e,t=["connect","bind","associate"]){if(!o.SocksCommand[e.command])throw new n.SocksClientError(o.ERRORS.InvalidSocksCommand,e);if(-1===t.indexOf(e.command))throw new n.SocksClientError(o.ERRORS.InvalidSocksCommandForOperation,e);if(!a(e.destination))throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsDestination,e);if(!u(e.proxy))throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsProxy,e);if(s(e.proxy,e),e.timeout&&!c(e.timeout))throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsTimeout,e);if(e.existing_socket&&!(e.existing_socket instanceof i.Duplex))throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsExistingSocket,e)},t.validateSocksClientChainOptions=function(e){if("connect"!==e.command)throw new n.SocksClientError(o.ERRORS.InvalidSocksCommandChain,e);if(!a(e.destination))throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsDestination,e);if(!(e.proxies&&Array.isArray(e.proxies)&&e.proxies.length>=2))throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsProxiesLength,e);if(e.proxies.forEach((t=>{if(!u(t))throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsProxy,e);s(t,e)})),e.timeout&&!c(e.timeout))throw new n.SocksClientError(o.ERRORS.InvalidSocksClientOptionsTimeout,e)}},9520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReceiveBuffer=void 0,t.ReceiveBuffer=class{constructor(e=4096){this.buffer=Buffer.allocUnsafe(e),this.offset=0,this.originalSize=e}get length(){return this.offset}append(e){if(!Buffer.isBuffer(e))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+e.length>=this.buffer.length){const t=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+e.length)),t.copy(this.buffer)}return e.copy(this.buffer,this.offset),this.offset+=e.length}peek(e){if(e>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,e)}get(e){if(e>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const t=Buffer.allocUnsafe(e);return this.buffer.slice(0,e).copy(t),this.buffer.copyWithin(0,e,e+this.offset-e),this.offset-=e,t}}},8621:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shuffleArray=t.SocksClientError=void 0;class r extends Error{constructor(e,t){super(e),this.options=t}}t.SocksClientError=r,t.shuffleArray=function(e){for(let t=e.length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1));[e[t],e[r]]=[e[r],e[t]]}}},2131:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(9875),t)},1450:(e,t,r)=>{const n=t,{Buffer:o}=r(4300),i=r(2037);n.toBuffer=function(e,t,r){let n;if(r=~~r,this.isV4Format(e))n=t||o.alloc(r+4),e.split(/\./g).map((e=>{n[r++]=255&parseInt(e,10)}));else if(this.isV6Format(e)){const i=e.split(":",8);let s;for(s=0;s<i.length;s++){let e;this.isV4Format(i[s])&&(e=this.toBuffer(i[s]),i[s]=e.slice(0,2).toString("hex")),e&&++s<8&&i.splice(s,0,e.slice(2,4).toString("hex"))}if(""===i[0])for(;i.length<8;)i.unshift("0");else if(""===i[i.length-1])for(;i.length<8;)i.push("0");else if(i.length<8){for(s=0;s<i.length&&""!==i[s];s++);const e=[s,1];for(s=9-i.length;s>0;s--)e.push("0");i.splice(...e)}for(n=t||o.alloc(r+16),s=0;s<i.length;s++){const e=parseInt(i[s],16);n[r++]=e>>8&255,n[r++]=255&e}}if(!n)throw Error(`Invalid ip address: ${e}`);return n},n.toString=function(e,t,r){t=~~t;let n=[];if(4===(r=r||e.length-t)){for(let o=0;o<r;o++)n.push(e[t+o]);n=n.join(".")}else if(16===r){for(let o=0;o<r;o+=2)n.push(e.readUInt16BE(t+o).toString(16));n=n.join(":"),n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),n=n.replace(/:{3,4}/,"::")}return n};const s=/^(\d{1,3}\.){3,3}\d{1,3}$/,a=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;function u(e){return 4===e?"ipv4":6===e?"ipv6":e?e.toLowerCase():"ipv4"}n.isV4Format=function(e){return s.test(e)},n.isV6Format=function(e){return a.test(e)},n.fromPrefixLen=function(e,t){let r=4;"ipv6"===(t=e>32?"ipv6":u(t))&&(r=16);const i=o.alloc(r);for(let t=0,r=i.length;t<r;++t){let r=8;e<8&&(r=e),e-=r,i[t]=255&~(255>>r)}return n.toString(i)},n.mask=function(e,t){e=n.toBuffer(e),t=n.toBuffer(t);const r=o.alloc(Math.max(e.length,t.length));let i;if(e.length===t.length)for(i=0;i<e.length;i++)r[i]=e[i]&t[i];else if(4===t.length)for(i=0;i<t.length;i++)r[i]=e[e.length-4+i]&t[i];else{for(i=0;i<r.length-6;i++)r[i]=0;for(r[10]=255,r[11]=255,i=0;i<e.length;i++)r[i+12]=e[i]&t[i+12];i+=12}for(;i<r.length;i++)r[i]=0;return n.toString(r)},n.cidr=function(e){const t=e.split("/"),r=t[0];if(2!==t.length)throw new Error(`invalid CIDR subnet: ${r}`);const o=n.fromPrefixLen(parseInt(t[1],10));return n.mask(r,o)},n.subnet=function(e,t){const r=n.toLong(n.mask(e,t)),o=n.toBuffer(t);let i=0;for(let e=0;e<o.length;e++)if(255===o[e])i+=8;else{let t=255&o[e];for(;t;)t=t<<1&255,i++}const s=2**(32-i);return{networkAddress:n.fromLong(r),firstAddress:s<=2?n.fromLong(r):n.fromLong(r+1),lastAddress:s<=2?n.fromLong(r+s-1):n.fromLong(r+s-2),broadcastAddress:n.fromLong(r+s-1),subnetMask:t,subnetMaskLength:i,numHosts:s<=2?s:s-2,length:s,contains:e=>r===n.toLong(n.mask(e,t))}},n.cidrSubnet=function(e){const t=e.split("/"),r=t[0];if(2!==t.length)throw new Error(`invalid CIDR subnet: ${r}`);const o=n.fromPrefixLen(parseInt(t[1],10));return n.subnet(r,o)},n.not=function(e){const t=n.toBuffer(e);for(let e=0;e<t.length;e++)t[e]=255^t[e];return n.toString(t)},n.or=function(e,t){if(e=n.toBuffer(e),t=n.toBuffer(t),e.length===t.length){for(let r=0;r<e.length;++r)e[r]|=t[r];return n.toString(e)}let r=e,o=t;t.length>e.length&&(r=t,o=e);const i=r.length-o.length;for(let e=i;e<r.length;++e)r[e]|=o[e-i];return n.toString(r)},n.isEqual=function(e,t){if(e=n.toBuffer(e),t=n.toBuffer(t),e.length===t.length){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}if(4===t.length){const r=t;t=e,e=r}for(let e=0;e<10;e++)if(0!==t[e])return!1;const r=t.readUInt16BE(10);if(0!==r&&65535!==r)return!1;for(let r=0;r<4;r++)if(e[r]!==t[r+12])return!1;return!0},n.isPrivate=function(e){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^f[cd][0-9a-f]{2}:/i.test(e)||/^fe80:/i.test(e)||/^::1$/.test(e)||/^::$/.test(e)},n.isPublic=function(e){return!n.isPrivate(e)},n.isLoopback=function(e){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(e)||/^fe80::1$/.test(e)||/^::1$/.test(e)||/^::$/.test(e)},n.loopback=function(e){if("ipv4"!==(e=u(e))&&"ipv6"!==e)throw new Error("family must be ipv4 or ipv6");return"ipv4"===e?"127.0.0.1":"fe80::1"},n.address=function(e,t){const r=i.networkInterfaces();if(t=u(t),e&&"private"!==e&&"public"!==e){const n=r[e].filter((e=>u(e.family)===t));if(0===n.length)return;return n[0].address}const o=Object.keys(r).map((o=>{const i=r[o].filter((r=>(r.family=u(r.family),r.family===t&&!n.isLoopback(r.address)&&(!e||("public"===e?n.isPrivate(r.address):n.isPublic(r.address))))));return i.length?i[0].address:void 0})).filter(Boolean);return o.length?o[0]:n.loopback(t)},n.toLong=function(e){let t=0;return e.split(".").forEach((e=>{t<<=8,t+=parseInt(e)})),t>>>0},n.fromLong=function(e){return`${e>>>24}.${e>>16&255}.${e>>8&255}.${255&e}`}},3184:(e,t,r)=>{var n=r(6902);function o(e){if(!(this instanceof o))return new o(e);if(e||(e={}),Buffer.isBuffer(e)&&(e={buffer:e}),this.pageOffset=e.pageOffset||0,this.pageSize=e.pageSize||1024,this.pages=e.pages||n(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,(t=this.pageSize)&t-1)throw new Error("The page size should be a power of two");var t;if(this._trackUpdates=!!e.trackUpdates,this._pageMask=this.pageSize-1,e.buffer){for(var r=0;r<e.buffer.length;r+=this.pageSize)this.pages.set(r/this.pageSize,e.buffer.slice(r,r+this.pageSize));this.byteLength=e.buffer.length,this.length=8*this.byteLength}}e.exports=o,o.prototype.get=function(e){var t=7&e,r=(e-t)/8;return!!(this.getByte(r)&128>>t)},o.prototype.getByte=function(e){var t=e&this._pageMask,r=(e-t)/this.pageSize,n=this.pages.get(r,!0);return n?n.buffer[t+this.pageOffset]:0},o.prototype.set=function(e,t){var r=7&e,n=(e-r)/8,o=this.getByte(n);return this.setByte(n,t?o|128>>r:o&(255^128>>r))},o.prototype.toBuffer=function(){for(var e=function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t}(this.pages.length*this.pageSize),t=0;t<this.pages.length;t++){var r=this.pages.get(t,!0),n=t*this.pageSize;r&&r.buffer.copy(e,n,this.pageOffset,this.pageOffset+this.pageSize)}return e},o.prototype.setByte=function(e,t){var r=e&this._pageMask,n=(e-r)/this.pageSize,o=this.pages.get(n,!1);return r+=this.pageOffset,o.buffer[r]!==t&&(o.buffer[r]=t,e>=this.byteLength&&(this.byteLength=e+1,this.length=8*this.byteLength),this._trackUpdates&&this.pages.updated(o),!0)}},5580:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,o={}){if(o=Object.assign({},n,o),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==o.skipLike&&o.skipLike.test(i))return e;if(o.hex&&t.test(i))return Number.parseInt(i,16);{const t=r.exec(i);if(t){const r=t[1],n=t[2];let a=(s=t[3])&&-1!==s.indexOf(".")?("."===(s=s.replace(/0+$/,""))?s="0":"."===s[0]?s="0"+s:"."===s[s.length-1]&&(s=s.substr(0,s.length-1)),s):s;const u=t[4]||t[6];if(!o.leadingZeros&&n.length>0&&r&&"."!==i[2])return e;if(!o.leadingZeros&&n.length>0&&!r&&"."!==i[1])return e;{const t=Number(i),s=""+t;return-1!==s.search(/[eE]/)||u?o.eNotation?t:e:-1!==i.indexOf(".")?"0"===s&&""===a||s===a||r&&s==="-"+a?t:e:n?a===s||r+a===s?t:e:i===s||i===r+s?t:e}}return e}var s}},7013:(e,t,r)=>{"use strict";const n=r(2037),o=r(6224),i=r(8137),{env:s}=process;let a;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(0===a)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const r=a||0;if("dumb"===s.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||"codeship"===s.CI_NAME?1:r;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:r}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in s&&(a="true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(parseInt(s.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(c(e,e&&e.isTTY))},stdout:u(c(!0,o.isatty(1))),stderr:u(c(!0,o.isatty(2)))}},5163:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>v,__asyncGenerator:()=>A,__asyncValues:()=>C,__await:()=>E,__awaiter:()=>l,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>x,__createBinding:()=>h,__decorate:()=>a,__exportStar:()=>p,__extends:()=>o,__generator:()=>d,__importDefault:()=>w,__importStar:()=>S,__makeTemplateObject:()=>b,__metadata:()=>c,__param:()=>u,__read:()=>m,__rest:()=>s,__spread:()=>g,__spreadArrays:()=>y,__values:()=>f});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function p(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function A(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof E?Promise.resolve(r.value.v).then(u,c):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},452:(e,t,r)=>{"use strict";var n=r(9497),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,s=n.useEffect,a=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,l=n[1];return a((function(){o.value=r,o.getSnapshot=t,c(o)&&l({inst:o})}),[e,r,t]),s((function(){return c(o)&&l({inst:o}),e((function(){c(o)&&l({inst:o})}))}),[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},402:(e,t,r)=>{"use strict";var n=r(9497),o=r(3100),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,a=n.useRef,u=n.useEffect,c=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=c((function(){function e(e){if(!u){if(u=!0,s=e,e=n(e),void 0!==o&&h.hasValue){var t=h.value;if(o(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(s=e,a=r)}var s,a,u=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,n,o]);var p=s(e,d[0],d[1]);return u((function(){h.hasValue=!0,h.value=p}),[p]),l(p),p}},3100:(e,t,r)=>{"use strict";e.exports=r(452)},1110:(e,t,r)=>{"use strict";e.exports=r(402)},2077:function(e,t,r){var n,o;n=function(){var e,t,r,n,o,i={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(r){var n,o,s,a;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(u.zeroFormat&&r===u.zeroFormat)n=0;else if(u.nullFormat&&r===u.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(o in i)if((a="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&r.match(a)){s=i[o].unformat;break}n=(s=s||e._.stringToNumber)(r)}else n=Number(r)||null;return new c(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,r,n){var o,i,a,u,c,l,d,h,p=s[e.options.currentLocale],f=!1,m=!1,g="",y=1e12,E=1e9,A=1e6,v="",C=!1;if(t=t||0,i=Math.abs(t),e._.includes(r,"(")?(f=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(c=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(o=!!(o=r.match(/a(k|m|b|t)?/))&&o[1],e._.includes(r," a")&&(g=" "),r=r.replace(new RegExp(g+"a[kmbt]?"),""),i>=y&&!o||"t"===o?(g+=p.abbreviations.trillion,t/=y):i<y&&i>=E&&!o||"b"===o?(g+=p.abbreviations.billion,t/=E):i<E&&i>=A&&!o||"m"===o?(g+=p.abbreviations.million,t/=A):(i<A&&i>=1e3&&!o||"k"===o)&&(g+=p.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),a=t.toString().split(".")[0],u=r.split(".")[1],l=r.indexOf(","),h=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),v=e._.toFixed(t,u[0].length+u[1].length,n,u[1].length)):v=e._.toFixed(t,u.length,n),a=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):a=e._.toFixed(t,0,n),g&&!o&&Number(a)>=1e3&&g!==p.abbreviations.trillion)switch(a=String(Number(a)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion}if(e._.includes(a,"-")&&(a=a.slice(1),C=!0),a.length<h)for(var b=h-a.length;b>0;b--)a="0"+a;return l>-1&&(a=a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===r.indexOf(".")&&(a=""),d=a+v+(g||""),f?d=(f&&C?"(":"")+d+(f&&C?")":""):c>=0?d=0===c?(C?"-":"+")+d:d+(C?"-":"+"):C&&(d="-"+d),d},stringToNumber:function(e){var t,r,n,o=s[u.currentLocale],i=e,a={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&e===u.zeroFormat)r=0;else if(u.nullFormat&&e===u.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),a)if(n=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(n)){r*=Math.pow(10,a[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),o=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<o&&!(i in n);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;i<o;i++)i in n&&(r=t(r,n[i],i,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var o,i,s,a,u=e.toString().split("."),c=t-(n||0);return o=2===u.length?Math.min(Math.max(u[1].length,c),t):c,s=Math.pow(10,o),a=(r(e+"e+"+o)/s).toFixed(o),n>t-o&&(i=new RegExp("\\.?0{1,"+(n-(t-o))+"}$"),a=a.replace(i,"")),a}},e.options=u,e.formats=i,e.locales=s,e.locale=function(e){return e&&(u.currentLocale=e.toLowerCase()),u.currentLocale},e.localeData=function(e){if(!e)return s[u.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in a)u[e]=a[e]},e.zeroFormat=function(e){u.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){u.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){u.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,o,i,s,a,u,c,l;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(r)}catch(t){c=e.localeData(e.locale())}return i=c.currency.symbol,a=c.abbreviations,n=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(l=t.match(/^[^\d]+/))&&(t=t.substr(1),l[0]!==i)||null!==(l=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),l[0]!==a.thousand&&l[0]!==a.million&&l[0]!==a.billion&&l[0]!==a.trillion)||(u=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(s=t.split(n)).length>2||(s.length<2?!s[0].match(/^\d+.*\d$/)||s[0].match(u):1===s[0].length?!s[0].match(/^\d+$/)||s[0].match(u)||!s[1].match(/^\d+$/):!s[0].match(/^\d+.*\d$/)||s[0].match(u)||!s[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,r){var n,o,s,a=this._value,c=t||u.defaultFormat;if(r=r||Math.round,0===a&&null!==u.zeroFormat)o=u.zeroFormat;else if(null===a&&null!==u.nullFormat)o=u.nullFormat;else{for(n in i)if(c.match(i[n].regexps.format)){s=i[n].format;break}o=(s=s||e._.numberToFormat)(a,c,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,o){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,o){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,o){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var o,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var s,a,u,c=e._.includes(o,"ib")?n:r,l=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),s=0;s<=c.suffixes.length;s++)if(a=Math.pow(c.base,s),u=Math.pow(c.base,s+1),null===t||0===t||t>=a&&t<u){l+=c.suffixes[s],a>0&&(t/=a);break}return e._.numberToFormat(t,o,i)+l},unformat:function(t){var o,i,s=e._.stringToNumber(t);if(s){for(o=r.suffixes.length-1;o>=0;o--){if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}}s*=i||1}return s}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var o,i,s=e.locales[e.options.currentLocale],a={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,r,n),t>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),i=0;i<a.before.length;i++)switch(a.before[i]){case"$":o=e._.insert(o,s.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+s.currency.symbol.length-1)}for(i=a.after.length-1;i>=0;i--)switch(a.after[i]){case"$":o=i===a.after.length-1?o+s.currency.symbol:e._.insert(o,s.currency.symbol,-(a.after.length-(1+i)));break;case" ":o=i===a.after.length-1?o+" ":e._.insert(o," ",-(a.after.length-(1+i)+s.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),r,n)+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),o=Number(r[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([n,Math.pow(10,o)],(function(t,r,n,o){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var o=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,r,n)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var o,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),o=e._.numberToFormat(t,r,n),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),o=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*o);return n+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e},void 0===(o=n.call(t,r,t,e))||(e.exports=o)},6625:(e,t)=>{var r;t=e.exports=Z,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=n-6,s=t.re=[],a=t.safeRe=[],u=t.src=[],c=0,l="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[l,i]];function h(e){for(var t=0;t<d.length;t++){var r=d[t][0],n=d[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}var p=c++;u[p]="0|[1-9]\\d*";var f=c++;u[f]="\\d+";var m=c++;u[m]="\\d*[a-zA-Z-]"+l+"*";var g=c++;u[g]="("+u[p]+")\\.("+u[p]+")\\.("+u[p]+")";var y=c++;u[y]="("+u[f]+")\\.("+u[f]+")\\.("+u[f]+")";var E=c++;u[E]="(?:"+u[p]+"|"+u[m]+")";var A=c++;u[A]="(?:"+u[f]+"|"+u[m]+")";var v=c++;u[v]="(?:-("+u[E]+"(?:\\."+u[E]+")*))";var C=c++;u[C]="(?:-?("+u[A]+"(?:\\."+u[A]+")*))";var b=c++;u[b]=l+"+";var S=c++;u[S]="(?:\\+("+u[b]+"(?:\\."+u[b]+")*))";var w=c++,O="v?"+u[g]+u[v]+"?"+u[S]+"?";u[w]="^"+O+"$";var x="[v=\\s]*"+u[y]+u[C]+"?"+u[S]+"?",_=c++;u[_]="^"+x+"$";var D=c++;u[D]="((?:<|>)?=?)";var T=c++;u[T]=u[f]+"|x|X|\\*";var I=c++;u[I]=u[p]+"|x|X|\\*";var B=c++;u[B]="[v=\\s]*("+u[I]+")(?:\\.("+u[I]+")(?:\\.("+u[I]+")(?:"+u[v]+")?"+u[S]+"?)?)?";var R=c++;u[R]="[v=\\s]*("+u[T]+")(?:\\.("+u[T]+")(?:\\.("+u[T]+")(?:"+u[C]+")?"+u[S]+"?)?)?";var F=c++;u[F]="^"+u[D]+"\\s*"+u[B]+"$";var k=c++;u[k]="^"+u[D]+"\\s*"+u[R]+"$";var P=c++;u[P]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var N=c++;u[N]="(?:~>?)";var M=c++;u[M]="(\\s*)"+u[N]+"\\s+",s[M]=new RegExp(u[M],"g"),a[M]=new RegExp(h(u[M]),"g");var L=c++;u[L]="^"+u[N]+u[B]+"$";var j=c++;u[j]="^"+u[N]+u[R]+"$";var U=c++;u[U]="(?:\\^)";var $=c++;u[$]="(\\s*)"+u[U]+"\\s+",s[$]=new RegExp(u[$],"g"),a[$]=new RegExp(h(u[$]),"g");var V=c++;u[V]="^"+u[U]+u[B]+"$";var z=c++;u[z]="^"+u[U]+u[R]+"$";var W=c++;u[W]="^"+u[D]+"\\s*("+x+")$|^$";var H=c++;u[H]="^"+u[D]+"\\s*("+O+")$|^$";var q=c++;u[q]="(\\s*)"+u[D]+"\\s*("+x+"|"+u[B]+")",s[q]=new RegExp(u[q],"g"),a[q]=new RegExp(h(u[q]),"g");var G=c++;u[G]="^\\s*("+u[B]+")\\s+-\\s+("+u[B]+")\\s*$";var K=c++;u[K]="^\\s*("+u[R]+")\\s+-\\s+("+u[R]+")\\s*$";var Y=c++;u[Y]="(<|>)?=?\\s*\\*";for(var Q=0;Q<35;Q++)r(Q,u[Q]),s[Q]||(s[Q]=new RegExp(u[Q]),a[Q]=new RegExp(h(u[Q])));function X(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?a[_]:a[w]).test(e))return null;try{return new Z(e,t)}catch(e){return null}}function Z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof Z))return new Z(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?a[_]:a[w]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=X,t.valid=function(e,t){var r=X(e,t);return r?r.version:null},t.clean=function(e,t){var r=X(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=Z,Z.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Z.prototype.toString=function(){return this.version},Z.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof Z||(e=new Z(e,this.options)),this.compareMain(e)||this.comparePre(e)},Z.prototype.compareMain=function(e){return e instanceof Z||(e=new Z(e,this.options)),ee(this.major,e.major)||ee(this.minor,e.minor)||ee(this.patch,e.patch)},Z.prototype.comparePre=function(e){if(e instanceof Z||(e=new Z(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return ee(n,o)}while(++t)},Z.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new Z(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(oe(e,t))return null;var r=X(e),n=X(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var i="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return o+s;return i},t.compareIdentifiers=ee;var J=/^[0-9]+$/;function ee(e,t){var r=J.test(e),n=J.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function te(e,t,r){return new Z(e,r).compare(new Z(t,r))}function re(e,t,r){return te(e,t,r)>0}function ne(e,t,r){return te(e,t,r)<0}function oe(e,t,r){return 0===te(e,t,r)}function ie(e,t,r){return 0!==te(e,t,r)}function se(e,t,r){return te(e,t,r)>=0}function ae(e,t,r){return te(e,t,r)<=0}function ue(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return oe(e,r,n);case"!=":return ie(e,r,n);case">":return re(e,r,n);case">=":return se(e,r,n);case"<":return ne(e,r,n);case"<=":return ae(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function ce(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ce){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ce))return new ce(e,t);e=e.trim().split(/\s+/).join(" "),r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===le?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return ee(t,e)},t.major=function(e,t){return new Z(e,t).major},t.minor=function(e,t){return new Z(e,t).minor},t.patch=function(e,t){return new Z(e,t).patch},t.compare=te,t.compareLoose=function(e,t){return te(e,t,!0)},t.rcompare=function(e,t,r){return te(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))},t.gt=re,t.lt=ne,t.eq=oe,t.neq=ie,t.gte=se,t.lte=ae,t.cmp=ue,t.Comparator=ce;var le={};function de(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof de)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new de(e.raw,t);if(e instanceof ce)return new de(e.value,t);if(!(this instanceof de))return new de(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function he(e){return!e||"x"===e.toLowerCase()||"*"===e}function pe(e,t,r,n,o,i,s,a,u,c,l,d,h){return((t=he(r)?"":he(n)?">="+r+".0.0":he(o)?">="+r+"."+n+".0":">="+t)+" "+(a=he(u)?"":he(c)?"<"+(+u+1)+".0.0":he(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function fe(e,t,n){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(o=0;o<e.length;o++)if(r(e[o].semver),e[o].semver!==le&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function me(e,t,r){try{t=new de(t,r)}catch(e){return!1}return t.test(e)}function ge(e,t,r,n){var o,i,s,a,u;switch(e=new Z(e,n),t=new de(t,n),r){case">":o=re,i=ae,s=ne,a=">",u=">=";break;case"<":o=ne,i=se,s=re,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(me(e,t,n))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],d=null,h=null;if(l.forEach((function(e){e.semver===le&&(e=new ce(">=0.0.0")),d=d||e,h=h||e,o(e.semver,d.semver,n)?d=e:s(e.semver,h.semver,n)&&(h=e)})),d.operator===a||d.operator===u)return!1;if((!h.operator||h.operator===a)&&i(e,h.semver))return!1;if(h.operator===u&&s(e,h.semver))return!1}return!0}ce.prototype.parse=function(e){var t=this.options.loose?a[W]:a[H],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new Z(r[2],this.options.loose):this.semver=le},ce.prototype.toString=function(){return this.value},ce.prototype.test=function(e){return r("Comparator.test",e,this.options.loose),this.semver===le||("string"==typeof e&&(e=new Z(e,this.options)),ue(e,this.operator,this.semver,this.options))},ce.prototype.intersects=function(e,t){if(!(e instanceof ce))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return r=new de(e.value,t),me(this.value,r,t);if(""===e.operator)return r=new de(this.value,t),me(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ue(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ue(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&s||a||u},t.Range=de,de.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},de.prototype.toString=function(){return this.range},de.prototype.parseRange=function(e){var t=this.options.loose,n=t?a[K]:a[G];e=e.replace(n,pe),r("hyphen replace",e),e=e.replace(a[q],"$1$2$3"),r("comparator trim",e,a[q]),e=(e=e.replace(a[M],"$1~")).replace(a[$],"$1^");var o=t?a[W]:a[H],i=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[z]:a[V];return e.replace(n,(function(t,n,o,i,s){var a;return r("caret",e,t,n,o,i,s),he(n)?a="":he(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":he(i)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===n?"0"===o?">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"),r("caret return",a),a}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[j]:a[L];return e.replace(n,(function(t,n,o,i,s){var a;return r("tilde",e,t,n,o,i,s),he(n)?a="":he(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":he(i)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(r("replaceTilde pr",s),a=">="+n+"."+o+"."+i+"-"+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0",r("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[k]:a[F];return e.replace(n,(function(t,n,o,i,s,a){r("xRange",e,t,n,o,i,s,a);var u=he(o),c=u||he(i),l=c||he(s);return"="===n&&l&&(n=""),u?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(i=0),s=0,">"===n?(n=">=",c?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",c?o=+o+1:i=+i+1),t=n+o+"."+i+"."+s):c?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[Y],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter((function(e){return!!e.match(o)}))),i.map((function(e){return new ce(e,this.options)}),this)},de.prototype.intersects=function(e,t){if(!(e instanceof de))throw new TypeError("a Range is required");return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new de(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},de.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new Z(e,this.options));for(var t=0;t<this.set.length;t++)if(fe(this.set[t],e,this.options))return!0;return!1},t.satisfies=me,t.maxSatisfying=function(e,t,r){var n=null,o=null;try{var i=new de(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(n&&-1!==o.compare(e)||(o=new Z(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,o=null;try{var i=new de(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(n&&1!==o.compare(e)||(o=new Z(n=e,r)))})),n},t.minVersion=function(e,t){e=new de(e,t);var r=new Z("0.0.0");if(e.test(r))return r;if(r=new Z("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n)e.set[n].forEach((function(e){var t=new Z(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!re(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return r&&e.test(r)?r:null},t.validRange=function(e,t){try{return new de(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return ge(e,t,"<",r)},t.gtr=function(e,t,r){return ge(e,t,">",r)},t.outside=ge,t.prerelease=function(e,t){var r=X(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new de(e,r),t=new de(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof Z)return e;if("string"!=typeof e)return null;var t=e.match(a[P]);return null==t?null:X(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},345:e=>{"use strict";e.exports=require("bson")},3617:e=>{"use strict";e.exports=require("kerberos")},4529:e=>{"use strict";e.exports=require("mongodb-client-encryption")},9497:e=>{"use strict";e.exports=require("react")},8349:e=>{"use strict";e.exports=require("snappy")},4300:e=>{"use strict";e.exports=require("buffer")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},7282:e=>{"use strict";e.exports=require("process")},5477:e=>{"use strict";e.exports=require("punycode")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3849:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},7028:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7443:e=>{"use strict";e.exports=JSON.parse('[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," ̈"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," ̄"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," ́"],[181,1,"μ"],[182,2],[183,2],[184,5," ̧"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1⁄4"],[189,1,"1⁄2"],[190,1,"3⁄4"],[191,2],[192,1,"à"],[193,1,"á"],[194,1,"â"],[195,1,"ã"],[196,1,"ä"],[197,1,"å"],[198,1,"æ"],[199,1,"ç"],[200,1,"è"],[201,1,"é"],[202,1,"ê"],[203,1,"ë"],[204,1,"ì"],[205,1,"í"],[206,1,"î"],[207,1,"ï"],[208,1,"ð"],[209,1,"ñ"],[210,1,"ò"],[211,1,"ó"],[212,1,"ô"],[213,1,"õ"],[214,1,"ö"],[215,2],[216,1,"ø"],[217,1,"ù"],[218,1,"ú"],[219,1,"û"],[220,1,"ü"],[221,1,"ý"],[222,1,"þ"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"ā"],[257,2],[258,1,"ă"],[259,2],[260,1,"ą"],[261,2],[262,1,"ć"],[263,2],[264,1,"ĉ"],[265,2],[266,1,"ċ"],[267,2],[268,1,"č"],[269,2],[270,1,"ď"],[271,2],[272,1,"đ"],[273,2],[274,1,"ē"],[275,2],[276,1,"ĕ"],[277,2],[278,1,"ė"],[279,2],[280,1,"ę"],[281,2],[282,1,"ě"],[283,2],[284,1,"ĝ"],[285,2],[286,1,"ğ"],[287,2],[288,1,"ġ"],[289,2],[290,1,"ģ"],[291,2],[292,1,"ĥ"],[293,2],[294,1,"ħ"],[295,2],[296,1,"ĩ"],[297,2],[298,1,"ī"],[299,2],[300,1,"ĭ"],[301,2],[302,1,"į"],[303,2],[304,1,"i̇"],[305,2],[[306,307],1,"ij"],[308,1,"ĵ"],[309,2],[310,1,"ķ"],[[311,312],2],[313,1,"ĺ"],[314,2],[315,1,"ļ"],[316,2],[317,1,"ľ"],[318,2],[[319,320],1,"l·"],[321,1,"ł"],[322,2],[323,1,"ń"],[324,2],[325,1,"ņ"],[326,2],[327,1,"ň"],[328,2],[329,1,"ʼn"],[330,1,"ŋ"],[331,2],[332,1,"ō"],[333,2],[334,1,"ŏ"],[335,2],[336,1,"ő"],[337,2],[338,1,"œ"],[339,2],[340,1,"ŕ"],[341,2],[342,1,"ŗ"],[343,2],[344,1,"ř"],[345,2],[346,1,"ś"],[347,2],[348,1,"ŝ"],[349,2],[350,1,"ş"],[351,2],[352,1,"š"],[353,2],[354,1,"ţ"],[355,2],[356,1,"ť"],[357,2],[358,1,"ŧ"],[359,2],[360,1,"ũ"],[361,2],[362,1,"ū"],[363,2],[364,1,"ŭ"],[365,2],[366,1,"ů"],[367,2],[368,1,"ű"],[369,2],[370,1,"ų"],[371,2],[372,1,"ŵ"],[373,2],[374,1,"ŷ"],[375,2],[376,1,"ÿ"],[377,1,"ź"],[378,2],[379,1,"ż"],[380,2],[381,1,"ž"],[382,2],[383,1,"s"],[384,2],[385,1,"ɓ"],[386,1,"ƃ"],[387,2],[388,1,"ƅ"],[389,2],[390,1,"ɔ"],[391,1,"ƈ"],[392,2],[393,1,"ɖ"],[394,1,"ɗ"],[395,1,"ƌ"],[[396,397],2],[398,1,"ǝ"],[399,1,"ə"],[400,1,"ɛ"],[401,1,"ƒ"],[402,2],[403,1,"ɠ"],[404,1,"ɣ"],[405,2],[406,1,"ɩ"],[407,1,"ɨ"],[408,1,"ƙ"],[[409,411],2],[412,1,"ɯ"],[413,1,"ɲ"],[414,2],[415,1,"ɵ"],[416,1,"ơ"],[417,2],[418,1,"ƣ"],[419,2],[420,1,"ƥ"],[421,2],[422,1,"ʀ"],[423,1,"ƨ"],[424,2],[425,1,"ʃ"],[[426,427],2],[428,1,"ƭ"],[429,2],[430,1,"ʈ"],[431,1,"ư"],[432,2],[433,1,"ʊ"],[434,1,"ʋ"],[435,1,"ƴ"],[436,2],[437,1,"ƶ"],[438,2],[439,1,"ʒ"],[440,1,"ƹ"],[[441,443],2],[444,1,"ƽ"],[[445,451],2],[[452,454],1,"dž"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"ǎ"],[462,2],[463,1,"ǐ"],[464,2],[465,1,"ǒ"],[466,2],[467,1,"ǔ"],[468,2],[469,1,"ǖ"],[470,2],[471,1,"ǘ"],[472,2],[473,1,"ǚ"],[474,2],[475,1,"ǜ"],[[476,477],2],[478,1,"ǟ"],[479,2],[480,1,"ǡ"],[481,2],[482,1,"ǣ"],[483,2],[484,1,"ǥ"],[485,2],[486,1,"ǧ"],[487,2],[488,1,"ǩ"],[489,2],[490,1,"ǫ"],[491,2],[492,1,"ǭ"],[493,2],[494,1,"ǯ"],[[495,496],2],[[497,499],1,"dz"],[500,1,"ǵ"],[501,2],[502,1,"ƕ"],[503,1,"ƿ"],[504,1,"ǹ"],[505,2],[506,1,"ǻ"],[507,2],[508,1,"ǽ"],[509,2],[510,1,"ǿ"],[511,2],[512,1,"ȁ"],[513,2],[514,1,"ȃ"],[515,2],[516,1,"ȅ"],[517,2],[518,1,"ȇ"],[519,2],[520,1,"ȉ"],[521,2],[522,1,"ȋ"],[523,2],[524,1,"ȍ"],[525,2],[526,1,"ȏ"],[527,2],[528,1,"ȑ"],[529,2],[530,1,"ȓ"],[531,2],[532,1,"ȕ"],[533,2],[534,1,"ȗ"],[535,2],[536,1,"ș"],[537,2],[538,1,"ț"],[539,2],[540,1,"ȝ"],[541,2],[542,1,"ȟ"],[543,2],[544,1,"ƞ"],[545,2],[546,1,"ȣ"],[547,2],[548,1,"ȥ"],[549,2],[550,1,"ȧ"],[551,2],[552,1,"ȩ"],[553,2],[554,1,"ȫ"],[555,2],[556,1,"ȭ"],[557,2],[558,1,"ȯ"],[559,2],[560,1,"ȱ"],[561,2],[562,1,"ȳ"],[563,2],[[564,566],2],[[567,569],2],[570,1,"ⱥ"],[571,1,"ȼ"],[572,2],[573,1,"ƚ"],[574,1,"ⱦ"],[[575,576],2],[577,1,"ɂ"],[578,2],[579,1,"ƀ"],[580,1,"ʉ"],[581,1,"ʌ"],[582,1,"ɇ"],[583,2],[584,1,"ɉ"],[585,2],[586,1,"ɋ"],[587,2],[588,1,"ɍ"],[589,2],[590,1,"ɏ"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"ɦ"],[690,1,"j"],[691,1,"r"],[692,1,"ɹ"],[693,1,"ɻ"],[694,1,"ʁ"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," ̆"],[729,5," ̇"],[730,5," ̊"],[731,5," ̨"],[732,5," ̃"],[733,5," ̋"],[734,2],[735,2],[736,1,"ɣ"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"ʕ"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"̀"],[833,1,"́"],[834,2],[835,1,"̓"],[836,1,"̈́"],[837,1,"ι"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"ͱ"],[881,2],[882,1,"ͳ"],[883,2],[884,1,"ʹ"],[885,2],[886,1,"ͷ"],[887,2],[[888,889],3],[890,5," ι"],[[891,893],2],[894,5,";"],[895,1,"ϳ"],[[896,899],3],[900,5," ́"],[901,5," ̈́"],[902,1,"ά"],[903,1,"·"],[904,1,"έ"],[905,1,"ή"],[906,1,"ί"],[907,3],[908,1,"ό"],[909,3],[910,1,"ύ"],[911,1,"ώ"],[912,2],[913,1,"α"],[914,1,"β"],[915,1,"γ"],[916,1,"δ"],[917,1,"ε"],[918,1,"ζ"],[919,1,"η"],[920,1,"θ"],[921,1,"ι"],[922,1,"κ"],[923,1,"λ"],[924,1,"μ"],[925,1,"ν"],[926,1,"ξ"],[927,1,"ο"],[928,1,"π"],[929,1,"ρ"],[930,3],[931,1,"σ"],[932,1,"τ"],[933,1,"υ"],[934,1,"φ"],[935,1,"χ"],[936,1,"ψ"],[937,1,"ω"],[938,1,"ϊ"],[939,1,"ϋ"],[[940,961],2],[962,6,"σ"],[[963,974],2],[975,1,"ϗ"],[976,1,"β"],[977,1,"θ"],[978,1,"υ"],[979,1,"ύ"],[980,1,"ϋ"],[981,1,"φ"],[982,1,"π"],[983,2],[984,1,"ϙ"],[985,2],[986,1,"ϛ"],[987,2],[988,1,"ϝ"],[989,2],[990,1,"ϟ"],[991,2],[992,1,"ϡ"],[993,2],[994,1,"ϣ"],[995,2],[996,1,"ϥ"],[997,2],[998,1,"ϧ"],[999,2],[1000,1,"ϩ"],[1001,2],[1002,1,"ϫ"],[1003,2],[1004,1,"ϭ"],[1005,2],[1006,1,"ϯ"],[1007,2],[1008,1,"κ"],[1009,1,"ρ"],[1010,1,"σ"],[1011,2],[1012,1,"θ"],[1013,1,"ε"],[1014,2],[1015,1,"ϸ"],[1016,2],[1017,1,"σ"],[1018,1,"ϻ"],[1019,2],[1020,2],[1021,1,"ͻ"],[1022,1,"ͼ"],[1023,1,"ͽ"],[1024,1,"ѐ"],[1025,1,"ё"],[1026,1,"ђ"],[1027,1,"ѓ"],[1028,1,"є"],[1029,1,"ѕ"],[1030,1,"і"],[1031,1,"ї"],[1032,1,"ј"],[1033,1,"љ"],[1034,1,"њ"],[1035,1,"ћ"],[1036,1,"ќ"],[1037,1,"ѝ"],[1038,1,"ў"],[1039,1,"џ"],[1040,1,"а"],[1041,1,"б"],[1042,1,"в"],[1043,1,"г"],[1044,1,"д"],[1045,1,"е"],[1046,1,"ж"],[1047,1,"з"],[1048,1,"и"],[1049,1,"й"],[1050,1,"к"],[1051,1,"л"],[1052,1,"м"],[1053,1,"н"],[1054,1,"о"],[1055,1,"п"],[1056,1,"р"],[1057,1,"с"],[1058,1,"т"],[1059,1,"у"],[1060,1,"ф"],[1061,1,"х"],[1062,1,"ц"],[1063,1,"ч"],[1064,1,"ш"],[1065,1,"щ"],[1066,1,"ъ"],[1067,1,"ы"],[1068,1,"ь"],[1069,1,"э"],[1070,1,"ю"],[1071,1,"я"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"ѡ"],[1121,2],[1122,1,"ѣ"],[1123,2],[1124,1,"ѥ"],[1125,2],[1126,1,"ѧ"],[1127,2],[1128,1,"ѩ"],[1129,2],[1130,1,"ѫ"],[1131,2],[1132,1,"ѭ"],[1133,2],[1134,1,"ѯ"],[1135,2],[1136,1,"ѱ"],[1137,2],[1138,1,"ѳ"],[1139,2],[1140,1,"ѵ"],[1141,2],[1142,1,"ѷ"],[1143,2],[1144,1,"ѹ"],[1145,2],[1146,1,"ѻ"],[1147,2],[1148,1,"ѽ"],[1149,2],[1150,1,"ѿ"],[1151,2],[1152,1,"ҁ"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"ҋ"],[1163,2],[1164,1,"ҍ"],[1165,2],[1166,1,"ҏ"],[1167,2],[1168,1,"ґ"],[1169,2],[1170,1,"ғ"],[1171,2],[1172,1,"ҕ"],[1173,2],[1174,1,"җ"],[1175,2],[1176,1,"ҙ"],[1177,2],[1178,1,"қ"],[1179,2],[1180,1,"ҝ"],[1181,2],[1182,1,"ҟ"],[1183,2],[1184,1,"ҡ"],[1185,2],[1186,1,"ң"],[1187,2],[1188,1,"ҥ"],[1189,2],[1190,1,"ҧ"],[1191,2],[1192,1,"ҩ"],[1193,2],[1194,1,"ҫ"],[1195,2],[1196,1,"ҭ"],[1197,2],[1198,1,"ү"],[1199,2],[1200,1,"ұ"],[1201,2],[1202,1,"ҳ"],[1203,2],[1204,1,"ҵ"],[1205,2],[1206,1,"ҷ"],[1207,2],[1208,1,"ҹ"],[1209,2],[1210,1,"һ"],[1211,2],[1212,1,"ҽ"],[1213,2],[1214,1,"ҿ"],[1215,2],[1216,3],[1217,1,"ӂ"],[1218,2],[1219,1,"ӄ"],[1220,2],[1221,1,"ӆ"],[1222,2],[1223,1,"ӈ"],[1224,2],[1225,1,"ӊ"],[1226,2],[1227,1,"ӌ"],[1228,2],[1229,1,"ӎ"],[1230,2],[1231,2],[1232,1,"ӑ"],[1233,2],[1234,1,"ӓ"],[1235,2],[1236,1,"ӕ"],[1237,2],[1238,1,"ӗ"],[1239,2],[1240,1,"ә"],[1241,2],[1242,1,"ӛ"],[1243,2],[1244,1,"ӝ"],[1245,2],[1246,1,"ӟ"],[1247,2],[1248,1,"ӡ"],[1249,2],[1250,1,"ӣ"],[1251,2],[1252,1,"ӥ"],[1253,2],[1254,1,"ӧ"],[1255,2],[1256,1,"ө"],[1257,2],[1258,1,"ӫ"],[1259,2],[1260,1,"ӭ"],[1261,2],[1262,1,"ӯ"],[1263,2],[1264,1,"ӱ"],[1265,2],[1266,1,"ӳ"],[1267,2],[1268,1,"ӵ"],[1269,2],[1270,1,"ӷ"],[1271,2],[1272,1,"ӹ"],[1273,2],[1274,1,"ӻ"],[1275,2],[1276,1,"ӽ"],[1277,2],[1278,1,"ӿ"],[1279,2],[1280,1,"ԁ"],[1281,2],[1282,1,"ԃ"],[1283,2],[1284,1,"ԅ"],[1285,2],[1286,1,"ԇ"],[1287,2],[1288,1,"ԉ"],[1289,2],[1290,1,"ԋ"],[1291,2],[1292,1,"ԍ"],[1293,2],[1294,1,"ԏ"],[1295,2],[1296,1,"ԑ"],[1297,2],[1298,1,"ԓ"],[1299,2],[1300,1,"ԕ"],[1301,2],[1302,1,"ԗ"],[1303,2],[1304,1,"ԙ"],[1305,2],[1306,1,"ԛ"],[1307,2],[1308,1,"ԝ"],[1309,2],[1310,1,"ԟ"],[1311,2],[1312,1,"ԡ"],[1313,2],[1314,1,"ԣ"],[1315,2],[1316,1,"ԥ"],[1317,2],[1318,1,"ԧ"],[1319,2],[1320,1,"ԩ"],[1321,2],[1322,1,"ԫ"],[1323,2],[1324,1,"ԭ"],[1325,2],[1326,1,"ԯ"],[1327,2],[1328,3],[1329,1,"ա"],[1330,1,"բ"],[1331,1,"գ"],[1332,1,"դ"],[1333,1,"ե"],[1334,1,"զ"],[1335,1,"է"],[1336,1,"ը"],[1337,1,"թ"],[1338,1,"ժ"],[1339,1,"ի"],[1340,1,"լ"],[1341,1,"խ"],[1342,1,"ծ"],[1343,1,"կ"],[1344,1,"հ"],[1345,1,"ձ"],[1346,1,"ղ"],[1347,1,"ճ"],[1348,1,"մ"],[1349,1,"յ"],[1350,1,"ն"],[1351,1,"շ"],[1352,1,"ո"],[1353,1,"չ"],[1354,1,"պ"],[1355,1,"ջ"],[1356,1,"ռ"],[1357,1,"ս"],[1358,1,"վ"],[1359,1,"տ"],[1360,1,"ր"],[1361,1,"ց"],[1362,1,"ւ"],[1363,1,"փ"],[1364,1,"ք"],[1365,1,"օ"],[1366,1,"ֆ"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"եւ"],[1416,2],[1417,2],[1418,2],[[1419,1420],3],[[1421,1422],2],[1423,2],[1424,3],[[1425,1441],2],[1442,2],[[1443,1455],2],[[1456,1465],2],[1466,2],[[1467,1469],2],[1470,2],[1471,2],[1472,2],[[1473,1474],2],[1475,2],[1476,2],[1477,2],[1478,2],[1479,2],[[1480,1487],3],[[1488,1514],2],[[1515,1518],3],[1519,2],[[1520,1524],2],[[1525,1535],3],[[1536,1539],3],[1540,3],[1541,3],[[1542,1546],2],[1547,2],[1548,2],[[1549,1551],2],[[1552,1557],2],[[1558,1562],2],[1563,2],[1564,3],[1565,2],[1566,2],[1567,2],[1568,2],[[1569,1594],2],[[1595,1599],2],[1600,2],[[1601,1618],2],[[1619,1621],2],[[1622,1624],2],[[1625,1630],2],[1631,2],[[1632,1641],2],[[1642,1645],2],[[1646,1647],2],[[1648,1652],2],[1653,1,"اٴ"],[1654,1,"وٴ"],[1655,1,"ۇٴ"],[1656,1,"يٴ"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"क़"],[2393,1,"ख़"],[2394,1,"ग़"],[2395,1,"ज़"],[2396,1,"ड़"],[2397,1,"ढ़"],[2398,1,"फ़"],[2399,1,"य़"],[[2400,2403],2],[[2404,2405],2],[[2406,2415],2],[2416,2],[[2417,2418],2],[[2419,2423],2],[2424,2],[[2425,2426],2],[[2427,2428],2],[2429,2],[[2430,2431],2],[2432,2],[[2433,2435],2],[2436,3],[[2437,2444],2],[[2445,2446],3],[[2447,2448],2],[[2449,2450],3],[[2451,2472],2],[2473,3],[[2474,2480],2],[2481,3],[2482,2],[[2483,2485],3],[[2486,2489],2],[[2490,2491],3],[2492,2],[2493,2],[[2494,2500],2],[[2501,2502],3],[[2503,2504],2],[[2505,2506],3],[[2507,2509],2],[2510,2],[[2511,2518],3],[2519,2],[[2520,2523],3],[2524,1,"ড়"],[2525,1,"ঢ়"],[2526,3],[2527,1,"য়"],[[2528,2531],2],[[2532,2533],3],[[2534,2545],2],[[2546,2554],2],[2555,2],[2556,2],[2557,2],[2558,2],[[2559,2560],3],[2561,2],[2562,2],[2563,2],[2564,3],[[2565,2570],2],[[2571,2574],3],[[2575,2576],2],[[2577,2578],3],[[2579,2600],2],[2601,3],[[2602,2608],2],[2609,3],[2610,2],[2611,1,"ਲ਼"],[2612,3],[2613,2],[2614,1,"ਸ਼"],[2615,3],[[2616,2617],2],[[2618,2619],3],[2620,2],[2621,3],[[2622,2626],2],[[2627,2630],3],[[2631,2632],2],[[2633,2634],3],[[2635,2637],2],[[2638,2640],3],[2641,2],[[2642,2648],3],[2649,1,"ਖ਼"],[2650,1,"ਗ਼"],[2651,1,"ਜ਼"],[2652,2],[2653,3],[2654,1,"ਫ਼"],[[2655,2661],3],[[2662,2676],2],[2677,2],[2678,2],[[2679,2688],3],[[2689,2691],2],[2692,3],[[2693,2699],2],[2700,2],[2701,2],[2702,3],[[2703,2705],2],[2706,3],[[2707,2728],2],[2729,3],[[2730,2736],2],[2737,3],[[2738,2739],2],[2740,3],[[2741,2745],2],[[2746,2747],3],[[2748,2757],2],[2758,3],[[2759,2761],2],[2762,3],[[2763,2765],2],[[2766,2767],3],[2768,2],[[2769,2783],3],[2784,2],[[2785,2787],2],[[2788,2789],3],[[2790,2799],2],[2800,2],[2801,2],[[2802,2808],3],[2809,2],[[2810,2815],2],[2816,3],[[2817,2819],2],[2820,3],[[2821,2828],2],[[2829,2830],3],[[2831,2832],2],[[2833,2834],3],[[2835,2856],2],[2857,3],[[2858,2864],2],[2865,3],[[2866,2867],2],[2868,3],[2869,2],[[2870,2873],2],[[2874,2875],3],[[2876,2883],2],[2884,2],[[2885,2886],3],[[2887,2888],2],[[2889,2890],3],[[2891,2893],2],[[2894,2900],3],[2901,2],[[2902,2903],2],[[2904,2907],3],[2908,1,"ଡ଼"],[2909,1,"ଢ଼"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[[3315,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"ํา"],[[3636,3642],2],[[3643,3646],3],[3647,2],[[3648,3662],2],[3663,2],[[3664,3673],2],[[3674,3675],2],[[3676,3712],3],[[3713,3714],2],[3715,3],[3716,2],[3717,3],[3718,2],[[3719,3720],2],[3721,2],[3722,2],[3723,3],[3724,2],[3725,2],[[3726,3731],2],[[3732,3735],2],[3736,2],[[3737,3743],2],[3744,2],[[3745,3747],2],[3748,3],[3749,2],[3750,3],[3751,2],[[3752,3753],2],[[3754,3755],2],[3756,2],[[3757,3762],2],[3763,1,"ໍາ"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[[3790,3791],3],[[3792,3801],2],[[3802,3803],3],[3804,1,"ຫນ"],[3805,1,"ຫມ"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"་"],[[3853,3863],2],[[3864,3865],2],[[3866,3871],2],[[3872,3881],2],[[3882,3892],2],[3893,2],[3894,2],[3895,2],[3896,2],[3897,2],[[3898,3901],2],[[3902,3906],2],[3907,1,"གྷ"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"ཌྷ"],[[3918,3921],2],[3922,1,"དྷ"],[[3923,3926],2],[3927,1,"བྷ"],[[3928,3931],2],[3932,1,"ཛྷ"],[[3933,3944],2],[3945,1,"ཀྵ"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"ཱི"],[3956,2],[3957,1,"ཱུ"],[3958,1,"ྲྀ"],[3959,1,"ྲཱྀ"],[3960,1,"ླྀ"],[3961,1,"ླཱྀ"],[[3962,3968],2],[3969,1,"ཱྀ"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"ྒྷ"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"ྜྷ"],[[3998,4001],2],[4002,1,"ྡྷ"],[[4003,4006],2],[4007,1,"ྦྷ"],[[4008,4011],2],[4012,1,"ྫྷ"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"ྐྵ"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"ⴧ"],[[4296,4300],3],[4301,1,"ⴭ"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"ნ"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"Ᏸ"],[5113,1,"Ᏹ"],[5114,1,"Ᏺ"],[5115,1,"Ᏻ"],[5116,1,"Ᏼ"],[5117,1,"Ᏽ"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"в"],[7297,1,"д"],[7298,1,"о"],[7299,1,"с"],[[7300,7301],1,"т"],[7302,1,"ъ"],[7303,1,"ѣ"],[7304,1,"ꙋ"],[[7305,7311],3],[7312,1,"ა"],[7313,1,"ბ"],[7314,1,"გ"],[7315,1,"დ"],[7316,1,"ე"],[7317,1,"ვ"],[7318,1,"ზ"],[7319,1,"თ"],[7320,1,"ი"],[7321,1,"კ"],[7322,1,"ლ"],[7323,1,"მ"],[7324,1,"ნ"],[7325,1,"ო"],[7326,1,"პ"],[7327,1,"ჟ"],[7328,1,"რ"],[7329,1,"ს"],[7330,1,"ტ"],[7331,1,"უ"],[7332,1,"ფ"],[7333,1,"ქ"],[7334,1,"ღ"],[7335,1,"ყ"],[7336,1,"შ"],[7337,1,"ჩ"],[7338,1,"ც"],[7339,1,"ძ"],[7340,1,"წ"],[7341,1,"ჭ"],[7342,1,"ხ"],[7343,1,"ჯ"],[7344,1,"ჰ"],[7345,1,"ჱ"],[7346,1,"ჲ"],[7347,1,"ჳ"],[7348,1,"ჴ"],[7349,1,"ჵ"],[7350,1,"ჶ"],[7351,1,"ჷ"],[7352,1,"ჸ"],[7353,1,"ჹ"],[7354,1,"ჺ"],[[7355,7356],3],[7357,1,"ჽ"],[7358,1,"ჾ"],[7359,1,"ჿ"],[[7360,7367],2],[[7368,7375],3],[[7376,7378],2],[7379,2],[[7380,7410],2],[[7411,7414],2],[7415,2],[[7416,7417],2],[7418,2],[[7419,7423],3],[[7424,7467],2],[7468,1,"a"],[7469,1,"æ"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"ǝ"],[7475,1,"g"],[7476,1,"h"],[7477,1,"i"],[7478,1,"j"],[7479,1,"k"],[7480,1,"l"],[7481,1,"m"],[7482,1,"n"],[7483,2],[7484,1,"o"],[7485,1,"ȣ"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"ɐ"],[7493,1,"ɑ"],[7494,1,"ᴂ"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"ə"],[7499,1,"ɛ"],[7500,1,"ɜ"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"ŋ"],[7506,1,"o"],[7507,1,"ɔ"],[7508,1,"ᴖ"],[7509,1,"ᴗ"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"ᴝ"],[7514,1,"ɯ"],[7515,1,"v"],[7516,1,"ᴥ"],[7517,1,"β"],[7518,1,"γ"],[7519,1,"δ"],[7520,1,"φ"],[7521,1,"χ"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"β"],[7527,1,"γ"],[7528,1,"ρ"],[7529,1,"φ"],[7530,1,"χ"],[7531,2],[[7532,7543],2],[7544,1,"н"],[[7545,7578],2],[7579,1,"ɒ"],[7580,1,"c"],[7581,1,"ɕ"],[7582,1,"ð"],[7583,1,"ɜ"],[7584,1,"f"],[7585,1,"ɟ"],[7586,1,"ɡ"],[7587,1,"ɥ"],[7588,1,"ɨ"],[7589,1,"ɩ"],[7590,1,"ɪ"],[7591,1,"ᵻ"],[7592,1,"ʝ"],[7593,1,"ɭ"],[7594,1,"ᶅ"],[7595,1,"ʟ"],[7596,1,"ɱ"],[7597,1,"ɰ"],[7598,1,"ɲ"],[7599,1,"ɳ"],[7600,1,"ɴ"],[7601,1,"ɵ"],[7602,1,"ɸ"],[7603,1,"ʂ"],[7604,1,"ʃ"],[7605,1,"ƫ"],[7606,1,"ʉ"],[7607,1,"ʊ"],[7608,1,"ᴜ"],[7609,1,"ʋ"],[7610,1,"ʌ"],[7611,1,"z"],[7612,1,"ʐ"],[7613,1,"ʑ"],[7614,1,"ʒ"],[7615,1,"θ"],[[7616,7619],2],[[7620,7626],2],[[7627,7654],2],[[7655,7669],2],[[7670,7673],2],[7674,2],[7675,2],[7676,2],[7677,2],[[7678,7679],2],[7680,1,"ḁ"],[7681,2],[7682,1,"ḃ"],[7683,2],[7684,1,"ḅ"],[7685,2],[7686,1,"ḇ"],[7687,2],[7688,1,"ḉ"],[7689,2],[7690,1,"ḋ"],[7691,2],[7692,1,"ḍ"],[7693,2],[7694,1,"ḏ"],[7695,2],[7696,1,"ḑ"],[7697,2],[7698,1,"ḓ"],[7699,2],[7700,1,"ḕ"],[7701,2],[7702,1,"ḗ"],[7703,2],[7704,1,"ḙ"],[7705,2],[7706,1,"ḛ"],[7707,2],[7708,1,"ḝ"],[7709,2],[7710,1,"ḟ"],[7711,2],[7712,1,"ḡ"],[7713,2],[7714,1,"ḣ"],[7715,2],[7716,1,"ḥ"],[7717,2],[7718,1,"ḧ"],[7719,2],[7720,1,"ḩ"],[7721,2],[7722,1,"ḫ"],[7723,2],[7724,1,"ḭ"],[7725,2],[7726,1,"ḯ"],[7727,2],[7728,1,"ḱ"],[7729,2],[7730,1,"ḳ"],[7731,2],[7732,1,"ḵ"],[7733,2],[7734,1,"ḷ"],[7735,2],[7736,1,"ḹ"],[7737,2],[7738,1,"ḻ"],[7739,2],[7740,1,"ḽ"],[7741,2],[7742,1,"ḿ"],[7743,2],[7744,1,"ṁ"],[7745,2],[7746,1,"ṃ"],[7747,2],[7748,1,"ṅ"],[7749,2],[7750,1,"ṇ"],[7751,2],[7752,1,"ṉ"],[7753,2],[7754,1,"ṋ"],[7755,2],[7756,1,"ṍ"],[7757,2],[7758,1,"ṏ"],[7759,2],[7760,1,"ṑ"],[7761,2],[7762,1,"ṓ"],[7763,2],[7764,1,"ṕ"],[7765,2],[7766,1,"ṗ"],[7767,2],[7768,1,"ṙ"],[7769,2],[7770,1,"ṛ"],[7771,2],[7772,1,"ṝ"],[7773,2],[7774,1,"ṟ"],[7775,2],[7776,1,"ṡ"],[7777,2],[7778,1,"ṣ"],[7779,2],[7780,1,"ṥ"],[7781,2],[7782,1,"ṧ"],[7783,2],[7784,1,"ṩ"],[7785,2],[7786,1,"ṫ"],[7787,2],[7788,1,"ṭ"],[7789,2],[7790,1,"ṯ"],[7791,2],[7792,1,"ṱ"],[7793,2],[7794,1,"ṳ"],[7795,2],[7796,1,"ṵ"],[7797,2],[7798,1,"ṷ"],[7799,2],[7800,1,"ṹ"],[7801,2],[7802,1,"ṻ"],[7803,2],[7804,1,"ṽ"],[7805,2],[7806,1,"ṿ"],[7807,2],[7808,1,"ẁ"],[7809,2],[7810,1,"ẃ"],[7811,2],[7812,1,"ẅ"],[7813,2],[7814,1,"ẇ"],[7815,2],[7816,1,"ẉ"],[7817,2],[7818,1,"ẋ"],[7819,2],[7820,1,"ẍ"],[7821,2],[7822,1,"ẏ"],[7823,2],[7824,1,"ẑ"],[7825,2],[7826,1,"ẓ"],[7827,2],[7828,1,"ẕ"],[[7829,7833],2],[7834,1,"aʾ"],[7835,1,"ṡ"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"ạ"],[7841,2],[7842,1,"ả"],[7843,2],[7844,1,"ấ"],[7845,2],[7846,1,"ầ"],[7847,2],[7848,1,"ẩ"],[7849,2],[7850,1,"ẫ"],[7851,2],[7852,1,"ậ"],[7853,2],[7854,1,"ắ"],[7855,2],[7856,1,"ằ"],[7857,2],[7858,1,"ẳ"],[7859,2],[7860,1,"ẵ"],[7861,2],[7862,1,"ặ"],[7863,2],[7864,1,"ẹ"],[7865,2],[7866,1,"ẻ"],[7867,2],[7868,1,"ẽ"],[7869,2],[7870,1,"ế"],[7871,2],[7872,1,"ề"],[7873,2],[7874,1,"ể"],[7875,2],[7876,1,"ễ"],[7877,2],[7878,1,"ệ"],[7879,2],[7880,1,"ỉ"],[7881,2],[7882,1,"ị"],[7883,2],[7884,1,"ọ"],[7885,2],[7886,1,"ỏ"],[7887,2],[7888,1,"ố"],[7889,2],[7890,1,"ồ"],[7891,2],[7892,1,"ổ"],[7893,2],[7894,1,"ỗ"],[7895,2],[7896,1,"ộ"],[7897,2],[7898,1,"ớ"],[7899,2],[7900,1,"ờ"],[7901,2],[7902,1,"ở"],[7903,2],[7904,1,"ỡ"],[7905,2],[7906,1,"ợ"],[7907,2],[7908,1,"ụ"],[7909,2],[7910,1,"ủ"],[7911,2],[7912,1,"ứ"],[7913,2],[7914,1,"ừ"],[7915,2],[7916,1,"ử"],[7917,2],[7918,1,"ữ"],[7919,2],[7920,1,"ự"],[7921,2],[7922,1,"ỳ"],[7923,2],[7924,1,"ỵ"],[7925,2],[7926,1,"ỷ"],[7927,2],[7928,1,"ỹ"],[7929,2],[7930,1,"ỻ"],[7931,2],[7932,1,"ỽ"],[7933,2],[7934,1,"ỿ"],[7935,2],[[7936,7943],2],[7944,1,"ἀ"],[7945,1,"ἁ"],[7946,1,"ἂ"],[7947,1,"ἃ"],[7948,1,"ἄ"],[7949,1,"ἅ"],[7950,1,"ἆ"],[7951,1,"ἇ"],[[7952,7957],2],[[7958,7959],3],[7960,1,"ἐ"],[7961,1,"ἑ"],[7962,1,"ἒ"],[7963,1,"ἓ"],[7964,1,"ἔ"],[7965,1,"ἕ"],[[7966,7967],3],[[7968,7975],2],[7976,1,"ἠ"],[7977,1,"ἡ"],[7978,1,"ἢ"],[7979,1,"ἣ"],[7980,1,"ἤ"],[7981,1,"ἥ"],[7982,1,"ἦ"],[7983,1,"ἧ"],[[7984,7991],2],[7992,1,"ἰ"],[7993,1,"ἱ"],[7994,1,"ἲ"],[7995,1,"ἳ"],[7996,1,"ἴ"],[7997,1,"ἵ"],[7998,1,"ἶ"],[7999,1,"ἷ"],[[8000,8005],2],[[8006,8007],3],[8008,1,"ὀ"],[8009,1,"ὁ"],[8010,1,"ὂ"],[8011,1,"ὃ"],[8012,1,"ὄ"],[8013,1,"ὅ"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"ὑ"],[8026,3],[8027,1,"ὓ"],[8028,3],[8029,1,"ὕ"],[8030,3],[8031,1,"ὗ"],[[8032,8039],2],[8040,1,"ὠ"],[8041,1,"ὡ"],[8042,1,"ὢ"],[8043,1,"ὣ"],[8044,1,"ὤ"],[8045,1,"ὥ"],[8046,1,"ὦ"],[8047,1,"ὧ"],[8048,2],[8049,1,"ά"],[8050,2],[8051,1,"έ"],[8052,2],[8053,1,"ή"],[8054,2],[8055,1,"ί"],[8056,2],[8057,1,"ό"],[8058,2],[8059,1,"ύ"],[8060,2],[8061,1,"ώ"],[[8062,8063],3],[8064,1,"ἀι"],[8065,1,"ἁι"],[8066,1,"ἂι"],[8067,1,"ἃι"],[8068,1,"ἄι"],[8069,1,"ἅι"],[8070,1,"ἆι"],[8071,1,"ἇι"],[8072,1,"ἀι"],[8073,1,"ἁι"],[8074,1,"ἂι"],[8075,1,"ἃι"],[8076,1,"ἄι"],[8077,1,"ἅι"],[8078,1,"ἆι"],[8079,1,"ἇι"],[8080,1,"ἠι"],[8081,1,"ἡι"],[8082,1,"ἢι"],[8083,1,"ἣι"],[8084,1,"ἤι"],[8085,1,"ἥι"],[8086,1,"ἦι"],[8087,1,"ἧι"],[8088,1,"ἠι"],[8089,1,"ἡι"],[8090,1,"ἢι"],[8091,1,"ἣι"],[8092,1,"ἤι"],[8093,1,"ἥι"],[8094,1,"ἦι"],[8095,1,"ἧι"],[8096,1,"ὠι"],[8097,1,"ὡι"],[8098,1,"ὢι"],[8099,1,"ὣι"],[8100,1,"ὤι"],[8101,1,"ὥι"],[8102,1,"ὦι"],[8103,1,"ὧι"],[8104,1,"ὠι"],[8105,1,"ὡι"],[8106,1,"ὢι"],[8107,1,"ὣι"],[8108,1,"ὤι"],[8109,1,"ὥι"],[8110,1,"ὦι"],[8111,1,"ὧι"],[[8112,8113],2],[8114,1,"ὰι"],[8115,1,"αι"],[8116,1,"άι"],[8117,3],[8118,2],[8119,1,"ᾶι"],[8120,1,"ᾰ"],[8121,1,"ᾱ"],[8122,1,"ὰ"],[8123,1,"ά"],[8124,1,"αι"],[8125,5," ̓"],[8126,1,"ι"],[8127,5," ̓"],[8128,5," ͂"],[8129,5," ̈͂"],[8130,1,"ὴι"],[8131,1,"ηι"],[8132,1,"ήι"],[8133,3],[8134,2],[8135,1,"ῆι"],[8136,1,"ὲ"],[8137,1,"έ"],[8138,1,"ὴ"],[8139,1,"ή"],[8140,1,"ηι"],[8141,5," ̓̀"],[8142,5," ̓́"],[8143,5," ̓͂"],[[8144,8146],2],[8147,1,"ΐ"],[[8148,8149],3],[[8150,8151],2],[8152,1,"ῐ"],[8153,1,"ῑ"],[8154,1,"ὶ"],[8155,1,"ί"],[8156,3],[8157,5," ̔̀"],[8158,5," ̔́"],[8159,5," ̔͂"],[[8160,8162],2],[8163,1,"ΰ"],[[8164,8167],2],[8168,1,"ῠ"],[8169,1,"ῡ"],[8170,1,"ὺ"],[8171,1,"ύ"],[8172,1,"ῥ"],[8173,5," ̈̀"],[8174,5," ̈́"],[8175,5,"`"],[[8176,8177],3],[8178,1,"ὼι"],[8179,1,"ωι"],[8180,1,"ώι"],[8181,3],[8182,2],[8183,1,"ῶι"],[8184,1,"ὸ"],[8185,1,"ό"],[8186,1,"ὼ"],[8187,1,"ώ"],[8188,1,"ωι"],[8189,5," ́"],[8190,5," ̔"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"‐"],[[8210,8214],2],[8215,5," ̳"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"′′"],[8244,1,"′′′"],[8245,2],[8246,1,"‵‵"],[8247,1,"‵‵‵"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," ̅"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"′′′′"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"−"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"−"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"ə"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"°c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"ɛ"],[8456,2],[8457,1,"°f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"ħ"],[[8464,8465],1,"i"],[[8466,8467],1,"l"],[8468,2],[8469,1,"n"],[8470,1,"no"],[[8471,8472],2],[8473,1,"p"],[8474,1,"q"],[[8475,8477],1,"r"],[[8478,8479],2],[8480,1,"sm"],[8481,1,"tel"],[8482,1,"tm"],[8483,2],[8484,1,"z"],[8485,2],[8486,1,"ω"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"å"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"א"],[8502,1,"ב"],[8503,1,"ג"],[8504,1,"ד"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"π"],[[8509,8510],1,"γ"],[8511,1,"π"],[8512,1,"∑"],[[8513,8516],2],[[8517,8518],1,"d"],[8519,1,"e"],[8520,1,"i"],[8521,1,"j"],[[8522,8523],2],[8524,2],[8525,2],[8526,2],[8527,2],[8528,1,"1⁄7"],[8529,1,"1⁄9"],[8530,1,"1⁄10"],[8531,1,"1⁄3"],[8532,1,"2⁄3"],[8533,1,"1⁄5"],[8534,1,"2⁄5"],[8535,1,"3⁄5"],[8536,1,"4⁄5"],[8537,1,"1⁄6"],[8538,1,"5⁄6"],[8539,1,"1⁄8"],[8540,1,"3⁄8"],[8541,1,"5⁄8"],[8542,1,"7⁄8"],[8543,1,"1⁄"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0⁄3"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"∫∫"],[8749,1,"∫∫∫"],[8750,2],[8751,1,"∮∮"],[8752,1,"∮∮∮"],[[8753,8799],2],[8800,4],[[8801,8813],2],[[8814,8815],4],[[8816,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"〈"],[9002,1,"〉"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"∫∫∫∫"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"⫝̸"],[[10973,11007],2],[[11008,11021],2],[[11022,11027],2],[[11028,11034],2],[[11035,11039],2],[[11040,11043],2],[[11044,11084],2],[[11085,11087],2],[[11088,11092],2],[[11093,11097],2],[[11098,11123],2],[[11124,11125],3],[[11126,11157],2],[11158,3],[11159,2],[[11160,11193],2],[[11194,11196],2],[[11197,11208],2],[11209,2],[[11210,11217],2],[11218,2],[[11219,11243],2],[[11244,11247],2],[[11248,11262],2],[11263,2],[11264,1,"ⰰ"],[11265,1,"ⰱ"],[11266,1,"ⰲ"],[11267,1,"ⰳ"],[11268,1,"ⰴ"],[11269,1,"ⰵ"],[11270,1,"ⰶ"],[11271,1,"ⰷ"],[11272,1,"ⰸ"],[11273,1,"ⰹ"],[11274,1,"ⰺ"],[11275,1,"ⰻ"],[11276,1,"ⰼ"],[11277,1,"ⰽ"],[11278,1,"ⰾ"],[11279,1,"ⰿ"],[11280,1,"ⱀ"],[11281,1,"ⱁ"],[11282,1,"ⱂ"],[11283,1,"ⱃ"],[11284,1,"ⱄ"],[11285,1,"ⱅ"],[11286,1,"ⱆ"],[11287,1,"ⱇ"],[11288,1,"ⱈ"],[11289,1,"ⱉ"],[11290,1,"ⱊ"],[11291,1,"ⱋ"],[11292,1,"ⱌ"],[11293,1,"ⱍ"],[11294,1,"ⱎ"],[11295,1,"ⱏ"],[11296,1,"ⱐ"],[11297,1,"ⱑ"],[11298,1,"ⱒ"],[11299,1,"ⱓ"],[11300,1,"ⱔ"],[11301,1,"ⱕ"],[11302,1,"ⱖ"],[11303,1,"ⱗ"],[11304,1,"ⱘ"],[11305,1,"ⱙ"],[11306,1,"ⱚ"],[11307,1,"ⱛ"],[11308,1,"ⱜ"],[11309,1,"ⱝ"],[11310,1,"ⱞ"],[11311,1,"ⱟ"],[[11312,11358],2],[11359,2],[11360,1,"ⱡ"],[11361,2],[11362,1,"ɫ"],[11363,1,"ᵽ"],[11364,1,"ɽ"],[[11365,11366],2],[11367,1,"ⱨ"],[11368,2],[11369,1,"ⱪ"],[11370,2],[11371,1,"ⱬ"],[11372,2],[11373,1,"ɑ"],[11374,1,"ɱ"],[11375,1,"ɐ"],[11376,1,"ɒ"],[11377,2],[11378,1,"ⱳ"],[11379,2],[11380,2],[11381,1,"ⱶ"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"ȿ"],[11391,1,"ɀ"],[11392,1,"ⲁ"],[11393,2],[11394,1,"ⲃ"],[11395,2],[11396,1,"ⲅ"],[11397,2],[11398,1,"ⲇ"],[11399,2],[11400,1,"ⲉ"],[11401,2],[11402,1,"ⲋ"],[11403,2],[11404,1,"ⲍ"],[11405,2],[11406,1,"ⲏ"],[11407,2],[11408,1,"ⲑ"],[11409,2],[11410,1,"ⲓ"],[11411,2],[11412,1,"ⲕ"],[11413,2],[11414,1,"ⲗ"],[11415,2],[11416,1,"ⲙ"],[11417,2],[11418,1,"ⲛ"],[11419,2],[11420,1,"ⲝ"],[11421,2],[11422,1,"ⲟ"],[11423,2],[11424,1,"ⲡ"],[11425,2],[11426,1,"ⲣ"],[11427,2],[11428,1,"ⲥ"],[11429,2],[11430,1,"ⲧ"],[11431,2],[11432,1,"ⲩ"],[11433,2],[11434,1,"ⲫ"],[11435,2],[11436,1,"ⲭ"],[11437,2],[11438,1,"ⲯ"],[11439,2],[11440,1,"ⲱ"],[11441,2],[11442,1,"ⲳ"],[11443,2],[11444,1,"ⲵ"],[11445,2],[11446,1,"ⲷ"],[11447,2],[11448,1,"ⲹ"],[11449,2],[11450,1,"ⲻ"],[11451,2],[11452,1,"ⲽ"],[11453,2],[11454,1,"ⲿ"],[11455,2],[11456,1,"ⳁ"],[11457,2],[11458,1,"ⳃ"],[11459,2],[11460,1,"ⳅ"],[11461,2],[11462,1,"ⳇ"],[11463,2],[11464,1,"ⳉ"],[11465,2],[11466,1,"ⳋ"],[11467,2],[11468,1,"ⳍ"],[11469,2],[11470,1,"ⳏ"],[11471,2],[11472,1,"ⳑ"],[11473,2],[11474,1,"ⳓ"],[11475,2],[11476,1,"ⳕ"],[11477,2],[11478,1,"ⳗ"],[11479,2],[11480,1,"ⳙ"],[11481,2],[11482,1,"ⳛ"],[11483,2],[11484,1,"ⳝ"],[11485,2],[11486,1,"ⳟ"],[11487,2],[11488,1,"ⳡ"],[11489,2],[11490,1,"ⳣ"],[[11491,11492],2],[[11493,11498],2],[11499,1,"ⳬ"],[11500,2],[11501,1,"ⳮ"],[[11502,11505],2],[11506,1,"ⳳ"],[11507,2],[[11508,11512],3],[[11513,11519],2],[[11520,11557],2],[11558,3],[11559,2],[[11560,11564],3],[11565,2],[[11566,11567],3],[[11568,11621],2],[[11622,11623],2],[[11624,11630],3],[11631,1,"ⵡ"],[11632,2],[[11633,11646],3],[11647,2],[[11648,11670],2],[[11671,11679],3],[[11680,11686],2],[11687,3],[[11688,11694],2],[11695,3],[[11696,11702],2],[11703,3],[[11704,11710],2],[11711,3],[[11712,11718],2],[11719,3],[[11720,11726],2],[11727,3],[[11728,11734],2],[11735,3],[[11736,11742],2],[11743,3],[[11744,11775],2],[[11776,11799],2],[[11800,11803],2],[[11804,11805],2],[[11806,11822],2],[11823,2],[11824,2],[11825,2],[[11826,11835],2],[[11836,11842],2],[[11843,11844],2],[[11845,11849],2],[[11850,11854],2],[11855,2],[[11856,11858],2],[[11859,11869],2],[[11870,11903],3],[[11904,11929],2],[11930,3],[[11931,11934],2],[11935,1,"母"],[[11936,12018],2],[12019,1,"龟"],[[12020,12031],3],[12032,1,"一"],[12033,1,"丨"],[12034,1,"丶"],[12035,1,"丿"],[12036,1,"乙"],[12037,1,"亅"],[12038,1,"二"],[12039,1,"亠"],[12040,1,"人"],[12041,1,"儿"],[12042,1,"入"],[12043,1,"八"],[12044,1,"冂"],[12045,1,"冖"],[12046,1,"冫"],[12047,1,"几"],[12048,1,"凵"],[12049,1,"刀"],[12050,1,"力"],[12051,1,"勹"],[12052,1,"匕"],[12053,1,"匚"],[12054,1,"匸"],[12055,1,"十"],[12056,1,"卜"],[12057,1,"卩"],[12058,1,"厂"],[12059,1,"厶"],[12060,1,"又"],[12061,1,"口"],[12062,1,"囗"],[12063,1,"土"],[12064,1,"士"],[12065,1,"夂"],[12066,1,"夊"],[12067,1,"夕"],[12068,1,"大"],[12069,1,"女"],[12070,1,"子"],[12071,1,"宀"],[12072,1,"寸"],[12073,1,"小"],[12074,1,"尢"],[12075,1,"尸"],[12076,1,"屮"],[12077,1,"山"],[12078,1,"巛"],[12079,1,"工"],[12080,1,"己"],[12081,1,"巾"],[12082,1,"干"],[12083,1,"幺"],[12084,1,"广"],[12085,1,"廴"],[12086,1,"廾"],[12087,1,"弋"],[12088,1,"弓"],[12089,1,"彐"],[12090,1,"彡"],[12091,1,"彳"],[12092,1,"心"],[12093,1,"戈"],[12094,1,"戶"],[12095,1,"手"],[12096,1,"支"],[12097,1,"攴"],[12098,1,"文"],[12099,1,"斗"],[12100,1,"斤"],[12101,1,"方"],[12102,1,"无"],[12103,1,"日"],[12104,1,"曰"],[12105,1,"月"],[12106,1,"木"],[12107,1,"欠"],[12108,1,"止"],[12109,1,"歹"],[12110,1,"殳"],[12111,1,"毋"],[12112,1,"比"],[12113,1,"毛"],[12114,1,"氏"],[12115,1,"气"],[12116,1,"水"],[12117,1,"火"],[12118,1,"爪"],[12119,1,"父"],[12120,1,"爻"],[12121,1,"爿"],[12122,1,"片"],[12123,1,"牙"],[12124,1,"牛"],[12125,1,"犬"],[12126,1,"玄"],[12127,1,"玉"],[12128,1,"瓜"],[12129,1,"瓦"],[12130,1,"甘"],[12131,1,"生"],[12132,1,"用"],[12133,1,"田"],[12134,1,"疋"],[12135,1,"疒"],[12136,1,"癶"],[12137,1,"白"],[12138,1,"皮"],[12139,1,"皿"],[12140,1,"目"],[12141,1,"矛"],[12142,1,"矢"],[12143,1,"石"],[12144,1,"示"],[12145,1,"禸"],[12146,1,"禾"],[12147,1,"穴"],[12148,1,"立"],[12149,1,"竹"],[12150,1,"米"],[12151,1,"糸"],[12152,1,"缶"],[12153,1,"网"],[12154,1,"羊"],[12155,1,"羽"],[12156,1,"老"],[12157,1,"而"],[12158,1,"耒"],[12159,1,"耳"],[12160,1,"聿"],[12161,1,"肉"],[12162,1,"臣"],[12163,1,"自"],[12164,1,"至"],[12165,1,"臼"],[12166,1,"舌"],[12167,1,"舛"],[12168,1,"舟"],[12169,1,"艮"],[12170,1,"色"],[12171,1,"艸"],[12172,1,"虍"],[12173,1,"虫"],[12174,1,"血"],[12175,1,"行"],[12176,1,"衣"],[12177,1,"襾"],[12178,1,"見"],[12179,1,"角"],[12180,1,"言"],[12181,1,"谷"],[12182,1,"豆"],[12183,1,"豕"],[12184,1,"豸"],[12185,1,"貝"],[12186,1,"赤"],[12187,1,"走"],[12188,1,"足"],[12189,1,"身"],[12190,1,"車"],[12191,1,"辛"],[12192,1,"辰"],[12193,1,"辵"],[12194,1,"邑"],[12195,1,"酉"],[12196,1,"釆"],[12197,1,"里"],[12198,1,"金"],[12199,1,"長"],[12200,1,"門"],[12201,1,"阜"],[12202,1,"隶"],[12203,1,"隹"],[12204,1,"雨"],[12205,1,"靑"],[12206,1,"非"],[12207,1,"面"],[12208,1,"革"],[12209,1,"韋"],[12210,1,"韭"],[12211,1,"音"],[12212,1,"頁"],[12213,1,"風"],[12214,1,"飛"],[12215,1,"食"],[12216,1,"首"],[12217,1,"香"],[12218,1,"馬"],[12219,1,"骨"],[12220,1,"高"],[12221,1,"髟"],[12222,1,"鬥"],[12223,1,"鬯"],[12224,1,"鬲"],[12225,1,"鬼"],[12226,1,"魚"],[12227,1,"鳥"],[12228,1,"鹵"],[12229,1,"鹿"],[12230,1,"麥"],[12231,1,"麻"],[12232,1,"黃"],[12233,1,"黍"],[12234,1,"黑"],[12235,1,"黹"],[12236,1,"黽"],[12237,1,"鼎"],[12238,1,"鼓"],[12239,1,"鼠"],[12240,1,"鼻"],[12241,1,"齊"],[12242,1,"齒"],[12243,1,"龍"],[12244,1,"龜"],[12245,1,"龠"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"〒"],[12343,2],[12344,1,"十"],[12345,1,"卄"],[12346,1,"卅"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," ゙"],[12444,5," ゚"],[[12445,12446],2],[12447,1,"より"],[12448,2],[[12449,12542],2],[12543,1,"コト"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"ᄀ"],[12594,1,"ᄁ"],[12595,1,"ᆪ"],[12596,1,"ᄂ"],[12597,1,"ᆬ"],[12598,1,"ᆭ"],[12599,1,"ᄃ"],[12600,1,"ᄄ"],[12601,1,"ᄅ"],[12602,1,"ᆰ"],[12603,1,"ᆱ"],[12604,1,"ᆲ"],[12605,1,"ᆳ"],[12606,1,"ᆴ"],[12607,1,"ᆵ"],[12608,1,"ᄚ"],[12609,1,"ᄆ"],[12610,1,"ᄇ"],[12611,1,"ᄈ"],[12612,1,"ᄡ"],[12613,1,"ᄉ"],[12614,1,"ᄊ"],[12615,1,"ᄋ"],[12616,1,"ᄌ"],[12617,1,"ᄍ"],[12618,1,"ᄎ"],[12619,1,"ᄏ"],[12620,1,"ᄐ"],[12621,1,"ᄑ"],[12622,1,"ᄒ"],[12623,1,"ᅡ"],[12624,1,"ᅢ"],[12625,1,"ᅣ"],[12626,1,"ᅤ"],[12627,1,"ᅥ"],[12628,1,"ᅦ"],[12629,1,"ᅧ"],[12630,1,"ᅨ"],[12631,1,"ᅩ"],[12632,1,"ᅪ"],[12633,1,"ᅫ"],[12634,1,"ᅬ"],[12635,1,"ᅭ"],[12636,1,"ᅮ"],[12637,1,"ᅯ"],[12638,1,"ᅰ"],[12639,1,"ᅱ"],[12640,1,"ᅲ"],[12641,1,"ᅳ"],[12642,1,"ᅴ"],[12643,1,"ᅵ"],[12644,3],[12645,1,"ᄔ"],[12646,1,"ᄕ"],[12647,1,"ᇇ"],[12648,1,"ᇈ"],[12649,1,"ᇌ"],[12650,1,"ᇎ"],[12651,1,"ᇓ"],[12652,1,"ᇗ"],[12653,1,"ᇙ"],[12654,1,"ᄜ"],[12655,1,"ᇝ"],[12656,1,"ᇟ"],[12657,1,"ᄝ"],[12658,1,"ᄞ"],[12659,1,"ᄠ"],[12660,1,"ᄢ"],[12661,1,"ᄣ"],[12662,1,"ᄧ"],[12663,1,"ᄩ"],[12664,1,"ᄫ"],[12665,1,"ᄬ"],[12666,1,"ᄭ"],[12667,1,"ᄮ"],[12668,1,"ᄯ"],[12669,1,"ᄲ"],[12670,1,"ᄶ"],[12671,1,"ᅀ"],[12672,1,"ᅇ"],[12673,1,"ᅌ"],[12674,1,"ᇱ"],[12675,1,"ᇲ"],[12676,1,"ᅗ"],[12677,1,"ᅘ"],[12678,1,"ᅙ"],[12679,1,"ᆄ"],[12680,1,"ᆅ"],[12681,1,"ᆈ"],[12682,1,"ᆑ"],[12683,1,"ᆒ"],[12684,1,"ᆔ"],[12685,1,"ᆞ"],[12686,1,"ᆡ"],[12687,3],[[12688,12689],2],[12690,1,"一"],[12691,1,"二"],[12692,1,"三"],[12693,1,"四"],[12694,1,"上"],[12695,1,"中"],[12696,1,"下"],[12697,1,"甲"],[12698,1,"乙"],[12699,1,"丙"],[12700,1,"丁"],[12701,1,"天"],[12702,1,"地"],[12703,1,"人"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(ᄀ)"],[12801,5,"(ᄂ)"],[12802,5,"(ᄃ)"],[12803,5,"(ᄅ)"],[12804,5,"(ᄆ)"],[12805,5,"(ᄇ)"],[12806,5,"(ᄉ)"],[12807,5,"(ᄋ)"],[12808,5,"(ᄌ)"],[12809,5,"(ᄎ)"],[12810,5,"(ᄏ)"],[12811,5,"(ᄐ)"],[12812,5,"(ᄑ)"],[12813,5,"(ᄒ)"],[12814,5,"(가)"],[12815,5,"(나)"],[12816,5,"(다)"],[12817,5,"(라)"],[12818,5,"(마)"],[12819,5,"(바)"],[12820,5,"(사)"],[12821,5,"(아)"],[12822,5,"(자)"],[12823,5,"(차)"],[12824,5,"(카)"],[12825,5,"(타)"],[12826,5,"(파)"],[12827,5,"(하)"],[12828,5,"(주)"],[12829,5,"(오전)"],[12830,5,"(오후)"],[12831,3],[12832,5,"(一)"],[12833,5,"(二)"],[12834,5,"(三)"],[12835,5,"(四)"],[12836,5,"(五)"],[12837,5,"(六)"],[12838,5,"(七)"],[12839,5,"(八)"],[12840,5,"(九)"],[12841,5,"(十)"],[12842,5,"(月)"],[12843,5,"(火)"],[12844,5,"(水)"],[12845,5,"(木)"],[12846,5,"(金)"],[12847,5,"(土)"],[12848,5,"(日)"],[12849,5,"(株)"],[12850,5,"(有)"],[12851,5,"(社)"],[12852,5,"(名)"],[12853,5,"(特)"],[12854,5,"(財)"],[12855,5,"(祝)"],[12856,5,"(労)"],[12857,5,"(代)"],[12858,5,"(呼)"],[12859,5,"(学)"],[12860,5,"(監)"],[12861,5,"(企)"],[12862,5,"(資)"],[12863,5,"(協)"],[12864,5,"(祭)"],[12865,5,"(休)"],[12866,5,"(自)"],[12867,5,"(至)"],[12868,1,"問"],[12869,1,"幼"],[12870,1,"文"],[12871,1,"箏"],[[12872,12879],2],[12880,1,"pte"],[12881,1,"21"],[12882,1,"22"],[12883,1,"23"],[12884,1,"24"],[12885,1,"25"],[12886,1,"26"],[12887,1,"27"],[12888,1,"28"],[12889,1,"29"],[12890,1,"30"],[12891,1,"31"],[12892,1,"32"],[12893,1,"33"],[12894,1,"34"],[12895,1,"35"],[12896,1,"ᄀ"],[12897,1,"ᄂ"],[12898,1,"ᄃ"],[12899,1,"ᄅ"],[12900,1,"ᄆ"],[12901,1,"ᄇ"],[12902,1,"ᄉ"],[12903,1,"ᄋ"],[12904,1,"ᄌ"],[12905,1,"ᄎ"],[12906,1,"ᄏ"],[12907,1,"ᄐ"],[12908,1,"ᄑ"],[12909,1,"ᄒ"],[12910,1,"가"],[12911,1,"나"],[12912,1,"다"],[12913,1,"라"],[12914,1,"마"],[12915,1,"바"],[12916,1,"사"],[12917,1,"아"],[12918,1,"자"],[12919,1,"차"],[12920,1,"카"],[12921,1,"타"],[12922,1,"파"],[12923,1,"하"],[12924,1,"참고"],[12925,1,"주의"],[12926,1,"우"],[12927,2],[12928,1,"一"],[12929,1,"二"],[12930,1,"三"],[12931,1,"四"],[12932,1,"五"],[12933,1,"六"],[12934,1,"七"],[12935,1,"八"],[12936,1,"九"],[12937,1,"十"],[12938,1,"月"],[12939,1,"火"],[12940,1,"水"],[12941,1,"木"],[12942,1,"金"],[12943,1,"土"],[12944,1,"日"],[12945,1,"株"],[12946,1,"有"],[12947,1,"社"],[12948,1,"名"],[12949,1,"特"],[12950,1,"財"],[12951,1,"祝"],[12952,1,"労"],[12953,1,"秘"],[12954,1,"男"],[12955,1,"女"],[12956,1,"適"],[12957,1,"優"],[12958,1,"印"],[12959,1,"注"],[12960,1,"項"],[12961,1,"休"],[12962,1,"写"],[12963,1,"正"],[12964,1,"上"],[12965,1,"中"],[12966,1,"下"],[12967,1,"左"],[12968,1,"右"],[12969,1,"医"],[12970,1,"宗"],[12971,1,"学"],[12972,1,"監"],[12973,1,"企"],[12974,1,"資"],[12975,1,"協"],[12976,1,"夜"],[12977,1,"36"],[12978,1,"37"],[12979,1,"38"],[12980,1,"39"],[12981,1,"40"],[12982,1,"41"],[12983,1,"42"],[12984,1,"43"],[12985,1,"44"],[12986,1,"45"],[12987,1,"46"],[12988,1,"47"],[12989,1,"48"],[12990,1,"49"],[12991,1,"50"],[12992,1,"1月"],[12993,1,"2月"],[12994,1,"3月"],[12995,1,"4月"],[12996,1,"5月"],[12997,1,"6月"],[12998,1,"7月"],[12999,1,"8月"],[13000,1,"9月"],[13001,1,"10月"],[13002,1,"11月"],[13003,1,"12月"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"ア"],[13009,1,"イ"],[13010,1,"ウ"],[13011,1,"エ"],[13012,1,"オ"],[13013,1,"カ"],[13014,1,"キ"],[13015,1,"ク"],[13016,1,"ケ"],[13017,1,"コ"],[13018,1,"サ"],[13019,1,"シ"],[13020,1,"ス"],[13021,1,"セ"],[13022,1,"ソ"],[13023,1,"タ"],[13024,1,"チ"],[13025,1,"ツ"],[13026,1,"テ"],[13027,1,"ト"],[13028,1,"ナ"],[13029,1,"ニ"],[13030,1,"ヌ"],[13031,1,"ネ"],[13032,1,"ノ"],[13033,1,"ハ"],[13034,1,"ヒ"],[13035,1,"フ"],[13036,1,"ヘ"],[13037,1,"ホ"],[13038,1,"マ"],[13039,1,"ミ"],[13040,1,"ム"],[13041,1,"メ"],[13042,1,"モ"],[13043,1,"ヤ"],[13044,1,"ユ"],[13045,1,"ヨ"],[13046,1,"ラ"],[13047,1,"リ"],[13048,1,"ル"],[13049,1,"レ"],[13050,1,"ロ"],[13051,1,"ワ"],[13052,1,"ヰ"],[13053,1,"ヱ"],[13054,1,"ヲ"],[13055,1,"令和"],[13056,1,"アパート"],[13057,1,"アルファ"],[13058,1,"アンペア"],[13059,1,"アール"],[13060,1,"イニング"],[13061,1,"インチ"],[13062,1,"ウォン"],[13063,1,"エスクード"],[13064,1,"エーカー"],[13065,1,"オンス"],[13066,1,"オーム"],[13067,1,"カイリ"],[13068,1,"カラット"],[13069,1,"カロリー"],[13070,1,"ガロン"],[13071,1,"ガンマ"],[13072,1,"ギガ"],[13073,1,"ギニー"],[13074,1,"キュリー"],[13075,1,"ギルダー"],[13076,1,"キロ"],[13077,1,"キログラム"],[13078,1,"キロメートル"],[13079,1,"キロワット"],[13080,1,"グラム"],[13081,1,"グラムトン"],[13082,1,"クルゼイロ"],[13083,1,"クローネ"],[13084,1,"ケース"],[13085,1,"コルナ"],[13086,1,"コーポ"],[13087,1,"サイクル"],[13088,1,"サンチーム"],[13089,1,"シリング"],[13090,1,"センチ"],[13091,1,"セント"],[13092,1,"ダース"],[13093,1,"デシ"],[13094,1,"ドル"],[13095,1,"トン"],[13096,1,"ナノ"],[13097,1,"ノット"],[13098,1,"ハイツ"],[13099,1,"パーセント"],[13100,1,"パーツ"],[13101,1,"バーレル"],[13102,1,"ピアストル"],[13103,1,"ピクル"],[13104,1,"ピコ"],[13105,1,"ビル"],[13106,1,"ファラッド"],[13107,1,"フィート"],[13108,1,"ブッシェル"],[13109,1,"フラン"],[13110,1,"ヘクタール"],[13111,1,"ペソ"],[13112,1,"ペニヒ"],[13113,1,"ヘルツ"],[13114,1,"ペンス"],[13115,1,"ページ"],[13116,1,"ベータ"],[13117,1,"ポイント"],[13118,1,"ボルト"],[13119,1,"ホン"],[13120,1,"ポンド"],[13121,1,"ホール"],[13122,1,"ホーン"],[13123,1,"マイクロ"],[13124,1,"マイル"],[13125,1,"マッハ"],[13126,1,"マルク"],[13127,1,"マンション"],[13128,1,"ミクロン"],[13129,1,"ミリ"],[13130,1,"ミリバール"],[13131,1,"メガ"],[13132,1,"メガトン"],[13133,1,"メートル"],[13134,1,"ヤード"],[13135,1,"ヤール"],[13136,1,"ユアン"],[13137,1,"リットル"],[13138,1,"リラ"],[13139,1,"ルピー"],[13140,1,"ルーブル"],[13141,1,"レム"],[13142,1,"レントゲン"],[13143,1,"ワット"],[13144,1,"0点"],[13145,1,"1点"],[13146,1,"2点"],[13147,1,"3点"],[13148,1,"4点"],[13149,1,"5点"],[13150,1,"6点"],[13151,1,"7点"],[13152,1,"8点"],[13153,1,"9点"],[13154,1,"10点"],[13155,1,"11点"],[13156,1,"12点"],[13157,1,"13点"],[13158,1,"14点"],[13159,1,"15点"],[13160,1,"16点"],[13161,1,"17点"],[13162,1,"18点"],[13163,1,"19点"],[13164,1,"20点"],[13165,1,"21点"],[13166,1,"22点"],[13167,1,"23点"],[13168,1,"24点"],[13169,1,"hpa"],[13170,1,"da"],[13171,1,"au"],[13172,1,"bar"],[13173,1,"ov"],[13174,1,"pc"],[13175,1,"dm"],[13176,1,"dm2"],[13177,1,"dm3"],[13178,1,"iu"],[13179,1,"平成"],[13180,1,"昭和"],[13181,1,"大正"],[13182,1,"明治"],[13183,1,"株式会社"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"μa"],[13187,1,"ma"],[13188,1,"ka"],[13189,1,"kb"],[13190,1,"mb"],[13191,1,"gb"],[13192,1,"cal"],[13193,1,"kcal"],[13194,1,"pf"],[13195,1,"nf"],[13196,1,"μf"],[13197,1,"μg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"μl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"μm"],[13212,1,"mm"],[13213,1,"cm"],[13214,1,"km"],[13215,1,"mm2"],[13216,1,"cm2"],[13217,1,"m2"],[13218,1,"km2"],[13219,1,"mm3"],[13220,1,"cm3"],[13221,1,"m3"],[13222,1,"km3"],[13223,1,"m∕s"],[13224,1,"m∕s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad∕s"],[13231,1,"rad∕s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"μs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"μv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"μw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"kω"],[13249,1,"mω"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c∕kg"],[13255,3],[13256,1,"db"],[13257,1,"gy"],[13258,1,"ha"],[13259,1,"hp"],[13260,1,"in"],[13261,1,"kk"],[13262,1,"km"],[13263,1,"kt"],[13264,1,"lm"],[13265,1,"ln"],[13266,1,"log"],[13267,1,"lx"],[13268,1,"mb"],[13269,1,"mil"],[13270,1,"mol"],[13271,1,"ph"],[13272,3],[13273,1,"ppm"],[13274,1,"pr"],[13275,1,"sr"],[13276,1,"sv"],[13277,1,"wb"],[13278,1,"v∕m"],[13279,1,"a∕m"],[13280,1,"1日"],[13281,1,"2日"],[13282,1,"3日"],[13283,1,"4日"],[13284,1,"5日"],[13285,1,"6日"],[13286,1,"7日"],[13287,1,"8日"],[13288,1,"9日"],[13289,1,"10日"],[13290,1,"11日"],[13291,1,"12日"],[13292,1,"13日"],[13293,1,"14日"],[13294,1,"15日"],[13295,1,"16日"],[13296,1,"17日"],[13297,1,"18日"],[13298,1,"19日"],[13299,1,"20日"],[13300,1,"21日"],[13301,1,"22日"],[13302,1,"23日"],[13303,1,"24日"],[13304,1,"25日"],[13305,1,"26日"],[13306,1,"27日"],[13307,1,"28日"],[13308,1,"29日"],[13309,1,"30日"],[13310,1,"31日"],[13311,1,"gal"],[[13312,19893],2],[[19894,19903],2],[[19904,19967],2],[[19968,40869],2],[[40870,40891],2],[[40892,40899],2],[[40900,40907],2],[40908,2],[[40909,40917],2],[[40918,40938],2],[[40939,40943],2],[[40944,40956],2],[[40957,40959],2],[[40960,42124],2],[[42125,42127],3],[[42128,42145],2],[[42146,42147],2],[[42148,42163],2],[42164,2],[[42165,42176],2],[42177,2],[[42178,42180],2],[42181,2],[42182,2],[[42183,42191],3],[[42192,42237],2],[[42238,42239],2],[[42240,42508],2],[[42509,42511],2],[[42512,42539],2],[[42540,42559],3],[42560,1,"ꙁ"],[42561,2],[42562,1,"ꙃ"],[42563,2],[42564,1,"ꙅ"],[42565,2],[42566,1,"ꙇ"],[42567,2],[42568,1,"ꙉ"],[42569,2],[42570,1,"ꙋ"],[42571,2],[42572,1,"ꙍ"],[42573,2],[42574,1,"ꙏ"],[42575,2],[42576,1,"ꙑ"],[42577,2],[42578,1,"ꙓ"],[42579,2],[42580,1,"ꙕ"],[42581,2],[42582,1,"ꙗ"],[42583,2],[42584,1,"ꙙ"],[42585,2],[42586,1,"ꙛ"],[42587,2],[42588,1,"ꙝ"],[42589,2],[42590,1,"ꙟ"],[42591,2],[42592,1,"ꙡ"],[42593,2],[42594,1,"ꙣ"],[42595,2],[42596,1,"ꙥ"],[42597,2],[42598,1,"ꙧ"],[42599,2],[42600,1,"ꙩ"],[42601,2],[42602,1,"ꙫ"],[42603,2],[42604,1,"ꙭ"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"ꚁ"],[42625,2],[42626,1,"ꚃ"],[42627,2],[42628,1,"ꚅ"],[42629,2],[42630,1,"ꚇ"],[42631,2],[42632,1,"ꚉ"],[42633,2],[42634,1,"ꚋ"],[42635,2],[42636,1,"ꚍ"],[42637,2],[42638,1,"ꚏ"],[42639,2],[42640,1,"ꚑ"],[42641,2],[42642,1,"ꚓ"],[42643,2],[42644,1,"ꚕ"],[42645,2],[42646,1,"ꚗ"],[42647,2],[42648,1,"ꚙ"],[42649,2],[42650,1,"ꚛ"],[42651,2],[42652,1,"ъ"],[42653,1,"ь"],[42654,2],[42655,2],[[42656,42725],2],[[42726,42735],2],[[42736,42737],2],[[42738,42743],2],[[42744,42751],3],[[42752,42774],2],[[42775,42778],2],[[42779,42783],2],[[42784,42785],2],[42786,1,"ꜣ"],[42787,2],[42788,1,"ꜥ"],[42789,2],[42790,1,"ꜧ"],[42791,2],[42792,1,"ꜩ"],[42793,2],[42794,1,"ꜫ"],[42795,2],[42796,1,"ꜭ"],[42797,2],[42798,1,"ꜯ"],[[42799,42801],2],[42802,1,"ꜳ"],[42803,2],[42804,1,"ꜵ"],[42805,2],[42806,1,"ꜷ"],[42807,2],[42808,1,"ꜹ"],[42809,2],[42810,1,"ꜻ"],[42811,2],[42812,1,"ꜽ"],[42813,2],[42814,1,"ꜿ"],[42815,2],[42816,1,"ꝁ"],[42817,2],[42818,1,"ꝃ"],[42819,2],[42820,1,"ꝅ"],[42821,2],[42822,1,"ꝇ"],[42823,2],[42824,1,"ꝉ"],[42825,2],[42826,1,"ꝋ"],[42827,2],[42828,1,"ꝍ"],[42829,2],[42830,1,"ꝏ"],[42831,2],[42832,1,"ꝑ"],[42833,2],[42834,1,"ꝓ"],[42835,2],[42836,1,"ꝕ"],[42837,2],[42838,1,"ꝗ"],[42839,2],[42840,1,"ꝙ"],[42841,2],[42842,1,"ꝛ"],[42843,2],[42844,1,"ꝝ"],[42845,2],[42846,1,"ꝟ"],[42847,2],[42848,1,"ꝡ"],[42849,2],[42850,1,"ꝣ"],[42851,2],[42852,1,"ꝥ"],[42853,2],[42854,1,"ꝧ"],[42855,2],[42856,1,"ꝩ"],[42857,2],[42858,1,"ꝫ"],[42859,2],[42860,1,"ꝭ"],[42861,2],[42862,1,"ꝯ"],[42863,2],[42864,1,"ꝯ"],[[42865,42872],2],[42873,1,"ꝺ"],[42874,2],[42875,1,"ꝼ"],[42876,2],[42877,1,"ᵹ"],[42878,1,"ꝿ"],[42879,2],[42880,1,"ꞁ"],[42881,2],[42882,1,"ꞃ"],[42883,2],[42884,1,"ꞅ"],[42885,2],[42886,1,"ꞇ"],[[42887,42888],2],[[42889,42890],2],[42891,1,"ꞌ"],[42892,2],[42893,1,"ɥ"],[42894,2],[42895,2],[42896,1,"ꞑ"],[42897,2],[42898,1,"ꞓ"],[42899,2],[[42900,42901],2],[42902,1,"ꞗ"],[42903,2],[42904,1,"ꞙ"],[42905,2],[42906,1,"ꞛ"],[42907,2],[42908,1,"ꞝ"],[42909,2],[42910,1,"ꞟ"],[42911,2],[42912,1,"ꞡ"],[42913,2],[42914,1,"ꞣ"],[42915,2],[42916,1,"ꞥ"],[42917,2],[42918,1,"ꞧ"],[42919,2],[42920,1,"ꞩ"],[42921,2],[42922,1,"ɦ"],[42923,1,"ɜ"],[42924,1,"ɡ"],[42925,1,"ɬ"],[42926,1,"ɪ"],[42927,2],[42928,1,"ʞ"],[42929,1,"ʇ"],[42930,1,"ʝ"],[42931,1,"ꭓ"],[42932,1,"ꞵ"],[42933,2],[42934,1,"ꞷ"],[42935,2],[42936,1,"ꞹ"],[42937,2],[42938,1,"ꞻ"],[42939,2],[42940,1,"ꞽ"],[42941,2],[42942,1,"ꞿ"],[42943,2],[42944,1,"ꟁ"],[42945,2],[42946,1,"ꟃ"],[42947,2],[42948,1,"ꞔ"],[42949,1,"ʂ"],[42950,1,"ᶎ"],[42951,1,"ꟈ"],[42952,2],[42953,1,"ꟊ"],[42954,2],[[42955,42959],3],[42960,1,"ꟑ"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"ꟗ"],[42967,2],[42968,1,"ꟙ"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"ꟶ"],[42998,2],[42999,2],[43000,1,"ħ"],[43001,1,"œ"],[43002,2],[[43003,43007],2],[[43008,43047],2],[[43048,43051],2],[43052,2],[[43053,43055],3],[[43056,43065],2],[[43066,43071],3],[[43072,43123],2],[[43124,43127],2],[[43128,43135],3],[[43136,43204],2],[43205,2],[[43206,43213],3],[[43214,43215],2],[[43216,43225],2],[[43226,43231],3],[[43232,43255],2],[[43256,43258],2],[43259,2],[43260,2],[43261,2],[[43262,43263],2],[[43264,43309],2],[[43310,43311],2],[[43312,43347],2],[[43348,43358],3],[43359,2],[[43360,43388],2],[[43389,43391],3],[[43392,43456],2],[[43457,43469],2],[43470,3],[[43471,43481],2],[[43482,43485],3],[[43486,43487],2],[[43488,43518],2],[43519,3],[[43520,43574],2],[[43575,43583],3],[[43584,43597],2],[[43598,43599],3],[[43600,43609],2],[[43610,43611],3],[[43612,43615],2],[[43616,43638],2],[[43639,43641],2],[[43642,43643],2],[[43644,43647],2],[[43648,43714],2],[[43715,43738],3],[[43739,43741],2],[[43742,43743],2],[[43744,43759],2],[[43760,43761],2],[[43762,43766],2],[[43767,43776],3],[[43777,43782],2],[[43783,43784],3],[[43785,43790],2],[[43791,43792],3],[[43793,43798],2],[[43799,43807],3],[[43808,43814],2],[43815,3],[[43816,43822],2],[43823,3],[[43824,43866],2],[43867,2],[43868,1,"ꜧ"],[43869,1,"ꬷ"],[43870,1,"ɫ"],[43871,1,"ꭒ"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"ʍ"],[[43882,43883],2],[[43884,43887],3],[43888,1,"Ꭰ"],[43889,1,"Ꭱ"],[43890,1,"Ꭲ"],[43891,1,"Ꭳ"],[43892,1,"Ꭴ"],[43893,1,"Ꭵ"],[43894,1,"Ꭶ"],[43895,1,"Ꭷ"],[43896,1,"Ꭸ"],[43897,1,"Ꭹ"],[43898,1,"Ꭺ"],[43899,1,"Ꭻ"],[43900,1,"Ꭼ"],[43901,1,"Ꭽ"],[43902,1,"Ꭾ"],[43903,1,"Ꭿ"],[43904,1,"Ꮀ"],[43905,1,"Ꮁ"],[43906,1,"Ꮂ"],[43907,1,"Ꮃ"],[43908,1,"Ꮄ"],[43909,1,"Ꮅ"],[43910,1,"Ꮆ"],[43911,1,"Ꮇ"],[43912,1,"Ꮈ"],[43913,1,"Ꮉ"],[43914,1,"Ꮊ"],[43915,1,"Ꮋ"],[43916,1,"Ꮌ"],[43917,1,"Ꮍ"],[43918,1,"Ꮎ"],[43919,1,"Ꮏ"],[43920,1,"Ꮐ"],[43921,1,"Ꮑ"],[43922,1,"Ꮒ"],[43923,1,"Ꮓ"],[43924,1,"Ꮔ"],[43925,1,"Ꮕ"],[43926,1,"Ꮖ"],[43927,1,"Ꮗ"],[43928,1,"Ꮘ"],[43929,1,"Ꮙ"],[43930,1,"Ꮚ"],[43931,1,"Ꮛ"],[43932,1,"Ꮜ"],[43933,1,"Ꮝ"],[43934,1,"Ꮞ"],[43935,1,"Ꮟ"],[43936,1,"Ꮠ"],[43937,1,"Ꮡ"],[43938,1,"Ꮢ"],[43939,1,"Ꮣ"],[43940,1,"Ꮤ"],[43941,1,"Ꮥ"],[43942,1,"Ꮦ"],[43943,1,"Ꮧ"],[43944,1,"Ꮨ"],[43945,1,"Ꮩ"],[43946,1,"Ꮪ"],[43947,1,"Ꮫ"],[43948,1,"Ꮬ"],[43949,1,"Ꮭ"],[43950,1,"Ꮮ"],[43951,1,"Ꮯ"],[43952,1,"Ꮰ"],[43953,1,"Ꮱ"],[43954,1,"Ꮲ"],[43955,1,"Ꮳ"],[43956,1,"Ꮴ"],[43957,1,"Ꮵ"],[43958,1,"Ꮶ"],[43959,1,"Ꮷ"],[43960,1,"Ꮸ"],[43961,1,"Ꮹ"],[43962,1,"Ꮺ"],[43963,1,"Ꮻ"],[43964,1,"Ꮼ"],[43965,1,"Ꮽ"],[43966,1,"Ꮾ"],[43967,1,"Ꮿ"],[[43968,44010],2],[44011,2],[[44012,44013],2],[[44014,44015],3],[[44016,44025],2],[[44026,44031],3],[[44032,55203],2],[[55204,55215],3],[[55216,55238],2],[[55239,55242],3],[[55243,55291],2],[[55292,55295],3],[[55296,57343],3],[[57344,63743],3],[63744,1,"豈"],[63745,1,"更"],[63746,1,"車"],[63747,1,"賈"],[63748,1,"滑"],[63749,1,"串"],[63750,1,"句"],[[63751,63752],1,"龜"],[63753,1,"契"],[63754,1,"金"],[63755,1,"喇"],[63756,1,"奈"],[63757,1,"懶"],[63758,1,"癩"],[63759,1,"羅"],[63760,1,"蘿"],[63761,1,"螺"],[63762,1,"裸"],[63763,1,"邏"],[63764,1,"樂"],[63765,1,"洛"],[63766,1,"烙"],[63767,1,"珞"],[63768,1,"落"],[63769,1,"酪"],[63770,1,"駱"],[63771,1,"亂"],[63772,1,"卵"],[63773,1,"欄"],[63774,1,"爛"],[63775,1,"蘭"],[63776,1,"鸞"],[63777,1,"嵐"],[63778,1,"濫"],[63779,1,"藍"],[63780,1,"襤"],[63781,1,"拉"],[63782,1,"臘"],[63783,1,"蠟"],[63784,1,"廊"],[63785,1,"朗"],[63786,1,"浪"],[63787,1,"狼"],[63788,1,"郎"],[63789,1,"來"],[63790,1,"冷"],[63791,1,"勞"],[63792,1,"擄"],[63793,1,"櫓"],[63794,1,"爐"],[63795,1,"盧"],[63796,1,"老"],[63797,1,"蘆"],[63798,1,"虜"],[63799,1,"路"],[63800,1,"露"],[63801,1,"魯"],[63802,1,"鷺"],[63803,1,"碌"],[63804,1,"祿"],[63805,1,"綠"],[63806,1,"菉"],[63807,1,"錄"],[63808,1,"鹿"],[63809,1,"論"],[63810,1,"壟"],[63811,1,"弄"],[63812,1,"籠"],[63813,1,"聾"],[63814,1,"牢"],[63815,1,"磊"],[63816,1,"賂"],[63817,1,"雷"],[63818,1,"壘"],[63819,1,"屢"],[63820,1,"樓"],[63821,1,"淚"],[63822,1,"漏"],[63823,1,"累"],[63824,1,"縷"],[63825,1,"陋"],[63826,1,"勒"],[63827,1,"肋"],[63828,1,"凜"],[63829,1,"凌"],[63830,1,"稜"],[63831,1,"綾"],[63832,1,"菱"],[63833,1,"陵"],[63834,1,"讀"],[63835,1,"拏"],[63836,1,"樂"],[63837,1,"諾"],[63838,1,"丹"],[63839,1,"寧"],[63840,1,"怒"],[63841,1,"率"],[63842,1,"異"],[63843,1,"北"],[63844,1,"磻"],[63845,1,"便"],[63846,1,"復"],[63847,1,"不"],[63848,1,"泌"],[63849,1,"數"],[63850,1,"索"],[63851,1,"參"],[63852,1,"塞"],[63853,1,"省"],[63854,1,"葉"],[63855,1,"說"],[63856,1,"殺"],[63857,1,"辰"],[63858,1,"沈"],[63859,1,"拾"],[63860,1,"若"],[63861,1,"掠"],[63862,1,"略"],[63863,1,"亮"],[63864,1,"兩"],[63865,1,"凉"],[63866,1,"梁"],[63867,1,"糧"],[63868,1,"良"],[63869,1,"諒"],[63870,1,"量"],[63871,1,"勵"],[63872,1,"呂"],[63873,1,"女"],[63874,1,"廬"],[63875,1,"旅"],[63876,1,"濾"],[63877,1,"礪"],[63878,1,"閭"],[63879,1,"驪"],[63880,1,"麗"],[63881,1,"黎"],[63882,1,"力"],[63883,1,"曆"],[63884,1,"歷"],[63885,1,"轢"],[63886,1,"年"],[63887,1,"憐"],[63888,1,"戀"],[63889,1,"撚"],[63890,1,"漣"],[63891,1,"煉"],[63892,1,"璉"],[63893,1,"秊"],[63894,1,"練"],[63895,1,"聯"],[63896,1,"輦"],[63897,1,"蓮"],[63898,1,"連"],[63899,1,"鍊"],[63900,1,"列"],[63901,1,"劣"],[63902,1,"咽"],[63903,1,"烈"],[63904,1,"裂"],[63905,1,"說"],[63906,1,"廉"],[63907,1,"念"],[63908,1,"捻"],[63909,1,"殮"],[63910,1,"簾"],[63911,1,"獵"],[63912,1,"令"],[63913,1,"囹"],[63914,1,"寧"],[63915,1,"嶺"],[63916,1,"怜"],[63917,1,"玲"],[63918,1,"瑩"],[63919,1,"羚"],[63920,1,"聆"],[63921,1,"鈴"],[63922,1,"零"],[63923,1,"靈"],[63924,1,"領"],[63925,1,"例"],[63926,1,"禮"],[63927,1,"醴"],[63928,1,"隸"],[63929,1,"惡"],[63930,1,"了"],[63931,1,"僚"],[63932,1,"寮"],[63933,1,"尿"],[63934,1,"料"],[63935,1,"樂"],[63936,1,"燎"],[63937,1,"療"],[63938,1,"蓼"],[63939,1,"遼"],[63940,1,"龍"],[63941,1,"暈"],[63942,1,"阮"],[63943,1,"劉"],[63944,1,"杻"],[63945,1,"柳"],[63946,1,"流"],[63947,1,"溜"],[63948,1,"琉"],[63949,1,"留"],[63950,1,"硫"],[63951,1,"紐"],[63952,1,"類"],[63953,1,"六"],[63954,1,"戮"],[63955,1,"陸"],[63956,1,"倫"],[63957,1,"崙"],[63958,1,"淪"],[63959,1,"輪"],[63960,1,"律"],[63961,1,"慄"],[63962,1,"栗"],[63963,1,"率"],[63964,1,"隆"],[63965,1,"利"],[63966,1,"吏"],[63967,1,"履"],[63968,1,"易"],[63969,1,"李"],[63970,1,"梨"],[63971,1,"泥"],[63972,1,"理"],[63973,1,"痢"],[63974,1,"罹"],[63975,1,"裏"],[63976,1,"裡"],[63977,1,"里"],[63978,1,"離"],[63979,1,"匿"],[63980,1,"溺"],[63981,1,"吝"],[63982,1,"燐"],[63983,1,"璘"],[63984,1,"藺"],[63985,1,"隣"],[63986,1,"鱗"],[63987,1,"麟"],[63988,1,"林"],[63989,1,"淋"],[63990,1,"臨"],[63991,1,"立"],[63992,1,"笠"],[63993,1,"粒"],[63994,1,"狀"],[63995,1,"炙"],[63996,1,"識"],[63997,1,"什"],[63998,1,"茶"],[63999,1,"刺"],[64000,1,"切"],[64001,1,"度"],[64002,1,"拓"],[64003,1,"糖"],[64004,1,"宅"],[64005,1,"洞"],[64006,1,"暴"],[64007,1,"輻"],[64008,1,"行"],[64009,1,"降"],[64010,1,"見"],[64011,1,"廓"],[64012,1,"兀"],[64013,1,"嗀"],[[64014,64015],2],[64016,1,"塚"],[64017,2],[64018,1,"晴"],[[64019,64020],2],[64021,1,"凞"],[64022,1,"猪"],[64023,1,"益"],[64024,1,"礼"],[64025,1,"神"],[64026,1,"祥"],[64027,1,"福"],[64028,1,"靖"],[64029,1,"精"],[64030,1,"羽"],[64031,2],[64032,1,"蘒"],[64033,2],[64034,1,"諸"],[[64035,64036],2],[64037,1,"逸"],[64038,1,"都"],[[64039,64041],2],[64042,1,"飯"],[64043,1,"飼"],[64044,1,"館"],[64045,1,"鶴"],[64046,1,"郞"],[64047,1,"隷"],[64048,1,"侮"],[64049,1,"僧"],[64050,1,"免"],[64051,1,"勉"],[64052,1,"勤"],[64053,1,"卑"],[64054,1,"喝"],[64055,1,"嘆"],[64056,1,"器"],[64057,1,"塀"],[64058,1,"墨"],[64059,1,"層"],[64060,1,"屮"],[64061,1,"悔"],[64062,1,"慨"],[64063,1,"憎"],[64064,1,"懲"],[64065,1,"敏"],[64066,1,"既"],[64067,1,"暑"],[64068,1,"梅"],[64069,1,"海"],[64070,1,"渚"],[64071,1,"漢"],[64072,1,"煮"],[64073,1,"爫"],[64074,1,"琢"],[64075,1,"碑"],[64076,1,"社"],[64077,1,"祉"],[64078,1,"祈"],[64079,1,"祐"],[64080,1,"祖"],[64081,1,"祝"],[64082,1,"禍"],[64083,1,"禎"],[64084,1,"穀"],[64085,1,"突"],[64086,1,"節"],[64087,1,"練"],[64088,1,"縉"],[64089,1,"繁"],[64090,1,"署"],[64091,1,"者"],[64092,1,"臭"],[[64093,64094],1,"艹"],[64095,1,"著"],[64096,1,"褐"],[64097,1,"視"],[64098,1,"謁"],[64099,1,"謹"],[64100,1,"賓"],[64101,1,"贈"],[64102,1,"辶"],[64103,1,"逸"],[64104,1,"難"],[64105,1,"響"],[64106,1,"頻"],[64107,1,"恵"],[64108,1,"𤋮"],[64109,1,"舘"],[[64110,64111],3],[64112,1,"並"],[64113,1,"况"],[64114,1,"全"],[64115,1,"侀"],[64116,1,"充"],[64117,1,"冀"],[64118,1,"勇"],[64119,1,"勺"],[64120,1,"喝"],[64121,1,"啕"],[64122,1,"喙"],[64123,1,"嗢"],[64124,1,"塚"],[64125,1,"墳"],[64126,1,"奄"],[64127,1,"奔"],[64128,1,"婢"],[64129,1,"嬨"],[64130,1,"廒"],[64131,1,"廙"],[64132,1,"彩"],[64133,1,"徭"],[64134,1,"惘"],[64135,1,"慎"],[64136,1,"愈"],[64137,1,"憎"],[64138,1,"慠"],[64139,1,"懲"],[64140,1,"戴"],[64141,1,"揄"],[64142,1,"搜"],[64143,1,"摒"],[64144,1,"敖"],[64145,1,"晴"],[64146,1,"朗"],[64147,1,"望"],[64148,1,"杖"],[64149,1,"歹"],[64150,1,"殺"],[64151,1,"流"],[64152,1,"滛"],[64153,1,"滋"],[64154,1,"漢"],[64155,1,"瀞"],[64156,1,"煮"],[64157,1,"瞧"],[64158,1,"爵"],[64159,1,"犯"],[64160,1,"猪"],[64161,1,"瑱"],[64162,1,"甆"],[64163,1,"画"],[64164,1,"瘝"],[64165,1,"瘟"],[64166,1,"益"],[64167,1,"盛"],[64168,1,"直"],[64169,1,"睊"],[64170,1,"着"],[64171,1,"磌"],[64172,1,"窱"],[64173,1,"節"],[64174,1,"类"],[64175,1,"絛"],[64176,1,"練"],[64177,1,"缾"],[64178,1,"者"],[64179,1,"荒"],[64180,1,"華"],[64181,1,"蝹"],[64182,1,"襁"],[64183,1,"覆"],[64184,1,"視"],[64185,1,"調"],[64186,1,"諸"],[64187,1,"請"],[64188,1,"謁"],[64189,1,"諾"],[64190,1,"諭"],[64191,1,"謹"],[64192,1,"變"],[64193,1,"贈"],[64194,1,"輸"],[64195,1,"遲"],[64196,1,"醙"],[64197,1,"鉶"],[64198,1,"陼"],[64199,1,"難"],[64200,1,"靖"],[64201,1,"韛"],[64202,1,"響"],[64203,1,"頋"],[64204,1,"頻"],[64205,1,"鬒"],[64206,1,"龜"],[64207,1,"𢡊"],[64208,1,"𢡄"],[64209,1,"𣏕"],[64210,1,"㮝"],[64211,1,"䀘"],[64212,1,"䀹"],[64213,1,"𥉉"],[64214,1,"𥳐"],[64215,1,"𧻓"],[64216,1,"齃"],[64217,1,"龎"],[[64218,64255],3],[64256,1,"ff"],[64257,1,"fi"],[64258,1,"fl"],[64259,1,"ffi"],[64260,1,"ffl"],[[64261,64262],1,"st"],[[64263,64274],3],[64275,1,"մն"],[64276,1,"մե"],[64277,1,"մի"],[64278,1,"վն"],[64279,1,"մխ"],[[64280,64284],3],[64285,1,"יִ"],[64286,2],[64287,1,"ײַ"],[64288,1,"ע"],[64289,1,"א"],[64290,1,"ד"],[64291,1,"ה"],[64292,1,"כ"],[64293,1,"ל"],[64294,1,"ם"],[64295,1,"ר"],[64296,1,"ת"],[64297,5,"+"],[64298,1,"שׁ"],[64299,1,"שׂ"],[64300,1,"שּׁ"],[64301,1,"שּׂ"],[64302,1,"אַ"],[64303,1,"אָ"],[64304,1,"אּ"],[64305,1,"בּ"],[64306,1,"גּ"],[64307,1,"דּ"],[64308,1,"הּ"],[64309,1,"וּ"],[64310,1,"זּ"],[64311,3],[64312,1,"טּ"],[64313,1,"יּ"],[64314,1,"ךּ"],[64315,1,"כּ"],[64316,1,"לּ"],[64317,3],[64318,1,"מּ"],[64319,3],[64320,1,"נּ"],[64321,1,"סּ"],[64322,3],[64323,1,"ףּ"],[64324,1,"פּ"],[64325,3],[64326,1,"צּ"],[64327,1,"קּ"],[64328,1,"רּ"],[64329,1,"שּ"],[64330,1,"תּ"],[64331,1,"וֹ"],[64332,1,"בֿ"],[64333,1,"כֿ"],[64334,1,"פֿ"],[64335,1,"אל"],[[64336,64337],1,"ٱ"],[[64338,64341],1,"ٻ"],[[64342,64345],1,"پ"],[[64346,64349],1,"ڀ"],[[64350,64353],1,"ٺ"],[[64354,64357],1,"ٿ"],[[64358,64361],1,"ٹ"],[[64362,64365],1,"ڤ"],[[64366,64369],1,"ڦ"],[[64370,64373],1,"ڄ"],[[64374,64377],1,"ڃ"],[[64378,64381],1,"چ"],[[64382,64385],1,"ڇ"],[[64386,64387],1,"ڍ"],[[64388,64389],1,"ڌ"],[[64390,64391],1,"ڎ"],[[64392,64393],1,"ڈ"],[[64394,64395],1,"ژ"],[[64396,64397],1,"ڑ"],[[64398,64401],1,"ک"],[[64402,64405],1,"گ"],[[64406,64409],1,"ڳ"],[[64410,64413],1,"ڱ"],[[64414,64415],1,"ں"],[[64416,64419],1,"ڻ"],[[64420,64421],1,"ۀ"],[[64422,64425],1,"ہ"],[[64426,64429],1,"ھ"],[[64430,64431],1,"ے"],[[64432,64433],1,"ۓ"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"ڭ"],[[64471,64472],1,"ۇ"],[[64473,64474],1,"ۆ"],[[64475,64476],1,"ۈ"],[64477,1,"ۇٴ"],[[64478,64479],1,"ۋ"],[[64480,64481],1,"ۅ"],[[64482,64483],1,"ۉ"],[[64484,64487],1,"ې"],[[64488,64489],1,"ى"],[[64490,64491],1,"ئا"],[[64492,64493],1,"ئە"],[[64494,64495],1,"ئو"],[[64496,64497],1,"ئۇ"],[[64498,64499],1,"ئۆ"],[[64500,64501],1,"ئۈ"],[[64502,64504],1,"ئې"],[[64505,64507],1,"ئى"],[[64508,64511],1,"ی"],[64512,1,"ئج"],[64513,1,"ئح"],[64514,1,"ئم"],[64515,1,"ئى"],[64516,1,"ئي"],[64517,1,"بج"],[64518,1,"بح"],[64519,1,"بخ"],[64520,1,"بم"],[64521,1,"بى"],[64522,1,"بي"],[64523,1,"تج"],[64524,1,"تح"],[64525,1,"تخ"],[64526,1,"تم"],[64527,1,"تى"],[64528,1,"تي"],[64529,1,"ثج"],[64530,1,"ثم"],[64531,1,"ثى"],[64532,1,"ثي"],[64533,1,"جح"],[64534,1,"جم"],[64535,1,"حج"],[64536,1,"حم"],[64537,1,"خج"],[64538,1,"خح"],[64539,1,"خم"],[64540,1,"سج"],[64541,1,"سح"],[64542,1,"سخ"],[64543,1,"سم"],[64544,1,"صح"],[64545,1,"صم"],[64546,1,"ضج"],[64547,1,"ضح"],[64548,1,"ضخ"],[64549,1,"ضم"],[64550,1,"طح"],[64551,1,"طم"],[64552,1,"ظم"],[64553,1,"عج"],[64554,1,"عم"],[64555,1,"غج"],[64556,1,"غم"],[64557,1,"فج"],[64558,1,"فح"],[64559,1,"فخ"],[64560,1,"فم"],[64561,1,"فى"],[64562,1,"في"],[64563,1,"قح"],[64564,1,"قم"],[64565,1,"قى"],[64566,1,"قي"],[64567,1,"كا"],[64568,1,"كج"],[64569,1,"كح"],[64570,1,"كخ"],[64571,1,"كل"],[64572,1,"كم"],[64573,1,"كى"],[64574,1,"كي"],[64575,1,"لج"],[64576,1,"لح"],[64577,1,"لخ"],[64578,1,"لم"],[64579,1,"لى"],[64580,1,"لي"],[64581,1,"مج"],[64582,1,"مح"],[64583,1,"مخ"],[64584,1,"مم"],[64585,1,"مى"],[64586,1,"مي"],[64587,1,"نج"],[64588,1,"نح"],[64589,1,"نخ"],[64590,1,"نم"],[64591,1,"نى"],[64592,1,"ني"],[64593,1,"هج"],[64594,1,"هم"],[64595,1,"هى"],[64596,1,"هي"],[64597,1,"يج"],[64598,1,"يح"],[64599,1,"يخ"],[64600,1,"يم"],[64601,1,"يى"],[64602,1,"يي"],[64603,1,"ذٰ"],[64604,1,"رٰ"],[64605,1,"ىٰ"],[64606,5," ٌّ"],[64607,5," ٍّ"],[64608,5," َّ"],[64609,5," ُّ"],[64610,5," ِّ"],[64611,5," ّٰ"],[64612,1,"ئر"],[64613,1,"ئز"],[64614,1,"ئم"],[64615,1,"ئن"],[64616,1,"ئى"],[64617,1,"ئي"],[64618,1,"بر"],[64619,1,"بز"],[64620,1,"بم"],[64621,1,"بن"],[64622,1,"بى"],[64623,1,"بي"],[64624,1,"تر"],[64625,1,"تز"],[64626,1,"تم"],[64627,1,"تن"],[64628,1,"تى"],[64629,1,"تي"],[64630,1,"ثر"],[64631,1,"ثز"],[64632,1,"ثم"],[64633,1,"ثن"],[64634,1,"ثى"],[64635,1,"ثي"],[64636,1,"فى"],[64637,1,"في"],[64638,1,"قى"],[64639,1,"قي"],[64640,1,"كا"],[64641,1,"كل"],[64642,1,"كم"],[64643,1,"كى"],[64644,1,"كي"],[64645,1,"لم"],[64646,1,"لى"],[64647,1,"لي"],[64648,1,"ما"],[64649,1,"مم"],[64650,1,"نر"],[64651,1,"نز"],[64652,1,"نم"],[64653,1,"نن"],[64654,1,"نى"],[64655,1,"ني"],[64656,1,"ىٰ"],[64657,1,"ير"],[64658,1,"يز"],[64659,1,"يم"],[64660,1,"ين"],[64661,1,"يى"],[64662,1,"يي"],[64663,1,"ئج"],[64664,1,"ئح"],[64665,1,"ئخ"],[64666,1,"ئم"],[64667,1,"ئه"],[64668,1,"بج"],[64669,1,"بح"],[64670,1,"بخ"],[64671,1,"بم"],[64672,1,"به"],[64673,1,"تج"],[64674,1,"تح"],[64675,1,"تخ"],[64676,1,"تم"],[64677,1,"ته"],[64678,1,"ثم"],[64679,1,"جح"],[64680,1,"جم"],[64681,1,"حج"],[64682,1,"حم"],[64683,1,"خج"],[64684,1,"خم"],[64685,1,"سج"],[64686,1,"سح"],[64687,1,"سخ"],[64688,1,"سم"],[64689,1,"صح"],[64690,1,"صخ"],[64691,1,"صم"],[64692,1,"ضج"],[64693,1,"ضح"],[64694,1,"ضخ"],[64695,1,"ضم"],[64696,1,"طح"],[64697,1,"ظم"],[64698,1,"عج"],[64699,1,"عم"],[64700,1,"غج"],[64701,1,"غم"],[64702,1,"فج"],[64703,1,"فح"],[64704,1,"فخ"],[64705,1,"فم"],[64706,1,"قح"],[64707,1,"قم"],[64708,1,"كج"],[64709,1,"كح"],[64710,1,"كخ"],[64711,1,"كل"],[64712,1,"كم"],[64713,1,"لج"],[64714,1,"لح"],[64715,1,"لخ"],[64716,1,"لم"],[64717,1,"له"],[64718,1,"مج"],[64719,1,"مح"],[64720,1,"مخ"],[64721,1,"مم"],[64722,1,"نج"],[64723,1,"نح"],[64724,1,"نخ"],[64725,1,"نم"],[64726,1,"نه"],[64727,1,"هج"],[64728,1,"هم"],[64729,1,"هٰ"],[64730,1,"يج"],[64731,1,"يح"],[64732,1,"يخ"],[64733,1,"يم"],[64734,1,"يه"],[64735,1,"ئم"],[64736,1,"ئه"],[64737,1,"بم"],[64738,1,"به"],[64739,1,"تم"],[64740,1,"ته"],[64741,1,"ثم"],[64742,1,"ثه"],[64743,1,"سم"],[64744,1,"سه"],[64745,1,"شم"],[64746,1,"شه"],[64747,1,"كل"],[64748,1,"كم"],[64749,1,"لم"],[64750,1,"نم"],[64751,1,"نه"],[64752,1,"يم"],[64753,1,"يه"],[64754,1,"ـَّ"],[64755,1,"ـُّ"],[64756,1,"ـِّ"],[64757,1,"طى"],[64758,1,"طي"],[64759,1,"عى"],[64760,1,"عي"],[64761,1,"غى"],[64762,1,"غي"],[64763,1,"سى"],[64764,1,"سي"],[64765,1,"شى"],[64766,1,"شي"],[64767,1,"حى"],[64768,1,"حي"],[64769,1,"جى"],[64770,1,"جي"],[64771,1,"خى"],[64772,1,"خي"],[64773,1,"صى"],[64774,1,"صي"],[64775,1,"ضى"],[64776,1,"ضي"],[64777,1,"شج"],[64778,1,"شح"],[64779,1,"شخ"],[64780,1,"شم"],[64781,1,"شر"],[64782,1,"سر"],[64783,1,"صر"],[64784,1,"ضر"],[64785,1,"طى"],[64786,1,"طي"],[64787,1,"عى"],[64788,1,"عي"],[64789,1,"غى"],[64790,1,"غي"],[64791,1,"سى"],[64792,1,"سي"],[64793,1,"شى"],[64794,1,"شي"],[64795,1,"حى"],[64796,1,"حي"],[64797,1,"جى"],[64798,1,"جي"],[64799,1,"خى"],[64800,1,"خي"],[64801,1,"صى"],[64802,1,"صي"],[64803,1,"ضى"],[64804,1,"ضي"],[64805,1,"شج"],[64806,1,"شح"],[64807,1,"شخ"],[64808,1,"شم"],[64809,1,"شر"],[64810,1,"سر"],[64811,1,"صر"],[64812,1,"ضر"],[64813,1,"شج"],[64814,1,"شح"],[64815,1,"شخ"],[64816,1,"شم"],[64817,1,"سه"],[64818,1,"شه"],[64819,1,"طم"],[64820,1,"سج"],[64821,1,"سح"],[64822,1,"سخ"],[64823,1,"شج"],[64824,1,"شح"],[64825,1,"شخ"],[64826,1,"طم"],[64827,1,"ظم"],[[64828,64829],1,"اً"],[[64830,64831],2],[[64832,64847],2],[64848,1,"تجم"],[[64849,64850],1,"تحج"],[64851,1,"تحم"],[64852,1,"تخم"],[64853,1,"تمج"],[64854,1,"تمح"],[64855,1,"تمخ"],[[64856,64857],1,"جمح"],[64858,1,"حمي"],[64859,1,"حمى"],[64860,1,"سحج"],[64861,1,"سجح"],[64862,1,"سجى"],[[64863,64864],1,"سمح"],[64865,1,"سمج"],[[64866,64867],1,"سمم"],[[64868,64869],1,"صحح"],[64870,1,"صمم"],[[64871,64872],1,"شحم"],[64873,1,"شجي"],[[64874,64875],1,"شمخ"],[[64876,64877],1,"شمم"],[64878,1,"ضحى"],[[64879,64880],1,"ضخم"],[[64881,64882],1,"طمح"],[64883,1,"طمم"],[64884,1,"طمي"],[64885,1,"عجم"],[[64886,64887],1,"عمم"],[64888,1,"عمى"],[64889,1,"غمم"],[64890,1,"غمي"],[64891,1,"غمى"],[[64892,64893],1,"فخم"],[64894,1,"قمح"],[64895,1,"قمم"],[64896,1,"لحم"],[64897,1,"لحي"],[64898,1,"لحى"],[[64899,64900],1,"لجج"],[[64901,64902],1,"لخم"],[[64903,64904],1,"لمح"],[64905,1,"محج"],[64906,1,"محم"],[64907,1,"محي"],[64908,1,"مجح"],[64909,1,"مجم"],[64910,1,"مخج"],[64911,1,"مخم"],[[64912,64913],3],[64914,1,"مجخ"],[64915,1,"همج"],[64916,1,"همم"],[64917,1,"نحم"],[64918,1,"نحى"],[[64919,64920],1,"نجم"],[64921,1,"نجى"],[64922,1,"نمي"],[64923,1,"نمى"],[[64924,64925],1,"يمم"],[64926,1,"بخي"],[64927,1,"تجي"],[64928,1,"تجى"],[64929,1,"تخي"],[64930,1,"تخى"],[64931,1,"تمي"],[64932,1,"تمى"],[64933,1,"جمي"],[64934,1,"جحى"],[64935,1,"جمى"],[64936,1,"سخى"],[64937,1,"صحي"],[64938,1,"شحي"],[64939,1,"ضحي"],[64940,1,"لجي"],[64941,1,"لمي"],[64942,1,"يحي"],[64943,1,"يجي"],[64944,1,"يمي"],[64945,1,"ممي"],[64946,1,"قمي"],[64947,1,"نحي"],[64948,1,"قمح"],[64949,1,"لحم"],[64950,1,"عمي"],[64951,1,"كمي"],[64952,1,"نجح"],[64953,1,"مخي"],[64954,1,"لجم"],[64955,1,"كمم"],[64956,1,"لجم"],[64957,1,"نجح"],[64958,1,"جحي"],[64959,1,"حجي"],[64960,1,"مجي"],[64961,1,"فمي"],[64962,1,"بحي"],[64963,1,"كمم"],[64964,1,"عجم"],[64965,1,"صمم"],[64966,1,"سخي"],[64967,1,"نجي"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"صلے"],[65009,1,"قلے"],[65010,1,"الله"],[65011,1,"اكبر"],[65012,1,"محمد"],[65013,1,"صلعم"],[65014,1,"رسول"],[65015,1,"عليه"],[65016,1,"وسلم"],[65017,1,"صلى"],[65018,5,"صلى الله عليه وسلم"],[65019,5,"جل جلاله"],[65020,1,"ریال"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"、"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"〖"],[65048,1,"〗"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"—"],[65074,1,"–"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"〔"],[65082,1,"〕"],[65083,1,"【"],[65084,1,"】"],[65085,1,"《"],[65086,1,"》"],[65087,1,"〈"],[65088,1,"〉"],[65089,1,"「"],[65090,1,"」"],[65091,1,"『"],[65092,1,"』"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," ̅"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"、"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"—"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"〔"],[65118,1,"〕"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," ً"],[65137,1,"ـً"],[65138,5," ٌ"],[65139,2],[65140,5," ٍ"],[65141,3],[65142,5," َ"],[65143,1,"ـَ"],[65144,5," ُ"],[65145,1,"ـُ"],[65146,5," ِ"],[65147,1,"ـِ"],[65148,5," ّ"],[65149,1,"ـّ"],[65150,5," ْ"],[65151,1,"ـْ"],[65152,1,"ء"],[[65153,65154],1,"آ"],[[65155,65156],1,"أ"],[[65157,65158],1,"ؤ"],[[65159,65160],1,"إ"],[[65161,65164],1,"ئ"],[[65165,65166],1,"ا"],[[65167,65170],1,"ب"],[[65171,65172],1,"ة"],[[65173,65176],1,"ت"],[[65177,65180],1,"ث"],[[65181,65184],1,"ج"],[[65185,65188],1,"ح"],[[65189,65192],1,"خ"],[[65193,65194],1,"د"],[[65195,65196],1,"ذ"],[[65197,65198],1,"ر"],[[65199,65200],1,"ز"],[[65201,65204],1,"س"],[[65205,65208],1,"ش"],[[65209,65212],1,"ص"],[[65213,65216],1,"ض"],[[65217,65220],1,"ط"],[[65221,65224],1,"ظ"],[[65225,65228],1,"ع"],[[65229,65232],1,"غ"],[[65233,65236],1,"ف"],[[65237,65240],1,"ق"],[[65241,65244],1,"ك"],[[65245,65248],1,"ل"],[[65249,65252],1,"م"],[[65253,65256],1,"ن"],[[65257,65260],1,"ه"],[[65261,65262],1,"و"],[[65263,65264],1,"ى"],[[65265,65268],1,"ي"],[[65269,65270],1,"لآ"],[[65271,65272],1,"لأ"],[[65273,65274],1,"لإ"],[[65275,65276],1,"لا"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"\'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"⦅"],[65376,1,"⦆"],[65377,1,"."],[65378,1,"「"],[65379,1,"」"],[65380,1,"、"],[65381,1,"・"],[65382,1,"ヲ"],[65383,1,"ァ"],[65384,1,"ィ"],[65385,1,"ゥ"],[65386,1,"ェ"],[65387,1,"ォ"],[65388,1,"ャ"],[65389,1,"ュ"],[65390,1,"ョ"],[65391,1,"ッ"],[65392,1,"ー"],[65393,1,"ア"],[65394,1,"イ"],[65395,1,"ウ"],[65396,1,"エ"],[65397,1,"オ"],[65398,1,"カ"],[65399,1,"キ"],[65400,1,"ク"],[65401,1,"ケ"],[65402,1,"コ"],[65403,1,"サ"],[65404,1,"シ"],[65405,1,"ス"],[65406,1,"セ"],[65407,1,"ソ"],[65408,1,"タ"],[65409,1,"チ"],[65410,1,"ツ"],[65411,1,"テ"],[65412,1,"ト"],[65413,1,"ナ"],[65414,1,"ニ"],[65415,1,"ヌ"],[65416,1,"ネ"],[65417,1,"ノ"],[65418,1,"ハ"],[65419,1,"ヒ"],[65420,1,"フ"],[65421,1,"ヘ"],[65422,1,"ホ"],[65423,1,"マ"],[65424,1,"ミ"],[65425,1,"ム"],[65426,1,"メ"],[65427,1,"モ"],[65428,1,"ヤ"],[65429,1,"ユ"],[65430,1,"ヨ"],[65431,1,"ラ"],[65432,1,"リ"],[65433,1,"ル"],[65434,1,"レ"],[65435,1,"ロ"],[65436,1,"ワ"],[65437,1,"ン"],[65438,1,"゙"],[65439,1,"゚"],[65440,3],[65441,1,"ᄀ"],[65442,1,"ᄁ"],[65443,1,"ᆪ"],[65444,1,"ᄂ"],[65445,1,"ᆬ"],[65446,1,"ᆭ"],[65447,1,"ᄃ"],[65448,1,"ᄄ"],[65449,1,"ᄅ"],[65450,1,"ᆰ"],[65451,1,"ᆱ"],[65452,1,"ᆲ"],[65453,1,"ᆳ"],[65454,1,"ᆴ"],[65455,1,"ᆵ"],[65456,1,"ᄚ"],[65457,1,"ᄆ"],[65458,1,"ᄇ"],[65459,1,"ᄈ"],[65460,1,"ᄡ"],[65461,1,"ᄉ"],[65462,1,"ᄊ"],[65463,1,"ᄋ"],[65464,1,"ᄌ"],[65465,1,"ᄍ"],[65466,1,"ᄎ"],[65467,1,"ᄏ"],[65468,1,"ᄐ"],[65469,1,"ᄑ"],[65470,1,"ᄒ"],[[65471,65473],3],[65474,1,"ᅡ"],[65475,1,"ᅢ"],[65476,1,"ᅣ"],[65477,1,"ᅤ"],[65478,1,"ᅥ"],[65479,1,"ᅦ"],[[65480,65481],3],[65482,1,"ᅧ"],[65483,1,"ᅨ"],[65484,1,"ᅩ"],[65485,1,"ᅪ"],[65486,1,"ᅫ"],[65487,1,"ᅬ"],[[65488,65489],3],[65490,1,"ᅭ"],[65491,1,"ᅮ"],[65492,1,"ᅯ"],[65493,1,"ᅰ"],[65494,1,"ᅱ"],[65495,1,"ᅲ"],[[65496,65497],3],[65498,1,"ᅳ"],[65499,1,"ᅴ"],[65500,1,"ᅵ"],[[65501,65503],3],[65504,1,"¢"],[65505,1,"£"],[65506,1,"¬"],[65507,5," ̄"],[65508,1,"¦"],[65509,1,"¥"],[65510,1,"₩"],[65511,3],[65512,1,"│"],[65513,1,"←"],[65514,1,"↑"],[65515,1,"→"],[65516,1,"↓"],[65517,1,"■"],[65518,1,"○"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"𐐨"],[66561,1,"𐐩"],[66562,1,"𐐪"],[66563,1,"𐐫"],[66564,1,"𐐬"],[66565,1,"𐐭"],[66566,1,"𐐮"],[66567,1,"𐐯"],[66568,1,"𐐰"],[66569,1,"𐐱"],[66570,1,"𐐲"],[66571,1,"𐐳"],[66572,1,"𐐴"],[66573,1,"𐐵"],[66574,1,"𐐶"],[66575,1,"𐐷"],[66576,1,"𐐸"],[66577,1,"𐐹"],[66578,1,"𐐺"],[66579,1,"𐐻"],[66580,1,"𐐼"],[66581,1,"𐐽"],[66582,1,"𐐾"],[66583,1,"𐐿"],[66584,1,"𐑀"],[66585,1,"𐑁"],[66586,1,"𐑂"],[66587,1,"𐑃"],[66588,1,"𐑄"],[66589,1,"𐑅"],[66590,1,"𐑆"],[66591,1,"𐑇"],[66592,1,"𐑈"],[66593,1,"𐑉"],[66594,1,"𐑊"],[66595,1,"𐑋"],[66596,1,"𐑌"],[66597,1,"𐑍"],[66598,1,"𐑎"],[66599,1,"𐑏"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"𐓘"],[66737,1,"𐓙"],[66738,1,"𐓚"],[66739,1,"𐓛"],[66740,1,"𐓜"],[66741,1,"𐓝"],[66742,1,"𐓞"],[66743,1,"𐓟"],[66744,1,"𐓠"],[66745,1,"𐓡"],[66746,1,"𐓢"],[66747,1,"𐓣"],[66748,1,"𐓤"],[66749,1,"𐓥"],[66750,1,"𐓦"],[66751,1,"𐓧"],[66752,1,"𐓨"],[66753,1,"𐓩"],[66754,1,"𐓪"],[66755,1,"𐓫"],[66756,1,"𐓬"],[66757,1,"𐓭"],[66758,1,"𐓮"],[66759,1,"𐓯"],[66760,1,"𐓰"],[66761,1,"𐓱"],[66762,1,"𐓲"],[66763,1,"𐓳"],[66764,1,"𐓴"],[66765,1,"𐓵"],[66766,1,"𐓶"],[66767,1,"𐓷"],[66768,1,"𐓸"],[66769,1,"𐓹"],[66770,1,"𐓺"],[66771,1,"𐓻"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"𐖗"],[66929,1,"𐖘"],[66930,1,"𐖙"],[66931,1,"𐖚"],[66932,1,"𐖛"],[66933,1,"𐖜"],[66934,1,"𐖝"],[66935,1,"𐖞"],[66936,1,"𐖟"],[66937,1,"𐖠"],[66938,1,"𐖡"],[66939,3],[66940,1,"𐖣"],[66941,1,"𐖤"],[66942,1,"𐖥"],[66943,1,"𐖦"],[66944,1,"𐖧"],[66945,1,"𐖨"],[66946,1,"𐖩"],[66947,1,"𐖪"],[66948,1,"𐖫"],[66949,1,"𐖬"],[66950,1,"𐖭"],[66951,1,"𐖮"],[66952,1,"𐖯"],[66953,1,"𐖰"],[66954,1,"𐖱"],[66955,3],[66956,1,"𐖳"],[66957,1,"𐖴"],[66958,1,"𐖵"],[66959,1,"𐖶"],[66960,1,"𐖷"],[66961,1,"𐖸"],[66962,1,"𐖹"],[66963,3],[66964,1,"𐖻"],[66965,1,"𐖼"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"ː"],[67458,1,"ˑ"],[67459,1,"æ"],[67460,1,"ʙ"],[67461,1,"ɓ"],[67462,3],[67463,1,"ʣ"],[67464,1,"ꭦ"],[67465,1,"ʥ"],[67466,1,"ʤ"],[67467,1,"ɖ"],[67468,1,"ɗ"],[67469,1,"ᶑ"],[67470,1,"ɘ"],[67471,1,"ɞ"],[67472,1,"ʩ"],[67473,1,"ɤ"],[67474,1,"ɢ"],[67475,1,"ɠ"],[67476,1,"ʛ"],[67477,1,"ħ"],[67478,1,"ʜ"],[67479,1,"ɧ"],[67480,1,"ʄ"],[67481,1,"ʪ"],[67482,1,"ʫ"],[67483,1,"ɬ"],[67484,1,"𝼄"],[67485,1,"ꞎ"],[67486,1,"ɮ"],[67487,1,"𝼅"],[67488,1,"ʎ"],[67489,1,"𝼆"],[67490,1,"ø"],[67491,1,"ɶ"],[67492,1,"ɷ"],[67493,1,"q"],[67494,1,"ɺ"],[67495,1,"𝼈"],[67496,1,"ɽ"],[67497,1,"ɾ"],[67498,1,"ʀ"],[67499,1,"ʨ"],[67500,1,"ʦ"],[67501,1,"ꭧ"],[67502,1,"ʧ"],[67503,1,"ʈ"],[67504,1,"ⱱ"],[67505,3],[67506,1,"ʏ"],[67507,1,"ʡ"],[67508,1,"ʢ"],[67509,1,"ʘ"],[67510,1,"ǀ"],[67511,1,"ǁ"],[67512,1,"ǂ"],[67513,1,"𝼊"],[67514,1,"𝼞"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"𐳀"],[68737,1,"𐳁"],[68738,1,"𐳂"],[68739,1,"𐳃"],[68740,1,"𐳄"],[68741,1,"𐳅"],[68742,1,"𐳆"],[68743,1,"𐳇"],[68744,1,"𐳈"],[68745,1,"𐳉"],[68746,1,"𐳊"],[68747,1,"𐳋"],[68748,1,"𐳌"],[68749,1,"𐳍"],[68750,1,"𐳎"],[68751,1,"𐳏"],[68752,1,"𐳐"],[68753,1,"𐳑"],[68754,1,"𐳒"],[68755,1,"𐳓"],[68756,1,"𐳔"],[68757,1,"𐳕"],[68758,1,"𐳖"],[68759,1,"𐳗"],[68760,1,"𐳘"],[68761,1,"𐳙"],[68762,1,"𐳚"],[68763,1,"𐳛"],[68764,1,"𐳜"],[68765,1,"𐳝"],[68766,1,"𐳞"],[68767,1,"𐳟"],[68768,1,"𐳠"],[68769,1,"𐳡"],[68770,1,"𐳢"],[68771,1,"𐳣"],[68772,1,"𐳤"],[68773,1,"𐳥"],[68774,1,"𐳦"],[68775,1,"𐳧"],[68776,1,"𐳨"],[68777,1,"𐳩"],[68778,1,"𐳪"],[68779,1,"𐳫"],[68780,1,"𐳬"],[68781,1,"𐳭"],[68782,1,"𐳮"],[68783,1,"𐳯"],[68784,1,"𐳰"],[68785,1,"𐳱"],[68786,1,"𐳲"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69375],3],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"𑣀"],[71841,1,"𑣁"],[71842,1,"𑣂"],[71843,1,"𑣃"],[71844,1,"𑣄"],[71845,1,"𑣅"],[71846,1,"𑣆"],[71847,1,"𑣇"],[71848,1,"𑣈"],[71849,1,"𑣉"],[71850,1,"𑣊"],[71851,1,"𑣋"],[71852,1,"𑣌"],[71853,1,"𑣍"],[71854,1,"𑣎"],[71855,1,"𑣏"],[71856,1,"𑣐"],[71857,1,"𑣑"],[71858,1,"𑣒"],[71859,1,"𑣓"],[71860,1,"𑣔"],[71861,1,"𑣕"],[71862,1,"𑣖"],[71863,1,"𑣗"],[71864,1,"𑣘"],[71865,1,"𑣙"],[71866,1,"𑣚"],[71867,1,"𑣛"],[71868,1,"𑣜"],[71869,1,"𑣝"],[71870,1,"𑣞"],[71871,1,"𑣟"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,3],[[78896,78904],3],[[78905,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"𖹠"],[93761,1,"𖹡"],[93762,1,"𖹢"],[93763,1,"𖹣"],[93764,1,"𖹤"],[93765,1,"𖹥"],[93766,1,"𖹦"],[93767,1,"𖹧"],[93768,1,"𖹨"],[93769,1,"𖹩"],[93770,1,"𖹪"],[93771,1,"𖹫"],[93772,1,"𖹬"],[93773,1,"𖹭"],[93774,1,"𖹮"],[93775,1,"𖹯"],[93776,1,"𖹰"],[93777,1,"𖹱"],[93778,1,"𖹲"],[93779,1,"𖹳"],[93780,1,"𖹴"],[93781,1,"𖹵"],[93782,1,"𖹶"],[93783,1,"𖹷"],[93784,1,"𖹸"],[93785,1,"𖹹"],[93786,1,"𖹺"],[93787,1,"𖹻"],[93788,1,"𖹼"],[93789,1,"𖹽"],[93790,1,"𖹾"],[93791,1,"𖹿"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110927],3],[[110928,110930],2],[[110931,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"𝅗𝅥"],[119135,1,"𝅘𝅥"],[119136,1,"𝅘𝅥𝅮"],[119137,1,"𝅘𝅥𝅯"],[119138,1,"𝅘𝅥𝅰"],[119139,1,"𝅘𝅥𝅱"],[119140,1,"𝅘𝅥𝅲"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"𝆹𝅥"],[119228,1,"𝆺𝅥"],[119229,1,"𝆹𝅥𝅮"],[119230,1,"𝆺𝅥𝅮"],[119231,1,"𝆹𝅥𝅯"],[119232,1,"𝆺𝅥𝅯"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"ı"],[120485,1,"ȷ"],[[120486,120487],3],[120488,1,"α"],[120489,1,"β"],[120490,1,"γ"],[120491,1,"δ"],[120492,1,"ε"],[120493,1,"ζ"],[120494,1,"η"],[120495,1,"θ"],[120496,1,"ι"],[120497,1,"κ"],[120498,1,"λ"],[120499,1,"μ"],[120500,1,"ν"],[120501,1,"ξ"],[120502,1,"ο"],[120503,1,"π"],[120504,1,"ρ"],[120505,1,"θ"],[120506,1,"σ"],[120507,1,"τ"],[120508,1,"υ"],[120509,1,"φ"],[120510,1,"χ"],[120511,1,"ψ"],[120512,1,"ω"],[120513,1,"∇"],[120514,1,"α"],[120515,1,"β"],[120516,1,"γ"],[120517,1,"δ"],[120518,1,"ε"],[120519,1,"ζ"],[120520,1,"η"],[120521,1,"θ"],[120522,1,"ι"],[120523,1,"κ"],[120524,1,"λ"],[120525,1,"μ"],[120526,1,"ν"],[120527,1,"ξ"],[120528,1,"ο"],[120529,1,"π"],[120530,1,"ρ"],[[120531,120532],1,"σ"],[120533,1,"τ"],[120534,1,"υ"],[120535,1,"φ"],[120536,1,"χ"],[120537,1,"ψ"],[120538,1,"ω"],[120539,1,"∂"],[120540,1,"ε"],[120541,1,"θ"],[120542,1,"κ"],[120543,1,"φ"],[120544,1,"ρ"],[120545,1,"π"],[120546,1,"α"],[120547,1,"β"],[120548,1,"γ"],[120549,1,"δ"],[120550,1,"ε"],[120551,1,"ζ"],[120552,1,"η"],[120553,1,"θ"],[120554,1,"ι"],[120555,1,"κ"],[120556,1,"λ"],[120557,1,"μ"],[120558,1,"ν"],[120559,1,"ξ"],[120560,1,"ο"],[120561,1,"π"],[120562,1,"ρ"],[120563,1,"θ"],[120564,1,"σ"],[120565,1,"τ"],[120566,1,"υ"],[120567,1,"φ"],[120568,1,"χ"],[120569,1,"ψ"],[120570,1,"ω"],[120571,1,"∇"],[120572,1,"α"],[120573,1,"β"],[120574,1,"γ"],[120575,1,"δ"],[120576,1,"ε"],[120577,1,"ζ"],[120578,1,"η"],[120579,1,"θ"],[120580,1,"ι"],[120581,1,"κ"],[120582,1,"λ"],[120583,1,"μ"],[120584,1,"ν"],[120585,1,"ξ"],[120586,1,"ο"],[120587,1,"π"],[120588,1,"ρ"],[[120589,120590],1,"σ"],[120591,1,"τ"],[120592,1,"υ"],[120593,1,"φ"],[120594,1,"χ"],[120595,1,"ψ"],[120596,1,"ω"],[120597,1,"∂"],[120598,1,"ε"],[120599,1,"θ"],[120600,1,"κ"],[120601,1,"φ"],[120602,1,"ρ"],[120603,1,"π"],[120604,1,"α"],[120605,1,"β"],[120606,1,"γ"],[120607,1,"δ"],[120608,1,"ε"],[120609,1,"ζ"],[120610,1,"η"],[120611,1,"θ"],[120612,1,"ι"],[120613,1,"κ"],[120614,1,"λ"],[120615,1,"μ"],[120616,1,"ν"],[120617,1,"ξ"],[120618,1,"ο"],[120619,1,"π"],[120620,1,"ρ"],[120621,1,"θ"],[120622,1,"σ"],[120623,1,"τ"],[120624,1,"υ"],[120625,1,"φ"],[120626,1,"χ"],[120627,1,"ψ"],[120628,1,"ω"],[120629,1,"∇"],[120630,1,"α"],[120631,1,"β"],[120632,1,"γ"],[120633,1,"δ"],[120634,1,"ε"],[120635,1,"ζ"],[120636,1,"η"],[120637,1,"θ"],[120638,1,"ι"],[120639,1,"κ"],[120640,1,"λ"],[120641,1,"μ"],[120642,1,"ν"],[120643,1,"ξ"],[120644,1,"ο"],[120645,1,"π"],[120646,1,"ρ"],[[120647,120648],1,"σ"],[120649,1,"τ"],[120650,1,"υ"],[120651,1,"φ"],[120652,1,"χ"],[120653,1,"ψ"],[120654,1,"ω"],[120655,1,"∂"],[120656,1,"ε"],[120657,1,"θ"],[120658,1,"κ"],[120659,1,"φ"],[120660,1,"ρ"],[120661,1,"π"],[120662,1,"α"],[120663,1,"β"],[120664,1,"γ"],[120665,1,"δ"],[120666,1,"ε"],[120667,1,"ζ"],[120668,1,"η"],[120669,1,"θ"],[120670,1,"ι"],[120671,1,"κ"],[120672,1,"λ"],[120673,1,"μ"],[120674,1,"ν"],[120675,1,"ξ"],[120676,1,"ο"],[120677,1,"π"],[120678,1,"ρ"],[120679,1,"θ"],[120680,1,"σ"],[120681,1,"τ"],[120682,1,"υ"],[120683,1,"φ"],[120684,1,"χ"],[120685,1,"ψ"],[120686,1,"ω"],[120687,1,"∇"],[120688,1,"α"],[120689,1,"β"],[120690,1,"γ"],[120691,1,"δ"],[120692,1,"ε"],[120693,1,"ζ"],[120694,1,"η"],[120695,1,"θ"],[120696,1,"ι"],[120697,1,"κ"],[120698,1,"λ"],[120699,1,"μ"],[120700,1,"ν"],[120701,1,"ξ"],[120702,1,"ο"],[120703,1,"π"],[120704,1,"ρ"],[[120705,120706],1,"σ"],[120707,1,"τ"],[120708,1,"υ"],[120709,1,"φ"],[120710,1,"χ"],[120711,1,"ψ"],[120712,1,"ω"],[120713,1,"∂"],[120714,1,"ε"],[120715,1,"θ"],[120716,1,"κ"],[120717,1,"φ"],[120718,1,"ρ"],[120719,1,"π"],[120720,1,"α"],[120721,1,"β"],[120722,1,"γ"],[120723,1,"δ"],[120724,1,"ε"],[120725,1,"ζ"],[120726,1,"η"],[120727,1,"θ"],[120728,1,"ι"],[120729,1,"κ"],[120730,1,"λ"],[120731,1,"μ"],[120732,1,"ν"],[120733,1,"ξ"],[120734,1,"ο"],[120735,1,"π"],[120736,1,"ρ"],[120737,1,"θ"],[120738,1,"σ"],[120739,1,"τ"],[120740,1,"υ"],[120741,1,"φ"],[120742,1,"χ"],[120743,1,"ψ"],[120744,1,"ω"],[120745,1,"∇"],[120746,1,"α"],[120747,1,"β"],[120748,1,"γ"],[120749,1,"δ"],[120750,1,"ε"],[120751,1,"ζ"],[120752,1,"η"],[120753,1,"θ"],[120754,1,"ι"],[120755,1,"κ"],[120756,1,"λ"],[120757,1,"μ"],[120758,1,"ν"],[120759,1,"ξ"],[120760,1,"ο"],[120761,1,"π"],[120762,1,"ρ"],[[120763,120764],1,"σ"],[120765,1,"τ"],[120766,1,"υ"],[120767,1,"φ"],[120768,1,"χ"],[120769,1,"ψ"],[120770,1,"ω"],[120771,1,"∂"],[120772,1,"ε"],[120773,1,"θ"],[120774,1,"κ"],[120775,1,"φ"],[120776,1,"ρ"],[120777,1,"π"],[[120778,120779],1,"ϝ"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"𞤢"],[125185,1,"𞤣"],[125186,1,"𞤤"],[125187,1,"𞤥"],[125188,1,"𞤦"],[125189,1,"𞤧"],[125190,1,"𞤨"],[125191,1,"𞤩"],[125192,1,"𞤪"],[125193,1,"𞤫"],[125194,1,"𞤬"],[125195,1,"𞤭"],[125196,1,"𞤮"],[125197,1,"𞤯"],[125198,1,"𞤰"],[125199,1,"𞤱"],[125200,1,"𞤲"],[125201,1,"𞤳"],[125202,1,"𞤴"],[125203,1,"𞤵"],[125204,1,"𞤶"],[125205,1,"𞤷"],[125206,1,"𞤸"],[125207,1,"𞤹"],[125208,1,"𞤺"],[125209,1,"𞤻"],[125210,1,"𞤼"],[125211,1,"𞤽"],[125212,1,"𞤾"],[125213,1,"𞤿"],[125214,1,"𞥀"],[125215,1,"𞥁"],[125216,1,"𞥂"],[125217,1,"𞥃"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"ا"],[126465,1,"ب"],[126466,1,"ج"],[126467,1,"د"],[126468,3],[126469,1,"و"],[126470,1,"ز"],[126471,1,"ح"],[126472,1,"ط"],[126473,1,"ي"],[126474,1,"ك"],[126475,1,"ل"],[126476,1,"م"],[126477,1,"ن"],[126478,1,"س"],[126479,1,"ع"],[126480,1,"ف"],[126481,1,"ص"],[126482,1,"ق"],[126483,1,"ر"],[126484,1,"ش"],[126485,1,"ت"],[126486,1,"ث"],[126487,1,"خ"],[126488,1,"ذ"],[126489,1,"ض"],[126490,1,"ظ"],[126491,1,"غ"],[126492,1,"ٮ"],[126493,1,"ں"],[126494,1,"ڡ"],[126495,1,"ٯ"],[126496,3],[126497,1,"ب"],[126498,1,"ج"],[126499,3],[126500,1,"ه"],[[126501,126502],3],[126503,1,"ح"],[126504,3],[126505,1,"ي"],[126506,1,"ك"],[126507,1,"ل"],[126508,1,"م"],[126509,1,"ن"],[126510,1,"س"],[126511,1,"ع"],[126512,1,"ف"],[126513,1,"ص"],[126514,1,"ق"],[126515,3],[126516,1,"ش"],[126517,1,"ت"],[126518,1,"ث"],[126519,1,"خ"],[126520,3],[126521,1,"ض"],[126522,3],[126523,1,"غ"],[[126524,126529],3],[126530,1,"ج"],[[126531,126534],3],[126535,1,"ح"],[126536,3],[126537,1,"ي"],[126538,3],[126539,1,"ل"],[126540,3],[126541,1,"ن"],[126542,1,"س"],[126543,1,"ع"],[126544,3],[126545,1,"ص"],[126546,1,"ق"],[126547,3],[126548,1,"ش"],[[126549,126550],3],[126551,1,"خ"],[126552,3],[126553,1,"ض"],[126554,3],[126555,1,"غ"],[126556,3],[126557,1,"ں"],[126558,3],[126559,1,"ٯ"],[126560,3],[126561,1,"ب"],[126562,1,"ج"],[126563,3],[126564,1,"ه"],[[126565,126566],3],[126567,1,"ح"],[126568,1,"ط"],[126569,1,"ي"],[126570,1,"ك"],[126571,3],[126572,1,"م"],[126573,1,"ن"],[126574,1,"س"],[126575,1,"ع"],[126576,1,"ف"],[126577,1,"ص"],[126578,1,"ق"],[126579,3],[126580,1,"ش"],[126581,1,"ت"],[126582,1,"ث"],[126583,1,"خ"],[126584,3],[126585,1,"ض"],[126586,1,"ظ"],[126587,1,"غ"],[126588,1,"ٮ"],[126589,3],[126590,1,"ڡ"],[126591,3],[126592,1,"ا"],[126593,1,"ب"],[126594,1,"ج"],[126595,1,"د"],[126596,1,"ه"],[126597,1,"و"],[126598,1,"ز"],[126599,1,"ح"],[126600,1,"ط"],[126601,1,"ي"],[126602,3],[126603,1,"ل"],[126604,1,"م"],[126605,1,"ن"],[126606,1,"س"],[126607,1,"ع"],[126608,1,"ف"],[126609,1,"ص"],[126610,1,"ق"],[126611,1,"ر"],[126612,1,"ش"],[126613,1,"ت"],[126614,1,"ث"],[126615,1,"خ"],[126616,1,"ذ"],[126617,1,"ض"],[126618,1,"ظ"],[126619,1,"غ"],[[126620,126624],3],[126625,1,"ب"],[126626,1,"ج"],[126627,1,"د"],[126628,3],[126629,1,"و"],[126630,1,"ز"],[126631,1,"ح"],[126632,1,"ط"],[126633,1,"ي"],[126634,3],[126635,1,"ل"],[126636,1,"م"],[126637,1,"ن"],[126638,1,"س"],[126639,1,"ع"],[126640,1,"ف"],[126641,1,"ص"],[126642,1,"ق"],[126643,1,"ر"],[126644,1,"ش"],[126645,1,"ت"],[126646,1,"ث"],[126647,1,"خ"],[126648,1,"ذ"],[126649,1,"ض"],[126650,1,"ظ"],[126651,1,"غ"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"〔s〕"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"ほか"],[127489,1,"ココ"],[127490,1,"サ"],[[127491,127503],3],[127504,1,"手"],[127505,1,"字"],[127506,1,"双"],[127507,1,"デ"],[127508,1,"二"],[127509,1,"多"],[127510,1,"解"],[127511,1,"天"],[127512,1,"交"],[127513,1,"映"],[127514,1,"無"],[127515,1,"料"],[127516,1,"前"],[127517,1,"後"],[127518,1,"再"],[127519,1,"新"],[127520,1,"初"],[127521,1,"終"],[127522,1,"生"],[127523,1,"販"],[127524,1,"声"],[127525,1,"吹"],[127526,1,"演"],[127527,1,"投"],[127528,1,"捕"],[127529,1,"一"],[127530,1,"三"],[127531,1,"遊"],[127532,1,"左"],[127533,1,"中"],[127534,1,"右"],[127535,1,"指"],[127536,1,"走"],[127537,1,"打"],[127538,1,"禁"],[127539,1,"空"],[127540,1,"合"],[127541,1,"満"],[127542,1,"有"],[127543,1,"月"],[127544,1,"申"],[127545,1,"割"],[127546,1,"営"],[127547,1,"配"],[[127548,127551],3],[127552,1,"〔本〕"],[127553,1,"〔三〕"],[127554,1,"〔二〕"],[127555,1,"〔安〕"],[127556,1,"〔点〕"],[127557,1,"〔打〕"],[127558,1,"〔盗〕"],[127559,1,"〔勝〕"],[127560,1,"〔敗〕"],[[127561,127567],3],[127568,1,"得"],[127569,1,"可"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128732],3],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128895],3],[[128896,128980],2],[[128981,128984],2],[[128985,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],3],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],3],[[129712,129718],2],[[129719,129722],2],[[129723,129727],3],[[129728,129730],2],[[129731,129733],2],[[129734,129743],3],[[129744,129750],2],[[129751,129753],2],[[129754,129759],3],[[129760,129767],2],[[129768,129775],3],[[129776,129782],2],[[129783,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[[177977,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,194559],3],[194560,1,"丽"],[194561,1,"丸"],[194562,1,"乁"],[194563,1,"𠄢"],[194564,1,"你"],[194565,1,"侮"],[194566,1,"侻"],[194567,1,"倂"],[194568,1,"偺"],[194569,1,"備"],[194570,1,"僧"],[194571,1,"像"],[194572,1,"㒞"],[194573,1,"𠘺"],[194574,1,"免"],[194575,1,"兔"],[194576,1,"兤"],[194577,1,"具"],[194578,1,"𠔜"],[194579,1,"㒹"],[194580,1,"內"],[194581,1,"再"],[194582,1,"𠕋"],[194583,1,"冗"],[194584,1,"冤"],[194585,1,"仌"],[194586,1,"冬"],[194587,1,"况"],[194588,1,"𩇟"],[194589,1,"凵"],[194590,1,"刃"],[194591,1,"㓟"],[194592,1,"刻"],[194593,1,"剆"],[194594,1,"割"],[194595,1,"剷"],[194596,1,"㔕"],[194597,1,"勇"],[194598,1,"勉"],[194599,1,"勤"],[194600,1,"勺"],[194601,1,"包"],[194602,1,"匆"],[194603,1,"北"],[194604,1,"卉"],[194605,1,"卑"],[194606,1,"博"],[194607,1,"即"],[194608,1,"卽"],[[194609,194611],1,"卿"],[194612,1,"𠨬"],[194613,1,"灰"],[194614,1,"及"],[194615,1,"叟"],[194616,1,"𠭣"],[194617,1,"叫"],[194618,1,"叱"],[194619,1,"吆"],[194620,1,"咞"],[194621,1,"吸"],[194622,1,"呈"],[194623,1,"周"],[194624,1,"咢"],[194625,1,"哶"],[194626,1,"唐"],[194627,1,"啓"],[194628,1,"啣"],[[194629,194630],1,"善"],[194631,1,"喙"],[194632,1,"喫"],[194633,1,"喳"],[194634,1,"嗂"],[194635,1,"圖"],[194636,1,"嘆"],[194637,1,"圗"],[194638,1,"噑"],[194639,1,"噴"],[194640,1,"切"],[194641,1,"壮"],[194642,1,"城"],[194643,1,"埴"],[194644,1,"堍"],[194645,1,"型"],[194646,1,"堲"],[194647,1,"報"],[194648,1,"墬"],[194649,1,"𡓤"],[194650,1,"売"],[194651,1,"壷"],[194652,1,"夆"],[194653,1,"多"],[194654,1,"夢"],[194655,1,"奢"],[194656,1,"𡚨"],[194657,1,"𡛪"],[194658,1,"姬"],[194659,1,"娛"],[194660,1,"娧"],[194661,1,"姘"],[194662,1,"婦"],[194663,1,"㛮"],[194664,3],[194665,1,"嬈"],[[194666,194667],1,"嬾"],[194668,1,"𡧈"],[194669,1,"寃"],[194670,1,"寘"],[194671,1,"寧"],[194672,1,"寳"],[194673,1,"𡬘"],[194674,1,"寿"],[194675,1,"将"],[194676,3],[194677,1,"尢"],[194678,1,"㞁"],[194679,1,"屠"],[194680,1,"屮"],[194681,1,"峀"],[194682,1,"岍"],[194683,1,"𡷤"],[194684,1,"嵃"],[194685,1,"𡷦"],[194686,1,"嵮"],[194687,1,"嵫"],[194688,1,"嵼"],[194689,1,"巡"],[194690,1,"巢"],[194691,1,"㠯"],[194692,1,"巽"],[194693,1,"帨"],[194694,1,"帽"],[194695,1,"幩"],[194696,1,"㡢"],[194697,1,"𢆃"],[194698,1,"㡼"],[194699,1,"庰"],[194700,1,"庳"],[194701,1,"庶"],[194702,1,"廊"],[194703,1,"𪎒"],[194704,1,"廾"],[[194705,194706],1,"𢌱"],[194707,1,"舁"],[[194708,194709],1,"弢"],[194710,1,"㣇"],[194711,1,"𣊸"],[194712,1,"𦇚"],[194713,1,"形"],[194714,1,"彫"],[194715,1,"㣣"],[194716,1,"徚"],[194717,1,"忍"],[194718,1,"志"],[194719,1,"忹"],[194720,1,"悁"],[194721,1,"㤺"],[194722,1,"㤜"],[194723,1,"悔"],[194724,1,"𢛔"],[194725,1,"惇"],[194726,1,"慈"],[194727,1,"慌"],[194728,1,"慎"],[194729,1,"慌"],[194730,1,"慺"],[194731,1,"憎"],[194732,1,"憲"],[194733,1,"憤"],[194734,1,"憯"],[194735,1,"懞"],[194736,1,"懲"],[194737,1,"懶"],[194738,1,"成"],[194739,1,"戛"],[194740,1,"扝"],[194741,1,"抱"],[194742,1,"拔"],[194743,1,"捐"],[194744,1,"𢬌"],[194745,1,"挽"],[194746,1,"拼"],[194747,1,"捨"],[194748,1,"掃"],[194749,1,"揤"],[194750,1,"𢯱"],[194751,1,"搢"],[194752,1,"揅"],[194753,1,"掩"],[194754,1,"㨮"],[194755,1,"摩"],[194756,1,"摾"],[194757,1,"撝"],[194758,1,"摷"],[194759,1,"㩬"],[194760,1,"敏"],[194761,1,"敬"],[194762,1,"𣀊"],[194763,1,"旣"],[194764,1,"書"],[194765,1,"晉"],[194766,1,"㬙"],[194767,1,"暑"],[194768,1,"㬈"],[194769,1,"㫤"],[194770,1,"冒"],[194771,1,"冕"],[194772,1,"最"],[194773,1,"暜"],[194774,1,"肭"],[194775,1,"䏙"],[194776,1,"朗"],[194777,1,"望"],[194778,1,"朡"],[194779,1,"杞"],[194780,1,"杓"],[194781,1,"𣏃"],[194782,1,"㭉"],[194783,1,"柺"],[194784,1,"枅"],[194785,1,"桒"],[194786,1,"梅"],[194787,1,"𣑭"],[194788,1,"梎"],[194789,1,"栟"],[194790,1,"椔"],[194791,1,"㮝"],[194792,1,"楂"],[194793,1,"榣"],[194794,1,"槪"],[194795,1,"檨"],[194796,1,"𣚣"],[194797,1,"櫛"],[194798,1,"㰘"],[194799,1,"次"],[194800,1,"𣢧"],[194801,1,"歔"],[194802,1,"㱎"],[194803,1,"歲"],[194804,1,"殟"],[194805,1,"殺"],[194806,1,"殻"],[194807,1,"𣪍"],[194808,1,"𡴋"],[194809,1,"𣫺"],[194810,1,"汎"],[194811,1,"𣲼"],[194812,1,"沿"],[194813,1,"泍"],[194814,1,"汧"],[194815,1,"洖"],[194816,1,"派"],[194817,1,"海"],[194818,1,"流"],[194819,1,"浩"],[194820,1,"浸"],[194821,1,"涅"],[194822,1,"𣴞"],[194823,1,"洴"],[194824,1,"港"],[194825,1,"湮"],[194826,1,"㴳"],[194827,1,"滋"],[194828,1,"滇"],[194829,1,"𣻑"],[194830,1,"淹"],[194831,1,"潮"],[194832,1,"𣽞"],[194833,1,"𣾎"],[194834,1,"濆"],[194835,1,"瀹"],[194836,1,"瀞"],[194837,1,"瀛"],[194838,1,"㶖"],[194839,1,"灊"],[194840,1,"災"],[194841,1,"灷"],[194842,1,"炭"],[194843,1,"𠔥"],[194844,1,"煅"],[194845,1,"𤉣"],[194846,1,"熜"],[194847,3],[194848,1,"爨"],[194849,1,"爵"],[194850,1,"牐"],[194851,1,"𤘈"],[194852,1,"犀"],[194853,1,"犕"],[194854,1,"𤜵"],[194855,1,"𤠔"],[194856,1,"獺"],[194857,1,"王"],[194858,1,"㺬"],[194859,1,"玥"],[[194860,194861],1,"㺸"],[194862,1,"瑇"],[194863,1,"瑜"],[194864,1,"瑱"],[194865,1,"璅"],[194866,1,"瓊"],[194867,1,"㼛"],[194868,1,"甤"],[194869,1,"𤰶"],[194870,1,"甾"],[194871,1,"𤲒"],[194872,1,"異"],[194873,1,"𢆟"],[194874,1,"瘐"],[194875,1,"𤾡"],[194876,1,"𤾸"],[194877,1,"𥁄"],[194878,1,"㿼"],[194879,1,"䀈"],[194880,1,"直"],[194881,1,"𥃳"],[194882,1,"𥃲"],[194883,1,"𥄙"],[194884,1,"𥄳"],[194885,1,"眞"],[[194886,194887],1,"真"],[194888,1,"睊"],[194889,1,"䀹"],[194890,1,"瞋"],[194891,1,"䁆"],[194892,1,"䂖"],[194893,1,"𥐝"],[194894,1,"硎"],[194895,1,"碌"],[194896,1,"磌"],[194897,1,"䃣"],[194898,1,"𥘦"],[194899,1,"祖"],[194900,1,"𥚚"],[194901,1,"𥛅"],[194902,1,"福"],[194903,1,"秫"],[194904,1,"䄯"],[194905,1,"穀"],[194906,1,"穊"],[194907,1,"穏"],[194908,1,"𥥼"],[[194909,194910],1,"𥪧"],[194911,3],[194912,1,"䈂"],[194913,1,"𥮫"],[194914,1,"篆"],[194915,1,"築"],[194916,1,"䈧"],[194917,1,"𥲀"],[194918,1,"糒"],[194919,1,"䊠"],[194920,1,"糨"],[194921,1,"糣"],[194922,1,"紀"],[194923,1,"𥾆"],[194924,1,"絣"],[194925,1,"䌁"],[194926,1,"緇"],[194927,1,"縂"],[194928,1,"繅"],[194929,1,"䌴"],[194930,1,"𦈨"],[194931,1,"𦉇"],[194932,1,"䍙"],[194933,1,"𦋙"],[194934,1,"罺"],[194935,1,"𦌾"],[194936,1,"羕"],[194937,1,"翺"],[194938,1,"者"],[194939,1,"𦓚"],[194940,1,"𦔣"],[194941,1,"聠"],[194942,1,"𦖨"],[194943,1,"聰"],[194944,1,"𣍟"],[194945,1,"䏕"],[194946,1,"育"],[194947,1,"脃"],[194948,1,"䐋"],[194949,1,"脾"],[194950,1,"媵"],[194951,1,"𦞧"],[194952,1,"𦞵"],[194953,1,"𣎓"],[194954,1,"𣎜"],[194955,1,"舁"],[194956,1,"舄"],[194957,1,"辞"],[194958,1,"䑫"],[194959,1,"芑"],[194960,1,"芋"],[194961,1,"芝"],[194962,1,"劳"],[194963,1,"花"],[194964,1,"芳"],[194965,1,"芽"],[194966,1,"苦"],[194967,1,"𦬼"],[194968,1,"若"],[194969,1,"茝"],[194970,1,"荣"],[194971,1,"莭"],[194972,1,"茣"],[194973,1,"莽"],[194974,1,"菧"],[194975,1,"著"],[194976,1,"荓"],[194977,1,"菊"],[194978,1,"菌"],[194979,1,"菜"],[194980,1,"𦰶"],[194981,1,"𦵫"],[194982,1,"𦳕"],[194983,1,"䔫"],[194984,1,"蓱"],[194985,1,"蓳"],[194986,1,"蔖"],[194987,1,"𧏊"],[194988,1,"蕤"],[194989,1,"𦼬"],[194990,1,"䕝"],[194991,1,"䕡"],[194992,1,"𦾱"],[194993,1,"𧃒"],[194994,1,"䕫"],[194995,1,"虐"],[194996,1,"虜"],[194997,1,"虧"],[194998,1,"虩"],[194999,1,"蚩"],[195000,1,"蚈"],[195001,1,"蜎"],[195002,1,"蛢"],[195003,1,"蝹"],[195004,1,"蜨"],[195005,1,"蝫"],[195006,1,"螆"],[195007,3],[195008,1,"蟡"],[195009,1,"蠁"],[195010,1,"䗹"],[195011,1,"衠"],[195012,1,"衣"],[195013,1,"𧙧"],[195014,1,"裗"],[195015,1,"裞"],[195016,1,"䘵"],[195017,1,"裺"],[195018,1,"㒻"],[195019,1,"𧢮"],[195020,1,"𧥦"],[195021,1,"䚾"],[195022,1,"䛇"],[195023,1,"誠"],[195024,1,"諭"],[195025,1,"變"],[195026,1,"豕"],[195027,1,"𧲨"],[195028,1,"貫"],[195029,1,"賁"],[195030,1,"贛"],[195031,1,"起"],[195032,1,"𧼯"],[195033,1,"𠠄"],[195034,1,"跋"],[195035,1,"趼"],[195036,1,"跰"],[195037,1,"𠣞"],[195038,1,"軔"],[195039,1,"輸"],[195040,1,"𨗒"],[195041,1,"𨗭"],[195042,1,"邔"],[195043,1,"郱"],[195044,1,"鄑"],[195045,1,"𨜮"],[195046,1,"鄛"],[195047,1,"鈸"],[195048,1,"鋗"],[195049,1,"鋘"],[195050,1,"鉼"],[195051,1,"鏹"],[195052,1,"鐕"],[195053,1,"𨯺"],[195054,1,"開"],[195055,1,"䦕"],[195056,1,"閷"],[195057,1,"𨵷"],[195058,1,"䧦"],[195059,1,"雃"],[195060,1,"嶲"],[195061,1,"霣"],[195062,1,"𩅅"],[195063,1,"𩈚"],[195064,1,"䩮"],[195065,1,"䩶"],[195066,1,"韠"],[195067,1,"𩐊"],[195068,1,"䪲"],[195069,1,"𩒖"],[[195070,195071],1,"頋"],[195072,1,"頩"],[195073,1,"𩖶"],[195074,1,"飢"],[195075,1,"䬳"],[195076,1,"餩"],[195077,1,"馧"],[195078,1,"駂"],[195079,1,"駾"],[195080,1,"䯎"],[195081,1,"𩬰"],[195082,1,"鬒"],[195083,1,"鱀"],[195084,1,"鳽"],[195085,1,"䳎"],[195086,1,"䳭"],[195087,1,"鵧"],[195088,1,"𪃎"],[195089,1,"䳸"],[195090,1,"𪄅"],[195091,1,"𪈎"],[195092,1,"𪊑"],[195093,1,"麻"],[195094,1,"䵖"],[195095,1,"黹"],[195096,1,"黾"],[195097,1,"鼅"],[195098,1,"鼏"],[195099,1,"鼖"],[195100,1,"鼻"],[195101,1,"𪘀"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]')},6615:e=>{"use strict";e.exports={i8:"5.7.0"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}},s=!0;try{e[n].call(i.exports,i,i.exports,r),s=!1}finally{s&&delete t[n]}return i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{activate:()=>tn,configureStore:()=>Gr,deactivate:()=>rn,default:()=>nn,metadata:()=>Xr});var e=r(9497),t=r.n(e),o=r(3100),i=r(1110),s=r(8316);let a=function(e){e()};const u=()=>a,c=(0,e.createContext)(null);let l=null;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var p=r(3463),f=r.n(p),m=r(3920);const g=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function y(e,t,r,n,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:s}){let a,u,c,l,d,h=!1;return function(p,f){return h?function(h,p){const f=!i(p,u),m=!o(h,a,p,u);return a=h,u=p,f&&m?(c=e(a,u),t.dependsOnOwnProps&&(l=t(n,u)),d=r(c,l,u),d):f?(e.dependsOnOwnProps&&(c=e(a,u)),t.dependsOnOwnProps&&(l=t(n,u)),d=r(c,l,u),d):m?function(){const t=e(a,u),n=!s(t,c);return c=t,n&&(d=r(c,l,u)),d}():d}(p,f):(a=p,u=f,c=e(a,u),l=t(n,u),d=r(c,l,u),h=!0,d)}}function E(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function A(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function v(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=A(e);let o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=A(o),o=n(t,r)),o},n}}function C(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function b(e,t,r){return d({},r,e,t)}const S={notify(){},get:()=>[]};function w(e,t){let r,n=S;function o(){s.onStateChange&&s.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){const e=u();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}const s={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=S)},getListeners:()=>n};return s}const O="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function x(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function _(e,t){if(x(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!x(e[r[n]],t[r[n]]))return!1;return!0}const D=["reactReduxForwardedRef"];let T=()=>{throw new Error("uSES not initialized!")};const I=[null,null];function B(e,t,r,n,o,i){e.current=n,r.current=!1,o.current&&(o.current=null,i())}function R(e,t){return e===t}const F=function(r,n,o,{pure:i,areStatesEqual:s=R,areOwnPropsEqual:a=_,areStatePropsEqual:u=_,areMergedPropsEqual:l=_,forwardRef:p=!1,context:A=c}={}){const S=A,x=function(e){return e?"function"==typeof e?v(e):C(e,"mapStateToProps"):E((()=>({})))}(r),F=function(e){return e&&"object"==typeof e?E((t=>function(e,t){const r={};for(const n in e){const o=e[n];"function"==typeof o&&(r[n]=(...e)=>t(o(...e)))}return r}(e,t))):e?"function"==typeof e?v(e):C(e,"mapDispatchToProps"):E((e=>({dispatch:e})))}(n),k=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let o,i=!1;return function(t,r,s){const a=e(t,r,s);return i?n(a,o)||(o=a):(i=!0,o=a),o}}}(e):C(e,"mergeProps"):()=>b}(o),P=Boolean(r);return r=>{const n=r.displayName||r.name||"Component",o=`Connect(${n})`,i={shouldHandleStateChanges:P,displayName:o,wrappedComponentName:n,WrappedComponent:r,initMapStateToProps:x,initMapDispatchToProps:F,initMergeProps:k,areStatesEqual:s,areStatePropsEqual:u,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(n){const[o,s,a]=(0,e.useMemo)((()=>{const{reactReduxForwardedRef:e}=n,t=h(n,D);return[n.context,e,t]}),[n]),u=(0,e.useMemo)((()=>o&&o.Consumer&&(0,m.isContextConsumer)(t().createElement(o.Consumer,null))?o:S),[o,S]),c=(0,e.useContext)(u),l=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),p=Boolean(c)&&Boolean(c.store),f=l?n.store:c.store,E=p?c.getServerState:f.getState,A=(0,e.useMemo)((()=>function(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:o}=t,i=h(t,g);return y(r(e,i),n(e,i),o(e,i),e,i)}(f.dispatch,i)),[f]),[v,C]=(0,e.useMemo)((()=>{if(!P)return I;const e=w(f,l?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,l,c]),b=(0,e.useMemo)((()=>l?c:d({},c,{subscription:v})),[l,c,v]),x=(0,e.useRef)(),_=(0,e.useRef)(a),R=(0,e.useRef)(),F=(0,e.useRef)(!1),k=((0,e.useRef)(!1),(0,e.useRef)(!1)),N=(0,e.useRef)();O((()=>(k.current=!0,()=>{k.current=!1})),[]);const M=(0,e.useMemo)((()=>()=>R.current&&a===_.current?R.current:A(f.getState(),a)),[f,a]),L=(0,e.useMemo)((()=>e=>v?function(e,t,r,n,o,i,s,a,u,c,l){if(!e)return()=>{};let d=!1,h=null;const p=()=>{if(d||!a.current)return;const e=t.getState();let r,p;try{r=n(e,o.current)}catch(e){p=e,h=e}p||(h=null),r===i.current?s.current||c():(i.current=r,u.current=r,s.current=!0,l())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}(P,f,v,A,_,x,F,k,R,C,e):()=>{}),[v]);var j,U;let $;j=B,U=[_,x,F,a,R,C],O((()=>j(...U)),undefined);try{$=T(L,M,E?()=>A(E(),a):M)}catch(e){throw N.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${N.current.stack}\n\n`),e}O((()=>{N.current=void 0,R.current=void 0,x.current=$}));const V=(0,e.useMemo)((()=>t().createElement(r,d({},$,{ref:s}))),[s,r,$]);return(0,e.useMemo)((()=>P?t().createElement(u.Provider,{value:b},V):V),[u,V,b])}const E=t().memo(c);if(E.WrappedComponent=r,E.displayName=c.displayName=o,p){const e=t().forwardRef((function(e,r){return t().createElement(E,d({},e,{reactReduxForwardedRef:r}))}));return e.displayName=o,e.WrappedComponent=r,f()(e,r)}return f()(E,r)}},k=function({store:r,context:n,children:o,serverState:i}){const s=(0,e.useMemo)((()=>{const e=w(r);return{store:r,subscription:e,getServerState:i?()=>i:void 0}}),[r,i]),a=(0,e.useMemo)((()=>r.getState()),[r]);O((()=>{const{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==r.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,a]);const u=n||c;return t().createElement(u.Provider,{value:s},o)};var P;l=i.useSyncExternalStoreWithSelector,(e=>{T=e})(o.useSyncExternalStore),P=s.unstable_batchedUpdates,a=P;var N=r(3980),M=r.n(N);const L=require("@mongodb-js/compass-components"),j=require("compass-preferences-model");r(8166),r(6464),r(5162);var U=r(2563),$=r.n(U),V=r(445),z=r.n(V),W=r(6635),H=r(8761);const q="indexes/reset-form",G=()=>({type:q});let K=function(e){return e.HandleError="indexes/error/HANDLE_ERROR",e.ClearError="indexes/error/CLEAR_ERROR",e}({});const Y=null;function Q(e=null,t){return t.type===K.HandleError?J(t.error):t.type===K.ClearError||t.type===q?Y:e}const X=e=>({type:K.HandleError,error:e}),Z=()=>({type:K.ClearError}),J=e=>"string"==typeof e?e:"string"==typeof e?.message?e.message:e instanceof H.MongoError&&"string"===e.errmsg?e.errmsg:"Unknown error";let ee=function(e){return e.RefreshStarted="indexes/is-refreshing/RefreshStarted",e.RefreshFinished="indexes/is-refreshing/RefreshFinished",e}({});r(0),r(8339);const te="indexes/in-progress-indexes/IN_PROGRESS_INDEXES_ADDED",re="indexes/in-progress-indexes/IN_PROGRESS_INDEXES_REMOVED",ne="indexes/in-progress-indexes/IN_PROGRESS_INDEXES_FAILED",oe=[],ie=e=>({type:re,inProgressIndexId:e}),se=e=>t().createElement(t().Fragment,null,"The index `",t().createElement("b",null,e),"` will no longer be visible to the query planner and cannot be used to support a query. If the impact is negative, you can unhide this index."),ae=e=>t().createElement(t().Fragment,null,"The index `",t().createElement("b",null,e),"` will become visible to the query planner and can be used to support a query. If the impact is negative, you can hide this index."),ue=z()("mongodb-compass:modules:indexes"),ce={"Name and Definition":"name",Type:"type",Size:"size",Usage:"usageCount",Properties:"properties"};let le=function(e){return e.LoadIndexes="indexes/indexes/LOAD_INDEXES",e.SortIndexes="indexes/indexes/SORT_INDEXES",e}({});const de=[],he=(e,t)=>{e((e=>({type:le.LoadIndexes,indexes:e}))(t)),e({type:ee.RefreshFinished}),e((0,U.localAppRegistryEmit)("indexes-changed",t))},pe=()=>async(e,t)=>{const{isReadonly:r,dataService:n,namespace:o,sortColumn:i,sortOrder:s,inProgressIndexes:a}=t();if(r)return he(e,[]);if(!n||!n.isConnected())return e({type:ee.RefreshFinished}),void ue("warning: trying to load indexes but dataService is disconnected",n);try{const t=function(e,t){e=(0,W.cloneDeep)(e);for(const r of t){const t=e.find((e=>e.name===r.name));t?(t.extra=t.extra??{},t.extra.status=r.extra.status,r.extra.error&&(t.extra.error=r.extra.error)):e.push(r)}return e}(await n.indexes(o),(0,W.cloneDeep)(a)).sort(fe(me(i),s));he(e,t)}catch(t){e(X(t)),he(e,[])}},fe=(e,t)=>{const r="asc"===t?1:-1;return"properties"===e?(e=>function(t,r){const n="compound"===t.cardinality?"compound":t.properties?.[0]||"",o="compound"===r.cardinality?"compound":r.properties?.[0]||"";return n>o?e:n<o?-e:0})(r):function(t,n){return void 0===n[e]?r:void 0===t[e]?-r:t[e]>n[e]?r:t[e]<n[e]?-r:0}},me=e=>ce[e],ge=(0,L.css)({margin:`${L.spacing[3]}px 0`}),ye=(0,L.css)({display:"flex",flexDirection:"row",gap:L.spacing[2],justifyContent:"flex-start",alignItems:"center"}),Ee=(0,L.css)({marginTop:L.spacing[2]}),Ae=(0,L.css)({marginRight:L.spacing[2]}),ve=(0,L.css)({display:"inline-block",width:"fit-content"}),Ce=({errorMessage:r,isReadonly:n,isReadonlyView:o,isWritable:i,localAppRegistry:s,isRefreshing:a,writeStateDescription:u,hasTooManyIndexes:c,onRefreshIndexes:l,readOnly:d})=>{const h=(0,j.usePreference)("showInsights",t())&&!r,p=(0,e.useCallback)((()=>{s.emit("open-create-index-modal")}),[s]),f=!(n||o||d||r),m=a?t().createElement("div",{className:Ae},t().createElement(L.SpinLoader,{title:"Refreshing Indexes"})):t().createElement(L.Icon,{glyph:"Refresh",title:"Refresh Indexes"});return t().createElement("div",{className:ge},!o&&t().createElement("div",{"data-testid":"indexes-toolbar"},t().createElement("div",{className:ye},f&&t().createElement(L.Tooltip,{enabled:!i,align:"top",justify:"middle",trigger:({children:e,...r})=>t().createElement("div",(0,L.mergeProps)({className:ve},r),t().createElement(L.Button,{"data-testid":"open-create-index-modal-button",disabled:!i,onClick:p,variant:"primary",size:"small"},"Create Index"),e)},u),t().createElement(L.Button,{"data-testid":"refresh-indexes-button",disabled:a,onClick:()=>l(),variant:"default",size:"small",leftGlyph:m},"Refresh"),h&&c&&t().createElement(L.SignalPopover,{signals:L.PerformanceSignals.get("too-many-indexes")}))),o?t().createElement(L.WarningSummary,{className:Ee,warnings:["Readonly views may not contain indexes."]}):!!r&&t().createElement(L.ErrorSummary,{className:Ee,errors:[r]}))};var be=r(7028),Se=r.n(be);const we={SINGLE:"https://docs.mongodb.org/manual/core/index-single/",COMPOUND:"https://docs.mongodb.org/manual/core/index-compound/",UNIQUE:"https://docs.mongodb.org/manual/core/index-unique/",PARTIAL:"https://docs.mongodb.org/manual/core/index-partial/",SPARSE:"https://docs.mongodb.org/manual/core/index-sparse/",TTL:"https://docs.mongodb.org/manual/core/index-ttl/","2D":"https://docs.mongodb.org/manual/core/2d/","2DSPHERE":"https://docs.mongodb.org/manual/core/2dsphere/",GEOHAYSTACK:"https://docs.mongodb.org/manual/core/geohaystack/",GEOSPATIAL:"https://docs.mongodb.org/manual/applications/geospatial-indexes/#geospatial-indexes",WILDCARD:"https://docs.mongodb.com/manual/core/index-wildcard/",CLUSTERED:"https://www.mongodb.com/docs/manual/core/clustered-collections/",COLUMNSTORE:null,TEXT:"https://docs.mongodb.org/manual/core/index-text/",HASHED:"https://docs.mongodb.org/manual/core/index-hashed/",REGULAR:"https://docs.mongodb.com/manual/indexes/#single-field",COLLATION:"https://docs.mongodb.com/master/reference/bson-type-comparison-order/#collation",COLLATION_REF:"https://docs.mongodb.com/master/reference/collation",HIDDEN:"https://www.mongodb.com/docs/manual/core/index-hidden/",UNKNOWN:null};function Oe(e="UNKNOWN"){return we[e?.toUpperCase()]??null}const xe=(0,L.css)({gap:L.spacing[2]}),_e=(0,L.css)({lineHeight:0,color:L.palette.white,span:{backgroundImage:"none !important"}},L.focusRing),De=({text:e,link:r})=>t().createElement(L.Badge,{variant:L.BadgeVariant.DarkGray,className:xe,"data-testid":`${e}-badge`},e,t().createElement(L.Link,{hideExternalIcon:!0,"aria-label":e,className:_e,href:r},t().createElement(L.Icon,{glyph:"InfoWithCircle"}))),Te=e=>-1!==["text","wildcard","columnstore"].indexOf(e??""),Ie=({extra:e})=>{const r=["weights","default_language","language_override","wildcardProjection","columnstoreProjection"],n=[];for(const o in e)r.includes(o)&&n.push(t().createElement(L.Body,{key:o},`${o}: ${JSON.stringify(e[o])}`));return t().createElement(t().Fragment,null,n)},Be=({type:e,extra:r})=>{const n=Oe(e);return t().createElement(L.Tooltip,{enabled:Te(e),trigger:({children:r,...o})=>t().createElement("span",o,r,t().createElement(De,{text:e??"unknown",link:n??"#"}))},t().createElement(Ie,{extra:r}))};var Re=r(2077),Fe=r.n(Re);const ke=({relativeSize:e,size:r})=>t().createElement(L.Tooltip,{trigger:({children:e,...n})=>t().createElement("span",n,e,t().createElement(L.Body,null,(e=>{const t=e<=1e3?"0":"0.0";return Fe()(e).format(t+" b")})(r)))},t().createElement(L.Body,null,(e=>`${e.toFixed(2)}% compared to largest index`)(e))),Pe=({usage:e,since:r})=>t().createElement(L.Tooltip,{trigger:({children:n,...o})=>t().createElement("span",o,n,t().createElement(L.Body,null,e||0," ",t().createElement(t().Fragment,null,r?`(since ${r.toDateString()})`:"")))},t().createElement(L.Body,null,(e=>e?`${e} index hits since index creation or last server restart`:"Either the server does not support the $indexStats command or the user is not authorized to execute it.")(e))),Ne=(0,L.css)({display:"flex",gap:L.spacing[1],minWidth:7*L.spacing[3],alignItems:"baseline"}),Me=(e,t)=>{return"ttl"===e?`expireAfterSeconds: ${t.expireAfterSeconds}`:"partial"===e?(r=t.partialFilterExpression,`partialFilterExpression: ${JSON.stringify(r)}`):null;var r},Le=({text:e,link:r,tooltip:n})=>t().createElement(L.Tooltip,{enabled:!!n,trigger:({children:n,...o})=>t().createElement("span",o,n,t().createElement(De,{link:r,text:e}))},t().createElement(L.Body,null,n)),je=({tooltip:e,darkMode:r})=>t().createElement(L.Tooltip,{enabled:!!e,darkMode:r,delay:500,trigger:({children:e,...r})=>t().createElement("span",r,e,t().createElement(L.Badge,{variant:L.BadgeVariant.Red},"Failed"))},t().createElement(L.Body,null,e)),Ue="HIDDEN",$e=({extra:e,properties:r,cardinality:n})=>{const o=(0,L.useDarkMode)();return t().createElement("div",{className:Ne},r?.map((r=>t().createElement(Le,{key:r,text:r,link:Oe(r)??"#",tooltip:Me(r,e)}))),"compound"===n&&t().createElement(Le,{text:n,link:Oe(n)??"#"}),e.hidden&&t().createElement(Le,{text:Ue,link:Oe(Ue)??"#"}),"inprogress"===e.status&&t().createElement(L.Badge,{variant:L.BadgeVariant.Blue},"In Progress ..."),"failed"===e.status&&t().createElement(je,{tooltip:e.error?String(e.error):"",darkMode:o}))};var Ve=r(6625),ze=r.n(Ve);const We=({index:r,serverVersion:n,onDeleteIndex:o,onHideIndex:i,onUnhideIndex:s})=>{const a=(0,e.useMemo)((()=>{const e=[{action:"delete",label:`Drop Index ${r.name}`,icon:"Trash"}];return(e=>{try{return ze().gte(e,"4.4.0")}catch(e){return!0}})(n)&&e.unshift(r.extra?.hidden?{action:"unhide",label:`Unhide Index ${r.name}`,tooltip:"Unhide Index",icon:"Visibility"}:{action:"hide",label:`Hide Index ${r.name}`,tooltip:"Hide Index",icon:"VisibilityOff"}),e}),[r,n]),u=(0,e.useCallback)((e=>{"delete"===e?o(r):"hide"===e?i(r.name):"unhide"===e&&s(r.name)}),[o,i,s,r]);return t().createElement(L.ItemActionGroup,{"data-testid":"index-actions",actions:a,onAction:u})},He=(0,L.css)({":hover":{".index-actions-cell":{button:{opacity:1}}}}),qe=(0,L.css)({button:{opacity:0,"&:focus":{opacity:1}},minWidth:L.spacing[5]}),Ge=(0,L.css)({borderWidth:0,borderBottomWidth:3,"> div":{justifyContent:"space-between"}}),Ke=(0,L.css)({verticalAlign:"middle"}),Ye=(0,L.css)({padding:0}),Qe=(0,L.css)({thead:{position:"sticky",top:0,background:L.palette.white,zIndex:5}}),Xe=(0,L.css)({padding:L.spacing[3]}),Ze=(0,L.css)({flex:1,position:"relative",overflow:"hidden"}),Je=({indexes:r,canModifyIndex:n,serverVersion:o,onSortTable:i,onDeleteIndex:s,onHideIndex:a,onUnhideIndex:u})=>{const c=(0,e.useRef)(null),[l,{height:d}]=(0,L.useDOMRect)(),h=(0,e.useMemo)((()=>{const e=["Name and Definition","Type","Size","Usage","Properties"].map((e=>t().createElement(L.TableHeader,{"data-testid":`index-header-${e}`,label:e,key:e,className:Ge,handleSort:t=>{i(e,t)}})));return n&&e.push(t().createElement(L.TableHeader,{label:"",className:Ge})),e}),[n,i]);return(0,e.useEffect)((()=>{const e=c.current?.getElementsByTagName("table")[0],t=e?.parentElement;if(e&&t){const r=d-3*L.spacing[3],n=Math.max(e.clientHeight,r/2),o=Math.max(0,Math.min(n,r));t.style.height=`${o}px`}}),[d]),t().createElement("div",Se()({className:Ze},l),t().createElement(L.KeylineCard,{ref:c,"data-testid":"indexes",className:Xe},t().createElement(L.Table,{className:Qe,data:r,columns:h,"data-testid":"indexes-list","aria-label":"Indexes List Table"},(({datum:e})=>t().createElement(L.Row,{key:e.name,"data-testid":`index-row-${e.name}`,className:He},t().createElement(L.Cell,{"data-testid":"index-name-field",className:Ke},e.name),t().createElement(L.Cell,{"data-testid":"index-type-field",className:Ke},t().createElement(Be,{type:e.type,extra:e.extra})),t().createElement(L.Cell,{"data-testid":"index-size-field",className:Ke},t().createElement(ke,{size:e.size,relativeSize:e.relativeSize})),t().createElement(L.Cell,{"data-testid":"index-usage-field",className:Ke},t().createElement(Pe,{usage:e.usageCount,since:e.usageSince})),t().createElement(L.Cell,{"data-testid":"index-property-field",className:Ke},t().createElement($e,{cardinality:e.cardinality,extra:e.extra,properties:e.properties})),n&&t().createElement(L.Cell,{"data-testid":"index-actions-field",className:Ke},"_id_"!==e.name&&"inprogress"!==e.extra.status&&t().createElement("div",{className:(0,L.cx)(qe,"index-actions-cell")},t().createElement(We,{index:e,serverVersion:o,onDeleteIndex:s,onHideIndex:a,onUnhideIndex:u}))),t().createElement(L.Row,null,t().createElement(L.Cell,{className:(0,L.cx)(Ye,Ke),colSpan:n?6:5},t().createElement(L.IndexKeysBadge,{keys:e.fields}))))))))},et=(0,L.css)({margin:L.spacing[3],marginTop:0,display:"flex",flexDirection:"column",width:"100%"}),tt={sortIndexes:(e,t)=>(r,n)=>{const{indexes:o}=n();r({type:le.SortIndexes,indexes:o,column:e,order:t})},refreshIndexes:()=>e=>{e(pe()),e({type:ee.RefreshStarted})},dropFailedIndex:e=>t=>{t(ie(e)),t(pe())},onHideIndex:e=>async(t,r)=>{const{dataService:n,namespace:o}=r();if(await(0,L.showConfirmation)({title:`Hiding \`${e}\``,description:se(e)}))try{await(n?.updateCollection(o,{index:{name:e,hidden:!0}})),t(pe())}catch(e){(0,L.openToast)("hide-index-error",{title:"Failed to hide the index",variant:"warning",description:`An error occurred while hiding the index. ${e.message}`})}},onUnhideIndex:e=>async(t,r)=>{const{namespace:n,dataService:o}=r();if(await(0,L.showConfirmation)({title:`Unhiding \`${e}\``,description:ae(e)}))try{await(o?.updateCollection(n,{index:{name:e,hidden:!1}})),t(pe())}catch(e){(0,L.openToast)("unhide-index-error",{title:"Failed to unhide the index",variant:"warning",description:`An error occurred while unhiding the index. ${e.message}`})}}},rt=F((({indexes:e,isWritable:t,isReadonly:r,isReadonlyView:n,description:o,error:i,isRefreshing:s,serverVersion:a,appRegistry:u})=>({indexes:e,isWritable:t,isReadonly:r,isReadonlyView:n,description:o,error:i,localAppRegistry:u.localAppRegistry,isRefreshing:s,serverVersion:a})),tt)((0,j.withPreferences)((({indexes:e,isWritable:r,isReadonly:n,isReadonlyView:o,description:i,error:s,localAppRegistry:a,isRefreshing:u,serverVersion:c,sortIndexes:l,refreshIndexes:d,dropFailedIndex:h,onHideIndex:p,onUnhideIndex:f,readOnly:m})=>t().createElement("div",{className:et},t().createElement(Ce,{isWritable:r,isReadonly:n,isReadonlyView:o,readOnly:m,errorMessage:s,localAppRegistry:a,isRefreshing:u,writeStateDescription:i,hasTooManyIndexes:e.length>10,onRefreshIndexes:d}),!o&&!s&&t().createElement(Je,{indexes:e,serverVersion:c,canModifyIndex:r&&!n&&!m,onSortTable:l,onDeleteIndex:e=>"failed"===e.extra.status?h(String(e.extra.id)):a.emit("toggle-drop-index-modal",!0,e.name),onHideIndex:p,onUnhideIndex:f}))),["readOnly"],t()));class nt extends e.Component{static displayName="IndexesPlugin";static propTypes={store:M().object.isRequired};render(){return t().createElement(k,{store:this.props.store},t().createElement(rt,null))}}const ot=nt,it=require("@mongodb-js/compass-logging");r(2856),r(7610);const st="indexes/create-index/fields/ADD_FIELD",at="indexes/create-index/fields/UPDATE_FIELD_TYPE",ut="indexes/create-index/fields/REMOVE_FIELD",ct="indexes/create-index/fields/CHANGE_FIELDS",lt=[{name:"",type:""}],dt="indexes/create-index/schema-fields/CHANGE_SCHEMA_FIELDS",ht=[],pt=e=>({type:dt,schemaFields:e});r(4925),r(4819),r(4407),r(4903),r(4715),r(9570);var ft=r(345);function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}function gt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==mt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===mt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(r),!0).forEach((function(t){gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function At(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var vt="function"==typeof Symbol&&Symbol.observable||"@@observable",Ct=function(){return Math.random().toString(36).substring(7).split("").join(".")},bt={INIT:"@@redux/INIT"+Ct(),REPLACE:"@@redux/REPLACE"+Ct(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ct()}};function St(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(At(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(At(1));return r(St)(e,t)}if("function"!=typeof e)throw new Error(At(2));var o=e,i=t,s=[],a=s,u=!1;function c(){a===s&&(a=s.slice())}function l(){if(u)throw new Error(At(3));return i}function d(e){if("function"!=typeof e)throw new Error(At(4));if(u)throw new Error(At(5));var t=!0;return c(),a.push(e),function(){if(t){if(u)throw new Error(At(6));t=!1,c();var r=a.indexOf(e);a.splice(r,1),s=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(At(7));if(void 0===e.type)throw new Error(At(8));if(u)throw new Error(At(9));try{u=!0,i=o(i,e)}finally{u=!1}for(var t=s=a,r=0;r<t.length;r++)(0,t[r])();return e}return h({type:bt.INIT}),(n={dispatch:h,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(At(10));o=e,h({type:bt.REPLACE})}})[vt]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(At(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[vt]=function(){return this},e},n}function wt(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var i,s=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:bt.INIT}))throw new Error(At(12));if(void 0===r(void 0,{type:bt.PROBE_UNKNOWN_ACTION()}))throw new Error(At(13))}))}(r)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var n=!1,o={},a=0;a<s.length;a++){var u=s[a],c=r[u],l=e[u],d=c(l,t);if(void 0===d)throw t&&t.type,new Error(At(14));o[u]=d,n=n||d!==l}return(n=n||s.length!==Object.keys(e).length)?o:e}}function Ot(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function xt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(At(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=Ot.apply(void 0,i)(r.dispatch),Et(Et({},r),{},{dispatch:n})}}}var _t=r(3347),Dt=r.n(_t);let Tt=function(e){return e.DataServiceConnected="indexes/data-service/DATA_SERVICE_CONNECTED",e}({});function It(e=null,t){return t.type===Tt.DataServiceConnected?t.dataService:e}const Bt=e=>({type:Tt.DataServiceConnected,dataService:e}),Rt="indexes/in-progress/TOGGLE_IN_PROGRESS";function Ft(e=!1,t){return t.type===Rt?t.inProgress:t.type!==q&&e}const kt=e=>({type:Rt,inProgress:e}),Pt="indexes/is-visible/TOGGLE_IS_VISIBLE";function Nt(e=!1,t){return t.type===Pt?t.isVisible:t.type!==q&&e}const Mt=e=>({type:Pt,isVisible:e}),Lt="explain/namespace/NAMESPACE_CHANGED";function jt(e="",t){return t.type===Lt?t.namespace:e}const Ut=e=>({type:Lt,namespace:e}),$t="compass-indexes/server-version/SERVER_VERSION_CHANGED",Vt="4.0.0";function zt(e=Vt,t){return t.type===$t&&t.version||e}const Wt=e=>({type:$t,version:e}),Ht={unique:{type:"checkbox",label:"Create unique index",description:"A unique index ensures that the indexed fields do not store duplicate values; i.e. enforces uniqueness for the indexed fields."},name:{type:"text",label:"Index name",description:"Enter the name of the index to create, or leave blank to have MongoDB create a default name for the index.",units:void 0,optional:!0},expireAfterSeconds:{type:"number",label:"Create TTL",description:"TTL indexes are special single-field indexes that MongoDB can use to automatically remove documents from a collection after a certain amount of time or at a specific clock time.",units:"seconds",optional:!1},partialFilterExpression:{type:"code",label:"Partial Filter Expression",description:"Partial indexes only index the documents in a collection that meet a specified filter expression.",units:void 0,optional:!1},wildcardProjection:{type:"code",label:"Wildcard Projection",description:"Wildcard indexes support queries against unknown or arbitrary fields.",units:void 0,optional:!1},collation:{type:"code",label:"Use Custom Collation",description:"Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.",units:void 0,optional:!1},columnstoreProjection:{type:"code",label:t().createElement(t().Fragment,null,"Columnstore Projection ",t().createElement(L.Badge,null,"Preview")),description:"Columnstore indexes support queries against unknown or arbitrary fields.",units:void 0,optional:!1},sparse:{type:"checkbox",label:"Create sparse index",description:"Sparse indexes only contain entries for documents that have the indexed field, even if the index field contains a null value. The index skips over any document that is missing the indexed field."}};var qt=function(e){return e.ChangeOption="compass-indexes/create-index/change-option",e.ChangeOptionEnabled="compass-indexes/create-index/change-option-enabled",e}(qt||{});function Gt(e,t){return{type:qt.ChangeOption,name:e,value:t}}const Kt=Object.fromEntries(Object.keys(Ht).map((e=>[e,{value:"checkbox"!==Ht[e].type&&"",enabled:!1}])));function Yt(e,t){return e.type===t}const Qt="20.0.0-alpha0";function Xt(e){if(!e)return!0;try{return ze().gte(e,Qt)}catch(e){return!0}}const{track:Zt}=(0,it.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),Jt=wt({dataService:It,appRegistry:$(),namespace:jt,serverVersion:zt,inProgress:Ft,isVisible:Nt,fields:function(e=lt,t){const r=[...e];if(t.type===st)return r.push({name:"",type:""}),r;if(t.type===ut)return r.splice(t.idx,1),r;if(t.type===at){if(t.idx>=0&&t.idx<r.length){const e={...r[t.idx]};e.type=t.fType,r[t.idx]=e}return r}return t.type===ct?t.fields:t.type===q?lt:e},schemaFields:function(e=ht,t){return t.type===dt?t.schemaFields:e},error:Q,options:(e=Kt,t)=>Yt(t,qt.ChangeOption)?{...e,[t.name]:{value:t.value,enabled:"checkbox"===Ht[t.name].type||e[t.name].enabled}}:Yt(t,qt.ChangeOptionEnabled)?{...e,[t.name]:{...e[t.name],enabled:t.enabled}}:t.type===q?JSON.parse(JSON.stringify(Kt)):e}),er=["1 (asc)","-1 (desc)","2dsphere","text","columnstore"],tr={name:"Select or type a field name",type:"Select a type"},rr=(0,L.css)({display:"flex",gap:L.spacing[2]}),nr=(0,L.css)({flexGrow:1,textTransform:"none",whiteSpace:"nowrap"}),or=(0,L.css)({textTransform:"none",whiteSpace:"nowrap"});function ir({fields:r,serverVersion:n,schemaFields:o,addField:i,removeField:s,updateFieldName:a,updateFieldType:u}){const[c,l]=(0,e.useMemo)((()=>{const e=Xt(n);return[er.filter((t=>e||"columnstore"!==t)),`calc(${Math.max(...er.map((e=>e.length)))}ch + ${L.spacing[6]+(e?L.spacing[6]:0)}px)`]}),[n]),d=(0,e.useCallback)(((e,t)=>{null!==t&&a(e,t)}),[a]),h=o.map((e=>({value:e})));return t().createElement(L.ListEditor,{items:r,renderItem:(e,r)=>t().createElement("div",{className:rr,"data-testid":`create-index-fields-line-${r}`},t().createElement("div",{className:nr,"data-testid":`create-index-fields-name-${r}`},t().createElement(L.ComboboxWithCustomOption,{"aria-label":"Index fields",placeholder:tr.name,size:"default",clearable:!1,overflow:"scroll-x",onChange:e=>d(r,e),options:h,renderOption:(e,r,n)=>t().createElement(L.ComboboxOption,{key:`field-option-${r}`,value:e.value,displayName:n?`Field: "${e.value}"`:e.value})})),t().createElement("div",{className:or,"data-testid":`create-index-fields-type-${r}`},t().createElement(L.Select,{id:`create-index-fields-type-select-${r}`,placeholder:tr.type,onChange:e=>u(r,e),allowDeselect:!1,value:e.type,popoverZIndex:999999,"aria-labelledby":"Field type",style:{width:l}},c.map((e=>t().createElement(L.Option,{key:e,value:e},e,"columnstore"===e&&t().createElement(t().Fragment,null," ",t().createElement(L.Badge,null,"Preview")))))))),onAddItem:i,onRemoveItem:s,addButtonTestId:"add-index-field-button",removeButtonTestId:"remove-index-field-button"})}const sr=F(((e,{name:t})=>({label:Ht[t].label,description:Ht[t].description,checked:e.options[t].value})),{onChange:Gt})((({name:e,label:r,description:n,disabled:o,checked:i,onChange:s})=>{const a=`create-index-modal-${e}-checkbox`;return t().createElement(L.FormFieldContainer,null,t().createElement(L.Checkbox,{id:a,"data-testid":a,checked:i,onChange:t=>{s(e,t.target.checked)},label:t().createElement(L.Label,{htmlFor:a},r),description:n,disabled:o}))})),ar=require("@mongodb-js/compass-editor"),ur=F(((e,{name:t})=>({type:Ht[t].type,label:Ht[t].label,description:Ht[t].description,optional:Ht[t].optional,units:Ht[t].units,value:e.options[t].value,enabled:e.options[t].enabled})),{onChange:Gt,onEnabled:function(e,t){return{type:qt.ChangeOptionEnabled,name:e,enabled:t}}})((({name:e,type:r,label:n,description:o,disabled:i,optional:s,units:a,value:u,onChange:c,enabled:l,onEnabled:d})=>{const h=`create-index-modal-${e}`,p=`${h}-${r}`;return t().createElement(L.CollapsibleFieldSet,{id:h,toggled:!i&&l,onToggle:t=>{d(e,t)},label:n,"data-testid":h,description:o,disabled:i},"code"===r?t().createElement(ar.CodemirrorMultilineEditor,{"data-testid":p,text:u,onChangeText:t=>{c(e,t)},id:p,"aria-labelledby":h,readOnly:i}):t().createElement(L.TextInput,{id:p,value:u,"data-testid":p,type:r,onChange:t=>{c(e,t.target.value)},spellCheck:!1,disabled:i,optional:s,label:a,"aria-labelledby":a?void 0:h}))})),cr=(0,L.css)({margin:`${L.spacing[4]}px 0 ${L.spacing[5]}px 0`}),lr=(0,L.css)({marginBottom:L.spacing[1]}),dr=(0,L.css)({paddingLeft:L.spacing[1]+2});function hr({fields:e,schemaFields:r,serverVersion:n,updateFieldName:o,updateFieldType:i,addField:s,removeField:a}){return t().createElement(t().Fragment,null,t().createElement("div",{className:cr,"data-testid":"create-index-form"},t().createElement(L.Body,{weight:"medium",className:lr},"Index fields"),e.length>0?t().createElement(ir,{schemaFields:r,fields:e,serverVersion:n,isRemovable:!(e.length>1),updateFieldName:o,updateFieldType:i,addField:s,removeField:a}):null),t().createElement(L.Accordion,{"data-testid":"create-index-modal-toggle-options",text:"Options"},t().createElement("div",{"data-testid":"create-index-modal-options",className:dr},t().createElement(sr,{name:"unique"}),t().createElement(ur,{name:"name"}),t().createElement(ur,{name:"expireAfterSeconds"}),t().createElement(ur,{name:"partialFilterExpression"}),t().createElement(ur,{name:"wildcardProjection"}),t().createElement(ur,{name:"collation"}),Xt(n)&&t().createElement(ur,{name:"columnstoreProjection"}),t().createElement(sr,{name:"sparse"}))))}const pr=(0,L.css)({display:"flex",flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",gap:L.spacing[2]}),fr=(0,L.css)({flexGrow:1,width:"100%"}),mr=(0,L.css)({flex:"none"}),gr=function({error:e,clearError:r,inProgress:n,createIndex:o,closeCreateIndexModal:i}){return t().createElement("div",{className:pr},(()=>{if(e)return t().createElement("div",{"data-testid":"create-index-actions-error-banner-wrapper",className:fr},t().createElement(L.Banner,{variant:"danger",dismissible:!0,onClose:r},e))})(),(()=>{if(!e&&n)return t().createElement("div",{"data-testid":"create-index-actions-in-progress-banner-wrapper",className:fr},t().createElement(L.Banner,{variant:"info"},"Index creation in progress. The dialog can be closed."))})(),t().createElement(L.Button,{"data-testid":"create-index-actions-cancel-button",onClick:()=>{i()}},n?"Close":"Cancel"),!n&&t().createElement(L.Button,{"data-testid":"create-index-actions-create-index-button",onClick:()=>{o()},variant:"primary",className:mr},"Create Index"))},yr={changeSchemaFields:pt,clearError:Z,handleError:X,createIndex:()=>async(e,t)=>{const r=t(),n={};if(r.fields.some((e=>""===e.name||""===e.type)))return void e(X("You must select a field name and type"));const o=r.options;r.fields.forEach((e=>{let t=e.type;"1 (asc)"===e.type&&(t=1),"-1 (desc)"===e.type&&(t=-1),n[e.name]=t}));const i={},s=Dt().isCollationValid(o.collation.value??"")||void 0;if(o.collation.enabled&&!s)return void e(X("You must provide a valid collation object"));if(o.collation.enabled&&(i.collation=s),o.unique.enabled&&(i.unique=o.unique.value),o.sparse.enabled&&(i.sparse=o.sparse.value),o.name.enabled&&o.name.value&&(i.name=o.name.value),o.expireAfterSeconds.enabled&&(i.expireAfterSeconds=Number(o.expireAfterSeconds.value),isNaN(i.expireAfterSeconds)))return void e(X(`Bad TTL: "${String(o.expireAfterSeconds.value)}"`));if(o.wildcardProjection.enabled)try{i.wildcardProjection=ft.EJSON.parse(o.wildcardProjection.value??"")}catch(t){return void e(X(`Bad WildcardProjection: ${String(t)}`))}if(o.columnstoreProjection.enabled)try{i.columnstoreProjection=ft.EJSON.parse(o.columnstoreProjection.value??"")}catch(t){return void e(X(`Bad ColumnstoreProjection: ${String(t)}`))}if(o.partialFilterExpression.enabled)try{i.partialFilterExpression=ft.EJSON.parse(r.options.partialFilterExpression.value??"")}catch(t){return void e(X(`Bad PartialFilterExpression: ${String(t)}`))}for(const e of Object.keys(o))[!1,""].includes(o[e].value)&&delete i[e];e(Z()),e(kt(!0));const a=r.namespace,u=(({ns:e,name:t,spec:r})=>{const n=(new ft.ObjectId).toHexString(),o=Object.keys(r).map((e=>({field:e,value:r[e]}))),i=t||Object.keys(r).reduce(((e,t)=>`${""===e?"":`${e}_`}${t}_${r[t]}`),"");return{id:n,extra:{status:"inprogress"},key:r,fields:o,name:i,ns:e,size:0,relativeSize:0,usageCount:0}})({ns:a,name:i.name,spec:n});e((0,U.localAppRegistryEmit)("in-progress-indexes-added",u));const c={unique:i.unique,ttl:o.expireAfterSeconds.enabled,columnstore_index:(l=r.fields,l.some((e=>"columnstore"===e.type))),has_columnstore_projection:o.columnstoreProjection.enabled,has_wildcard_projection:o.wildcardProjection.enabled,custom_collation:o.collation.enabled,geo:r.fields.filter((({type:e})=>"2dsphere"===e)).length>0};var l;try{await(r.dataService?.createIndex(a,n,i)),Zt("Index Created",c),e(G()),e(kt(!1)),e(Mt(!1)),e((0,U.localAppRegistryEmit)("in-progress-indexes-removed",u.id)),e((0,U.localAppRegistryEmit)("refresh-data"))}catch(t){e(kt(!1)),e(X(t)),e((0,U.localAppRegistryEmit)("in-progress-indexes-failed",{inProgressIndexId:u.id,error:t.message}))}},closeCreateIndexModal:()=>e=>{e(Mt(!1)),e(G())},addField:()=>({type:st}),removeField:e=>({type:ut,idx:e}),updateFieldName:(e,t)=>(r,n)=>{const o=n(),i=[...o.fields];if(e>=0&&e<o.fields.length){if(o.fields.some(((r,n)=>r.name===t&&n!==e)))return void r(X("Index keys must be unique"));const n={...i[e]};n.name=t,i[e]=n,r((e=>({type:ct,fields:e}))(i))}},updateFieldType:(e,t)=>({type:at,idx:e,fType:t})},Er=F((({fields:e,inProgress:t,schemaFields:r,error:n,isVisible:o,namespace:i,serverVersion:s})=>({fields:e,inProgress:t,schemaFields:r,error:n,isVisible:o,namespace:i,serverVersion:s})),yr)((function({isVisible:r,namespace:n,error:o,clearError:i,inProgress:s,createIndex:a,closeCreateIndexModal:u,...c}){const l=(0,e.useCallback)((e=>{e||u()}),[u]);return(0,it.useTrackOnChange)("COMPASS-INDEXES-UI",(e=>{r&&e("Screen",{name:"create_index_modal"})}),[r],void 0,t()),t().createElement(L.Modal,{open:r,setOpen:l,"data-testid":"create-index-modal"},t().createElement(L.ModalHeader,{title:"Create Index",subtitle:n}),t().createElement(L.ModalBody,null,t().createElement(hr,c)),t().createElement(L.ModalFooter,null,t().createElement(gr,{error:o,clearError:i,inProgress:s,createIndex:a,closeCreateIndexModal:u})))})),Ar=Er;class vr extends e.Component{static displayName="CreateIndexPlugin";static propTypes={store:M().object.isRequired};render(){return t().createElement(k,{store:this.props.store},t().createElement(Ar,null))}}const Cr=vr,br="indexes/drop-index/name/NAME_CHANGED",Sr=e=>({type:br,name:e}),wr="indexes/drop-index/confirm-name/CHANGE_CONFIRM_NAME",{track:Or}=(0,it.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),xr=wt({dataService:It,appRegistry:$(),isVisible:Nt,inProgress:Ft,error:Q,name:function(e="",t){return t.type===br?t.name:e},confirmName:function(e="",t){return t.type===wr?t.name:e},namespace:jt}),_r=(e,t)=>t.type===q?{...e,inProgress:false,isVisible:false,error:Y,name:"",confirmName:""}:xr(e,t),Dr=(0,L.css)({display:"flex",gap:L.spacing[1],marginTop:L.spacing[3],marginBottom:L.spacing[3]}),Tr=(0,L.css)({margin:`${L.spacing[3]}px 0`}),Ir=(0,L.css)({flexShrink:0}),Br=(0,L.css)({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,textOverflow:"ellipsis",overflow:"hidden"}),Rr=F((({isVisible:e,inProgress:t,error:r,name:n,confirmName:o})=>({isVisible:e,inProgress:t,error:r,name:n,confirmName:o})),{toggleIsVisible:Mt,clearError:Z,handleError:X,nameChanged:Sr,changeConfirmName:e=>({type:wr,name:e}),dropIndex:e=>async(t,r)=>{const n=r(),o=n.namespace;t(kt(!0));try{await(n.dataService?.dropIndex(o,e)),Or("Index Dropped"),t(G()),t((0,U.localAppRegistryEmit)("refresh-data")),t(Z()),t(kt(!1)),t(Mt(!1))}catch(e){t(kt(!1)),t(X(e))}},resetForm:G})((function({isVisible:e,inProgress:r,error:n,name:o,confirmName:i,toggleIsVisible:s,changeConfirmName:a,resetForm:u,dropIndex:c,clearError:l}){return(0,it.useTrackOnChange)("COMPASS-INDEXES-UI",(t=>{e&&t("Screen",{name:"drop_index_modal"})}),[e],void 0,t()),t().createElement(L.ConfirmationModal,{title:"Drop Index",open:e,onConfirm:()=>{c(o)},onCancel:()=>{s(!1),u()},buttonText:"Drop",variant:"danger",submitDisabled:i!==o,"data-testid":"drop-index-modal"},t().createElement("div",{className:Dr},t().createElement(L.Icon,{glyph:"Warning",className:Ir}),t().createElement(L.Body,{className:Br},"Type the index name"," ",t().createElement(L.Label,{htmlFor:"confirm-drop-index-name"},o)," to drop")),t().createElement("form",{onSubmit:e=>{e.preventDefault(),e.stopPropagation()}},t().createElement(L.TextInput,{id:"confirm-drop-index-name","aria-labelledby":"Confirm drop index",type:"text","data-testid":"confirm-drop-index-name",value:i,onChange:e=>a(e.target.value)}),(()=>{if(n)return t().createElement("div",{"data-testid":"drop-index-error-banner-wrapper"},t().createElement(L.Banner,{className:Tr,variant:"danger",dismissible:!0,onClose:l},n))})(),(()=>{if(!n&&r)return t().createElement("div",{"data-testid":"drop-index-in-progress-banner-wrapper"},t().createElement(L.Banner,{className:Tr,variant:"info"},"Index dropping in progress."))})()))}));class Fr extends e.Component{static displayName="DropIndexPlugin";static propTypes={store:M().object.isRequired};render(){return t().createElement(k,{store:this.props.store},t().createElement(Rr,null))}}const kr=Fr,Pr="indexes/is-writable/WRITE_STATE_CHANGED",Nr=e=>({type:Pr,isWritable:e}),Mr="indexes/is-readonly-view/READONLY_VIEW_CHANGED",Lr="indexes/description/GET_DESCRIPTION",jr="Topology type not yet discovered.",Ur=e=>({type:Lr,description:e}),$r="Name and Definition",Vr=wt({indexes:function(e=de,t){return t.type===le.SortIndexes?[...t.indexes].sort(fe(me(t.column),t.order)):t.type===le.LoadIndexes?t.indexes:e},isWritable:(e=!0,t)=>t.type===Pr?t.isWritable:e,isReadonly:function(e=!1){return e},isReadonlyView:function(e=!1,t){return t.type===Mr?t.isReadonlyView:e},description:(e=jr,t)=>t.type===Lr?t.description:e,appRegistry:$(),dataService:It,sortOrder:function(e="asc",t){return t.type===le.SortIndexes?t.order:e},sortColumn:function(e=$r,t){return t.type===le.SortIndexes?t.column:e},error:Q,serverVersion:zt,namespace:jt,isRefreshing:function(e=!1,t){return t.type===ee.RefreshStarted||t.type!==ee.RefreshFinished&&e},inProgressIndexes:function(e=oe,t){if(t.type===te)return[...e,t.inProgressIndex];if(t.type===re)return e.filter((e=>e.id!==t.inProgressIndexId));if(t.type===ne){const r=[...e],n=r.findIndex((e=>e.id===t.inProgressIndexId));return r[n]={...r[n],extra:{...r[n].extra,status:"failed",error:"error"}},r}return e}}),zr=(e,t)=>t.type===q?{...e,isWritable:!0,isReadonly:!1,isReadonlyView:!1,description:jr,indexes:de,serverVersion:Vt,sortOrder:"asc",sortColumn:$r,error:Y,namespace:"",isRefreshing:!1}:Vr(e,t);function Wr(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}var Hr=Wr();Hr.withExtraArgument=Wr;const qr=Hr,Gr=(e={})=>{const t=St(zr,xt(qr));if(e.localAppRegistry){const r=e.localAppRegistry;t.dispatch((0,U.localAppRegistryActivated)(r)),r.on("refresh-data",(()=>{t.dispatch(pe())})),r.on("in-progress-indexes-added",(e=>{t.dispatch({type:te,inProgressIndex:e})})),r.on("in-progress-indexes-removed",(e=>{t.dispatch(ie(e))})),r.on("in-progress-indexes-failed",(e=>{t.dispatch((({inProgressIndexId:e,error:t})=>({type:ne,inProgressIndexId:e,error:t}))(e))}))}if(e.globalAppRegistry){const r=e.globalAppRegistry;t.dispatch((0,U.globalAppRegistryActivated)(r));const n=r.getStore("App.InstanceStore").getState().instance;t.dispatch(Nr(n.isWritable)),t.dispatch(Ur(n.description)),n.on("change:isWritable",(()=>{t.dispatch(Nr(n.isWritable))})),n.on("change:description",(()=>{t.dispatch(Ur(n.description))})),r.on("refresh-data",(()=>{t.dispatch(pe())}))}if(e.namespace&&t.dispatch(Ut(e.namespace)),e.serverVersion&&t.dispatch(Wt(e.serverVersion)),e.isReadonly){const r=e.isReadonly;t.dispatch((e=>({type:Mr,isReadonlyView:e}))(r))}return e.dataProvider&&((e,t,r)=>{null!==t?e.dispatch(X(t)):(e.dispatch(Bt(r)),e.dispatch(pe()))})(t,e.dataProvider.error,e.dataProvider.dataProvider),t},{track:Kr}=(0,it.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),Yr=(e,t,r)=>{null!==t?e.dispatch(X(t)):e.dispatch(Bt(r))},Qr=(e,t,r)=>{null!==t?e.dispatch(X(t)):e.dispatch(Bt(r))},Xr=JSON.parse('{"name":"@mongodb-js/compass-indexes","productName":"Compass Indexes plugin","description":"Collection index management for Compass","version":"5.11.1","author":{"name":"MongoDB Inc","email":"compass@mongodb.com"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/mongodb-js/compass.git"},"license":"SSPL","homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"files":["dist"],"main":"dist/index.js","compass:main":"src/index.ts","types":"dist/src/index.d.ts","exports":{"browser":"./dist/browser.js","require":"./dist/index.js"},"compass:exports":{".":"./src/index.ts"},"scripts":{"bootstrap":"npm run postcompile","prepublishOnly":"npm run compile && compass-scripts check-exports-exist","compile":"npm run webpack -- --mode production","webpack":"webpack-compass","postcompile":"tsc --emitDeclarationOnly","analyze":"npm run webpack -- --mode production --analyze","typecheck":"tsc -p tsconfig-lint.json --noEmit","eslint":"eslint","prettier":"prettier","lint":"npm run eslint . && npm run prettier -- --check .","depcheck":"compass-scripts check-peer-deps && depcheck","check":"npm run typecheck && npm run lint && npm run depcheck","check-ci":"npm run check","test":"mocha","test-electron":"xvfb-maybe electron-mocha --no-sandbox","test-cov":"nyc --compact=false --produce-source-map=false -x \\"**/*.spec.*\\" --reporter=lcov --reporter=text --reporter=html npm run test","test-watch":"npm run test -- --watch","test-ci":"npm run test-cov","test-ci-electron":"npm run test-electron","reformat":"npm run prettier -- --write . && npm run eslint . --fix"},"peerDependencies":{"@mongodb-js/compass-components":"^1.11.0","@mongodb-js/compass-editor":"^0.10.0","@mongodb-js/compass-logging":"^1.1.7","@mongodb-js/mongodb-redux-common":"^2.0.9","bson":"^5.2.0","compass-preferences-model":"^2.11.1","react":"^17.0.2"},"devDependencies":{"@mongodb-js/eslint-config-compass":"^1.0.7","@mongodb-js/mocha-config-compass":"^1.2.1","@mongodb-js/prettier-config-compass":"^1.0.1","@mongodb-js/tsconfig-compass":"^1.0.3","@mongodb-js/webpack-config-compass":"^1.1.1","@testing-library/react":"^12.1.4","@testing-library/user-event":"^13.5.0","chai":"^4.2.0","debug":"^4.2.0","depcheck":"^1.4.1","electron":"^23.3.12","enzyme":"^3.11.0","eslint":"^7.25.0","hadron-app-registry":"^9.0.8","lodash":"^4.17.21","mocha":"^10.2.0","mongodb":"^5.6.0","mongodb-data-service":"^22.9.1","mongodb-query-parser":"^2.5.0","numeral":"^2.0.6","nyc":"^15.1.0","prop-types":"^15.7.2","react":"^17.0.2","react-dom":"^17.0.2","react-redux":"^8.0.5","redux":"^4.2.1","redux-thunk":"^2.4.1","semver":"^5.4.1","sinon":"^9.2.3","xvfb-maybe":"^0.2.1"},"dependencies":{"@mongodb-js/compass-components":"^1.11.0","@mongodb-js/compass-editor":"^0.10.0","@mongodb-js/compass-logging":"^1.1.7","@mongodb-js/mongodb-redux-common":"^2.0.9","bson":"^5.2.0","compass-preferences-model":"^2.11.1"},"gitHead":"294e6fe3ed2ec3417ebcd3ed974202d79e30b3e5"}'),Zr={name:"Indexes",component:ot,order:6,configureStore:Gr,configureActions:()=>{},storeName:"Indexes.Store",actionName:"Indexes.Actions"},Jr={name:"Create Index",component:Cr,configureStore:(e={})=>{const t=St(Jt,xt(qr));if(e.localAppRegistry){const r=e.localAppRegistry;t.dispatch((0,U.localAppRegistryActivated)(r)),r.on("fields-changed",(e=>{t.dispatch(pt(Object.keys(e.fields).filter((e=>"_id"!==e))))})),r.on("open-create-index-modal",(()=>{Kr("Index Create Opened"),t.dispatch(Mt(!0))})),r.on("data-service-connected",((e,r)=>{Yr(t,e,r)}))}if(e.globalAppRegistry){const r=e.globalAppRegistry;t.dispatch((0,U.globalAppRegistryActivated)(r))}return e.namespace&&t.dispatch(Ut(e.namespace)),e.serverVersion&&t.dispatch(Wt(e.serverVersion)),e.dataProvider&&Yr(t,e.dataProvider.error,e.dataProvider.dataProvider),t},configureActions:()=>{},storeName:"Indexes.CreateIndexStore",actionName:"Indexes.CreateIndexActions"},en={name:"Drop Index",component:kr,configureStore:(e={})=>{const t=St(_r,xt(qr));if(e.localAppRegistry){const r=e.localAppRegistry;t.dispatch((0,U.localAppRegistryActivated)(r)),r.on("toggle-drop-index-modal",((e,r)=>{t.dispatch(Sr(r)),t.dispatch(Mt(e))})),r.on("data-service-connected",((e,r)=>{Qr(t,e,r)}))}if(e.globalAppRegistry){const r=e.globalAppRegistry;t.dispatch((0,U.globalAppRegistryActivated)(r))}return e.namespace&&t.dispatch(Ut(e.namespace)),e.dataProvider&&Qr(t,e.dataProvider.error,e.dataProvider.dataProvider),t},configureActions:()=>{},storeName:"Indexes.DropIndexStore",actionName:"Indexes.DropIndexActions"};function tn(e){e.registerRole("Collection.Tab",Zr),e.registerRole("Collection.ScopedModal",Jr),e.registerRole("Collection.ScopedModal",en)}function rn(e){e.deregisterRole("Collection.Tab",Zr),e.deregisterRole("Collection.ScopedModal",Jr),e.deregisterRole("Collection.ScopedModal",en)}const nn=ot})(),n})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CompassIndexesPlugin=t():e.CompassIndexesPlugin=t()}(global,(()=>(()=>{var e={2563:e=>{const t="@mongodb-js/mongodb-redux-common/app-registry",n=`${t}/LOCAL_APP_REGISTRY_ACTIVATED`,r=`${t}/GLOBAL_APP_REGISTRY_ACTIVATED`,i={localAppRegistry:null,globalAppRegistry:null},a=(e,t,...n)=>{e&&e.emit(t,...n)};e.exports=(e=i,t)=>t.type===n?{...e,localAppRegistry:t.appRegistry}:t.type===r?{...e,globalAppRegistry:t.appRegistry}:e,e.exports.LOCAL_APP_REGISTRY_ACTIVATED=n,e.exports.GLOBAL_APP_REGISTRY_ACTIVATED=r,e.exports.INITIAL_STATE=i,e.exports.localAppRegistryActivated=e=>({type:n,appRegistry:e}),e.exports.globalAppRegistryActivated=e=>({type:r,appRegistry:e}),e.exports.localAppRegistryEmit=(e,...t)=>(n,r)=>{a(r().appRegistry.localAppRegistry,e,...t)},e.exports.globalAppRegistryEmit=(e,...t)=>(n,r)=>{a(r().appRegistry.globalAppRegistry,e,...t)}},3819:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},7728:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},1176:(e,t,n)=>{var r=n(5052);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},9540:(e,t,n)=>{var r=n(905),i=n(4237),a=n(3231),o=function(e){return function(t,n,o){var s,u=r(t),l=i(u.length),c=a(o,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5738:(e,t,n)=>{"use strict";var r=n(3819),i=n(1176),a=n(2391),o=n(5762),s=n(8787),u=n(95),l=n(6407),c=n(1333),f=n(4027),p=c("Promise"),h=l.set,d=l.get,m=u("toStringTag");e.exports=function(e,t){var n=function(e){e.next=r(e.iterator.next),e.done=!1,e.ignoreArgument=!t,h(this,e)};return n.prototype=s(a(f),{next:function(n){var r=this,a=!!arguments.length;return new p((function(o){var s=d(r),u=a?[s.ignoreArgument?void 0:n]:t?[]:[void 0];s.ignoreArgument=!1,o(s.done?{done:!0,value:void 0}:i(e.call(s,p,u)))}))},return:function(e){var t=this;return new p((function(n,r){var a=d(t),o=a.iterator;a.done=!0;var s=o.return;if(void 0===s)return n({done:!0,value:e});p.resolve(s.call(o,e)).then((function(t){i(t),n({done:!0,value:e})}),r)}))},throw:function(e){var t=this;return new p((function(n,r){var i=d(t),a=i.iterator;i.done=!0;var o=a.throw;if(void 0===o)return r(e);n(o.call(a,e))}))}}),t||o(n.prototype,m,"Generator"),n}},2676:(e,t,n)=>{"use strict";var r=n(3819),i=n(1176),a=n(1333)("Promise"),o=[].push,s=function(e){var t=0==e,n=1==e,s=2==e,u=3==e;return function(e,l){i(e);var c=r(e.next),f=t?[]:void 0;return t||r(l),new a((function(r,p){var h=function(t,n){try{var r=e.return;if(void 0!==r)return a.resolve(r.call(e)).then((function(){t(n)}),(function(e){p(e)}))}catch(e){return p(e)}t(n)},d=function(e){h(p,e)},m=function(){try{a.resolve(i(c.call(e))).then((function(e){try{if(i(e).done)r(t?f:!u&&(s||void 0));else{var c=e.value;t?(o.call(f,c),m()):a.resolve(l(c)).then((function(e){n?m():s?e?m():h(r,!1):e?h(r,u||c):m()}),d)}}catch(e){d(e)}}),d)}catch(e){d(e)}};m()}))}};e.exports={toArray:s(0),forEach:s(1),every:s(2),some:s(3),find:s(4)}},4027:(e,t,n)=>{var r,i,a=n(9859),o=n(5353),s=n(2391),u=n(7567),l=n(5762),c=n(95),f=n(4231),p="USE_FUNCTION_CONSTRUCTOR",h=c("asyncIterator"),d=a.AsyncIterator,m=o.AsyncIteratorPrototype;if(m)r=m;else if("function"==typeof d)r=d.prototype;else if(o[p]||a[p])try{i=u(u(u(Function("return async function*(){}()")()))),u(i)===Object.prototype&&(r=i)}catch(e){}r?f&&(r=s(r)):r={},"function"!=typeof r[h]&&l(r,h,(function(){return this})),e.exports=r},4960:(e,t,n)=>{var r=n(1176),i=n(7281);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},7079:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},1589:(e,t,n)=>{var r=n(1601),i=n(7079),a=n(95)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},7081:(e,t,n)=>{var r=n(816),i=n(4826),a=n(7933),o=n(1787);e.exports=function(e,t){for(var n=i(t),s=o.f,u=a.f,l=0;l<n.length;l++){var c=n[l];r(e,c)||s(e,c,u(t,c))}}},7528:(e,t,n)=>{var r=n(4229);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5762:(e,t,n)=>{var r=n(7400),i=n(1787),a=n(5358);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},5358:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7400:(e,t,n)=>{var r=n(4229);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2635:(e,t,n)=>{var r=n(9859),i=n(5052),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},598:(e,t,n)=>{var r=n(1333);e.exports=r("navigator","userAgent")||""},6358:(e,t,n)=>{var r,i,a=n(9859),o=n(598),s=a.process,u=a.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},3837:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3103:(e,t,n)=>{var r=n(9859),i=n(7933).f,a=n(5762),o=n(7487),s=n(2079),u=n(7081),l=n(6541);e.exports=function(e,t){var n,c,f,p,h,d=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[d]||s(d,{}):(r[d]||{}).prototype)for(c in t){if(p=t[c],f=e.noTargetGet?(h=i(n,c))&&h.value:n[c],!l(m?c:d+(g?".":"#")+c,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&a(p,"sham",!0),o(n,c,p,e)}}},4229:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7636:(e,t,n)=>{var r=n(3819);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},1333:(e,t,n)=>{var r=n(9859);e.exports=function(e,t){return arguments.length<2?"function"==typeof(n=r[e])?n:void 0:r[e]&&r[e][t];var n}},8830:(e,t,n)=>{var r=n(1589),i=n(5495),a=n(95)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[r(e)]}},8403:(e,t,n)=>{var r=n(1176),i=n(8830);e.exports=function(e,t){var n=arguments.length<2?i(e):t;if("function"!=typeof n)throw TypeError(String(e)+" is not iterable");return r(n.call(e))}},9859:e=>{var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},816:(e,t,n)=>{var r=n(2991),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},5977:e=>{e.exports={}},3777:(e,t,n)=>{var r=n(1333);e.exports=r("document","documentElement")},4394:(e,t,n)=>{var r=n(7400),i=n(4229),a=n(2635);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},9337:(e,t,n)=>{var r=n(4229),i=n(7079),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},8511:(e,t,n)=>{var r=n(5353),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},6407:(e,t,n)=>{var r,i,a,o=n(8694),s=n(9859),u=n(5052),l=n(5762),c=n(816),f=n(5353),p=n(4399),h=n(5977),d="Object already initialized",m=s.WeakMap;if(o||f.state){var g=f.state||(f.state=new m),v=g.get,y=g.has,b=g.set;r=function(e,t){if(y.call(g,e))throw new TypeError(d);return t.facade=e,b.call(g,e,t),t},i=function(e){return v.call(g,e)||{}},a=function(e){return y.call(g,e)}}else{var x=p("state");h[x]=!0,r=function(e,t){if(c(e,x))throw new TypeError(d);return t.facade=e,l(e,x,t),t},i=function(e){return c(e,x)?e[x]:{}},a=function(e){return c(e,x)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},1943:(e,t,n)=>{var r=n(95),i=n(5495),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},6541:(e,t,n)=>{var r=n(4229),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},5052:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4231:e=>{e.exports=!1},9395:(e,t,n)=>{var r=n(1333),i=n(6969);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return"function"==typeof t&&Object(e)instanceof t}},9003:(e,t,n)=>{var r=n(1176),i=n(1943),a=n(4237),o=n(7636),s=n(8403),u=n(8830),l=n(7281),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var f,p,h,d,m,g,v,y=n&&n.that,b=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=o(t,y,1+b+w),S=function(e){return f&&l(f,"normal",e),new c(!0,e)},E=function(e){return b?(r(e),w?_(e[0],e[1],S):_(e[0],e[1])):w?_(e,S):_(e)};if(x)f=e;else{if("function"!=typeof(p=u(e)))throw TypeError("Target is not iterable");if(i(p)){for(h=0,d=a(e.length);d>h;h++)if((m=E(e[h]))&&m instanceof c)return m;return new c(!1)}f=s(e,p)}for(g=f.next;!(v=g.call(f)).done;){try{m=E(v.value)}catch(e){l(f,"throw",e)}if("object"==typeof m&&m&&m instanceof c)return m}return new c(!1)}},7281:(e,t,n)=>{var r=n(1176);e.exports=function(e,t,n){var i,a;r(e);try{if(void 0===(i=e.return)){if("throw"===t)throw n;return n}i=i.call(e)}catch(e){a=!0,i=e}if("throw"===t)throw n;if(a)throw i;return r(i),n}},8671:(e,t,n)=>{"use strict";var r=n(3819),i=n(1176),a=n(2391),o=n(5762),s=n(8787),u=n(95),l=n(6407),c=n(693).IteratorPrototype,f=l.set,p=l.get,h=u("toStringTag");e.exports=function(e,t){var n=function(e){e.next=r(e.iterator.next),e.done=!1,e.ignoreArg=!t,f(this,e)};return n.prototype=s(a(c),{next:function(n){var r=p(this),i=arguments.length?[r.ignoreArg?void 0:n]:t?[]:[void 0];r.ignoreArg=!1;var a=r.done?void 0:e.call(r,i);return{done:r.done,value:a}},return:function(e){var t=p(this),n=t.iterator;t.done=!0;var r=n.return;return{done:!0,value:void 0===r?e:i(r.call(n,e)).value}},throw:function(e){var t=p(this),n=t.iterator;t.done=!0;var r=n.throw;if(void 0===r)throw e;return r.call(n,e)}}),t||o(n.prototype,h,"Generator"),n}},693:(e,t,n)=>{"use strict";var r,i,a,o=n(4229),s=n(2391),u=n(7567),l=n(5762),c=n(95),f=n(4231),p=c("iterator"),h=!1;[].keys&&("next"in(a=[].keys())?(i=u(u(a)))!==Object.prototype&&(r=i):h=!0),null==r||o((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=s(r)),"function"!=typeof r[p]&&l(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},5495:e=>{e.exports={}},3839:(e,t,n)=>{var r=n(6358),i=n(4229);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8694:(e,t,n)=>{var r=n(9859),i=n(8511),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},2391:(e,t,n)=>{var r,i=n(1176),a=n(219),o=n(3837),s=n(5977),u=n(3777),l=n(2635),c=n(4399),f="prototype",p="script",h=c("IE_PROTO"),d=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?g(r):(t=l("iframe"),n="java"+p+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var i=o.length;i--;)delete v[f][o[i]];return v()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d[f]=i(e),n=new d,d[f]=null,n[h]=e):n=v(),void 0===t?n:a(n,t)}},219:(e,t,n)=>{var r=n(7400),i=n(1787),a=n(1176),o=n(5632);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=o(t),s=r.length,u=0;s>u;)i.f(e,n=r[u++],t[n]);return e}},1787:(e,t,n)=>{var r=n(7400),i=n(4394),a=n(1176),o=n(9310),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t),a(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7933:(e,t,n)=>{var r=n(7400),i=n(9195),a=n(5358),o=n(905),s=n(9310),u=n(816),l=n(4394),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=o(e),t=s(t),l)try{return c(e,t)}catch(e){}if(u(e,t))return a(!i.f.call(e,t),e[t])}},8151:(e,t,n)=>{var r=n(140),i=n(3837).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},894:(e,t)=>{t.f=Object.getOwnPropertySymbols},7567:(e,t,n)=>{var r=n(816),i=n(2991),a=n(4399),o=n(7528),s=a("IE_PROTO"),u=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},140:(e,t,n)=>{var r=n(816),i=n(905),a=n(9540).indexOf,o=n(5977);e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)!r(o,n)&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(l,n)||l.push(n));return l}},5632:(e,t,n)=>{var r=n(140),i=n(3837);e.exports=Object.keys||function(e){return r(e,i)}},9195:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2914:(e,t,n)=>{var r=n(5052);e.exports=function(e,t){var n,i;if("string"===t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if("string"!==t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},4826:(e,t,n)=>{var r=n(1333),i=n(8151),a=n(894),o=n(1176);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},8787:(e,t,n)=>{var r=n(7487);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},7487:(e,t,n)=>{var r=n(9859),i=n(5762),a=n(816),o=n(2079),s=n(8511),u=n(6407),l=u.get,c=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u,l=!!s&&!!s.unsafe,p=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),(u=c(n)).source||(u.source=f.join("string"==typeof t?t:""))),e!==r?(l?!h&&e[t]&&(p=!0):delete e[t],p?e[t]=n:i(e,t,n)):p?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},8885:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},2079:(e,t,n)=>{var r=n(9859);e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},4399:(e,t,n)=>{var r=n(3036),i=n(1441),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},5353:(e,t,n)=>{var r=n(9859),i=n(2079),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},3036:(e,t,n)=>{var r=n(4231),i=n(5353);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},3231:(e,t,n)=>{var r=n(6051),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},905:(e,t,n)=>{var r=n(9337),i=n(8885);e.exports=function(e){return r(i(e))}},6051:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},4237:(e,t,n)=>{var r=n(6051),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},2991:(e,t,n)=>{var r=n(8885);e.exports=function(e){return Object(r(e))}},2066:(e,t,n)=>{var r=n(5052),i=n(9395),a=n(2914),o=n(95)("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,s=e[o];if(void 0!==s){if(void 0===t&&(t="default"),n=s.call(e,t),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},9310:(e,t,n)=>{var r=n(2066),i=n(9395);e.exports=function(e){var t=r(e,"string");return i(t)?t:String(t)}},1601:(e,t,n)=>{var r={};r[n(95)("toStringTag")]="z",e.exports="[object z]"===String(r)},1441:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},6969:(e,t,n)=>{var r=n(3839);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},95:(e,t,n)=>{var r=n(9859),i=n(3036),a=n(816),o=n(1441),s=n(3839),u=n(6969),l=i("wks"),c=r.Symbol,f=u?c:c&&c.withoutSetter||o;e.exports=function(e){return a(l,e)&&(s||"string"==typeof l[e])||(s&&a(c,e)?l[e]=c[e]:l[e]=f("Symbol."+e)),l[e]}},0:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(5738)((function(e,t){var n=this,r=n.filterer;return new e((function(i,o){var s=function(){try{e.resolve(a(n.next.apply(n.iterator,t))).then((function(t){try{if(a(t).done)n.done=!0,i({done:!0,value:void 0});else{var u=t.value;e.resolve(r(u)).then((function(e){e?i({done:!1,value:u}):s()}),o)}}catch(e){o(e)}}),o)}catch(e){o(e)}};s()}))}));r({target:"AsyncIterator",proto:!0,real:!0},{filter:function(e){return new o({iterator:a(this),filterer:i(e)})}})},8166:(e,t,n)=>{"use strict";var r=n(3103),i=n(2676).find;r({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return i(this,e)}})},4715:(e,t,n)=>{"use strict";var r=n(3103),i=n(2676).forEach;r({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return i(this,e)}})},4925:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(5738)((function(e,t){var n=this,r=n.mapper;return e.resolve(a(n.next.apply(n.iterator,t))).then((function(t){return a(t).done?(n.done=!0,{done:!0,value:void 0}):e.resolve(r(t.value)).then((function(e){return{done:!1,value:e}}))}))}));r({target:"AsyncIterator",proto:!0,real:!0},{map:function(e){return new o({iterator:a(this),mapper:i(e)})}})},4407:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(1333)("Promise");r({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){var t=a(this),n=i(t.next),r=arguments.length<2,s=r?void 0:arguments[1];return i(e),new o((function(i,u){var l=function(){try{o.resolve(a(n.call(t))).then((function(t){try{if(a(t).done)r?u(TypeError("Reduce of empty iterator with no initial value")):i(s);else{var n=t.value;r?(r=!1,s=n,l()):o.resolve(e(s,n)).then((function(e){s=e,l()}),u)}}catch(e){u(e)}}),u)}catch(e){u(e)}};l()}))}})},2856:(e,t,n)=>{"use strict";var r=n(3103),i=n(2676).some;r({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return i(this,e)}})},6464:(e,t,n)=>{"use strict";var r=n(3103),i=n(9859),a=n(7728),o=n(5762),s=n(4229),u=n(816),l=n(95),c=n(693).IteratorPrototype,f=n(4231),p=l("toStringTag"),h=i.Iterator,d=f||"function"!=typeof h||h.prototype!==c||!s((function(){h({})})),m=function(){a(this,m)};u(c,p)||o(c,p,"Iterator"),!d&&u(c,"constructor")&&c.constructor!==Object||o(c,"constructor",m),m.prototype=c,r({global:!0,forced:d},{Iterator:m})},8339:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(8671),s=n(4960),u=o((function(e){for(var t,n,r=this.iterator,i=this.filterer,o=this.next;;){if(t=a(o.apply(r,e)),this.done=!!t.done)return;if(n=t.value,s(r,i,n))return n}}));r({target:"Iterator",proto:!0,real:!0},{filter:function(e){return new u({iterator:a(this),filterer:i(e)})}})},5162:(e,t,n)=>{"use strict";var r=n(3103),i=n(9003),a=n(3819),o=n(1176);r({target:"Iterator",proto:!0,real:!0},{find:function(e){return o(this),a(e),i(this,(function(t,n){if(e(t))return n(t)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},9570:(e,t,n)=>{"use strict";var r=n(3103),i=n(9003),a=n(1176);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(a(this),e,{IS_ITERATOR:!0})}})},4819:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(8671),s=n(4960),u=o((function(e){var t=this.iterator,n=a(this.next.apply(t,e));if(!(this.done=!!n.done))return s(t,this.mapper,n.value)}));r({target:"Iterator",proto:!0,real:!0},{map:function(e){return new u({iterator:a(this),mapper:i(e)})}})},4903:(e,t,n)=>{"use strict";var r=n(3103),i=n(9003),a=n(3819),o=n(1176);r({target:"Iterator",proto:!0,real:!0},{reduce:function(e){o(this),a(e);var t=arguments.length<2,n=t?void 0:arguments[1];if(i(this,(function(r){t?(t=!1,n=r):n=e(n,r)}),{IS_ITERATOR:!0}),t)throw TypeError("Reduce of empty iterator with no initial value");return n}})},7610:(e,t,n)=>{"use strict";var r=n(3103),i=n(9003),a=n(3819),o=n(1176);r({target:"Iterator",proto:!0,real:!0},{some:function(e){return o(this),a(e),i(this,(function(t,n){if(e(t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},5130:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(7123)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:(e,t,n)=>{e.exports=function(e){function t(e){let n,i=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";s++;const a=t.formatters[i];if("function"==typeof a){const t=e[s];n=a.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(e):i,set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},445:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(5130):e.exports=n(8414)},8414:(e,t,n)=>{const r=n(6224),i=n(3849);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),a=` ${i};1m${r} `;n[0]=a+n[0].split("\n").join("\n"+a),n.push(i+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(7013);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=n(7123)(t);const{formatters:a}=e.exports;a.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},a.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},1829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParseMode:()=>ot,default:()=>xt});var r=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},s="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",u={5:s,"5module":s+" export import",6:s+" const class extends export import super"},l=/^in(stanceof)?$/,c=new RegExp("["+a+"]"),f=new RegExp("["+a+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function p(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function h(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,i)))}function d(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&f.test(String.fromCharCode(e)):!1!==t&&(p(e,i)||p(e,r)))))}var m=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function g(e,t){return new m(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},y={startsExpr:!0},b={};function x(e,t){return void 0===t&&(t={}),t.keyword=e,b[e]=new m(e,t)}var w={num:new m("num",y),regexp:new m("regexp",y),string:new m("string",y),name:new m("name",y),privateId:new m("privateId",y),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",v),semi:new m(";",v),colon:new m(":",v),dot:new m("."),question:new m("?",v),questionDot:new m("?."),arrow:new m("=>",v),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",v),backQuote:new m("`",y),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g("||",1),logicalAND:g("&&",2),bitwiseOR:g("|",3),bitwiseXOR:g("^",4),bitwiseAND:g("&",5),equality:g("==/!=/===/!==",6),relational:g("</>/<=/>=",7),bitShift:g("<</>>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g("%",10),star:g("*",10),slash:g("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:g("??",1),_break:x("break"),_case:x("case",v),_catch:x("catch"),_continue:x("continue"),_debugger:x("debugger"),_default:x("default",v),_do:x("do",{isLoop:!0,beforeExpr:!0}),_else:x("else",v),_finally:x("finally"),_for:x("for",{isLoop:!0}),_function:x("function",y),_if:x("if"),_return:x("return",v),_switch:x("switch"),_throw:x("throw",v),_try:x("try"),_var:x("var"),_const:x("const"),_while:x("while",{isLoop:!0}),_with:x("with"),_new:x("new",{beforeExpr:!0,startsExpr:!0}),_this:x("this",y),_super:x("super",y),_class:x("class",y),_extends:x("extends",v),_export:x("export"),_import:x("import",y),_null:x("null",y),_true:x("true",y),_false:x("false",y),_in:x("in",{beforeExpr:!0,binop:7}),_instanceof:x("instanceof",{beforeExpr:!0,binop:7}),_typeof:x("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},_=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(_.source,"g");function E(e){return 10===e||13===e||8232===e||8233===e}function k(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(E(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var C=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,I=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,P=Object.prototype,T=P.hasOwnProperty,A=P.toString,O=Object.hasOwn||function(e,t){return T.call(e,t)},N=Array.isArray||function(e){return"[object Array]"===A.call(e)};function R(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function L(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var M=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,F=function(e,t){this.line=e,this.column=t};F.prototype.offset=function(e){return new F(this.line,this.column+e)};var j=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function D(e,t){for(var n=1,r=0;;){var i=k(e,r,t);if(i<0)return new F(n,t-r);++n,r=i}}var V={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},B=!1;function z(e,t){return 2|(e?4:0)|(t?8:0)}var U=function(e,t,n){this.options=e=function(e){var t={};for(var n in V)t[n]=e&&O(e,n)?e[n]:V[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!B&&"object"==typeof console&&console.warn&&(B=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),N(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return N(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,o,s){var u={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(u.loc=new j(this,o,s)),e.ranges&&(u.range=[i,a]),t.push(u)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=R(u[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=o[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=R(r);var i=(r?r+" ":"")+o.strict;this.reservedWordsStrict=R(i),this.reservedWordsStrictBind=R(i+" "+o.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},$={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};U.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},$.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},$.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},$.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},$.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},$.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},$.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},$.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},$.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},$.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},U.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},U.parse=function(e,t){return new this(t,e).parse()},U.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},U.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(U.prototype,$);var W=U.prototype,q=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;W.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){I.lastIndex=e,e+=I.exec(this.input)[0].length;var t=q.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){I.lastIndex=e+t[0].length;var n=I.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||_.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,I.lastIndex=e,e+=I.exec(this.input)[0].length,";"===this.input[e]&&e++}},W.eat=function(e){return this.type===e&&(this.next(),!0)},W.isContextual=function(e){return this.type===w.name&&this.value===e&&!this.containsEsc},W.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},W.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},W.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||_.test(this.input.slice(this.lastTokEnd,this.start))},W.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},W.semicolon=function(){this.eat(w.semi)||this.insertSemicolon()||this.unexpected()},W.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},W.expect=function(e){this.eat(e)||this.unexpected()},W.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var H=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};W.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},W.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},W.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},W.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var G=U.prototype;G.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==w.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var K={kind:"loop"},Q={kind:"switch"};G.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;I.lastIndex=this.pos;var t=I.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(h(r,!0)){for(var i=n+1;d(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!l.test(a))return!0}return!1},G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;I.lastIndex=this.pos;var e,t=I.exec(this.input),n=this.pos+t[0].length;return!(_.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(d(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},G.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=w._var,r="let"),i){case w._break:case w._continue:return this.parseBreakContinueStatement(a,i.keyword);case w._debugger:return this.parseDebuggerStatement(a);case w._do:return this.parseDoStatement(a);case w._for:return this.parseForStatement(a);case w._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case w._class:return e&&this.unexpected(),this.parseClass(a,!0);case w._if:return this.parseIfStatement(a);case w._return:return this.parseReturnStatement(a);case w._switch:return this.parseSwitchStatement(a);case w._throw:return this.parseThrowStatement(a);case w._try:return this.parseTryStatement(a);case w._const:case w._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case w._while:return this.parseWhileStatement(a);case w._with:return this.parseWithStatement(a);case w.braceL:return this.parseBlock(!0,a);case w.semi:return this.parseEmptyStatement(a);case w._export:case w._import:if(this.options.ecmaVersion>10&&i===w._import){I.lastIndex=this.pos;var o=I.exec(this.input),s=this.pos+o[0].length,u=this.input.charCodeAt(s);if(40===u||46===u)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===w._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var l=this.value,c=this.parseExpression();return i===w.name&&"Identifier"===c.type&&this.eat(w.colon)?this.parseLabeledStatement(a,l,c,e):this.parseExpressionStatement(a,c)}},G.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(w.semi)||this.insertSemicolon()?e.label=null:this.type!==w.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},G.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},G.parseDoStatement=function(e){return this.next(),this.labels.push(K),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(w.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},G.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(w.parenL),this.type===w.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===w._var||this.type===w._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual("let"),o=!1,s=new H,u=this.parseExpression(!(t>-1)||"await",s);return this.type===w._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,s),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},G.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,X|(n?0:Z),!1,t)},G.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},G.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(w.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},G.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(w.braceL),this.labels.push(Q),this.enterScope(0);for(var n=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var r=this.type===w._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(w.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},G.parseThrowStatement=function(e){return this.next(),_.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Y=[];G.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===w._catch){var t=this.startNode();if(this.next(),this.eat(w.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLValPattern(t.param,n?4:2),this.expect(w.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(w._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},G.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},G.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(K),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},G.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},G.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},G.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===w._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var u=this.labels[s];if(u.statementStart!==e.start)break;u.statementStart=this.start,u.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},G.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},G.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(w.braceL),e&&this.enterScope(0);this.type!==w.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},G.parseFor=function(e,t){return e.init=t,this.expect(w.semi),e.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),e.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},G.parseForIn=function(e,t){var n=this.type===w._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},G.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(w.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===w._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(w.comma))break}return e},G.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var X=1,Z=2;function J(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function ee(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}G.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===w.star&&t&Z&&this.unexpected(),e.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&X&&(e.id=4&t&&this.type!==w.name?null:this.parseIdent(),!e.id||t&Z||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(z(e.async,e.generator)),t&X||(e.id=this.type===w.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&X?"FunctionDeclaration":"FunctionExpression")},G.parseFunctionParams=function(e){this.expect(w.parenL),e.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},G.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(w.braceL);this.type!==w.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(i.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(a&&this.raise(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&"PrivateIdentifier"===o.key.type&&J(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},G.parseClassElement=function(e){if(this.eat(w.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,a=!1,o="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(w.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===w.star?s=!0:r="static"}if(n.static=s,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==w.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(w.star)&&(i=!0),!r&&!a&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:r=u)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===w.parenL||"method"!==o||i||a){var l=!n.static&&ee(n,"constructor"),c=l&&e;l&&"method"!==o&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":o,this.parseClassMethod(n,i,a,c)}else this.parseClassField(n);return n},G.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword},G.parseClassElementName=function(e){this.type===w.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},G.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&ee(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},G.parseClassField=function(e){if(ee(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ee(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(w.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},G.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==w.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},G.parseClassId=function(e,t){this.type===w.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},G.parseClassSuper=function(e){e.superClass=this.eat(w._extends)?this.parseExprSubscripts(null,!1):null},G.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},G.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];O(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}},G.parseExport=function(e,t){if(this.next(),this.eat(w.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(w._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===w._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|X,!1,n)}else if(this.type===w._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),"Literal"===s.local.type&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},G.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),O(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},G.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if("ArrayPattern"===n)for(var o=0,s=t.elements;o<s.length;o+=1){var u=s[o];u&&this.checkPatternExport(e,u)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},G.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},G.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},G.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(w.braceL);!this.eat(w.braceR);){if(n)n=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},G.parseImport=function(e){return this.next(),this.type===w.string?(e.specifiers=Y,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===w.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},G.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===w.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(w.comma))return e}if(this.type===w.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(w.braceL);!this.eat(w.braceR);){if(t)t=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},G.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===w.string){var e=this.parseLiteral(this.value);return M.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},G.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},G.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var te=U.prototype;te.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},te.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];6===this.options.ecmaVersion&&t&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return e},te.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},te.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==w.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},te.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()},te.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(w.comma),t&&this.type===w.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===w.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},te.parseBindingListItem=function(e){return e},te.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},te.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(O(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},te.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var o=0,s=e.elements;o<s.length;o+=1){var u=s[o];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}},te.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var ne=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},re={b_stat:new ne("{",!1),b_expr:new ne("{",!0),b_tmpl:new ne("${",!1),p_stat:new ne("(",!1),p_expr:new ne("(",!0),q_tmpl:new ne("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ne("function",!1),f_expr:new ne("function",!0),f_expr_gen:new ne("function",!0,!1,null,!0),f_gen:new ne("function",!1,!1,null,!0)},ie=U.prototype;ie.initialContext=function(){return[re.b_stat]},ie.curContext=function(){return this.context[this.context.length-1]},ie.braceIsBlock=function(e){var t=this.curContext();return t===re.f_expr||t===re.f_stat||(e!==w.colon||t!==re.b_stat&&t!==re.b_expr?e===w._return||e===w.name&&this.exprAllowed?_.test(this.input.slice(this.lastTokEnd,this.start)):e===w._else||e===w.semi||e===w.eof||e===w.parenR||e===w.arrow||(e===w.braceL?t===re.b_stat:e!==w._var&&e!==w._const&&e!==w.name&&!this.exprAllowed):!t.isExpr)},ie.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ie.updateContext=function(e){var t,n=this.type;n.keyword&&e===w.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},ie.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},w.parenR.updateContext=w.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===re.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},w.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?re.b_stat:re.b_expr),this.exprAllowed=!0},w.dollarBraceL.updateContext=function(){this.context.push(re.b_tmpl),this.exprAllowed=!0},w.parenL.updateContext=function(e){var t=e===w._if||e===w._for||e===w._with||e===w._while;this.context.push(t?re.p_stat:re.p_expr),this.exprAllowed=!0},w.incDec.updateContext=function(){},w._function.updateContext=w._class.updateContext=function(e){!e.beforeExpr||e===w._else||e===w.semi&&this.curContext()!==re.p_stat||e===w._return&&_.test(this.input.slice(this.lastTokEnd,this.start))||(e===w.colon||e===w.braceL)&&this.curContext()===re.b_stat?this.context.push(re.f_stat):this.context.push(re.f_expr),this.exprAllowed=!1},w.backQuote.updateContext=function(){this.curContext()===re.q_tmpl?this.context.pop():this.context.push(re.q_tmpl),this.exprAllowed=!1},w.star.updateContext=function(e){if(e===w._function){var t=this.context.length-1;this.context[t]===re.f_expr?this.context[t]=re.f_expr_gen:this.context[t]=re.f_gen}this.exprAllowed=!0},w.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==w.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ae=U.prototype;function oe(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&oe(e.expression)}ae.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];o?("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property"):o=t[r]={init:!1,get:!1,set:!1},o[a]=!0}}},ae.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===w.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(w.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},ae.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new H,r=!0);var s=this.start,u=this.startLoc;this.type!==w.parenL&&this.type!==w.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,u)),this.type.isAssign){var c=this.startNodeAt(s,u);return c.operator=this.value,this.type===w.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===w.eq?this.checkLValPattern(l):this.checkLValSimple(l),c.left=l,this.next(),c.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},ae.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(w.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(w.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},ae.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},ae.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==w._in)&&a>r){var o=this.type===w.logicalOR||this.type===w.logicalAND,s=this.type===w.coalesce;s&&(a=w.logicalAND.binop);var u=this.value;this.next();var l=this.start,c=this.startLoc,f=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,c,a,i),p=this.buildBinary(t,n,e,f,u,o||s);return(o&&this.type===w.coalesce||s&&(this.type===w.logicalOR||this.type===w.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,n,r,i)}return e},ae.buildBinary=function(e,t,n,r,i,a){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},ae.parseMaybeUnary=function(e,t,n,r){var i,a=this.start,o=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),u=this.type===w.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,u,r),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):"delete"===s.operator&&oe(s.argument)?this.raiseRecoverable(s.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(s,u?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==w.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(a,o);l.operator=this.value,l.prefix=!1,l.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(l,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==w._in&&this.unexpected();return n||!this.eat(w.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,o,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},ae.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},ae.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||"ArrowFunctionExpression"===s.type){if(o){var u=this.startNodeAt(t,n);u.expression=s,s=this.finishNode(u,"ChainExpression")}return s}e=s}},ae.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,u=s&&this.eat(w.questionDot);r&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(w.bracketL);if(l||u&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var c=this.startNodeAt(t,n);c.object=e,l?(c.property=this.parseExpression(),this.expect(w.bracketR)):this.type===w.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,s&&(c.optional=u),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(w.parenL)){var f=new H,p=this.yieldPos,h=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,f);if(i&&!u&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=h,this.awaitIdentPos=d,this.parseArrowExpression(this.startNodeAt(t,n),m,!0,o);this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=m,s&&(g.optional=u),e=this.finishNode(g,"CallExpression")}else if(this.type===w.backQuote){(u||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,n);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e},ae.parseExprAtom=function(e,t){this.type===w.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case w._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==w.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL&&this.unexpected(),this.finishNode(n,"Super");case w._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case w.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===s.name&&!this.canInsertSemicolon()&&this.eat(w._function))return this.overrideContext(re.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&"async"===s.name&&this.type===w.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return s=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(w.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case w.regexp:var u=this.value;return(n=this.parseLiteral(u.value)).regex={pattern:u.pattern,flags:u.flags},n;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return(n=this.startNode()).value=this.type===w._null?null:this.type===w._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case w.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case w.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(w.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case w.braceL:return this.overrideContext(re.b_expr),this.parseObj(!1,e);case w._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ae.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case w.parenL:return this.parseDynamicImport(e);case w.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},ae.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(w.parenR)){var t=this.start;this.eat(w.comma)&&this.eat(w.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ae.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ae.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ae.parseParenExpression=function(){this.expect(w.parenL);var e=this.parseExpression();return this.expect(w.parenR),e},ae.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,s=this.start,u=this.startLoc,l=[],c=!0,f=!1,p=new H,h=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==w.parenR;){if(c?c=!1:this.expect(w.comma),a&&this.afterTrailingComma(w.parenR,!0)){f=!0;break}if(this.type===w.ellipsis){o=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(w.parenR),e&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=d,this.parseParenArrowList(r,i,l,t);l.length&&!f||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,l.length>1?((n=this.startNodeAt(s,u)).expressions=l,this.finishNodeAt(n,"SequenceExpression",m,g)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,i);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},ae.parseParenItem=function(e){return e},ae.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var se=[];ae.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(w.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,a=this.type===w._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(w.parenL)?e.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1):e.arguments=se,this.finishNode(e,"NewExpression")},ae.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===w.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===w.backQuote,this.finishNode(n,"TemplateElement")},ae.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===w.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(w.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(w.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},ae.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!_.test(this.input.slice(this.lastTokEnd,this.start))},ae.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(w.braceR);){if(r)r=!1;else if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},ae.parseProperty=function(e,t){var n,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,t),this.type===w.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(w.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(o)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,"Property")},ae.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===w.colon&&this.unexpected(),this.eat(w.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===w.comma||this.type===w.braceR||this.type===w.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===w.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var l=e.value.start;"get"===e.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},ae.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(w.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(w.bracketR),e.key;e.computed=!1}return e.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ae.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ae.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|z(t,r.generator)|(n?128:0)),this.expect(w.parenL),r.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},ae.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|z(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},ae.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==w.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!s||(o=this.strictDirective(this.end))&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()},ae.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if("Identifier"!==n[t].type)return!1;return!0},ae.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,1,t?null:n)}},ae.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(w.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===w.comma?o=null:this.type===w.ellipsis?(o=this.parseSpread(r),r&&this.type===w.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},ae.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},ae.parseIdent=function(e){var t=this.startNode();return this.type===w.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},ae.parsePrivateIdent=function(){var e=this.startNode();return this.type===w.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},ae.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(w.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ae.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ue=U.prototype;ue.raise=function(e,t){var n=D(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ue.raiseRecoverable=ue.raise,ue.curPosition=function(){if(this.options.locations)return new F(this.curLine,this.pos-this.lineStart)};var le=U.prototype,ce=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};le.enterScope=function(e){this.scopeStack.push(new ce(e))},le.exitScope=function(){this.scopeStack.pop()},le.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},le.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],259&s.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},le.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},le.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},le.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},le.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var fe=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new j(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},pe=U.prototype;function he(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}pe.startNode=function(){return new fe(this,this.start,this.startLoc)},pe.startNodeAt=function(e,t){return new fe(this,e,t)},pe.finishNode=function(e,t){return he.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},pe.finishNodeAt=function(e,t,n,r){return he.call(this,e,t,n,r)},pe.copyNode=function(e){var t=new fe(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var de,me,ge="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ve=ge+" Extended_Pictographic",ye=ve+" EBase EComp EMod EPres ExtPict",be={9:ge,10:ve,11:ve,12:ye,13:ye,14:ye},xe="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",we="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",_e=we+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Se=_e+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ee=Se+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ke=Ee+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ce={9:we,10:_e,11:Se,12:Ee,13:ke,14:ke+" Kawi Nag_Mundari Nagm"},Ie={};for(var Pe=0,Te=[9,10,11,12,13,14];Pe<Te.length;Pe+=1)me=void 0,(me=Ie[de=Te[Pe]]={binary:R(be[de]+" "+xe),nonBinary:{General_Category:R(xe),Script:R(Ce[de])}}).nonBinary.Script_Extensions=me.nonBinary.Script,me.nonBinary.gc=me.nonBinary.General_Category,me.nonBinary.sc=me.nonBinary.Script,me.nonBinary.scx=me.nonBinary.Script_Extensions;var Ae=U.prototype,Oe=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=Ie[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Ne(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Re(e){return e>=65&&e<=90||e>=97&&e<=122}function Le(e){return Re(e)||95===e}function Me(e){return Le(e)||Fe(e)}function Fe(e){return e>=48&&e<=57}function je(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function De(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ve(e){return e>=48&&e<=55}Oe.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Oe.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Oe.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Oe.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Oe.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Oe.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Oe.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Oe.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ae.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},Ae.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Ae.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},Ae.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Ae.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Ae.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Ae.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Ae.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Ae.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Ae.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},Ae.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Ae.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Ae.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Ae.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Ae.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Ae.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Ae.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ne(t)&&(e.lastIntValue=t,e.advance(),!0)},Ae.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Ne(n);)e.advance();return e.pos!==t},Ae.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Ae.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Ae.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Ae.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=L(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=L(e.lastIntValue);return!0}return!1},Ae.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return h(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ae.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ae.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Ae.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Ae.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Ae.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Ae.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Ae.regexp_eatZero=function(e){return 48===e.current()&&!Fe(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Ae.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Ae.regexp_eatControlLetter=function(e){var t=e.current();return!!Re(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ae.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(a-55296)+(s-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Ae.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Ae.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Ae.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Ae.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Ae.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){O(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Ae.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Ae.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Le(t=e.current());)e.lastStringValue+=L(t),e.advance();return""!==e.lastStringValue},Ae.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Me(t=e.current());)e.lastStringValue+=L(t),e.advance();return""!==e.lastStringValue},Ae.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Ae.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Ae.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Ae.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Ve(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},Ae.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Ae.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Fe(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Ae.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Ae.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Fe(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Ae.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;je(n=e.current());)e.lastIntValue=16*e.lastIntValue+De(n),e.advance();return e.pos!==t},Ae.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Ae.regexp_eatOctalDigit=function(e){var t=e.current();return Ve(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Ae.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!je(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+De(i),e.advance()}return!0};var Be=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new j(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ze=U.prototype;function Ue(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}ze.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Be(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ze.getToken=function(){return this.next(),new Be(this)},"undefined"!=typeof Symbol&&(ze[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===w.eof,value:t}}}}),ze.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(w.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ze.readToken=function(e){return h(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ze.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},ze.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=k(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},ze.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!E(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},ze.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&C.test(String.fromCharCode(e))))break e;++this.pos}}},ze.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},ze.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(w.ellipsis)):(++this.pos,this.finishToken(w.dot))},ze.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(w.assign,2):this.finishOp(w.slash,1)},ze.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?w.star:w.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=w.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(w.assign,n+1):this.finishOp(r,n)},ze.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(124===e?w.logicalOR:w.logicalAND,2):61===t?this.finishOp(w.assign,2):this.finishOp(124===e?w.bitwiseOR:w.bitwiseAND,1)},ze.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(w.assign,2):this.finishOp(w.bitwiseXOR,1)},ze.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!_.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(w.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(w.assign,2):this.finishOp(w.plusMin,1)},ze.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(w.assign,n+1):this.finishOp(w.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(w.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ze.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(w.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(w.arrow)):this.finishOp(61===e?w.eq:w.prefix,1)},ze.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(w.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(w.coalesce,2)}return this.finishOp(w.question,1)},ze.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,h(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(w.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+L(e)+"'")},ze.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+L(e)+"'")},ze.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},ze.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(_.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new Oe(this));s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var u=null;try{u=new RegExp(i,o)}catch(e){}return this.finishToken(w.regexp,{pattern:i,flags:o,value:u})},ze.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),a=this.pos,o=0,s=0,u=0,l=null==t?1/0:t;u<l;++u,++this.pos){var c=this.input.charCodeAt(this.pos),f=void 0;if(r&&95===c)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===s&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===u&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=c;else{if((f=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;s=c,o=o*e+f}}return r&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:o},ze.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Ue(this.input.slice(t,this.pos)),++this.pos):h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,n)},ze.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=Ue(this.input.slice(t,this.pos));return++this.pos,h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,o=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(w.num,o)},ze.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},ze.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(E(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(w.string,t)};var $e={};ze.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==$e)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ze.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $e;this.raise(e,t)},ze.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==w.template&&this.type!==w.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(w.template,e)):36===n?(this.pos+=2,this.finishToken(w.dollarBraceL)):(++this.pos,this.finishToken(w.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},ze.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(w.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},ze.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return L(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return E(t)?"":String.fromCharCode(t)}},ze.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},ze.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(d(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?h:d)(o,r)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=L(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},ze.readWord=function(){var e=this.readWord1(),t=w.name;return this.keywords.test(e)&&(t=b[e]),this.finishToken(t,e)},U.acorn={Parser:U,version:"8.8.2",defaultOptions:V,Position:F,SourceLocation:j,getLineInfo:D,Node:fe,TokenType:m,tokTypes:w,keywordTypes:b,TokContext:ne,tokContexts:re,isIdentifierChar:d,isIdentifierStart:h,Token:Be,isNewLine:E,lineBreak:_,lineBreakG:S,nonASCIIwhitespace:C};var We=n(345);function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function He(e,t,n){return t&&qe(e.prototype,t),n&&qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ke(e,t)}function Qe(e,t,n){return Qe=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ke(i,n.prototype),i},Qe.apply(null,arguments)}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xe(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ye(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e){return"string"==typeof e?We.Long.fromString(e):We.Long.fromNumber(e)}var Je={Date:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Date.apply(void 0,Xe(t))}))},et={Date:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qe(Date,Xe(t))}))},tt={RegExp,Binary:function(e,t){return new We.Binary(e,t)},BinData:function(e,t){return new We.Binary(Buffer.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new We.UUID).toBinary():new We.Binary(Buffer.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new We.Code(e,t)},DBRef:function(e,t,n,r){return new We.DBRef(e,t,n,r)},Decimal128:function(e){return We.Decimal128.fromString(e)},NumberDecimal:function(e){return We.Decimal128.fromString(e)},Double:function(e){return new We.Double(e)},Int32:function(e){return new We.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new We.Long(e,t)},NumberLong:Ze,Int64:Ze,Map:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t;return new(null!==(t=We.Map)&&void 0!==t?t:Map)(e)})),MaxKey:function(){return new We.MaxKey},MinKey:function(){return new We.MinKey},ObjectID:function(e){return new We.ObjectId(e)},ObjectId:function(e){return new We.ObjectId(e)},Symbol:function(e){return new We.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new We.Timestamp({t:e,i:t}):new We.Timestamp(e)},ISODate:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qe(Date,Xe(t))}},nt=Object.freeze({Infinity:1/0,NaN:NaN,undefined:void 0}),rt={Math:{class:Math,allowedMethods:{abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0}},Date:{class:Date,allowedMethods:{getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0}},ISODate:{class:Date,allowedMethods:"Date"}},it=Object.freeze([].concat(Xe(Object.keys(tt)),Xe(Object.keys(et)),Xe(Object.keys(Je))));function at(e,t){if(rt[e]){var n=rt[e].allowedMethods;return"string"==typeof n?rt[n].allowedMethods[t]:n[t]}return!1}var ot,st=He((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,Ge(this,"checkSafeCall",(function(e){var t=n.options.allowMethods;if("Identifier"===e.callee.type)return it.indexOf(e.callee.name)>=0&&e.arguments.every(n.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){var r=e.callee.object,i=e.callee.property;return"Identifier"===r.type&&"Identifier"===i.type?at(r.name,i.name)&&e.arguments.every(n.checkSafeExpression):"NewExpression"!==r.type&&"CallExpression"!==r.type||"Identifier"!==r.callee.type?n.checkSafeExpression(r)&&e.arguments.every(n.checkSafeExpression):at(r.callee.name,i.name)&&e.arguments.every(n.checkSafeExpression)}return!1})),Ge(this,"checkSafeExpression",(function(e){switch(e.type){case"Identifier":return nt.hasOwnProperty(e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(n.checkSafeExpression);case"UnaryExpression":return n.checkSafeExpression(e.argument);case"BinaryExpression":return n.checkSafeExpression(e.left)&&n.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return n.checkSafeCall(e);case"ObjectExpression":return e.properties.every((function(e){return!e.computed&&!e.method&&!!["Literal","Identifier"].includes(e.key.type)&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||n.checkSafeExpression(e.value))}));default:return!1}}))})),ut=function(e,t){return"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new st(t).checkSafeExpression(e.body[0].expression)},lt=function(e){if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-pt(e.argument);case"+":return+pt(e.argument);case"!":return!pt(e.argument);case"~":return~pt(e.argument);default:throw new Error("Invalid UnaryExpression Provided: '".concat(e.operator,"'"))}},ct=function(e){var t=e.left,n=e.right;switch(e.operator){case"==":return pt(t)==pt(n);case"!=":return pt(t)!=pt(n);case"===":return pt(t)===pt(n);case"!==":return pt(t)!==pt(n);case"<":return pt(t)<pt(n);case"<=":return pt(t)<=pt(n);case">":return pt(t)>pt(n);case">=":return pt(t)>=pt(n);case"<<":return pt(t)<<pt(n);case">>":return pt(t)>>pt(n);case">>>":return pt(t)>>>pt(n);case"+":return pt(t)+pt(n);case"-":return pt(t)-pt(n);case"*":return pt(t)*pt(n);case"/":return pt(t)/pt(n);case"%":return pt(t)%pt(n);case"**":return Math.pow(pt(t),pt(n));case"|":return pt(t)|pt(n);case"^":return pt(t)^pt(n);case"&":return pt(t)&pt(n);case"in":return pt(t)in pt(n);case"instanceof":return pt(t)instanceof pt(n);default:throw new Error("Invalid BinaryExpression Provided: '".concat(e.operator,"'"))}},ft=function(e,t){switch(e.callee.type){case"Identifier":var n=function(e,t){if(t&&et[e])return et[e];if(!t&&Je[e])return Je[e];if(tt[e])return tt[e];throw new Error("Attempted to access scope property '".concat(e,"' that doesn't exist"))}(e.callee.name,t),r=e.arguments.map((function(e){return pt(e)}));return n.apply(n,r);case"MemberExpression":var i="Identifier"===e.callee.object.type?function(e){if(rt[e])return rt[e].class;throw new Error("Attempted to access member '".concat(e,"' that doesn't exist"))}(e.callee.object.name):pt(e.callee.object),a="Identifier"===e.callee.property.type&&e.callee.property.name;if(!a)throw new Error("Expected CallExpression property to be an identifier");var o=e.arguments.map((function(e){return pt(e)}));return i[a].apply(i,o);default:throw new Error("Should not evaluate invalid expressions")}},pt=function e(t){switch(t.type){case"Identifier":if(nt.hasOwnProperty(t.name))return nt[t.name];throw new Error("".concat(t.name," is not a valid Identifier"));case"Literal":return t.value;case"UnaryExpression":return lt(t);case"BinaryExpression":return ct(t);case"ArrayExpression":return t.elements.map((function(t){return e(t)}));case"CallExpression":return ft(t,!1);case"NewExpression":return ft(t,!0);case"ObjectExpression":var n={};return t.properties.forEach((function(t){var r="Identifier"===t.key.type?t.key.name:e(t.key);n[r]=e(t.value)})),n;case"FunctionExpression":case"ArrowFunctionExpression":return function(e){var t,n=(null===(t=e.loc)||void 0===t?void 0:t.source)||"",r=e.range||[];return n.slice(r[0],r[1])}(t);default:throw new Error}},ht=function(e){if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return pt(e.body[0].expression);throw new Error("Invalid AST Found")};function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(ot||(ot={}));var gt={allowMethods:!1,allowComments:!1},vt={allowMethods:!0},yt={allowMethods:!0,allowComments:!0},bt=mt({mode:ot.Strict},gt);function xt(e,t){var n=function(e){return mt(mt(mt({},bt),function(e){switch(e){case ot.Strict:return gt;case ot.Extended:return vt;case ot.Loose:return yt}}(e&&e.mode||ot.Strict)),e)}(t),r=function(e){var t=!1,n=function(e,t){return U.parse(e,t)}(e,{ecmaVersion:6,onComment:function(){return t=!0},locations:!0,ranges:!0,sourceFile:e});return{ast:n,hasComments:t}}("(\n".concat(e,"\n)")),i=r.hasComments,a=r.ast;return i&&!n.allowComments||!ut(a,n)?"":ht(a)}},8137:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)}},3463:(e,t,n)=>{"use strict";var r=n(3887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var i=h(n);i&&i!==d&&e(t,i,r)}var o=c(n);f&&(o=o.concat(f(n)));for(var s=u(t),m=u(n),g=0;g<o.length;++g){var v=o[g];if(!(a[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{l(t,v,y)}catch(e){}}}}return t}},3459:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case a:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case m:case u:return e;default:return t}}case i:return t}}}function _(e){return w(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||w(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===o||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3887:(e,t,n)=>{"use strict";e.exports=n(3459)},841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayToString=void 0,t.arrayToString=(e,t,n)=>{const r=e.map((function(e,r){const i=n(e,r);return void 0===i?String(i):t+i.split("\n").join(`\n${t}`)})).join(t?",\n":","),i=t&&r?"\n":"";return`[${i}${r}${i}]`}},2679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionParser=t.dedentFunction=t.functionToString=t.USED_METHOD_KEY=void 0;const r=n(311),i='"'==={" "(){}}[" "].toString().charAt(0),a={Function:"function ",GeneratorFunction:"function* ",AsyncFunction:"async function ",AsyncGeneratorFunction:"async function* "},o={Function:"",GeneratorFunction:"*",AsyncFunction:"async ",AsyncGeneratorFunction:"async *"},s=new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" "));function u(e){let t;for(const n of e.split("\n").slice(1)){const r=/^[\s\t]+/.exec(n);if(!r)return e;const[i]=r;(void 0===t||i.length<t.length)&&(t=i)}return t?e.split(`\n${t}`).join("\n"):e}t.USED_METHOD_KEY=new WeakSet,t.functionToString=(e,n,r,i)=>{const a="string"==typeof i?i:void 0;return void 0!==a&&t.USED_METHOD_KEY.add(e),new l(e,n,r,a).stringify()},t.dedentFunction=u;class l{constructor(e,t,n,i){this.fn=e,this.indent=t,this.next=n,this.key=i,this.pos=0,this.hadKeyword=!1,this.fnString=Function.prototype.toString.call(e),this.fnType=e.constructor.name,this.keyQuote=void 0===i?"":r.quoteKey(i,n),this.keyPrefix=void 0===i?"":`${this.keyQuote}:${t?" ":""}`,this.isMethodCandidate=void 0!==i&&(""===this.fn.name||this.fn.name===i)}stringify(){const e=this.tryParse();return e?u(e):`${this.keyPrefix}void ${this.next(this.fnString)}`}getPrefix(){return this.isMethodCandidate&&!this.hadKeyword?o[this.fnType]+this.keyQuote:this.keyPrefix+a[this.fnType]}tryParse(){if("}"!==this.fnString[this.fnString.length-1])return this.keyPrefix+this.fnString;if(this.fn.name){const e=this.tryStrippingName();if(e)return e}const e=this.pos;if("class"===this.consumeSyntax())return this.fnString;if(this.pos=e,this.tryParsePrefixTokens()){const e=this.tryStrippingName();if(e)return e;let t=this.pos;switch(this.consumeSyntax("WORD_LIKE")){case"WORD_LIKE":this.isMethodCandidate&&!this.hadKeyword&&(t=this.pos);case"()":if("=>"===this.fnString.substr(this.pos,2))return this.keyPrefix+this.fnString;this.pos=t;case'"':case"'":case"[]":return this.getPrefix()+this.fnString.substr(this.pos)}}}tryStrippingName(){if(i)return;let e=this.pos;const t=this.fnString.substr(this.pos,this.fn.name.length);if(t===this.fn.name&&(this.pos+=t.length,"()"===this.consumeSyntax()&&"{}"===this.consumeSyntax()&&this.pos===this.fnString.length))return!this.isMethodCandidate&&r.isValidVariableName(t)||(e+=t.length),this.getPrefix()+this.fnString.substr(e);this.pos=e}tryParsePrefixTokens(){let e=this.pos;switch(this.hadKeyword=!1,this.fnType){case"AsyncFunction":if("async"!==this.consumeSyntax())return!1;e=this.pos;case"Function":return"function"===this.consumeSyntax()?this.hadKeyword=!0:this.pos=e,!0;case"AsyncGeneratorFunction":if("async"!==this.consumeSyntax())return!1;case"GeneratorFunction":let t=this.consumeSyntax();return"function"===t&&(t=this.consumeSyntax(),this.hadKeyword=!0),"*"===t}}consumeSyntax(e){const t=this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);if(!t)return;const[n,r]=t;if(this.consumeWhitespace(),r)return e||r;switch(n){case"(":return this.consumeSyntaxUntil("(",")");case"[":return this.consumeSyntaxUntil("[","]");case"{":return this.consumeSyntaxUntil("{","}");case"`":return this.consumeTemplate();case'"':return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/,'"');case"'":return this.consumeRegExp(/^(?:[^\\']|\\.)*'/,"'")}return n}consumeSyntaxUntil(e,t){let n=!0;for(;;){const r=this.consumeSyntax();if(r===t)return e+t;if(!r||")"===r||"]"===r||"}"===r)return;"/"===r&&n&&this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)?(n=!1,this.consumeWhitespace()):n=s.has(r)}}consumeMatch(e){const t=e.exec(this.fnString.substr(this.pos));return t&&(this.pos+=t[0].length),t}consumeRegExp(e,t){const n=e.exec(this.fnString.substr(this.pos));if(n)return this.pos+=n[0].length,this.consumeWhitespace(),t}consumeTemplate(){for(;;){if(this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/),"`"===this.fnString[this.pos])return this.pos++,this.consumeWhitespace(),"`";if("${"!==this.fnString.substr(this.pos,2)||(this.pos+=2,this.consumeWhitespace(),!this.consumeSyntaxUntil("{","}")))return}}consumeWhitespace(){this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/)}}t.FunctionParser=l},6081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;const r=n(4225),i=n(311),a=Symbol("root");t.stringify=function(e,t,n,o={}){const s="string"==typeof n?n:" ".repeat(n||0),u=[],l=new Set,c=new Map,f=new Map;let p=0;const{maxDepth:h=100,references:d=!1,skipUndefinedProperties:m=!1,maxValues:g=1e5}=o,v=function(e){return e?(t,n,i,a)=>e(t,n,(e=>r.toString(e,n,i,a)),a):r.toString}(t),y=(e,t)=>{if(++p>g)return;if(m&&void 0===e)return;if(u.length>h)return;if(void 0===t)return v(e,s,y,t);u.push(t);const n=b(e,t===a?void 0:t);return u.pop(),n},b=d?(e,t)=>{if(null!==e&&("object"==typeof e||"function"==typeof e||"symbol"==typeof e)){if(c.has(e))return f.set(u.slice(1),c.get(e)),v(void 0,s,y,t);c.set(e,u.slice(1))}return v(e,s,y,t)}:(e,t)=>{if(l.has(e))return;l.add(e);const n=v(e,s,y,t);return l.delete(e),n},x=y(e,a);if(f.size){const e=s?" ":"",t=s?"\n":"";let n=`var x${e}=${e}${x};${t}`;for(const[r,a]of f.entries())n+=`x${i.stringifyPath(r,y)}${e}=${e}x${i.stringifyPath(a,y)};${t}`;return`(function${e}()${e}{${t}${n}return x;${t}}())`}return x}},7112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToString=void 0;const r=n(311),i=n(2679),a=n(841);t.objectToString=(e,t,n,r)=>{if("function"==typeof Buffer&&Buffer.isBuffer(e))return`Buffer.from(${n(e.toString("base64"))}, 'base64')`;if("object"==typeof global&&e===global)return o(e,t,n,r);const i=s[Object.prototype.toString.call(e)];return i?i(e,t,n,r):void 0};const o=(e,t,n)=>`Function(${n("return this")})()`,s={"[object Array]":a.arrayToString,"[object Object]":(e,t,n,a)=>{const o=t?"\n":"",s=t?" ":"",u=Object.keys(e).reduce((function(a,o){const u=e[o],l=n(u,o);if(void 0===l)return a;const c=l.split("\n").join(`\n${t}`);return i.USED_METHOD_KEY.has(u)?(a.push(`${t}${c}`),a):(a.push(`${t}${r.quoteKey(o,n)}:${s}${c}`),a)}),[]).join(`,${o}`);return""===u?"{}":`{${o}${u}${o}}`},"[object Error]":(e,t,n)=>`new Error(${n(e.message)})`,"[object Date]":e=>`new Date(${e.getTime()})`,"[object String]":(e,t,n)=>`new String(${n(e.toString())})`,"[object Number]":e=>`new Number(${e})`,"[object Boolean]":e=>`new Boolean(${e})`,"[object Set]":(e,t,n)=>`new Set(${n(Array.from(e))})`,"[object Map]":(e,t,n)=>`new Map(${n(Array.from(e))})`,"[object RegExp]":String,"[object global]":o,"[object Window]":o}},311:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyPath=t.quoteKey=t.isValidVariableName=t.IS_VALID_IDENTIFIER=t.quoteString=void 0;const n=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=new Map([["\b","\\b"],["\t","\\t"],["\n","\\n"],["\f","\\f"],["\r","\\r"],["'","\\'"],['"','\\"'],["\\","\\\\"]]);function i(e){return r.get(e)||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}t.quoteString=function(e){return`'${e.replace(n,i)}'`};const a=new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));function o(e){return"string"==typeof e&&!a.has(e)&&t.IS_VALID_IDENTIFIER.test(e)}t.IS_VALID_IDENTIFIER=/^[A-Za-z_$][A-Za-z0-9_$]*$/,t.isValidVariableName=o,t.quoteKey=function(e,t){return o(e)?e:t(e)},t.stringifyPath=function(e,t){let n="";for(const r of e)o(r)?n+=`.${r}`:n+=`[${t(r)}]`;return n}},4225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;const r=n(311),i=n(7112),a=n(2679),o={string:r.quoteString,number:e=>Object.is(e,-0)?"-0":String(e),boolean:String,symbol:(e,t,n)=>{const r=Symbol.keyFor(e);return void 0!==r?`Symbol.for(${n(r)})`:`Symbol(${n(e.description)})`},bigint:(e,t,n)=>`BigInt(${n(String(e))})`,undefined:String,object:i.objectToString,function:a.functionToString};t.toString=(e,t,n,r)=>null===e?"null":o[typeof e](e,t,n,r)},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,l=128,c=1/0,f=9007199254740991,p=NaN,h=4294967295,d=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",w="[object GeneratorFunction]",_="[object Map]",S="[object Number]",E="[object Object]",k="[object Promise]",C="[object RegExp]",I="[object Set]",P="[object String]",T="[object Symbol]",A="[object WeakMap]",O="[object ArrayBuffer]",N="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",D="[object Uint8Array]",V="[object Uint8ClampedArray]",B="[object Uint16Array]",z="[object Uint32Array]",U=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,G=RegExp(q.source),K=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="["+we+"]",Te="["+Ie+"]",Ae="["+_e+"]",Oe="\\d+",Ne="["+Se+"]",Re="["+Ee+"]",Le="[^"+we+Ie+Oe+Se+Ee+ke+"]",Me="\\ud83c[\\udffb-\\udfff]",Fe="[^"+we+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+ke+"]",Be="\\u200d",ze="(?:"+Re+"|"+Le+")",Ue="(?:"+Ve+"|"+Le+")",$e="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Ae+"|"+Me+")?",He="["+Ce+"]?",Ge=He+qe+"(?:"+Be+"(?:"+[Fe,je,De].join("|")+")"+He+qe+")*",Ke="(?:"+[Ne,je,De].join("|")+")"+Ge,Qe="(?:"+[Fe+Ae+"?",Ae,je,De,Pe].join("|")+")",Ye=RegExp("['’]","g"),Xe=RegExp(Ae,"g"),Ze=RegExp(Me+"(?="+Me+")|"+Qe+Ge,"g"),Je=RegExp([Ve+"?"+Re+"+"+$e+"(?="+[Te,Ve,"$"].join("|")+")",Ue+"+"+We+"(?="+[Te,Ve+ze,"$"].join("|")+")",Ve+"?"+ze+"+"+$e,Ve+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Ke].join("|"),"g"),et=RegExp("["+Be+we+_e+Ce+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[R]=it[L]=it[M]=it[F]=it[j]=it[D]=it[V]=it[B]=it[z]=!0,it[m]=it[g]=it[O]=it[v]=it[N]=it[y]=it[b]=it[x]=it[_]=it[S]=it[E]=it[C]=it[I]=it[P]=it[A]=!1;var at={};at[m]=at[g]=at[O]=at[N]=at[v]=at[y]=at[R]=at[L]=at[M]=at[F]=at[j]=at[_]=at[S]=at[E]=at[C]=at[I]=at[P]=at[T]=at[D]=at[V]=at[B]=at[z]=!0,at[b]=at[x]=at[A]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,lt="object"==typeof global&&global&&global.Object===Object&&global,ct="object"==typeof self&&self&&self.Object===Object&&self,ft=lt||ct||Function("return this")(),pt=t&&!t.nodeType&&t,ht=pt&&e&&!e.nodeType&&e,dt=ht&&ht.exports===pt,mt=dt&&lt.process,gt=function(){try{return ht&&ht.require&&ht.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,yt=gt&&gt.isDate,bt=gt&&gt.isMap,xt=gt&&gt.isRegExp,wt=gt&&gt.isSet,_t=gt&&gt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Tt(e,t){return!(null==e||!e.length)&&Vt(e,t,0)>-1}function At(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Nt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ft=$t("length");function jt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Dt(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Vt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Dt(e,zt,n)}function Bt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function zt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Ht(e,t)/n:p}function $t(e){return function(t){return null==t?i:t[e]}}function Wt(e){return function(t){return null==e?i:e[t]}}function qt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Ht(e,t){for(var n,r=-1,a=e.length;++r<a;){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Qt(e){return function(t){return e(t)}}function Yt(e,t){return Ot(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var en=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+ot[e]}function rn(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function on(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&o!==s||(e[n]=s,a[i++]=n)}return a}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function cn(e){return rn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Ft(e)}function fn(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var hn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dn=function e(t){var n,r=(t=null==t?ft:dn.defaults(ft.Object(),t,dn.pick(ft,nt))).Array,ie=t.Date,we=t.Error,_e=t.Function,Se=t.Math,Ee=t.Object,ke=t.RegExp,Ce=t.String,Ie=t.TypeError,Pe=r.prototype,Te=_e.prototype,Ae=Ee.prototype,Oe=t["__core-js_shared__"],Ne=Te.toString,Re=Ae.hasOwnProperty,Le=0,Me=(n=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=Ae.toString,je=Ne.call(Ee),De=ft._,Ve=ke("^"+Ne.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=dt?t.Buffer:i,ze=t.Symbol,Ue=t.Uint8Array,$e=Be?Be.allocUnsafe:i,We=on(Ee.getPrototypeOf,Ee),qe=Ee.create,He=Ae.propertyIsEnumerable,Ge=Pe.splice,Ke=ze?ze.isConcatSpreadable:i,Qe=ze?ze.iterator:i,Ze=ze?ze.toStringTag:i,et=function(){try{var e=ua(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=ie&&ie.now!==ft.Date.now&&ie.now,ct=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=Se.ceil,ht=Se.floor,mt=Ee.getOwnPropertySymbols,gt=Be?Be.isBuffer:i,Ft=t.isFinite,Wt=Pe.join,mn=on(Ee.keys,Ee),gn=Se.max,vn=Se.min,yn=ie.now,bn=t.parseInt,xn=Se.random,wn=Pe.reverse,_n=ua(t,"DataView"),Sn=ua(t,"Map"),En=ua(t,"Promise"),kn=ua(t,"Set"),Cn=ua(t,"WeakMap"),In=ua(Ee,"create"),Pn=Cn&&new Cn,Tn={},An=Fa(_n),On=Fa(Sn),Nn=Fa(En),Rn=Fa(kn),Ln=Fa(Cn),Mn=ze?ze.prototype:i,Fn=Mn?Mn.valueOf:i,jn=Mn?Mn.toString:i;function Dn(e){if(es(e)&&!$o(e)&&!(e instanceof Un)){if(e instanceof zn)return e;if(Re.call(e,"__wrapped__"))return ja(e)}return new zn(e)}var Vn=function(){function e(){}return function(t){if(!Jo(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Kn(e,t){var n=$o(e),r=!n&&Uo(e),i=!n&&!r&&Go(e),a=!n&&!r&&!i&&us(e),o=n||r||i||a,s=o?Gt(e.length,Ce):[],u=s.length;for(var l in e)!t&&!Re.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ma(l,u))||s.push(l);return s}function Qn(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Yn(e,t){return Oa(Ci(e),ar(t,0,e.length))}function Xn(e){return Oa(Ci(e))}function Zn(e,t,n){(n!==i&&!Vo(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Jn(e,t,n){var r=e[t];Re.call(e,t)&&Vo(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Vo(e[n][0],t))return n;return-1}function tr(e,t,n,r){return cr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function nr(e,t){return e&&Ii(t,As(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,a=t.length,o=r(a),s=null==e;++n<a;)o[n]=s?i:ks(e,t[n]);return o}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function or(e,t,n,r,a,o){var s,u=1&t,l=2&t,c=4&t;if(n&&(s=a?n(e,r,a,o):n(e)),s!==i)return s;if(!Jo(e))return e;var f=$o(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Ci(e,s)}else{var p=fa(e),h=p==x||p==w;if(Go(e))return xi(e,u);if(p==E||p==m||h&&!a){if(s=l||h?{}:ha(e),!u)return l?function(e,t){return Ii(e,ca(e),t)}(e,function(e,t){return e&&Ii(t,Os(t),e)}(s,e)):function(e,t){return Ii(e,la(e),t)}(e,nr(s,e))}else{if(!at[p])return a?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case O:return wi(e);case v:case y:return new i(+e);case N:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case L:case M:case F:case j:case D:case V:case B:case z:return _i(e,n);case _:return new i;case S:case P:return new i(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new i;case T:return r=e,Fn?Ee(Fn.call(r)):{}}}(e,p,u)}}o||(o=new Gn);var d=o.get(e);if(d)return d;o.set(e,s),as(e)?e.forEach((function(r){s.add(or(r,t,n,r,e,o))})):ts(e)&&e.forEach((function(r,i){s.set(i,or(r,t,n,i,e,o))}));var g=f?i:(c?l?ta:ea:l?Os:As)(e);return kt(g||e,(function(r,i){g&&(r=e[i=r]),Jn(s,i,or(r,t,n,i,e,o))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var a=n[r],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ie(a);return Ia((function(){e.apply(i,n)}),t)}function lr(e,t,n,r){var i=-1,a=Tt,o=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=Ot(t,Qt(n))),r?(a=At,o=!1):t.length>=200&&(a=Xt,o=!1,t=new Hn(t));e:for(;++i<s;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,o&&f==f){for(var p=l;p--;)if(t[p]===f)continue e;u.push(c)}else a(t,f,r)||u.push(c)}return u}Dn.templateSettings={escape:Q,evaluate:Y,interpolate:X,variable:"",imports:{_:Dn}},Dn.prototype=Bn.prototype,Dn.prototype.constructor=Dn,zn.prototype=Vn(Bn.prototype),zn.prototype.constructor=zn,Un.prototype=Vn(Bn.prototype),Un.prototype.constructor=Un,$n.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},$n.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$n.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===o?i:n}return Re.call(t,e)?t[e]:i},$n.prototype.has=function(e){var t=this.__data__;return In?t[e]!==i:Re.call(t,e)},$n.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===i?o:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(Sn||Wn),string:new $n}},qn.prototype.delete=function(e){var t=oa(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return oa(this,e).get(e)},qn.prototype.has=function(e){return oa(this,e).has(e)},qn.prototype.set=function(e,t){var n=oa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,o),this},Hn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var cr=Ai(yr),fr=Ai(br,!0);function pr(e,t){var n=!0;return cr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,a=e.length;++r<a;){var o=e[r],s=t(o);if(null!=s&&(u===i?s==s&&!ss(s):n(s,u)))var u=s,l=o}return l}function dr(e,t){var n=[];return cr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=da),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):Nt(i,s):r||(i[i.length]=s)}return i}var gr=Oi(),vr=Oi(!0);function yr(e,t){return e&&gr(e,t,As)}function br(e,t){return e&&vr(e,t,As)}function xr(e,t){return Pt(t,(function(t){return Yo(e[t])}))}function wr(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Ma(t[n++])];return n&&n==r?e:i}function _r(e,t,n){var r=t(e);return $o(e)?r:Nt(r,n(e))}function Sr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in Ee(e)?function(e){var t=Re.call(e,Ze),n=e[Ze];try{e[Ze]=i;var r=!0}catch(e){}var a=Fe.call(e);return r&&(t?e[Ze]=n:delete e[Ze]),a}(e):function(e){return Fe.call(e)}(e)}function Er(e,t){return e>t}function kr(e,t){return null!=e&&Re.call(e,t)}function Cr(e,t){return null!=e&&t in Ee(e)}function Ir(e,t,n){for(var a=n?At:Tt,o=e[0].length,s=e.length,u=s,l=r(s),c=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Ot(p,Qt(t))),c=vn(p.length,c),l[u]=!n&&(t||o>=120&&p.length>=120)?new Hn(u&&p):i}p=e[0];var h=-1,d=l[0];e:for(;++h<o&&f.length<c;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(d?Xt(d,g):a(f,g,n))){for(u=s;--u;){var v=l[u];if(!(v?Xt(v,g):a(e[u],g,n)))continue e}d&&d.push(g),f.push(m)}}return f}function Pr(e,t,n){var r=null==(e=Ea(e,t=gi(t,e)))?e:e[Ma(Ka(t))];return null==r?i:St(r,e,n)}function Tr(e){return es(e)&&Sr(e)==m}function Ar(e,t,n,r,a){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,a,o){var s=$o(e),u=$o(t),l=s?g:fa(e),c=u?g:fa(t),f=(l=l==m?E:l)==E,p=(c=c==m?E:c)==E,h=l==c;if(h&&Go(e)){if(!Go(t))return!1;s=!0,f=!1}if(h&&!f)return o||(o=new Gn),s||us(e)?Zi(e,t,n,r,a,o):function(e,t,n,r,i,a,o){switch(n){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new Ue(e),new Ue(t)));case v:case y:case S:return Vo(+e,+t);case b:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case _:var s=an;case I:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var c=Zi(s(e),s(t),r,i,a,o);return o.delete(e),c;case T:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,l,n,r,a,o);if(!(1&n)){var d=f&&Re.call(e,"__wrapped__"),x=p&&Re.call(t,"__wrapped__");if(d||x){var w=d?e.value():e,k=x?t.value():t;return o||(o=new Gn),a(w,k,n,r,o)}}return!!h&&(o||(o=new Gn),function(e,t,n,r,a,o){var s=1&n,u=ea(e),l=u.length;if(l!=ea(t).length&&!s)return!1;for(var c=l;c--;){var f=u[c];if(!(s?f in t:Re.call(t,f)))return!1}var p=o.get(e),h=o.get(t);if(p&&h)return p==t&&h==e;var d=!0;o.set(e,t),o.set(t,e);for(var m=s;++c<l;){var g=e[f=u[c]],v=t[f];if(r)var y=s?r(v,g,f,t,e,o):r(g,v,f,e,t,o);if(!(y===i?g===v||a(g,v,n,r,o):y)){d=!1;break}m||(m="constructor"==f)}if(d&&!m){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(d=!1)}return o.delete(e),o.delete(t),d}(e,t,n,r,a,o))}(e,t,n,r,Ar,a))}function Or(e,t,n,r){var a=n.length,o=a,s=!r;if(null==e)return!o;for(e=Ee(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<o;){var l=(u=n[a])[0],c=e[l],f=u[1];if(s&&u[2]){if(c===i&&!(l in e))return!1}else{var p=new Gn;if(r)var h=r(c,f,l,e,t,p);if(!(h===i?Ar(f,c,3,r,p):h))return!1}}return!0}function Nr(e){return!(!Jo(e)||(t=e,Me&&Me in t))&&(Yo(e)?Ve:me).test(Fa(e));var t}function Rr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?$o(e)?Dr(e[0],e[1]):jr(e):fu(e)}function Lr(e){if(!xa(e))return mn(e);var t=[];for(var n in Ee(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e,t){return e<t}function Fr(e,t){var n=-1,i=qo(e)?r(e.length):[];return cr(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}function jr(e){var t=sa(e);return 1==t.length&&t[0][2]?_a(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function Dr(e,t){return va(e)&&wa(t)?_a(Ma(e),t):function(n){var r=ks(n,e);return r===i&&r===t?Cs(n,e):Ar(t,r,3)}}function Vr(e,t,n,r,a){e!==t&&gr(t,(function(o,s){if(a||(a=new Gn),Jo(o))!function(e,t,n,r,a,o,s){var u=ka(e,n),l=ka(t,n),c=s.get(l);if(c)Zn(e,n,c);else{var f=o?o(u,l,n+"",e,t,s):i,p=f===i;if(p){var h=$o(l),d=!h&&Go(l),m=!h&&!d&&us(l);f=l,h||d||m?$o(u)?f=u:Ho(u)?f=Ci(u):d?(p=!1,f=xi(l,!0)):m?(p=!1,f=_i(l,!0)):f=[]:rs(l)||Uo(l)?(f=u,Uo(u)?f=gs(u):Jo(u)&&!Yo(u)||(f=ha(l))):p=!1}p&&(s.set(l,f),a(f,l,r,o,s),s.delete(l)),Zn(e,n,f)}}(e,t,s,n,Vr,r,a);else{var u=r?r(ka(e,s),o,s+"",e,t,a):i;u===i&&(u=o),Zn(e,s,u)}}),Os)}function Br(e,t){var n=e.length;if(n)return ma(t+=t<0?n:0,n)?e[t]:i}function zr(e,t,n){t=t.length?Ot(t,(function(e){return $o(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=Ot(t,Qt(aa()));var i=Fr(e,(function(e,n,i){var a=Ot(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var u=Si(i[r],a[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Ur(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=wr(e,o);n(s,o)&&Yr(a,gi(o,e),s)}return a}function $r(e,t,n,r){var i=r?Bt:Vt,a=-1,o=t.length,s=e;for(e===t&&(t=Ci(t)),n&&(s=Ot(e,Qt(n)));++a<o;)for(var u=0,l=t[a],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ma(i)?Ge.call(e,i,1):ui(e,i)}}return e}function qr(e,t){return e+ht(xn()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Pa(Sa(e,t,nu),e+"")}function Kr(e){return Qn(Vs(e))}function Qr(e,t){var n=Vs(e);return Oa(n,ar(t,0,n.length))}function Yr(e,t,n,r){if(!Jo(e))return e;for(var a=-1,o=(t=gi(t,e)).length,s=o-1,u=e;null!=u&&++a<o;){var l=Ma(t[a]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=s){var f=u[l];(c=r?r(f,l,u):i)===i&&(c=Jo(f)?f:ma(t[a+1])?[]:{})}Jn(u,l,c),u=u[l]}return e}var Xr=Pn?function(e,t){return Pn.set(e,t),e}:nu,Zr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:nu;function Jr(e){return Oa(Vs(e))}function ei(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i<a;)o[i]=e[i+t];return o}function ti(e,t){var n;return cr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!ss(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ri(e,t,nu,n)}function ri(e,t,n,r){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,u=null===t,l=ss(t),c=t===i;a<o;){var f=ht((a+o)/2),p=n(e[f]),h=p!==i,d=null===p,m=p==p,g=ss(p);if(s)var v=r||m;else v=c?m&&(r||h):u?m&&h&&(r||!d):l?m&&h&&!d&&(r||!g):!d&&!g&&(r?p<=t:p<t);v?a=f+1:o=f}return vn(o,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Vo(s,u)){var u=s;a[i++]=0===o?0:o}}return a}function ai(e){return"number"==typeof e?e:ss(e)?p:+e}function oi(e){if("string"==typeof e)return e;if($o(e))return Ot(e,oi)+"";if(ss(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=Tt,a=e.length,o=!0,s=[],u=s;if(n)o=!1,i=At;else if(a>=200){var l=t?null:Hi(e);if(l)return un(l);o=!1,i=Xt,u=new Hn}else u=t?[]:s;e:for(;++r<a;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,o&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function ui(e,t){return null==(e=Ea(e,t=gi(t,e)))||delete e[Ma(Ka(t))]}function li(e,t,n,r){return Yr(e,t,n(wr(e,t)),r)}function ci(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ei(e,r?0:a,r?a+1:i):ei(e,r?a+1:0,r?i:a)}function fi(e,t){var n=e;return n instanceof Un&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function pi(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var a=-1,o=r(i);++a<i;)for(var s=e[a],u=-1;++u<i;)u!=a&&(o[a]=lr(o[a]||s,e[u],t,n));return si(mr(o,1),t,n)}function hi(e,t,n){for(var r=-1,a=e.length,o=t.length,s={};++r<a;){var u=r<o?t[r]:i;n(s,e[r],u)}return s}function di(e){return Ho(e)?e:[]}function mi(e){return"function"==typeof e?e:nu}function gi(e,t){return $o(e)?e:va(e,t)?[e]:La(vs(e))}var vi=Gr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=ot||function(e){return ft.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=$e?$e(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function _i(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var n=e!==i,r=null===e,a=e==e,o=ss(e),s=t!==i,u=null===t,l=t==t,c=ss(t);if(!u&&!c&&!o&&e>t||o&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!a)return 1;if(!r&&!o&&!c&&e<t||c&&n&&a&&!r&&!o||u&&n&&a||!s&&a||!l)return-1}return 0}function Ei(e,t,n,i){for(var a=-1,o=e.length,s=n.length,u=-1,l=t.length,c=gn(o-s,0),f=r(l+c),p=!i;++u<l;)f[u]=t[u];for(;++a<s;)(p||a<o)&&(f[n[a]]=e[a]);for(;c--;)f[u++]=e[a++];return f}function ki(e,t,n,i){for(var a=-1,o=e.length,s=-1,u=n.length,l=-1,c=t.length,f=gn(o-u,0),p=r(f+c),h=!i;++a<f;)p[a]=e[a];for(var d=a;++l<c;)p[d+l]=t[l];for(;++s<u;)(h||a<o)&&(p[d+n[s]]=e[a++]);return p}function Ci(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ii(e,t,n,r){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var u=t[o],l=r?r(n[u],e[u],u,n,e):i;l===i&&(l=e[u]),a?rr(n,u,l):Jn(n,u,l)}return n}function Pi(e,t){return function(n,r){var i=$o(n)?Et:tr,a=t?t():{};return i(n,e,aa(r,2),a)}}function Ti(e){return Gr((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:i,s=a>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&ga(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=Ee(t);++r<a;){var u=n[r];u&&e(t,u,r,o)}return t}))}function Ai(e,t){return function(n,r){if(null==n)return n;if(!qo(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ee(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Oi(e){return function(t,n,r){for(var i=-1,a=Ee(t),o=r(t),s=o.length;s--;){var u=o[e?s:++i];if(!1===n(a[u],u,a))break}return t}}function Ni(e){return function(t){var n=rn(t=vs(t))?fn(t):i,r=n?n[0]:t.charAt(0),a=n?yi(n,1).join(""):t.slice(1);return r[e]()+a}}function Ri(e){return function(t){return Rt(Ys(Us(t).replace(Ye,"")),e,"")}}function Li(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return Jo(r)?r:n}}function Mi(e){return function(t,n,r){var a=Ee(t);if(!qo(t)){var o=aa(n,3);t=As(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,r);return s>-1?a[o?t[s]:s]:i}}function Fi(e){return Ji((function(t){var n=t.length,r=n,o=zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ie(a);if(o&&!u&&"wrapper"==ra(s))var u=new zn([],!0)}for(r=u?r:n;++r<n;){var l=ra(s=t[r]),c="wrapper"==l?na(s):i;u=c&&ya(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ra(c[0])].apply(u,c[3]):1==s.length&&ya(s)?u[l]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&$o(r))return u.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function ji(e,t,n,a,o,s,u,c,f,p){var h=t&l,d=1&t,m=2&t,g=24&t,v=512&t,y=m?i:Li(e);return function l(){for(var b=arguments.length,x=r(b),w=b;w--;)x[w]=arguments[w];if(g)var _=ia(l),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,_);if(a&&(x=Ei(x,a,o,g)),s&&(x=ki(x,s,u,g)),b-=S,g&&b<p){var E=sn(x,_);return Wi(e,t,ji,l.placeholder,n,x,E,c,f,p-b)}var k=d?n:this,C=m?k[e]:e;return b=x.length,c?x=function(e,t){for(var n=e.length,r=vn(t.length,n),a=Ci(e);r--;){var o=t[r];e[r]=ma(o,n)?a[o]:i}return e}(x,c):v&&b>1&&x.reverse(),h&&f<b&&(x.length=f),this&&this!==ft&&this instanceof l&&(C=y||Li(C)),C.apply(k,x)}}function Di(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Vi(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=ai(n),r=ai(r)),a=e(n,r)}return a}}function Bi(e){return Ji((function(t){return t=Ot(t,Qt(aa())),Gr((function(n){var r=this;return e(t,(function(e){return St(e,r,n)}))}))}))}function zi(e,t){var n=(t=t===i?" ":oi(t)).length;if(n<2)return n?Hr(t,e):t;var r=Hr(t,pt(e/cn(t)));return rn(t)?yi(fn(r),0,e).join(""):r.slice(0,e)}function Ui(e){return function(t,n,a){return a&&"number"!=typeof a&&ga(t,n,a)&&(n=a=i),t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n,i){for(var a=-1,o=gn(pt((t-e)/(n||1)),0),s=r(o);o--;)s[i?o:++a]=e,e+=n;return s}(t,n,a=a===i?t<n?1:-1:ps(a),e)}}function $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Wi(e,t,n,r,a,o,s,l,c,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var h=[e,t,a,p?o:i,p?s:i,p?i:o,p?i:s,l,c,f],d=n.apply(i,h);return ya(e)&&Ca(d,h),d.placeholder=r,Ta(d,e,t)}function qi(e){var t=Se[e];return function(e,n){if(e=ms(e),(n=null==n?0:vn(hs(n),292))&&Ft(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Hi=kn&&1/un(new kn([,-0]))[1]==c?function(e){return new kn(e)}:su;function Gi(e){return function(t){var n=fa(t);return n==_?an(t):n==I?ln(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,o,c,f,p,h){var d=2&t;if(!d&&"function"!=typeof e)throw new Ie(a);var m=o?o.length:0;if(m||(t&=-97,o=c=i),p=p===i?p:gn(hs(p),0),h=h===i?h:hs(h),m-=c?c.length:0,64&t){var g=o,v=c;o=c=i}var y=d?i:na(e),b=[e,t,n,o,c,g,v,f,p,h];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=r==l&&8==n||r==l&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?Ei(c,u,t[4]):u,e[4]=c?sn(e[3],s):t[4]}(u=t[5])&&(c=e[5],e[5]=c?ki(c,u,t[6]):u,e[6]=c?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&l&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],o=b[3],c=b[4],!(h=b[9]=b[9]===i?d?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?function(e,t,n){var a=Li(e);return function o(){for(var s=arguments.length,u=r(s),l=s,c=ia(o);l--;)u[l]=arguments[l];var f=s<3&&u[0]!==c&&u[s-1]!==c?[]:sn(u,c);return(s-=f.length)<n?Wi(e,t,ji,o.placeholder,i,u,f,i,i,n-s):St(this&&this!==ft&&this instanceof o?a:e,this,u)}}(e,t,h):t!=u&&33!=t||c.length?ji.apply(i,b):function(e,t,n,i){var a=1&t,o=Li(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=i.length,f=r(c+u),p=this&&this!==ft&&this instanceof t?o:e;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++s];return St(p,a?n:this,f)}}(e,t,n,o);else var x=function(e,t,n){var r=1&t,i=Li(e);return function t(){return(this&&this!==ft&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ta((y?Xr:Ca)(x,b),e,t)}function Qi(e,t,n,r){return e===i||Vo(e,Ae[n])&&!Re.call(r,n)?t:e}function Yi(e,t,n,r,a,o){return Jo(e)&&Jo(t)&&(o.set(t,e),Vr(e,t,i,Yi,o),o.delete(t)),e}function Xi(e){return rs(e)?i:e}function Zi(e,t,n,r,a,o){var s=1&n,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var p=-1,h=!0,d=2&n?new Hn:i;for(o.set(e,t),o.set(t,e);++p<u;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,o):r(m,g,p,e,t,o);if(v!==i){if(v)continue;h=!1;break}if(d){if(!Mt(t,(function(e,t){if(!Xt(d,t)&&(m===e||a(m,e,n,r,o)))return d.push(t)}))){h=!1;break}}else if(m!==g&&!a(m,g,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Ji(e){return Pa(Sa(e,i,$a),e+"")}function ea(e){return _r(e,As,la)}function ta(e){return _r(e,Os,ca)}var na=Pn?function(e){return Pn.get(e)}:su;function ra(e){for(var t=e.name+"",n=Tn[t],r=Re.call(Tn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ia(e){return(Re.call(Dn,"placeholder")?Dn:e).placeholder}function aa(){var e=Dn.iteratee||ru;return e=e===ru?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function oa(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function sa(e){for(var t=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,wa(i)]}return t}function ua(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Nr(n)?n:i}var la=mt?function(e){return null==e?[]:(e=Ee(e),Pt(mt(e),(function(t){return He.call(e,t)})))}:du,ca=mt?function(e){for(var t=[];e;)Nt(t,la(e)),e=We(e);return t}:du,fa=Sr;function pa(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,a=!1;++r<i;){var o=Ma(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Zo(i)&&ma(o,i)&&($o(e)||Uo(e))}function ha(e){return"function"!=typeof e.constructor||xa(e)?{}:Vn(We(e))}function da(e){return $o(e)||Uo(e)||!!(Ke&&e&&e[Ke])}function ma(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function ga(e,t,n){if(!Jo(n))return!1;var r=typeof t;return!!("number"==r?qo(n)&&ma(t,n.length):"string"==r&&t in n)&&Vo(n[t],e)}function va(e,t){if($o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||J.test(e)||!Z.test(e)||null!=t&&e in Ee(t)}function ya(e){var t=ra(e),n=Dn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=na(n);return!!r&&e===r[0]}(_n&&fa(new _n(new ArrayBuffer(1)))!=N||Sn&&fa(new Sn)!=_||En&&fa(En.resolve())!=k||kn&&fa(new kn)!=I||Cn&&fa(new Cn)!=A)&&(fa=function(e){var t=Sr(e),n=t==E?e.constructor:i,r=n?Fa(n):"";if(r)switch(r){case An:return N;case On:return _;case Nn:return k;case Rn:return I;case Ln:return A}return t});var ba=Oe?Yo:mu;function xa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function wa(e){return e==e&&!Jo(e)}function _a(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ee(n))}}function Sa(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=gn(i.length-t,0),s=r(o);++a<o;)s[a]=i[t+a];a=-1;for(var u=r(t+1);++a<t;)u[a]=i[a];return u[t]=n(s),St(e,this,u)}}function Ea(e,t){return t.length<2?e:wr(e,ei(t,0,-1))}function ka(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ca=Aa(Xr),Ia=ct||function(e,t){return ft.setTimeout(e,t)},Pa=Aa(Zr);function Ta(e,t,n){var r=t+"";return Pa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return kt(d,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(r),n)))}function Aa(e){var t=0,n=0;return function(){var r=yn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Oa(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n<t;){var o=qr(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Na,Ra,La=(Na=Ro((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Ra.size&&Ra.clear(),e})),Ra=Na.cache,Na);function Ma(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fa(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ja(e){if(e instanceof Un)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=Ci(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Da=Gr((function(e,t){return Ho(e)?lr(e,mr(t,1,Ho,!0)):[]})),Va=Gr((function(e,t){var n=Ka(t);return Ho(n)&&(n=i),Ho(e)?lr(e,mr(t,1,Ho,!0),aa(n,2)):[]})),Ba=Gr((function(e,t){var n=Ka(t);return Ho(n)&&(n=i),Ho(e)?lr(e,mr(t,1,Ho,!0),i,n):[]}));function za(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=gn(r+i,0)),Dt(e,aa(t,3),i)}function Ua(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=hs(n),a=n<0?gn(r+a,0):vn(a,r-1)),Dt(e,aa(t,3),a,!0)}function $a(e){return null!=e&&e.length?mr(e,1):[]}function Wa(e){return e&&e.length?e[0]:i}var qa=Gr((function(e){var t=Ot(e,di);return t.length&&t[0]===e[0]?Ir(t):[]})),Ha=Gr((function(e){var t=Ka(e),n=Ot(e,di);return t===Ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ir(n,aa(t,2)):[]})),Ga=Gr((function(e){var t=Ka(e),n=Ot(e,di);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,i,t):[]}));function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qa=Gr(Ya);function Ya(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var Xa=Ji((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Wr(e,Ot(t,(function(e){return ma(e,n)?+e:e})).sort(Si)),r}));function Za(e){return null==e?e:wn.call(e)}var Ja=Gr((function(e){return si(mr(e,1,Ho,!0))})),eo=Gr((function(e){var t=Ka(e);return Ho(t)&&(t=i),si(mr(e,1,Ho,!0),aa(t,2))})),to=Gr((function(e){var t=Ka(e);return t="function"==typeof t?t:i,si(mr(e,1,Ho,!0),i,t)}));function no(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Ho(e))return t=gn(e.length,t),!0})),Gt(t,(function(t){return Ot(e,$t(t))}))}function ro(e,t){if(!e||!e.length)return[];var n=no(e);return null==t?n:Ot(n,(function(e){return St(t,i,e)}))}var io=Gr((function(e,t){return Ho(e)?lr(e,t):[]})),ao=Gr((function(e){return pi(Pt(e,Ho))})),oo=Gr((function(e){var t=Ka(e);return Ho(t)&&(t=i),pi(Pt(e,Ho),aa(t,2))})),so=Gr((function(e){var t=Ka(e);return t="function"==typeof t?t:i,pi(Pt(e,Ho),i,t)})),uo=Gr(no),lo=Gr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ro(e,n)}));function co(e){var t=Dn(e);return t.__chain__=!0,t}function fo(e,t){return t(e)}var po=Ji((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&ma(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fo,args:[a],thisArg:i}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)})),ho=Pi((function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)})),mo=Mi(za),go=Mi(Ua);function vo(e,t){return($o(e)?kt:cr)(e,aa(t,3))}function yo(e,t){return($o(e)?Ct:fr)(e,aa(t,3))}var bo=Pi((function(e,t,n){Re.call(e,n)?e[n].push(t):rr(e,n,[t])})),xo=Gr((function(e,t,n){var i=-1,a="function"==typeof t,o=qo(e)?r(e.length):[];return cr(e,(function(e){o[++i]=a?St(t,e,n):Pr(e,t,n)})),o})),wo=Pi((function(e,t,n){rr(e,n,t)}));function _o(e,t){return($o(e)?Ot:Fr)(e,aa(t,3))}var So=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Eo=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ga(e,t[0],t[1])?t=[]:n>2&&ga(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,mr(t,1),[])})),ko=lt||function(){return ft.Date.now()};function Co(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,l,i,i,i,i,t)}function Io(e,t){var n;if("function"!=typeof t)throw new Ie(a);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Po=Gr((function(e,t,n){var r=1;if(n.length){var i=sn(n,ia(Po));r|=u}return Ki(e,r,t,n,i)})),To=Gr((function(e,t,n){var r=3;if(n.length){var i=sn(n,ia(To));r|=u}return Ki(t,r,e,n,i)}));function Ao(e,t,n){var r,o,s,u,l,c,f=0,p=!1,h=!1,d=!0;if("function"!=typeof e)throw new Ie(a);function m(t){var n=r,a=o;return r=o=i,f=t,u=e.apply(a,n)}function g(e){var n=e-c;return c===i||n>=t||n<0||h&&e-f>=s}function v(){var e=ko();if(g(e))return y(e);l=Ia(v,function(e){var n=t-(e-c);return h?vn(n,s-(e-f)):n}(e))}function y(e){return l=i,d&&r?m(e):(r=o=i,u)}function b(){var e=ko(),n=g(e);if(r=arguments,o=this,c=e,n){if(l===i)return function(e){return f=e,l=Ia(v,t),p?m(e):u}(c);if(h)return bi(l),l=Ia(v,t),m(c)}return l===i&&(l=Ia(v,t)),u}return t=ms(t)||0,Jo(n)&&(p=!!n.leading,s=(h="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),b.cancel=function(){l!==i&&bi(l),f=0,r=c=o=l=i},b.flush=function(){return l===i?u:y(ko())},b}var Oo=Gr((function(e,t){return ur(e,1,t)})),No=Gr((function(e,t,n){return ur(e,ms(t)||0,n)}));function Ro(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ro.Cache||qn),n}function Lo(e){if("function"!=typeof e)throw new Ie(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ro.Cache=qn;var Mo=vi((function(e,t){var n=(t=1==t.length&&$o(t[0])?Ot(t[0],Qt(aa())):Ot(mr(t,1),Qt(aa()))).length;return Gr((function(r){for(var i=-1,a=vn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return St(e,this,r)}))})),Fo=Gr((function(e,t){var n=sn(t,ia(Fo));return Ki(e,u,i,t,n)})),jo=Gr((function(e,t){var n=sn(t,ia(jo));return Ki(e,64,i,t,n)})),Do=Ji((function(e,t){return Ki(e,256,i,i,i,t)}));function Vo(e,t){return e===t||e!=e&&t!=t}var Bo=$i(Er),zo=$i((function(e,t){return e>=t})),Uo=Tr(function(){return arguments}())?Tr:function(e){return es(e)&&Re.call(e,"callee")&&!He.call(e,"callee")},$o=r.isArray,Wo=vt?Qt(vt):function(e){return es(e)&&Sr(e)==O};function qo(e){return null!=e&&Zo(e.length)&&!Yo(e)}function Ho(e){return es(e)&&qo(e)}var Go=gt||mu,Ko=yt?Qt(yt):function(e){return es(e)&&Sr(e)==y};function Qo(e){if(!es(e))return!1;var t=Sr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Yo(e){if(!Jo(e))return!1;var t=Sr(e);return t==x||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==hs(e)}function Zo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Jo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Qt(bt):function(e){return es(e)&&fa(e)==_};function ns(e){return"number"==typeof e||es(e)&&Sr(e)==S}function rs(e){if(!es(e)||Sr(e)!=E)return!1;var t=We(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==je}var is=xt?Qt(xt):function(e){return es(e)&&Sr(e)==C},as=wt?Qt(wt):function(e){return es(e)&&fa(e)==I};function os(e){return"string"==typeof e||!$o(e)&&es(e)&&Sr(e)==P}function ss(e){return"symbol"==typeof e||es(e)&&Sr(e)==T}var us=_t?Qt(_t):function(e){return es(e)&&Zo(e.length)&&!!it[Sr(e)]},ls=$i(Mr),cs=$i((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(qo(e))return os(e)?fn(e):Ci(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=fa(e);return(t==_?an:t==I?un:Vs)(e)}function ps(e){return e?(e=ms(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ds(e){return e?ar(hs(e),0,h):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return p;if(Jo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=de.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):he.test(e)?p:+e}function gs(e){return Ii(e,Os(e))}function vs(e){return null==e?"":oi(e)}var ys=Ti((function(e,t){if(xa(t)||qo(t))Ii(t,As(t),e);else for(var n in t)Re.call(t,n)&&Jn(e,n,t[n])})),bs=Ti((function(e,t){Ii(t,Os(t),e)})),xs=Ti((function(e,t,n,r){Ii(t,Os(t),e,r)})),ws=Ti((function(e,t,n,r){Ii(t,As(t),e,r)})),_s=Ji(ir),Ss=Gr((function(e,t){e=Ee(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&ga(t[0],t[1],a)&&(r=1);++n<r;)for(var o=t[n],s=Os(o),u=-1,l=s.length;++u<l;){var c=s[u],f=e[c];(f===i||Vo(f,Ae[c])&&!Re.call(e,c))&&(e[c]=o[c])}return e})),Es=Gr((function(e){return e.push(i,Yi),St(Rs,i,e)}));function ks(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Cs(e,t){return null!=e&&pa(e,t,Cr)}var Is=Di((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),Js(nu)),Ps=Di((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),aa),Ts=Gr(Pr);function As(e){return qo(e)?Kn(e):Lr(e)}function Os(e){return qo(e)?Kn(e,!0):function(e){if(!Jo(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=xa(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Ns=Ti((function(e,t,n){Vr(e,t,n)})),Rs=Ti((function(e,t,n,r){Vr(e,t,n,r)})),Ls=Ji((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ot(t,(function(t){return t=gi(t,e),r||(r=t.length>1),t})),Ii(e,ta(e),n),r&&(n=or(n,7,Xi));for(var i=t.length;i--;)ui(n,t[i]);return n})),Ms=Ji((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Ot(ta(e),(function(e){return[e]}));return t=aa(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var js=Gi(As),Ds=Gi(Os);function Vs(e){return null==e?[]:Yt(e,As(e))}var Bs=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?zs(t):t)}));function zs(e){return Qs(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(ye,en).replace(Xe,"")}var $s=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Ni("toLowerCase"),Hs=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Ri((function(e,t,n){return e+(n?" ":"")+Qs(t)})),Ks=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=Ni("toUpperCase");function Ys(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xs=Gr((function(e,t){try{return St(e,i,t)}catch(e){return Qo(e)?e:new we(e)}})),Zs=Ji((function(e,t){return kt(t,(function(t){t=Ma(t),rr(e,t,Po(e[t],e))})),e}));function Js(e){return function(){return e}}var eu=Fi(),tu=Fi(!0);function nu(e){return e}function ru(e){return Rr("function"==typeof e?e:or(e,1))}var iu=Gr((function(e,t){return function(n){return Pr(n,e,t)}})),au=Gr((function(e,t){return function(n){return Pr(e,n,t)}}));function ou(e,t,n){var r=As(t),i=xr(t,r);null!=n||Jo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,As(t)));var a=!(Jo(n)&&"chain"in n&&!n.chain),o=Yo(e);return kt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function su(){}var uu=Bi(Ot),lu=Bi(It),cu=Bi(Mt);function fu(e){return va(e)?$t(Ma(e)):function(e){return function(t){return wr(t,e)}}(e)}var pu=Ui(),hu=Ui(!0);function du(){return[]}function mu(){return!1}var gu,vu=Vi((function(e,t){return e+t}),0),yu=qi("ceil"),bu=Vi((function(e,t){return e/t}),1),xu=qi("floor"),wu=Vi((function(e,t){return e*t}),1),_u=qi("round"),Su=Vi((function(e,t){return e-t}),0);return Dn.after=function(e,t){if("function"!=typeof t)throw new Ie(a);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Dn.ary=Co,Dn.assign=ys,Dn.assignIn=bs,Dn.assignInWith=xs,Dn.assignWith=ws,Dn.at=_s,Dn.before=Io,Dn.bind=Po,Dn.bindAll=Zs,Dn.bindKey=To,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $o(e)?e:[e]},Dn.chain=co,Dn.chunk=function(e,t,n){t=(n?ga(e,t,n):t===i)?1:gn(hs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,u=r(pt(a/t));o<a;)u[s++]=ei(e,o,o+=t);return u},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Nt($o(n)?Ci(n):[n],mr(t,1))},Dn.cond=function(e){var t=null==e?0:e.length,n=aa();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new Ie(a);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var i=e[r];if(St(i[0],this,n))return St(i[1],this,n)}}))},Dn.conforms=function(e){return function(e){var t=As(e);return function(n){return sr(n,e,t)}}(or(e,1))},Dn.constant=Js,Dn.countBy=ho,Dn.create=function(e,t){var n=Vn(e);return null==t?n:nr(n,t)},Dn.curry=function e(t,n,r){var a=Ki(t,8,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},Dn.curryRight=function e(t,n,r){var a=Ki(t,16,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},Dn.debounce=Ao,Dn.defaults=Ss,Dn.defaultsDeep=Es,Dn.defer=Oo,Dn.delay=No,Dn.difference=Da,Dn.differenceBy=Va,Dn.differenceWith=Ba,Dn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:hs(t))<0?0:t,r):[]},Dn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:hs(t)))<0?0:t):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!0):[]},Dn.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&ga(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=hs(n))<0&&(n=-n>a?0:a+n),(r=r===i||r>a?a:hs(r))<0&&(r+=a),r=n>r?0:ds(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Dn.filter=function(e,t){return($o(e)?Pt:dr)(e,aa(t,3))},Dn.flatMap=function(e,t){return mr(_o(e,t),1)},Dn.flatMapDeep=function(e,t){return mr(_o(e,t),c)},Dn.flatMapDepth=function(e,t,n){return n=n===i?1:hs(n),mr(_o(e,t),n)},Dn.flatten=$a,Dn.flattenDeep=function(e){return null!=e&&e.length?mr(e,c):[]},Dn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:hs(t)):[]},Dn.flip=function(e){return Ki(e,512)},Dn.flow=eu,Dn.flowRight=tu,Dn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Dn.functions=function(e){return null==e?[]:xr(e,As(e))},Dn.functionsIn=function(e){return null==e?[]:xr(e,Os(e))},Dn.groupBy=bo,Dn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Dn.intersection=qa,Dn.intersectionBy=Ha,Dn.intersectionWith=Ga,Dn.invert=Is,Dn.invertBy=Ps,Dn.invokeMap=xo,Dn.iteratee=ru,Dn.keyBy=wo,Dn.keys=As,Dn.keysIn=Os,Dn.map=_o,Dn.mapKeys=function(e,t){var n={};return t=aa(t,3),yr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},Dn.mapValues=function(e,t){var n={};return t=aa(t,3),yr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},Dn.matches=function(e){return jr(or(e,1))},Dn.matchesProperty=function(e,t){return Dr(e,or(t,1))},Dn.memoize=Ro,Dn.merge=Ns,Dn.mergeWith=Rs,Dn.method=iu,Dn.methodOf=au,Dn.mixin=ou,Dn.negate=Lo,Dn.nthArg=function(e){return e=hs(e),Gr((function(t){return Br(t,e)}))},Dn.omit=Ls,Dn.omitBy=function(e,t){return Fs(e,Lo(aa(t)))},Dn.once=function(e){return Io(2,e)},Dn.orderBy=function(e,t,n,r){return null==e?[]:($o(t)||(t=null==t?[]:[t]),$o(n=r?i:n)||(n=null==n?[]:[n]),zr(e,t,n))},Dn.over=uu,Dn.overArgs=Mo,Dn.overEvery=lu,Dn.overSome=cu,Dn.partial=Fo,Dn.partialRight=jo,Dn.partition=So,Dn.pick=Ms,Dn.pickBy=Fs,Dn.property=fu,Dn.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},Dn.pull=Qa,Dn.pullAll=Ya,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,aa(n,2)):e},Dn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,i,n):e},Dn.pullAt=Xa,Dn.range=pu,Dn.rangeRight=hu,Dn.rearg=Do,Dn.reject=function(e,t){return($o(e)?Pt:dr)(e,Lo(aa(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=aa(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Wr(e,i),n},Dn.rest=function(e,t){if("function"!=typeof e)throw new Ie(a);return Gr(e,t=t===i?t:hs(t))},Dn.reverse=Za,Dn.sampleSize=function(e,t,n){return t=(n?ga(e,t,n):t===i)?1:hs(t),($o(e)?Yn:Qr)(e,t)},Dn.set=function(e,t,n){return null==e?e:Yr(e,t,n)},Dn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Yr(e,t,n,r)},Dn.shuffle=function(e){return($o(e)?Xn:Jr)(e)},Dn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ga(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===i?r:hs(n)),ei(e,t,n)):[]},Dn.sortBy=Eo,Dn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,aa(t,2)):[]},Dn.split=function(e,t,n){return n&&"number"!=typeof n&&ga(e,t,n)&&(t=n=i),(n=n===i?h:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=oi(t))&&rn(e)?yi(fn(e),0,n):e.split(t,n):[]},Dn.spread=function(e,t){if("function"!=typeof e)throw new Ie(a);return t=null==t?0:gn(hs(t),0),Gr((function(n){var r=n[t],i=yi(n,0,t);return r&&Nt(i,r),St(e,this,i)}))},Dn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Dn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:hs(t))<0?0:t):[]},Dn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:hs(t)))<0?0:t,r):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?ci(e,aa(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ie(a);return Jo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ao(e,t,{leading:r,maxWait:t,trailing:i})},Dn.thru=fo,Dn.toArray=fs,Dn.toPairs=js,Dn.toPairsIn=Ds,Dn.toPath=function(e){return $o(e)?Ot(e,Ma):ss(e)?[e]:Ci(La(vs(e)))},Dn.toPlainObject=gs,Dn.transform=function(e,t,n){var r=$o(e),i=r||Go(e)||us(e);if(t=aa(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Jo(e)&&Yo(a)?Vn(We(e)):{}}return(i?kt:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Dn.unary=function(e){return Co(e,1)},Dn.union=Ja,Dn.unionBy=eo,Dn.unionWith=to,Dn.uniq=function(e){return e&&e.length?si(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?si(e,aa(t,2)):[]},Dn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Dn.unset=function(e,t){return null==e||ui(e,t)},Dn.unzip=no,Dn.unzipWith=ro,Dn.update=function(e,t,n){return null==e?e:li(e,t,mi(n))},Dn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:li(e,t,mi(n),r)},Dn.values=Vs,Dn.valuesIn=function(e){return null==e?[]:Yt(e,Os(e))},Dn.without=io,Dn.words=Ys,Dn.wrap=function(e,t){return Fo(mi(t),e)},Dn.xor=ao,Dn.xorBy=oo,Dn.xorWith=so,Dn.zip=uo,Dn.zipObject=function(e,t){return hi(e||[],t||[],Jn)},Dn.zipObjectDeep=function(e,t){return hi(e||[],t||[],Yr)},Dn.zipWith=lo,Dn.entries=js,Dn.entriesIn=Ds,Dn.extend=bs,Dn.extendWith=xs,ou(Dn,Dn),Dn.add=vu,Dn.attempt=Xs,Dn.camelCase=Bs,Dn.capitalize=zs,Dn.ceil=yu,Dn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),ar(ms(e),t,n)},Dn.clone=function(e){return or(e,4)},Dn.cloneDeep=function(e){return or(e,5)},Dn.cloneDeepWith=function(e,t){return or(e,5,t="function"==typeof t?t:i)},Dn.cloneWith=function(e,t){return or(e,4,t="function"==typeof t?t:i)},Dn.conformsTo=function(e,t){return null==t||sr(e,t,As(t))},Dn.deburr=Us,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=bu,Dn.endsWith=function(e,t,n){e=vs(e),t=oi(t);var r=e.length,a=n=n===i?r:ar(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Dn.eq=Vo,Dn.escape=function(e){return(e=vs(e))&&K.test(e)?e.replace(H,tn):e},Dn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Dn.every=function(e,t,n){var r=$o(e)?It:pr;return n&&ga(e,t,n)&&(t=i),r(e,aa(t,3))},Dn.find=mo,Dn.findIndex=za,Dn.findKey=function(e,t){return jt(e,aa(t,3),yr)},Dn.findLast=go,Dn.findLastIndex=Ua,Dn.findLastKey=function(e,t){return jt(e,aa(t,3),br)},Dn.floor=xu,Dn.forEach=vo,Dn.forEachRight=yo,Dn.forIn=function(e,t){return null==e?e:gr(e,aa(t,3),Os)},Dn.forInRight=function(e,t){return null==e?e:vr(e,aa(t,3),Os)},Dn.forOwn=function(e,t){return e&&yr(e,aa(t,3))},Dn.forOwnRight=function(e,t){return e&&br(e,aa(t,3))},Dn.get=ks,Dn.gt=Bo,Dn.gte=zo,Dn.has=function(e,t){return null!=e&&pa(e,t,kr)},Dn.hasIn=Cs,Dn.head=Wa,Dn.identity=nu,Dn.includes=function(e,t,n,r){e=qo(e)?e:Vs(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),os(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Vt(e,t,n)>-1},Dn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=gn(r+i,0)),Vt(e,t,i)},Dn.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},Dn.invoke=Ts,Dn.isArguments=Uo,Dn.isArray=$o,Dn.isArrayBuffer=Wo,Dn.isArrayLike=qo,Dn.isArrayLikeObject=Ho,Dn.isBoolean=function(e){return!0===e||!1===e||es(e)&&Sr(e)==v},Dn.isBuffer=Go,Dn.isDate=Ko,Dn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Dn.isEmpty=function(e){if(null==e)return!0;if(qo(e)&&($o(e)||"string"==typeof e||"function"==typeof e.splice||Go(e)||us(e)||Uo(e)))return!e.length;var t=fa(e);if(t==_||t==I)return!e.size;if(xa(e))return!Lr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return Ar(e,t)},Dn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ar(e,t,i,n):!!r},Dn.isError=Qo,Dn.isFinite=function(e){return"number"==typeof e&&Ft(e)},Dn.isFunction=Yo,Dn.isInteger=Xo,Dn.isLength=Zo,Dn.isMap=ts,Dn.isMatch=function(e,t){return e===t||Or(e,t,sa(t))},Dn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Or(e,t,sa(t),n)},Dn.isNaN=function(e){return ns(e)&&e!=+e},Dn.isNative=function(e){if(ba(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=ns,Dn.isObject=Jo,Dn.isObjectLike=es,Dn.isPlainObject=rs,Dn.isRegExp=is,Dn.isSafeInteger=function(e){return Xo(e)&&e>=-9007199254740991&&e<=f},Dn.isSet=as,Dn.isString=os,Dn.isSymbol=ss,Dn.isTypedArray=us,Dn.isUndefined=function(e){return e===i},Dn.isWeakMap=function(e){return es(e)&&fa(e)==A},Dn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Sr(e)},Dn.join=function(e,t){return null==e?"":Wt.call(e,t)},Dn.kebabCase=$s,Dn.last=Ka,Dn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=hs(n))<0?gn(r+a,0):vn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Dt(e,zt,a,!0)},Dn.lowerCase=Ws,Dn.lowerFirst=qs,Dn.lt=ls,Dn.lte=cs,Dn.max=function(e){return e&&e.length?hr(e,nu,Er):i},Dn.maxBy=function(e,t){return e&&e.length?hr(e,aa(t,2),Er):i},Dn.mean=function(e){return Ut(e,nu)},Dn.meanBy=function(e,t){return Ut(e,aa(t,2))},Dn.min=function(e){return e&&e.length?hr(e,nu,Mr):i},Dn.minBy=function(e,t){return e&&e.length?hr(e,aa(t,2),Mr):i},Dn.stubArray=du,Dn.stubFalse=mu,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=wu,Dn.nth=function(e,t){return e&&e.length?Br(e,hs(t)):i},Dn.noConflict=function(){return ft._===this&&(ft._=De),this},Dn.noop=su,Dn.now=ko,Dn.pad=function(e,t,n){e=vs(e);var r=(t=hs(t))?cn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return zi(ht(i),n)+e+zi(pt(i),n)},Dn.padEnd=function(e,t,n){e=vs(e);var r=(t=hs(t))?cn(e):0;return t&&r<t?e+zi(t-r,n):e},Dn.padStart=function(e,t,n){e=vs(e);var r=(t=hs(t))?cn(e):0;return t&&r<t?zi(t-r,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(vs(e).replace(re,""),t||0)},Dn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ga(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ps(e),t===i?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=xn();return vn(e+a*(t-e+st("1e-"+((a+"").length-1))),t)}return qr(e,t)},Dn.reduce=function(e,t,n){var r=$o(e)?Rt:qt,i=arguments.length<3;return r(e,aa(t,4),n,i,cr)},Dn.reduceRight=function(e,t,n){var r=$o(e)?Lt:qt,i=arguments.length<3;return r(e,aa(t,4),n,i,fr)},Dn.repeat=function(e,t,n){return t=(n?ga(e,t,n):t===i)?1:hs(t),Hr(vs(e),t)},Dn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(e,t,n){var r=-1,a=(t=gi(t,e)).length;for(a||(a=1,e=i);++r<a;){var o=null==e?i:e[Ma(t[r])];o===i&&(r=a,o=n),e=Yo(o)?o.call(e):o}return e},Dn.round=_u,Dn.runInContext=e,Dn.sample=function(e){return($o(e)?Qn:Kr)(e)},Dn.size=function(e){if(null==e)return 0;if(qo(e))return os(e)?cn(e):e.length;var t=fa(e);return t==_||t==I?e.size:Lr(e).length},Dn.snakeCase=Hs,Dn.some=function(e,t,n){var r=$o(e)?Mt:ti;return n&&ga(e,t,n)&&(t=i),r(e,aa(t,3))},Dn.sortedIndex=function(e,t){return ni(e,t)},Dn.sortedIndexBy=function(e,t,n){return ri(e,t,aa(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Vo(e[r],t))return r}return-1},Dn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return ri(e,t,aa(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Vo(e[n],t))return n}return-1},Dn.startCase=Gs,Dn.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:ar(hs(n),0,e.length),t=oi(t),e.slice(n,n+t.length)==t},Dn.subtract=Su,Dn.sum=function(e){return e&&e.length?Ht(e,nu):0},Dn.sumBy=function(e,t){return e&&e.length?Ht(e,aa(t,2)):0},Dn.template=function(e,t,n){var r=Dn.templateSettings;n&&ga(e,t,n)&&(t=i),e=vs(e),t=xs({},t,r,Qi);var a,o,s=xs({},t.imports,r.imports,Qi),u=As(s),l=Yt(s,u),c=0,f=t.interpolate||be,p="__p += '",h=ke((t.escape||be).source+"|"+f.source+"|"+(f===X?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),d="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,(function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(c,u).replace(xe,nn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),p+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(le.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(U,""):p).replace($,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xs((function(){return _e(u,d+"return "+p).apply(i,l)}));if(g.source=p,Qo(g))throw g;return g},Dn.times=function(e,t){if((e=hs(e))<1||e>f)return[];var n=h,r=vn(e,h);t=aa(t),e-=h;for(var i=Gt(r,t);++n<e;)t(n);return i},Dn.toFinite=ps,Dn.toInteger=hs,Dn.toLength=ds,Dn.toLower=function(e){return vs(e).toLowerCase()},Dn.toNumber=ms,Dn.toSafeInteger=function(e){return e?ar(hs(e),-9007199254740991,f):0===e?e:0},Dn.toString=vs,Dn.toUpper=function(e){return vs(e).toUpperCase()},Dn.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Kt(e);if(!e||!(t=oi(t)))return e;var r=fn(e),a=fn(t);return yi(r,Zt(r,a),Jt(r,a)+1).join("")},Dn.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,pn(e)+1);if(!e||!(t=oi(t)))return e;var r=fn(e);return yi(r,0,Jt(r,fn(t))+1).join("")},Dn.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=oi(t)))return e;var r=fn(e);return yi(r,Zt(r,fn(t))).join("")},Dn.truncate=function(e,t){var n=30,r="...";if(Jo(t)){var a="separator"in t?t.separator:a;n="length"in t?hs(t.length):n,r="omission"in t?oi(t.omission):r}var o=(e=vs(e)).length;if(rn(e)){var s=fn(e);o=s.length}if(n>=o)return e;var u=n-cn(r);if(u<1)return r;var l=s?yi(s,0,u).join(""):e.slice(0,u);if(a===i)return l+r;if(s&&(u+=l.length-u),is(a)){if(e.slice(u).search(a)){var c,f=l;for(a.global||(a=ke(a.source,vs(pe.exec(a))+"g")),a.lastIndex=0;c=a.exec(f);)var p=c.index;l=l.slice(0,p===i?u:p)}}else if(e.indexOf(oi(a),u)!=u){var h=l.lastIndexOf(a);h>-1&&(l=l.slice(0,h))}return l+r},Dn.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(q,hn):e},Dn.uniqueId=function(e){var t=++Le;return vs(e)+t},Dn.upperCase=Ks,Dn.upperFirst=Qs,Dn.each=vo,Dn.eachRight=yo,Dn.first=Wa,ou(Dn,(gu={},yr(Dn,(function(e,t){Re.call(Dn.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Dn.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dn[e].placeholder=Dn})),kt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:gn(hs(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:aa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(nu)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Pr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Lo(aa(e)))},Un.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(h)},yr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Dn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(Dn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Un,l=s[0],c=u||$o(t),f=function(e){var t=a.apply(Dn,Nt([e],s));return r&&p?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,h=!!this.__actions__.length,d=o&&!p,m=u&&!h;if(!o&&c){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:fo,args:[f],thisArg:i}),new zn(g,p)}return d&&m?e.apply(this,s):(g=this.thru(f),d?r?g.value()[0]:g.value():g)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply($o(i)?i:[],e)}return this[n]((function(n){return t.apply($o(n)?n:[],e)}))}})),yr(Un.prototype,(function(e,t){var n=Dn[t];if(n){var r=n.name+"";Re.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[ji(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ci(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ci(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ci(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$o(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=vn(t,e+o);break;case"takeRight":e=gn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,u=s-o,l=r?s:o-1,c=this.__iteratees__,f=c.length,p=0,h=vn(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return fi(e,this.__actions__);var d=[];e:for(;u--&&p<h;){for(var m=-1,g=e[l+=t];++m<f;){var v=c[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}d[p++]=g}return d},Dn.prototype.at=po,Dn.prototype.chain=function(){return co(this)},Dn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Dn.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Dn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=ja(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Dn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fo,args:[Za],thisArg:i}),new zn(t,this.__chain__)}return this.thru(Za)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Qe&&(Dn.prototype[Qe]=function(){return this}),Dn}();ft._=dn,(r=function(){return dn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},5949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COLLATION_OPTIONS=void 0,t.COLLATION_OPTIONS={locale:["af","sq","am","ar","ar@collation=compat","hy","as","az","az@collation=search","be","bn","bn@collation=traditional","bs","bs@collation=search","bs_Cyrl","bg","my","ca","ca@collation=search","chr","zh","zh@collation=big5han","zh@collation=gb2312han","zh@collation=pinyin","zh@collation=unihan","zh@collation=zhuyin","zh_Hant","zh_Hant@collation=stroke","hr","hr@collation=search","cs","cs@collation=search","da","da@collation=search","nl","dz","en","en_US","en_US_POSIX","eo","et","ee","fo","fil","fi_FI","fi_FI@collation=search","fi_FI@collation=traditional","fr","fr_CA","gl","gl@collation=search","ka","de","de@collation=search","de@collation=eor","de@collation=phonebook","de_AT","de_AT@collation=phonebook","el","gu","ha","haw","he","he@collation=search","hi","hu","is","is@collation=search","ig","smn","smn@collation=search","id","ga","it","ja","ja@collation=unihan","kl","kl@collation=search","kn","kn@collation=traditional","kk","km","kok","ko","ko@collation=search","ko@collation=searchjl","ko@collation=unihan","ky","lk","lo","lv","li","li@collation=phonetic","lt","dsb","lb","mk","ms","ml","mt","mr","mn","ne","se","se@collation=search","nb","nb@collation=search","nn","nn@collation=search","or","om","ps","fa","fa_AF","pl","pt","pa","ro","ru","sr","sr_Latn","sr_Latn@collation=search","si","si@collation=dictionary","sk","sk@collation=search","sl","es","es@collation=search","es@collation=traditional","sw","sv","sv@collation=search","ta","te","th","bo","to","tr","tr@collation=search","uk","hsb","ur","ug","vi","vi@collation=traditional","wae","cy","yi","yi@collation=search","yo","zu","simple"],strength:[1,2,3,4,5],caseLevel:[!0,!1],caseFirst:["upper","lower","off"],numericOrdering:[!0,!1],alternate:["non-ignorable","shifted"],maxVariable:[!0,!1],backwards:[!0,!1],normalization:[!0,!1]}},315:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_MAX_TIME_MS=t.DEFAULT_COLLATION=t.DEFAULT_PROJECT=t.DEFAULT_SKIP=t.DEFAULT_LIMIT=t.DEFAULT_SORT=t.DEFAULT_FILTER=t.QUERY_PROPERTIES=t.toJSString=t.stringify=t.validate=t.isLimitValid=t.isSkipValid=t.isMaxTimeMSValid=t.isSortValid=t.isProjectValid=t.parseProject=t.isCollationValid=t.isFilterValid=t.parseCollation=t.parseFilter=t.parseSort=void 0;const s=a(n(1829)),u=o(n(6635)),l=o(n(445)),c=n(5949),f=n(8423);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"toJSString",{enumerable:!0,get:function(){return f.toJSString}});const p=(0,l.default)("mongodb-query-parser"),h={};t.DEFAULT_FILTER=h;const d=null;t.DEFAULT_SORT=d,t.DEFAULT_LIMIT=0,t.DEFAULT_SKIP=0;const m=null;t.DEFAULT_PROJECT=m;const g=null;function v(e){if(null==e)return!0;const t=u.default.trim("number"==typeof e?`${e}`:e);return"{}"===t||u.default.isEmpty(t)}function y(e){return v(e)?0:!!/^\d+$/.test(`${e}`)&&parseInt(`${e}`,10)}function b(e){return(0,s.default)(e,{mode:s.ParseMode.Loose})}function x(e){return(0,s.default)(e,{mode:s.ParseMode.Loose})}function w(e){return v(e)?d:(0,s.default)(e,{mode:s.ParseMode.Loose})}function _(e){return(0,s.default)(e,{mode:s.ParseMode.Loose})}function S(e){if(v(e))return h;try{return _(e)}catch(t){return p('Filter "%s" is invalid',e,t),!1}}function E(e){if(v(e))return g;try{return function(e){for(const[t,n]of Object.entries(e)){if(!c.COLLATION_OPTIONS[t])return p('Collation "%s" is invalid bc of its keys',e),!1;if(!1===c.COLLATION_OPTIONS[t].includes(n))return p('Collation "%s" is invalid bc of its values',e),!1}return e}(x(e))}catch(t){return p('Collation "%s" is invalid',e,t),!1}}function k(){return!0}function C(e){if(v(e))return m;try{const t=b(e);return u.default.isObject(t)?u.default.every(t,k)?t:(p('Project "%s" is invalid bc of its values',e),!1):(p('Project "%s" is invalid. Only documents are allowed',e),!1)}catch(t){return p('Project "%s" is invalid',e,t),!1}}t.DEFAULT_COLLATION=g,t.DEFAULT_MAX_TIME_MS=6e4,t.QUERY_PROPERTIES=["filter","project","sort","skip","limit"],t.parseSort=w,t.parseFilter=function(e){return v(e)?h:_(e)},t.parseCollation=function(e){return v(e)?g:x(e)},t.isFilterValid=S,t.isCollationValid=E,t.parseProject=function(e){return v(e)?m:b(e)},t.isProjectValid=C;const I=[1,-1,"asc","desc"];function P(e){return u.default.includes(I,e)||!(!u.default.isObject(e)||!e.$meta)}function T(e){return u.default.isArray(e)&&2===e.length&&u.default.isString(e[0])&&P(e[1])}function A(e){try{const t=w(e);return v(t)?d:u.default.isArray(t)&&u.default.every(t,T)||u.default.isObject(t)&&!u.default.isArray(t)&&u.default.every(t,P)?t:(p('Sort "%s" is invalid bc of its values',e),!1)}catch(t){return p('Sort "%s" is invalid',e,t),!1}}function O(e){return v(e)?6e4:y(e)}function N(e){return v(e)?0:y(e)}function R(e){return v(e)?0:y(e)}t.isSortValid=A,t.isMaxTimeMSValid=O,t.isSkipValid=N,t.isLimitValid=R;const L={isMaxTimeMSValid:O,isFilterValid:S,isProjectValid:C,isSortValid:A,isLimitValid:R,isSkipValid:N,isCollationValid:E,isNumberValid:y};t.validate=function(e,t){const n=L[`is${u.default.upperFirst(e)}Valid`];return n?n(t):(p("Do not know how to validate `%s`. Returning false.",e),!1)},t.default=function(e,t=null){return 1===arguments.length&&u.default.isString(e)?_(e):{filter:_(e),project:t!==m?b(t):t}}},8423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.toJSString=void 0;const r=n(6081),i=new Map([["[object Array]","Array"],["[object Object]","Object"],["[object String]","String"],["[object Date]","Date"],["[object Number]","Number"],["[object Function]","Function"],["[object RegExp]","RegExp"],["[object Boolean]","Boolean"],["[object Null]","Null"],["[object Undefined]","Undefined"]]);const a={Code:function(e){return e.scope?`Code('${e.code}',${JSON.stringify(e.scope)})`:`Code('${e.code}')`},ObjectID:function(e){return`ObjectId('${e.toString("hex")}')`},ObjectId:function(e){return`ObjectId('${e.toString("hex")}')`},Binary:function(e){const t=e.sub_type;if(4===t&&16===e.buffer.length){let t="";try{t=e.toUUID().toString()}catch{t=e.toString("hex")}return`UUID('${t}')`}return`BinData(${t.toString(16)}, '${e.toString("base64")}')`},DBRef:function(e){return e.db?`DBRef('${e.collection}', '${e.oid.toString()}', '${e.db}')`:`DBRef('${e.collection}', '${e.oid.toString()}')`},Timestamp:function(e){return`Timestamp({ t: ${e.high}, i: ${e.low} })`},Long:function(e){return`NumberLong(${e.toString()})`},Decimal128:function(e){return`NumberDecimal('${e.toString()}')`},Double:function(e){return`Double('${e.toString()}')`},Int32:function(e){return`NumberInt('${e.toString()}')`},MaxKey:function(){return"MaxKey()"},MinKey:function(){return"MinKey()"},Date:function(e){return`ISODate('${e.toISOString()}')`},ISODate:function(e){return`ISODate('${e.toISOString()}')`},RegExp:function(e){let t="",n=!1;return e.global&&(n=!0,t+="g"),e.ignoreCase&&(n=!0,t+="i"),e.multiline&&(n=!0,t+="m"),`RegExp(${JSON.stringify(e.source)}${n?`, '${t}'`:""})`}};function o(e,t){return(0,r.stringify)(e,(function(e,t,n){const r=function(e){const t=function(e){return i.get(Object.prototype.toString.call(e))}(e),n="Object"===t&&e._bsontype;return{type:n||t,isBSON:!!n}}(e),o=a[r.type];return o?o(e):n(e)}),t||" ")}t.toJSString=o,t.stringify=function(e){return o(e)?.replace(/ ?\n ? ?/g,"").replace(/ {2,}/g," ")}},1378:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,o){o=o||{};var s,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var o=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*r;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===l&&isFinite(e))return o.long?(s=e,(u=Math.abs(s))>=i?a(s,u,i,"day"):u>=r?a(s,u,r,"hour"):u>=n?a(s,u,n,"minute"):u>=t?a(s,u,t,"second"):s+" ms"):function(e){var a=Math.abs(e);return a>=i?Math.round(e/i)+"d":a>=r?Math.round(e/r)+"h":a>=n?Math.round(e/n)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))n.call(a,l)&&(s[l]=a[l]);if(t){o=t(a);for(var c=0;c<o.length;c++)r.call(a,o[c])&&(s[o[c]]=a[o[c]])}}return s}},8262:(e,t,n)=>{"use strict";var r=n(3586);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},3980:(e,t,n)=>{e.exports=n(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2967:(e,t,n)=>{"use strict";var r=n(9497),i=n(7320),a=n(2941);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var s=new Set,u={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,d={},m={};function g(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(m,e)||!h.call(d,e)&&(p.test(e)?m[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,S=60106,E=60107,k=60108,C=60114,I=60109,P=60110,T=60112,A=60113,O=60120,N=60115,R=60116,L=60121,M=60128,F=60129,j=60130,D=60131;if("function"==typeof Symbol&&Symbol.for){var V=Symbol.for;_=V("react.element"),S=V("react.portal"),E=V("react.fragment"),k=V("react.strict_mode"),C=V("react.profiler"),I=V("react.provider"),P=V("react.context"),T=V("react.forward_ref"),A=V("react.suspense"),O=V("react.suspense_list"),N=V("react.memo"),R=V("react.lazy"),L=V("react.block"),V("react.scope"),M=V("react.opaque.id"),F=V("react.debug_trace_mode"),j=V("react.offscreen"),D=V("react.legacy_hidden")}var B,z="function"==typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}function $(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var W=!1;function q(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function H(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return q(e.type,!1);case 11:return q(e.type.render,!1);case 22:return q(e.type._render,!1);case 1:return q(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case S:return"Portal";case C:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case I:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return G(e.type);case L:return G(e._render);case R:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function le(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var de,me,ge=(me=function(e,t){if(e.namespaceURI!==fe.svg||"innerHTML"in e)e.innerHTML=t;else{for((de=de||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=de.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var _e=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Ie=null,Pe=null;function Te(e){if(e=ti(e)){if("function"!=typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=ri(t),Ce(e.stateNode,e.type,t))}}function Ae(e){Ie?Pe?Pe.push(e):Pe=[e]:Ie=e}function Oe(){if(Ie){var e=Ie,t=Pe;if(Pe=Ie=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ne(e,t){return e(t)}function Re(e,t,n,r,i){return e(t,n,r,i)}function Le(){}var Me=Ne,Fe=!1,je=!1;function De(){null===Ie&&null===Pe||(Le(),Oe())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=ri(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Be=!1;if(f)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Be=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(me){Be=!1}function Ue(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var $e=!1,We=null,qe=!1,He=null,Ge={onError:function(e){$e=!0,We=e}};function Ke(e,t,n,r,i,a,o,s,u){$e=!1,We=null,Ue.apply(Ge,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Xe(e){if(Qe(e)!==e)throw Error(o(188))}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var Je,et,tt,nt,rt=!1,it=[],at=null,ot=null,st=null,ut=new Map,lt=new Map,ct=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lt.delete(t.pointerId)}}function dt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&null!==(t=ti(t))&&et(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=ei(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void nt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){tt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ti(n))&&et(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){gt(e)&&n.delete(t)}function yt(){for(rt=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=ti(e.blockedOn))&&Je(e);break}for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&gt(at)&&(at=null),null!==ot&&gt(ot)&&(ot=null),null!==st&&gt(st)&&(st=null),ut.forEach(vt),lt.forEach(vt)}function bt(e,t){e.blockedOn===t&&(e.blockedOn=null,rt||(rt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,yt)))}function xt(e){function t(t){return bt(t,e)}if(0<it.length){bt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&bt(at,e),null!==ot&&bt(ot,e),null!==st&&bt(st,e),ut.forEach(t),lt.forEach(t),n=0;n<ct.length;n++)(r=ct[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ct.length&&null===(n=ct[0]).blockedOn;)mt(n),null===n.blockedOn&&ct.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},St={},Et={};function kt(e){if(St[e])return St[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in Et)return St[e]=n[t];return e}f&&(Et=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Ct=kt("animationend"),It=kt("animationiteration"),Pt=kt("animationstart"),Tt=kt("transitionend"),At=new Map,Ot=new Map,Nt=["abort","abort",Ct,"animationEnd",It,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Ot.set(r,t),At.set(r,i),l(i,[r])}}(0,a.unstable_now)();var Lt=8;function Mt(e){if(0!=(1&e))return Lt=15,1;if(0!=(2&e))return Lt=14,2;if(0!=(4&e))return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):0!=(32&e)?(Lt=11,32):0!=(t=192&e)?(Lt=10,t):0!=(256&e)?(Lt=9,256):0!=(t=3584&e)?(Lt=8,t):0!=(4096&e)?(Lt=7,4096):0!=(t=4186112&e)?(Lt=6,t):0!=(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):0!=(134217728&e)?(Lt=3,134217728):0!=(t=805306368&e)?(Lt=2,t):0!=(1073741824&e)?(Lt=1,1073741824):(Lt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Lt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Lt=15;else if(0!=(a=134217727&n)){var u=a&~o;0!==u?(r=Mt(u),i=Lt):0!=(s&=a)&&(r=Mt(s),i=Lt)}else 0!=(a=n&~o)?(r=Mt(a),i=Lt):0!==s&&(r=Mt(s),i=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Ut(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Mt(t),i<=Lt)return t;Lt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ut(t)),r|=e[n],t&=~i;return r}function jt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?Dt(10,t):e;case 10:return 0===(e=Vt(192&~t))?Dt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&0===(e=Vt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Vt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Wt|0)|0},$t=Math.log,Wt=Math.LN2,qt=a.unstable_UserBlockingPriority,Ht=a.unstable_runWithPriority,Gt=!0;function Kt(e,t,n,r){Fe||Le();var i=Yt,a=Fe;Fe=!0;try{Re(i,e,t,n,r)}finally{(Fe=a)||De()}}function Qt(e,t,n,r){Ht(qt,Yt.bind(null,e,t,n,r))}function Yt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<it.length&&-1<ft.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var a=Xt(e,t,n,r);if(null===a)i&&ht(e,r);else{if(i){if(-1<ft.indexOf(e))return e=pt(a,e,t,n,r),void it.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=dt(at,e,t,n,r,i),!0;case"dragenter":return ot=dt(ot,e,t,n,r,i),!0;case"mouseover":return st=dt(st,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ut.set(a,dt(ut.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,lt.set(a,dt(lt.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;ht(e,r)}Rr(e,t,r,null,n)}}}function Xt(e,t,n,r){var i=ke(r);if(null!==(i=ei(i))){var a=Qe(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Ye(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Rr(e,t,r,i,n),null}var Zt=null,Jt=null,en=null;function tn(){if(en)return en;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return en=i.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function an(){return!1}function on(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rn:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,un,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=on(cn),pn=i({},cn,{view:0,detail:0}),hn=on(pn),dn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,un=e.screenY-ln.screenY):un=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),mn=on(dn),gn=on(i({},dn,{dataTransfer:0})),vn=on(i({},pn,{relatedTarget:0})),yn=on(i({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=i({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=on(bn),wn=on(i({},cn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var In=i({},pn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(In),Tn=on(i({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),On=on(i({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=i({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Nn),Ln=[9,13,27,32],Mn=f&&"CompositionEvent"in window,Fn=null;f&&"documentMode"in document&&(Fn=document.documentMode);var jn=f&&"TextEvent"in window&&!Fn,Dn=f&&(!Mn||Fn&&8<Fn&&11>=Fn),Vn=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ae(r),0<(t=Mr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Kn=null;function Qn(e){Ir(e,0)}function Yn(e){if(X(ni(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(f){var Jn;if(f){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Gn&&(Gn.detachEvent("onpropertychange",rr),Kn=Gn=null)}function rr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];if(Hn(t,Kn,e,ke(e)),e=Qn,Fe)e(t);else{Fe=!0;try{Ne(e,t)}finally{Fe=!1,De()}}}}function ir(e,t,n){"focusin"===e?(nr(),Kn=n,(Gn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function or(e,t){if("click"===e)return Yn(t)}function sr(e,t){if("input"===e||"change"===e)return Yn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function cr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,br=null,xr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==vr||vr!==Z(r)||(r="selectionStart"in(r=vr)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Mr(yr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(Nt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<_r.length;Sr++)Ot.set(_r[Sr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,l){if(Ke.apply(this,arguments),$e){if(!$e)throw Error(o(198));var c=We;$e=!1,We=null,qe||(qe=!0,He=c)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Cr(i,s,l),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Cr(i,s,l),a=u}}}if(qe)throw e=He,qe=!1,He=null,e}function Pr(e,t){var n=ii(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){e[Tr]||(e[Tr]=!0,s.forEach((function(t){kr.has(t)||Or(t,!1,e,null),Or(t,!0,e,null)})))}function Or(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ii(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Nr(a,e,i,t),o.add(s))}function Nr(e,t,n,r){var i=Ot.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Qt;break;default:i=Yt}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Rr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=ei(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(je)return e();je=!0;try{return Me(e,t,n)}finally{je=!1,De()}}((function(){var r=a,i=ke(n),o=[];e:{var s=At.get(e);if(void 0!==s){var u=fn,l=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":l="focus",u=vn;break;case"focusout":l="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case Ct:case It:case Pt:u=yn;break;case Tt:u=On;break;case"scroll":u=hn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var h,d=r;null!==d;){var m=(h=d).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&null!=(m=Ve(d,p))&&c.push(Lr(d,m,h))),f)break;d=d.return}0<c.length&&(s=new u(s,l,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=n.relatedTarget||n.fromElement)||!ei(l)&&!l[Zr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?ei(l):null)&&(l!==(f=Qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=mn,m="onMouseLeave",p="onMouseEnter",d="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",p="onPointerEnter",d="pointer"),f=null==u?s:ni(u),h=null==l?s:ni(l),(s=new c(m,d+"leave",u,n,i)).target=f,s.relatedTarget=h,m=null,ei(i)===r&&((c=new c(p,d+"enter",l,n,i)).target=h,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(p=l,d=0,h=c=u;h;h=Fr(h))d++;for(h=0,m=p;m;m=Fr(m))h++;for(;0<d-h;)c=Fr(c),d--;for(;0<h-d;)p=Fr(p),h--;for(;d--;){if(c===p||null!==p&&c===p.alternate)break e;c=Fr(c),p=Fr(p)}c=null}else c=null;null!==u&&jr(o,s,u,c,!1),null!==l&&null!==f&&jr(o,f,l,c,!0)}if("select"===(u=(s=r?ni(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var g=Xn;else if(qn(s))if(Zn)g=sr;else{g=ar;var v=ir}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Hn(o,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?ni(r):window,e){case"focusin":(qn(v)||"true"===v.contentEditable)&&(vr=v,yr=r,br=null);break;case"focusout":br=yr=vr=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,wr(o,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(o,n,i)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=tn()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,$n=!0)),0<(v=Mr(r,b)).length&&(b=new wn(b,e,null,n,i),o.push({event:b,listeners:v}),(y||null!==(y=Un(n)))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Vn);case"textInput":return(e=t.data)===Vn&&Bn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Mn&&zn(e,t)?(e=tn(),en=Jt=Zt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Mr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y)}Ir(o,t)}))}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ve(e,n))&&r.unshift(Lr(e,a,i)),null!=(a=Ve(e,t))&&r.push(Lr(e,a,i))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Ve(n,a))&&o.unshift(Lr(n,u,s)):i||null!=(u=Ve(n,a))&&o.push(Lr(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Dr(){}var Vr=null,Br=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var $r="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Kr=0,Qr=Math.random().toString(36).slice(2),Yr="__reactFiber$"+Qr,Xr="__reactProps$"+Qr,Zr="__reactContainer$"+Qr,Jr="__reactEvents$"+Qr;function ei(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Yr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Yr])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function ti(e){return!(e=e[Yr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ni(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ri(e){return e[Xr]||null}function ii(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var ai=[],oi=-1;function si(e){return{current:e}}function ui(e){0>oi||(e.current=ai[oi],ai[oi]=null,oi--)}function li(e,t){oi++,ai[oi]=e.current,e.current=t}var ci={},fi=si(ci),pi=si(!1),hi=ci;function di(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function mi(e){return null!=e.childContextTypes}function gi(){ui(pi),ui(fi)}function vi(e,t,n){if(fi.current!==ci)throw Error(o(168));li(fi,t),li(pi,n)}function yi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,G(t)||"Unknown",a));return i({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,hi=fi.current,li(fi,e),li(pi,pi.current),!0}function xi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=yi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,ui(pi),ui(fi),li(fi,e)):ui(pi),li(pi,n)}var wi=null,_i=null,Si=a.unstable_runWithPriority,Ei=a.unstable_scheduleCallback,ki=a.unstable_cancelCallback,Ci=a.unstable_shouldYield,Ii=a.unstable_requestPaint,Pi=a.unstable_now,Ti=a.unstable_getCurrentPriorityLevel,Ai=a.unstable_ImmediatePriority,Oi=a.unstable_UserBlockingPriority,Ni=a.unstable_NormalPriority,Ri=a.unstable_LowPriority,Li=a.unstable_IdlePriority,Mi={},Fi=void 0!==Ii?Ii:function(){},ji=null,Di=null,Vi=!1,Bi=Pi(),zi=1e4>Bi?Pi:function(){return Pi()-Bi};function Ui(){switch(Ti()){case Ai:return 99;case Oi:return 98;case Ni:return 97;case Ri:return 96;case Li:return 95;default:throw Error(o(332))}}function $i(e){switch(e){case 99:return Ai;case 98:return Oi;case 97:return Ni;case 96:return Ri;case 95:return Li;default:throw Error(o(332))}}function Wi(e,t){return e=$i(e),Si(e,t)}function qi(e,t,n){return e=$i(e),Ei(e,t,n)}function Hi(){if(null!==Di){var e=Di;Di=null,ki(e)}Gi()}function Gi(){if(!Vi&&null!==ji){Vi=!0;var e=0;try{var t=ji;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ji=null}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),Ei(Ai,Hi),t}finally{Vi=!1}}}var Ki=w.ReactCurrentBatchConfig;function Qi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Yi=si(null),Xi=null,Zi=null,Ji=null;function ea(){Ji=Zi=Xi=null}function ta(e){var t=Yi.current;ui(Yi),e.type._context._currentValue=t}function na(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ra(e,t){Xi=e,Ji=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Mo=!0),e.firstContext=null)}function ia(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Xi)throw Error(o(308));Zi=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var aa=!1;function oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ua(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function la(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fa(e,t,n,r){var a=e.updateQueue;aa=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,u=a.shared.pending;if(null!==u){a.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var f=e.alternate;if(null!==f){var p=(f=f.updateQueue).lastBaseUpdate;p!==s&&(null===p?f.firstBaseUpdate=c:p.next=c,f.lastBaseUpdate=l)}}if(null!==o){for(p=a.baseState,s=0,f=c=l=null;;){u=o.lane;var h=o.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var d=e,m=o;switch(u=t,h=n,m.tag){case 1:if("function"==typeof(d=m.payload)){p=d.call(h,p,u);break e}p=d;break e;case 3:d.flags=-4097&d.flags|64;case 0:if(null==(u="function"==typeof(d=m.payload)?d.call(h,p,u):d))break e;p=i({},p,u);break e;case 2:aa=!0}}null!==o.callback&&(e.flags|=32,null===(u=a.effects)?a.effects=[o]:u.push(o))}else h={eventTime:h,lane:u,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=h,l=p):f=f.next=h,s|=u;if(null===(o=o.next)){if(null===(u=a.shared.pending))break;o=u.next,u.next=null,a.lastBaseUpdate=u,a.shared.pending=null}}null===f&&(l=p),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=f,Ds|=s,e.lanes=s,e.memoizedState=p}}function pa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var ha=(new r.Component).refs;function da(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ma={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lu(),i=cu(e),a=ua(r,i);a.payload=t,null!=n&&(a.callback=n),la(e,a),fu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lu(),i=cu(e),a=ua(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),la(e,a),fu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lu(),r=cu(e),i=ua(n,r);i.tag=2,null!=t&&(i.callback=t),la(e,i),fu(e,r,n)}};function ga(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(i,a))}function va(e,t,n){var r=!1,i=ci,a=t.contextType;return"object"==typeof a&&null!==a?a=ia(a):(i=mi(t)?hi:fi.current,a=(r=null!=(r=t.contextTypes))?di(e,i):ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ya(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ma.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ha,oa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ia(a):(a=mi(t)?hi:fi.current,i.context=di(e,a)),fa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(da(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ma.enqueueReplaceState(i,i.state,null),fa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var xa=Array.isArray;function wa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===ha&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function _a(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Uu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Hu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=$u(n.type,n.key,n.props,null,e.mode,r)).ref=wa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Wu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Hu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=$u(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case S:return(t=Gu(t,e.mode,n)).return=e,t}if(xa(t)||U(t))return(t=Wu(t,e.mode,n,null)).return=e,t;_a(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===E?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null}if(xa(n)||U(n))return null!==i?null:f(e,t,n,r,null);_a(e,n)}return null}function d(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===E?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(xa(r)||U(r))return f(t,e=e.get(n)||null,r,i,null);_a(t,r)}return null}function m(i,o,s,u){for(var l=null,c=null,f=o,m=o=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=h(i,f,s[m],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),o=a(v,o,m),null===c?l=v:c.sibling=v,c=v,f=g}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=p(i,s[m],u))&&(o=a(f,o,m),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);m<s.length;m++)null!==(g=d(f,i,m,s[m],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?l=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(i,e)})),l}function g(i,s,u,l){var c=U(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,m=s,g=s=0,v=null,y=u.next();null!==m&&!y.done;g++,y=u.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(i,m,y.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===f?c=b:f.sibling=b,f=b,m=v}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=p(i,y.value,l))&&(s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;g++,y=u.next())null!==(y=d(m,i,g,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"==typeof a&&null!==a&&a.type===E&&null===a.key;l&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case _:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(a.type===E){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=wa(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===E?((r=Wu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=$u(a.type,a.key,a.props,null,e.mode,u)).ref=wa(e,r,a),u.return=e,e=u)}return s(e);case S:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gu(a,e.mode,u)).return=e,e=r}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Hu(a,e.mode,u)).return=e,e=r),s(e);if(xa(a))return m(e,r,a,u);if(U(a))return g(e,r,a,u);if(c&&_a(e,a),void 0===a&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,G(e.type)||"Component"))}return n(e,r)}}var Ea=Sa(!0),ka=Sa(!1),Ca={},Ia=si(Ca),Pa=si(Ca),Ta=si(Ca);function Aa(e){if(e===Ca)throw Error(o(174));return e}function Oa(e,t){switch(li(Ta,t),li(Pa,e),li(Ia,Ca),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Ia),li(Ia,t)}function Na(){ui(Ia),ui(Pa),ui(Ta)}function Ra(e){Aa(Ta.current);var t=Aa(Ia.current),n=he(t,e.type);t!==n&&(li(Pa,e),li(Ia,n))}function La(e){Pa.current===e&&(ui(Ia),ui(Pa))}var Ma=si(0);function Fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ja=null,Da=null,Va=!1;function Ba(e,t){var n=Bu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function za(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ua(e){if(Va){var t=Da;if(t){var n=t;if(!za(e,t)){if(!(t=Hr(n.nextSibling))||!za(e,t))return e.flags=-1025&e.flags|2,Va=!1,void(ja=e);Ba(ja,n)}ja=e,Da=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Va=!1,ja=e}}function $a(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ja=e}function Wa(e){if(e!==ja)return!1;if(!Va)return $a(e),Va=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=Da;t;)Ba(e,t),t=Hr(t.nextSibling);if($a(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Da=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Da=null}}else Da=ja?Hr(e.stateNode.nextSibling):null;return!0}function qa(){Da=ja=null,Va=!1}var Ha=[];function Ga(){for(var e=0;e<Ha.length;e++)Ha[e]._workInProgressVersionPrimary=null;Ha.length=0}var Ka=w.ReactCurrentDispatcher,Qa=w.ReactCurrentBatchConfig,Ya=0,Xa=null,Za=null,Ja=null,eo=!1,to=!1;function no(){throw Error(o(321))}function ro(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function io(e,t,n,r,i,a){if(Ya=a,Xa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ka.current=null===e||null===e.memoizedState?Oo:No,e=n(r,i),to){a=0;do{if(to=!1,!(25>a))throw Error(o(301));a+=1,Ja=Za=null,t.updateQueue=null,Ka.current=Ro,e=n(r,i)}while(to)}if(Ka.current=Ao,t=null!==Za&&null!==Za.next,Ya=0,Ja=Za=Xa=null,eo=!1,t)throw Error(o(300));return e}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ja?Xa.memoizedState=Ja=e:Ja=Ja.next=e,Ja}function oo(){if(null===Za){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Za.next;var t=null===Ja?Xa.memoizedState:Ja.next;if(null!==t)Ja=t,Za=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Za=e).memoizedState,baseState:Za.baseState,baseQueue:Za.baseQueue,queue:Za.queue,next:null},null===Ja?Xa.memoizedState=Ja=e:Ja=Ja.next=e}return Ja}function so(e,t){return"function"==typeof t?t(e):t}function uo(e){var t=oo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Za,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=a=null,l=i;do{var c=l.lane;if((Ya&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,a=r):u=u.next=f,Xa.lanes|=c,Ds|=c}l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=s,ur(r,t.memoizedState)||(Mo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function lo(e){var t=oo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ur(a,t.memoizedState)||(Mo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function co(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ya&e)===e)&&(t._workInProgressVersionPrimary=r,Ha.push(t))),e)return n(t._source);throw Ha.push(t),Error(o(350))}function fo(e,t,n,r){var i=As;if(null===i)throw Error(o(349));var a=t._getVersion,s=a(t._source),u=Ka.current,l=u.useState((function(){return co(i,t,n)})),c=l[1],f=l[0];l=Ja;var p=e.memoizedState,h=p.refs,d=h.getSnapshot,m=p.source;p=p.subscribe;var g=Xa;return e.memoizedState={refs:h,source:t,subscribe:r},u.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=a(t._source);if(!ur(s,e)){e=n(t._source),ur(f,e)||(c(e),e=cu(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var u=31-Ut(o),l=1<<u;r[u]|=e,o&=~l}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=cu(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ur(d,n)&&ur(m,t)&&ur(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:f}).dispatch=c=To.bind(null,Xa,e),l.queue=e,l.baseQueue=null,f=co(i,t,n),l.memoizedState=l.baseState=f),f}function po(e,t,n){return fo(oo(),e,t,n)}function ho(e){var t=ao();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:e}).dispatch=To.bind(null,Xa,e),[t.memoizedState,e]}function mo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xa.updateQueue)?(t={lastEffect:null},Xa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function go(e){return e={current:e},ao().memoizedState=e}function vo(){return oo().memoizedState}function yo(e,t,n,r){var i=ao();Xa.flags|=e,i.memoizedState=mo(1|t,n,void 0,void 0===r?null:r)}function bo(e,t,n,r){var i=oo();r=void 0===r?null:r;var a=void 0;if(null!==Za){var o=Za.memoizedState;if(a=o.destroy,null!==r&&ro(r,o.deps))return void mo(t,n,a,r)}Xa.flags|=e,i.memoizedState=mo(1|t,n,a,r)}function xo(e,t){return yo(516,4,e,t)}function wo(e,t){return bo(516,4,e,t)}function _o(e,t){return bo(4,2,e,t)}function So(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Eo(e,t,n){return n=null!=n?n.concat([e]):null,bo(4,2,So.bind(null,t,e),n)}function ko(){}function Co(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Io(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Po(e,t){var n=Ui();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=Qa.transition;Qa.transition=1;try{e(!1),t()}finally{Qa.transition=n}}))}function To(e,t,n){var r=lu(),i=cu(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Xa||null!==o&&o===Xa)to=eo=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=o(s,n);if(a.eagerReducer=o,a.eagerState=u,ur(u,s))return}catch(e){}fu(e,i,r)}}var Ao={readContext:ia,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useOpaqueIdentifier:no,unstable_isNewReconciler:!1},Oo={readContext:ia,useCallback:function(e,t){return ao().memoizedState=[e,void 0===t?null:t],e},useContext:ia,useEffect:xo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yo(4,2,So.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=ao();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ao();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=To.bind(null,Xa,e),[r.memoizedState,e]},useRef:go,useState:ho,useDebugValue:ko,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return xo((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return go(e=Po.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fo(r,e,t,n)},useOpaqueIdentifier:function(){if(Va){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Kr++).toString(36))),Error(o(355))})),n=ho(t)[1];return 0==(2&Xa.mode)&&(Xa.flags|=516,mo(5,(function(){n("r:"+(Kr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(Kr++).toString(36)),t},unstable_isNewReconciler:!1},No={readContext:ia,useCallback:Co,useContext:ia,useEffect:wo,useImperativeHandle:Eo,useLayoutEffect:_o,useMemo:Io,useReducer:uo,useRef:vo,useState:function(){return uo(so)},useDebugValue:ko,useDeferredValue:function(e){var t=uo(so),n=t[0],r=t[1];return wo((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=uo(so)[0];return[vo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return uo(so)[0]},unstable_isNewReconciler:!1},Ro={readContext:ia,useCallback:Co,useContext:ia,useEffect:wo,useImperativeHandle:Eo,useLayoutEffect:_o,useMemo:Io,useReducer:lo,useRef:vo,useState:function(){return lo(so)},useDebugValue:ko,useDeferredValue:function(e){var t=lo(so),n=t[0],r=t[1];return wo((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=lo(so)[0];return[vo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return lo(so)[0]},unstable_isNewReconciler:!1},Lo=w.ReactCurrentOwner,Mo=!1;function Fo(e,t,n,r){t.child=null===e?ka(t,null,n,r):Ea(t,e.child,n,r)}function jo(e,t,n,r,i){n=n.render;var a=t.ref;return ra(t,i),r=io(e,t,n,r,a,i),null===e||Mo?(t.flags|=1,Fo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Do(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||zu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$u(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Vo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,a):(t.flags|=1,(e=Uu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Vo(e,t,n,r,i,a){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Mo=!1,0==(a&i))return t.lanes=e.lanes,ns(e,t,a);0!=(16384&e.flags)&&(Mo=!0)}return Uo(e,t,n,r,a)}function Bo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yu(0,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yu(0,e),null;t.memoizedState={baseLanes:0},yu(0,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yu(0,r);return Fo(e,t,i,n),t.child}function zo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Uo(e,t,n,r,i){var a=mi(n)?hi:fi.current;return a=di(t,a),ra(t,i),n=io(e,t,n,r,a,i),null===e||Mo?(t.flags|=1,Fo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function $o(e,t,n,r,i){if(mi(n)){var a=!0;bi(t)}else a=!1;if(ra(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),ba(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;l="object"==typeof l&&null!==l?ia(l):di(t,l=mi(n)?hi:fi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||u!==l)&&ya(t,o,r,l),aa=!1;var p=t.memoizedState;o.state=p,fa(t,r,o,i),u=t.memoizedState,s!==r||p!==u||pi.current||aa?("function"==typeof c&&(da(t,n,c,r),u=t.memoizedState),(s=aa||ga(t,n,s,r,p,u,l))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,sa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Qi(t.type,s),o.props=l,f=t.pendingProps,p=o.context,u="object"==typeof(u=n.contextType)&&null!==u?ia(u):di(t,u=mi(n)?hi:fi.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||p!==u)&&ya(t,o,r,u),aa=!1,p=t.memoizedState,o.state=p,fa(t,r,o,i);var d=t.memoizedState;s!==f||p!==d||pi.current||aa?("function"==typeof h&&(da(t,n,h,r),d=t.memoizedState),(l=aa||ga(t,n,l,r,p,d,u))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,d,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,d,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=d),o.props=r,o.state=d,o.context=u,r=l):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,i)}function Wo(e,t,n,r,i,a){zo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&xi(t,n,!1),ns(e,t,a);r=t.stateNode,Lo.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Ea(t,e.child,null,a),t.child=Ea(t,null,s,a)):Fo(e,t,s,a),t.memoizedState=r.state,i&&xi(t,n,!0),t.child}function qo(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Oa(e,t.containerInfo)}var Ho,Go,Ko,Qo,Yo={dehydrated:null,retryLane:0};function Xo(e,t,n){var r,i=t.pendingProps,a=Ma.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),li(Ma,1&a),null===e?(void 0!==i.fallback&&Ua(t),e=i.children,a=i.fallback,o?(e=Zo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,e):"number"==typeof i.unstable_expectedLoadTime?(e=Zo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,t.lanes=33554432,e):((n=qu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Uu(o,s),null!==e?r=Uu(e,r):(r=Wu(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Yo,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Uu(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Zo(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=qu(t,i,0,null),n=Wu(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Jo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),na(e.return,t)}function es(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Fo(e,t,r.children,n),0!=(2&(r=Ma.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jo(e,n);else if(19===e.tag)Jo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(li(Ma,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,a,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ds|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Uu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Uu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Va)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mi(t.type)&&gi(),null;case 3:return Na(),ui(pi),ui(fi),Ga(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Go(t),null;case 5:La(t);var a=Aa(Ta.current);if(n=t.type,null!==e&&null!=t.stateNode)Ko(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Aa(Ia.current),Wa(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Yr]=t,r[Xr]=s,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Er.length;e++)Pr(Er[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,s),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Pr("invalid",r);break;case"textarea":ue(r,s),Pr("invalid",r)}for(var l in Se(n,s),e=null,s)s.hasOwnProperty(l)&&(a=s[l],"children"===l?"string"==typeof a?r.textContent!==a&&(e=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(e=["children",""+a]):u.hasOwnProperty(l)&&null!=a&&"onScroll"===l&&Pr("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===a.nodeType?a:a.ownerDocument,e===fe.html&&(e=pe(n)),e===fe.html?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Yr]=t,e[Xr]=r,Ho(e,t,!1,!1),t.stateNode=e,l=Ee(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),a=r;break;case"iframe":case"object":case"embed":Pr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Er.length;a++)Pr(Er[a],e);a=r;break;case"source":Pr("error",e),a=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),a=r;break;case"details":Pr("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),Pr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":ue(e,r),a=se(e,r),Pr("invalid",e);break;default:a=r}Se(n,a);var c=a;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?we(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"==typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Pr("scroll",e):null!=f&&x(e,s,f,l))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?oe(e,!!r.multiple,s,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Dr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qo(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Aa(Ta.current),Aa(Ia.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Yr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Yr]=t,t.stateNode=r)}return null;case 13:return ui(Ma),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ma.current)?0===Ms&&(Ms=3):(0!==Ms&&3!==Ms||(Ms=4),null===As||0==(134217727&Ds)&&0==(134217727&Vs)||mu(As,Ns))),(r||n)&&(t.flags|=4),null);case 4:return Na(),Go(t),null===e&&Ar(t.stateNode.containerInfo),null;case 10:return ta(t),null;case 19:if(ui(Ma),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(l=r.rendering))if(s)rs(r,!1);else{if(0!==Ms||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Fa(e))){for(t.flags|=64,rs(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return li(Ma,1&Ma.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>$s&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Fa(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Va)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>$s&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=Ma.current,li(Ma,s?1&t|2:1&t),n):null;case 23:case 24:return bu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function as(e){switch(e.tag){case 1:mi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Na(),ui(pi),ui(fi),Ga(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return La(e),null;case 13:return ui(Ma),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Ma),null;case 4:return Na(),null;case 10:return ta(e),null;case 23:case 24:return bu(),null;default:return null}}function os(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Go=function(){},Ko=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Aa(Ia.current);var o,s=null;switch(n){case"input":a=J(e,a),r=J(e,r),s=[];break;case"option":a=ae(e,a),r=ae(e,r),s=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":a=se(e,a),r=se(e,r),s=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(f in Se(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var l=a[f];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),s||l===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Qo=function(e,t,n,r){n!==r&&(t.flags|=4)};var us="function"==typeof WeakMap?WeakMap:Map;function ls(e,t,n){(n=ua(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Ks=r),ss(0,t)},n}function cs(e,t,n){(n=ua(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fu(e,t)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(o(163))}function ds(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ru(n,e),Nu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(o(163))}function ms(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gs(e,t){if(_i&&"function"==typeof _i.onCommitFiberUnmount)try{_i.onCommitFiberUnmount(wi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ru(t,n);else{r=t;try{i()}catch(e){Fu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fu(t,e)}break;case 5:ps(t);break;case 4:_s(e,t)}}function vs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ys(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(ys(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ys(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?xs(e,n,t):ws(e,n,t)}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function _s(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,l=u;;)if(gs(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(gs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Ss(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,i),t=Ee(e,r),i=0;i<a.length;i+=2){var s=a[i],u=a[i+1];"style"===s?we(n,u):"dangerouslySetInnerHTML"===s?ge(n,u):"children"===s?ve(n,u):x(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Us=zi(),ms(t.child,!0)),void Es(t);case 19:return void Es(t);case 23:case 24:return void ms(t,null!==t.memoizedState)}throw Error(o(163))}function Es(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Du.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ks(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Cs=Math.ceil,Is=w.ReactCurrentDispatcher,Ps=w.ReactCurrentOwner,Ts=0,As=null,Os=null,Ns=0,Rs=0,Ls=si(0),Ms=0,Fs=null,js=0,Ds=0,Vs=0,Bs=0,zs=null,Us=0,$s=1/0;function Ws(){$s=zi()+500}var qs,Hs=null,Gs=!1,Ks=null,Qs=null,Ys=!1,Xs=null,Zs=90,Js=[],eu=[],tu=null,nu=0,ru=null,iu=-1,au=0,ou=0,su=null,uu=!1;function lu(){return 0!=(48&Ts)?zi():-1!==iu?iu:iu=zi()}function cu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ui()?1:2;if(0===au&&(au=js),0!==Ki.transition){0!==ou&&(ou=null!==zs?zs.pendingLanes:0),e=au;var t=4186112&~ou;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Ui(),e=Dt(0!=(4&Ts)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),au)}function fu(e,t,n){if(50<nu)throw nu=0,ru=null,Error(o(185));if(null===(e=pu(e,t)))return null;zt(e,t,n),e===As&&(Vs|=t,4===Ms&&mu(e,Ns));var r=Ui();1===t?0!=(8&Ts)&&0==(48&Ts)?gu(e):(hu(e,n),0===Ts&&(Ws(),Hi())):(0==(4&Ts)||98!==r&&99!==r||(null===tu?tu=new Set([e]):tu.add(e)),hu(e,n)),zs=e}function pu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-Ut(s),l=1<<u,c=a[u];if(-1===c){if(0==(l&r)||0!=(l&i)){c=t,Mt(l);var f=Lt;a[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);s&=~l}if(r=Ft(e,e===As?Ns:0),t=Lt,0===r)null!==n&&(n!==Mi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Mi&&ki(n)}15===t?(n=gu.bind(null,e),null===ji?(ji=[n],Di=Ei(Ai,Gi)):ji.push(n),n=Mi):14===t?n=qi(99,gu.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),n=qi(n,du.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function du(e){if(iu=-1,ou=au=0,0!=(48&Ts))throw Error(o(327));var t=e.callbackNode;if(Ou()&&e.callbackNode!==t)return null;var n=Ft(e,e===As?Ns:0);if(0===n)return null;var r=n,i=Ts;Ts|=16;var a=_u();for(As===e&&Ns===r||(Ws(),xu(e,r));;)try{ku();break}catch(t){wu(e,t)}if(ea(),Is.current=a,Ts=i,null!==Os?r=0:(As=null,Ns=0,r=Ms),0!=(js&Vs))xu(e,0);else if(0!==r){if(2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=jt(e))&&(r=Su(e,n))),1===r)throw t=Fs,xu(e,0),mu(e,n),hu(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:case 5:Pu(e);break;case 3:if(mu(e,n),(62914560&n)===n&&10<(r=Us+500-zi())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){lu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$r(Pu.bind(null,e),r);break}Pu(e);break;case 4:if(mu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ut(n);a=1<<s,(s=r[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){e.timeoutHandle=$r(Pu.bind(null,e),n);break}Pu(e);break;default:throw Error(o(329))}}return hu(e,zi()),e.callbackNode===t?du.bind(null,e):null}function mu(e,t){for(t&=~Bs,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function gu(e){if(0!=(48&Ts))throw Error(o(327));if(Ou(),e===As&&0!=(e.expiredLanes&Ns)){var t=Ns,n=Su(e,t);0!=(js&Vs)&&(n=Su(e,t=Ft(e,t)))}else n=Su(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=jt(e))&&(n=Su(e,t))),1===n)throw n=Fs,xu(e,0),mu(e,t),hu(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pu(e),hu(e,zi()),null}function vu(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Hi())}}function yu(e,t){li(Ls,Rs),Rs|=t,js|=t}function bu(){Rs=Ls.current,ui(Ls)}function xu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&gi();break;case 3:Na(),ui(pi),ui(fi),Ga();break;case 5:La(r);break;case 4:Na();break;case 13:case 19:ui(Ma);break;case 10:ta(r);break;case 23:case 24:bu()}n=n.return}As=e,Os=Uu(e.current,null),Ns=Rs=js=t,Ms=0,Fs=null,Bs=Vs=Ds=0}function wu(e,t){for(;;){var n=Os;try{if(ea(),Ka.current=Ao,eo){for(var r=Xa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}eo=!1}if(Ya=0,Ja=Za=Xa=null,to=!1,Ps.current=null,null===n||null===n.return){Ms=1,Fs=t,Os=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Ma.current),p=o;do{var h;if(h=13===p.tag){var d=p.memoizedState;if(null!==d)h=null!==d.dehydrated;else{var m=p.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(h){var g=p.updateQueue;if(null===g){var v=new Set;v.add(l),p.updateQueue=v}else g.add(l);if(0==(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=ua(-1,1);y.tag=2,la(s,y)}s.lanes|=1;break e}u=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new us,u=new Set,b.set(l,u)):void 0===(u=b.get(l))&&(u=new Set,b.set(l,u)),!u.has(s)){u.add(s);var x=ju.bind(null,a,l,s);l.then(x,x)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);u=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ms&&(Ms=2),u=os(u,s),p=o;do{switch(p.tag){case 3:a=u,p.flags|=4096,t&=-t,p.lanes|=t,ca(p,ls(0,a,t));break e;case 1:a=u;var w=p.type,_=p.stateNode;if(0==(64&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Qs||!Qs.has(_)))){p.flags|=4096,t&=-t,p.lanes|=t,ca(p,cs(p,a,t));break e}}p=p.return}while(null!==p)}Iu(n)}catch(e){t=e,Os===n&&null!==n&&(Os=n=n.return);continue}break}}function _u(){var e=Is.current;return Is.current=Ao,null===e?Ao:e}function Su(e,t){var n=Ts;Ts|=16;var r=_u();for(As===e&&Ns===t||xu(e,t);;)try{Eu();break}catch(t){wu(e,t)}if(ea(),Ts=n,Is.current=r,null!==Os)throw Error(o(261));return As=null,Ns=0,Ms}function Eu(){for(;null!==Os;)Cu(Os)}function ku(){for(;null!==Os&&!Ci();)Cu(Os)}function Cu(e){var t=qs(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?Iu(e):Os=t,Ps.current=null}function Iu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=is(n,t,Rs)))return void(Os=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Rs)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=as(t)))return n.flags&=2047,void(Os=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===Ms&&(Ms=5)}function Pu(e){var t=Ui();return Wi(99,Tu.bind(null,e,t)),null}function Tu(e,t){do{Ou()}while(null!==Xs);if(0!=(48&Ts))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<a;){var l=31-Ut(a),c=1<<l;i[l]=0,s[l]=-1,u[l]=-1,a&=~c}if(null!==tu&&0==(24&r)&&tu.has(e)&&tu.delete(e),e===As&&(Os=As=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ts,Ts|=32,Ps.current=null,Vr=Gt,mr(s=dr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,a=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(e){u=null;break e}var f=0,p=-1,h=-1,d=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==u||0!==a&&3!==g.nodeType||(p=f+a),g!==l||0!==c&&3!==g.nodeType||(h=f+c),3===g.nodeType&&(f+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===u&&++d===a&&(p=f),v===l&&++m===c&&(h=f),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}u=-1===p||-1===h?null:{start:p,end:h}}else u=null;u=u||{start:0,end:0}}else u=null;Br={focusedElem:s,selectionRange:u},Gt=!1,su=null,uu=!1,Hs=r;do{try{Au()}catch(e){if(null===Hs)throw Error(o(330));Fu(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);su=null,Hs=r;do{try{for(s=e;null!==Hs;){var b=Hs.flags;if(16&b&&ve(Hs.stateNode,""),128&b){var x=Hs.alternate;if(null!==x){var w=x.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:bs(Hs),Hs.flags&=-3;break;case 6:bs(Hs),Hs.flags&=-3,Ss(Hs.alternate,Hs);break;case 1024:Hs.flags&=-1025;break;case 1028:Hs.flags&=-1025,Ss(Hs.alternate,Hs);break;case 4:Ss(Hs.alternate,Hs);break;case 8:_s(s,u=Hs);var _=u.alternate;vs(u),null!==_&&vs(_)}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(o(330));Fu(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);if(w=Br,x=dr(),b=w.focusedElem,s=w.selectionRange,x!==b&&b&&b.ownerDocument&&hr(b.ownerDocument.documentElement,b)){null!==s&&mr(b)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),u=b.textContent.length,_=Math.min(s.start,u),s=void 0===s.end?_:Math.min(s.end,u),!w.extend&&_>s&&(u=s,s=_,_=u),u=pr(b,_),a=pr(b,s),u&&a&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((x=x.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),_>s?(w.addRange(x),w.extend(a.node,a.offset)):(x.setEnd(a.node,a.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Vr,Br=Vr=null,e.current=n,Hs=r;do{try{for(b=e;null!==Hs;){var S=Hs.flags;if(36&S&&ds(b,Hs.alternate,Hs),128&S){x=void 0;var E=Hs.ref;if(null!==E){var k=Hs.stateNode;Hs.tag,x=k,"function"==typeof E?E(x):E.current=x}}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(o(330));Fu(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);Hs=null,Fi(),Ts=i}else e.current=n;if(Ys)Ys=!1,Xs=e,Zs=t;else for(Hs=r;null!==Hs;)t=Hs.nextEffect,Hs.nextEffect=null,8&Hs.flags&&((S=Hs).sibling=null,S.stateNode=null),Hs=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===ru?nu++:(nu=0,ru=e):nu=0,n=n.stateNode,_i&&"function"==typeof _i.onCommitFiberRoot)try{_i.onCommitFiberRoot(wi,n,void 0,64==(64&n.current.flags))}catch(e){}if(hu(e,zi()),Gs)throw Gs=!1,e=Ks,Ks=null,e;return 0!=(8&Ts)||Hi(),null}function Au(){for(;null!==Hs;){var e=Hs.alternate;uu||null===su||(0!=(8&Hs.flags)?Ze(Hs,su)&&(uu=!0):13===Hs.tag&&ks(e,Hs)&&Ze(Hs,su)&&(uu=!0));var t=Hs.flags;0!=(256&t)&&hs(e,Hs),0==(512&t)||Ys||(Ys=!0,qi(97,(function(){return Ou(),null}))),Hs=Hs.nextEffect}}function Ou(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Wi(e,Lu)}return!1}function Nu(e,t){Js.push(t,e),Ys||(Ys=!0,qi(97,(function(){return Ou(),null})))}function Ru(e,t){eu.push(t,e),Ys||(Ys=!0,qi(97,(function(){return Ou(),null})))}function Lu(){if(null===Xs)return!1;var e=Xs;if(Xs=null,0!=(48&Ts))throw Error(o(331));var t=Ts;Ts|=32;var n=eu;eu=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===a)throw Error(o(330));Fu(a,e)}}for(n=Js,Js=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var u=i.create;i.destroy=u()}catch(e){if(null===a)throw Error(o(330));Fu(a,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Ts=t,Hi(),!0}function Mu(e,t,n){la(e,t=ls(0,t=os(n,t),1)),t=lu(),null!==(e=pu(e,1))&&(zt(e,1,t),hu(e,t))}function Fu(e,t){if(3===e.tag)Mu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Mu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var i=cs(n,e=os(t,e),1);if(la(n,i),i=lu(),null!==(n=pu(n,1)))zt(n,1,i),hu(n,i);else if("function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function ju(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=lu(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Ns&n)===n&&(4===Ms||3===Ms&&(62914560&Ns)===Ns&&500>zi()-Us?xu(e,0):Bs|=n),hu(e,t)}function Du(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ui()?1:2:(0===au&&(au=js),0===(t=Vt(62914560&~au))&&(t=4194304))),n=lu(),null!==(e=pu(e,t))&&(zt(e,t,n),hu(e,n))}function Vu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bu(e,t,n,r){return new Vu(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Uu(e,t){var n=e.alternate;return null===n?((n=Bu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $u(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)zu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return Wu(n.children,i,a,t);case F:s=8,i|=16;break;case k:s=8,i|=1;break;case C:return(e=Bu(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=a,e;case A:return(e=Bu(13,n,t,i)).type=A,e.elementType=A,e.lanes=a,e;case O:return(e=Bu(19,n,t,i)).elementType=O,e.lanes=a,e;case j:return qu(n,i,a,t);case D:return(e=Bu(24,n,t,i)).elementType=D,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case I:s=10;break e;case P:s=9;break e;case T:s=11;break e;case N:s=14;break e;case R:s=16,r=null;break e;case L:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Bu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Wu(e,t,n,r){return(e=Bu(7,e,r,t)).lanes=n,e}function qu(e,t,n,r){return(e=Bu(23,e,r,t)).elementType=j,e.lanes=n,e}function Hu(e,t,n){return(e=Bu(6,e,null,t)).lanes=n,e}function Gu(e,t,n){return(t=Bu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ku(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Qu(e,t,n,r){var i=t.current,a=lu(),s=cu(i);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(mi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var l=n.type;if(mi(l)){n=yi(n,l,u);break e}}n=u}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=ua(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),la(i,t),fu(i,s,a),s}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function Zu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ku(e,t,null!=n&&!0===n.hydrate),t=Bu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oa(t),e[Zr]=n.current,Ar(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}qs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pi.current)Mo=!0;else{if(0==(n&r)){switch(Mo=!1,t.tag){case 3:qo(t),qa();break;case 5:Ra(t);break;case 1:mi(t.type)&&bi(t);break;case 4:Oa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;li(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xo(e,t,n):(li(Ma,1&Ma.current),null!==(t=ns(e,t,n))?t.sibling:null);li(Ma,1&Ma.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),li(Ma,Ma.current),r)break;return null;case 23:case 24:return t.lanes=0,Bo(e,t,n)}return ns(e,t,n)}Mo=0!=(16384&e.flags)}else Mo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=di(t,fi.current),ra(t,n),i=io(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var a=!0;bi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oa(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&da(t,r,s,e),i.updater=ma,t.stateNode=i,i._reactInternals=t,ba(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Fo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return zu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===N)return 14}return 2}(i),e=Qi(i,e),a){case 0:t=Uo(null,t,i,e,n);break e;case 1:t=$o(null,t,i,e,n);break e;case 11:t=jo(null,t,i,e,n);break e;case 14:t=Do(null,t,i,Qi(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Uo(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,$o(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 3:if(qo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,sa(e,t),fa(t,r,null,n),(r=t.memoizedState.element)===i)qa(),t=ns(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Da=Hr(t.stateNode.containerInfo.firstChild),ja=t,a=Va=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Ha.push(a);for(n=ka(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fo(e,t,r,n),qa();t=t.child}return t;case 5:return Ra(t),null===e&&Ua(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Ur(r,i)?s=null:null!==a&&Ur(r,a)&&(t.flags|=16),zo(e,t),Fo(e,t,s,n),t.child;case 6:return null===e&&Ua(t),null;case 13:return Xo(e,t,n);case 4:return Oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ea(t,null,r,n):Fo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,jo(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 7:return Fo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var u=t.type._context;if(li(Yi,u._currentValue),u._currentValue=a,null!==s)if(u=s.value,0==(a=ur(u,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(s.children===i.children&&!pi.current){t=ns(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===u.tag&&((c=ua(-1,n&-n)).tag=2,la(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),na(u.return,n),l.lanes|=n;break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Fo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ra(t,n),r=r(i=ia(i,a.unstable_observedBits)),t.flags|=1,Fo(e,t,r,n),t.child;case 14:return a=Qi(i=t.type,t.pendingProps),Do(e,t,i,a=Qi(i.type,a),r,n);case 15:return Vo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mi(r)?(e=!0,bi(t)):e=!1,ra(t,n),va(t,r,i),ba(t,r,i,n),Wo(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Bo(e,t,n)}throw Error(o(156,t.tag))},Zu.prototype.render=function(e){Qu(e,this._internalRoot,null,null)},Zu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qu(null,e,null,(function(){t[Zr]=null}))},Je=function(e){13===e.tag&&(fu(e,4,lu()),Xu(e,4))},et=function(e){13===e.tag&&(fu(e,67108864,lu()),Xu(e,67108864))},tt=function(e){if(13===e.tag){var t=lu(),n=cu(e);fu(e,n,t),Xu(e,n)}},nt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ri(r);if(!i)throw Error(o(90));X(r),ne(r,i)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Ne=vu,Re=function(e,t,n,r,i){var a=Ts;Ts|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Ts=a)&&(Ws(),Hi())}},Le=function(){0==(49&Ts)&&(function(){if(null!==tu){var e=tu;tu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hu(e,zi())}))}Hi()}(),Ou())},Me=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Hi())}};var Ju={findFiberByHostInstance:ei,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},el={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=function(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Xe(i),e;if(a===r)return Xe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tl.isDisabled&&tl.supportsFiber)try{wi=tl.inject(el),_i=tl}catch(me){}}t.unstable_batchedUpdates=vu},8316:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2967)},9670:(e,t)=>{"use strict";var n,r,i,a;if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,f=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var d=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof d&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+y;try{g(!0,e)?w.postMessage(null):(m=!1,g=null)}catch(e){throw w.postMessage(null),e}}else m=!1},n=function(e){g=e,m||(m=!0,w.postMessage(null))},r=function(e,n){v=p((function(){e(t.unstable_now())}),n)},i=function(){h(v),v=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>k(o,n))void 0!==u&&0>k(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>k(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],I=[],P=1,T=null,A=3,O=!1,N=!1,R=!1;function L(e){for(var t=S(I);null!==t;){if(null===t.callback)E(I);else{if(!(t.startTime<=e))break;E(I),t.sortIndex=t.expirationTime,_(C,t)}t=S(I)}}function M(e){if(R=!1,L(e),!N)if(null!==S(C))N=!0,n(F);else{var t=S(I);null!==t&&r(M,t.startTime-e)}}function F(e,n){N=!1,R&&(R=!1,i()),O=!0;var a=A;try{for(L(n),T=S(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"==typeof o){T.callback=null,A=T.priorityLevel;var s=o(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?T.callback=s:T===S(C)&&E(C),L(n)}else E(C);T=S(C)}if(null!==T)var u=!0;else{var l=S(I);null!==l&&r(M,l.startTime-n),u=!1}return u}finally{T=null,A=a,O=!1}}var j=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||O||(N=!0,n(F))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:P++,callback:a,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>s?(e.sortIndex=o,_(I,e),null===S(C)&&e===S(I)&&(R?i():R=!0,r(M,o-s))):(e.sortIndex=u,_(C,e),N||O||(N=!0,n(F))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},2941:(e,t,n)=>{"use strict";e.exports=n(9670)},8559:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case o:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case l:case u:case c:case d:case h:case s:return e;default:return t}}case r:return t}}}(e)===u}},3920:(e,t,n)=>{"use strict";e.exports=n(8559)},7013:(e,t,n)=>{"use strict";const r=n(2037),i=n(6224),a=n(8137),{env:o}=process;let s;function u(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===s)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!t&&void 0===s)return 0;const n=s||0;if("dumb"===o.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:n;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:n}a("no-color")||a("no-colors")||a("color=false")||a("color=never")?s=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(s=1),"FORCE_COLOR"in o&&(s="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return u(l(e,e&&e.isTTY))},stdout:u(l(!0,i.isatty(1))),stderr:u(l(!0,i.isatty(2)))}},452:(e,t,n)=>{"use strict";var r=n(9497),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})}),[e,n,t]),o((function(){return l(i)&&c({inst:i}),e((function(){l(i)&&c({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},402:(e,t,n)=>{"use strict";var r=n(9497),i=n(3100),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function e(e){if(!u){if(u=!0,o=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(o=e,s=n)}var o,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,i]);var h=o(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=h}),[h]),c(h),h}},3100:(e,t,n)=>{"use strict";e.exports=n(452)},1110:(e,t,n)=>{"use strict";e.exports=n(402)},2077:function(e,t,n){var r,i;r=function(){var e,t,n,r,i,a={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function l(e,t){this._input=e,this._value=t}return(e=function(n){var r,i,o,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(u.zeroFormat&&n===u.zeroFormat)r=0;else if(u.nullFormat&&n===u.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(i in a)if((s="function"==typeof a[i].regexps.unformat?a[i].regexps.unformat():a[i].regexps.unformat)&&n.match(s)){o=a[i].unformat;break}r=(o=o||e._.stringToNumber)(n)}else r=Number(n)||null;return new l(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof l},e._=t={numberToFormat:function(t,n,r){var i,a,s,u,l,c,f,p,h=o[e.options.currentLocale],d=!1,m=!1,g="",v=1e12,y=1e9,b=1e6,x="",w=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(d=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(l=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!i||"t"===i?(g+=h.abbreviations.trillion,t/=v):a<v&&a>=y&&!i||"b"===i?(g+=h.abbreviations.billion,t/=y):a<y&&a>=b&&!i||"m"===i?(g+=h.abbreviations.million,t/=b):(a<b&&a>=1e3&&!i||"k"===i)&&(g+=h.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],u=n.split(".")[1],c=n.indexOf(","),p=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),x=e._.toFixed(t,u[0].length+u[1].length,r,u[1].length)):x=e._.toFixed(t,u.length,r),s=x.split(".")[0],x=e._.includes(x,".")?h.delimiters.decimal+x.split(".")[1]:"",m&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!i&&Number(s)>=1e3&&g!==h.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case h.abbreviations.thousand:g=h.abbreviations.million;break;case h.abbreviations.million:g=h.abbreviations.billion;break;case h.abbreviations.billion:g=h.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),w=!0),s.length<p)for(var _=p-s.length;_>0;_--)s="0"+s;return c>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),0===n.indexOf(".")&&(s=""),f=s+x+(g||""),d?f=(d&&w?"(":"")+f+(d&&w?")":""):l>=0?f=0===l?(w?"-":"+")+f:f+(w?"-":"+"):w&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,i=o[u.currentLocale],a=e,s={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&e===u.zeroFormat)n=0;else if(u.nullFormat&&e===u.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a<i&&!(a in r);)a++;if(a>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;a<i;a++)a in r&&(n=t(n,r[a],a,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,a,o,s,u=e.toString().split("."),l=t-(r||0);return i=2===u.length?Math.min(Math.max(u[1].length,l),t):l,o=Math.pow(10,i),s=(n(e+"e+"+i)/o).toFixed(i),r>t-i&&(a=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(a,"")),s}},e.options=u,e.formats=a,e.locales=o,e.locale=function(e){return e&&(u.currentLocale=e.toLowerCase()),u.currentLocale},e.localeData=function(e){if(!e)return o[u.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in s)u[e]=s[e]},e.zeroFormat=function(e){u.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){u.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){u.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,a,o,s,u,l,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{l=e.localeData(n)}catch(t){l=e.localeData(e.locale())}return a=l.currency.symbol,s=l.abbreviations,r=l.delimiters.decimal,i="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==a)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==s.thousand&&c[0]!==s.million&&c[0]!==s.billion&&c[0]!==s.trillion)||(u=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(o=t.split(r)).length>2||(o.length<2?!o[0].match(/^\d+.*\d$/)||o[0].match(u):1===o[0].length?!o[0].match(/^\d+$/)||o[0].match(u)||!o[1].match(/^\d+$/):!o[0].match(/^\d+.*\d$/)||o[0].match(u)||!o[1].match(/^\d+$/))))},e.fn=l.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,o,s=this._value,l=t||u.defaultFormat;if(n=n||Math.round,0===s&&null!==u.zeroFormat)i=u.zeroFormat;else if(null===s&&null!==u.nullFormat)i=u.nullFormat;else{for(r in a)if(l.match(a[r].regexps.format)){o=a[r].format;break}i=(o=o||e._.numberToFormat)(s,l,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,i){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,i){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"BPS"),i=i.join("")):i=i+a+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,a){var o,s,u,l=e._.includes(i,"ib")?r:n,c=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),o=0;o<=l.suffixes.length;o++)if(s=Math.pow(l.base,o),u=Math.pow(l.base,o+1),null===t||0===t||t>=s&&t<u){c+=l.suffixes[o],s>0&&(t/=s);break}return e._.numberToFormat(t,i,a)+c},unformat:function(t){var i,a,o=e._.stringToNumber(t);if(o){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){a=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){a=Math.pow(r.base,i);break}}o*=a||1}return o}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,a,o=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),a=0;a<s.before.length;a++)switch(s.before[a]){case"$":i=e._.insert(i,o.currency.symbol,a);break;case" ":i=e._.insert(i," ",a+o.currency.symbol.length-1)}for(a=s.after.length-1;a>=0;a--)switch(s.after[a]){case"$":i=a===s.after.length-1?i+o.currency.symbol:e._.insert(i,o.currency.symbol,-(s.after.length-(1+a)));break;case" ":i=a===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+a)+o.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],(function(t,n,r,i){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=i.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"%"),i=i.join("")):i=i+a+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i=r.call(t,n,t,e))||(e.exports=i)},6625:(e,t)=>{var n;t=e.exports=Z,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,a=r-6,o=t.re=[],s=t.safeRe=[],u=t.src=[],l=0,c="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",r],[c,a]];function p(e){for(var t=0;t<f.length;t++){var n=f[t][0],r=f[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}var h=l++;u[h]="0|[1-9]\\d*";var d=l++;u[d]="\\d+";var m=l++;u[m]="\\d*[a-zA-Z-]"+c+"*";var g=l++;u[g]="("+u[h]+")\\.("+u[h]+")\\.("+u[h]+")";var v=l++;u[v]="("+u[d]+")\\.("+u[d]+")\\.("+u[d]+")";var y=l++;u[y]="(?:"+u[h]+"|"+u[m]+")";var b=l++;u[b]="(?:"+u[d]+"|"+u[m]+")";var x=l++;u[x]="(?:-("+u[y]+"(?:\\."+u[y]+")*))";var w=l++;u[w]="(?:-?("+u[b]+"(?:\\."+u[b]+")*))";var _=l++;u[_]=c+"+";var S=l++;u[S]="(?:\\+("+u[_]+"(?:\\."+u[_]+")*))";var E=l++,k="v?"+u[g]+u[x]+"?"+u[S]+"?";u[E]="^"+k+"$";var C="[v=\\s]*"+u[v]+u[w]+"?"+u[S]+"?",I=l++;u[I]="^"+C+"$";var P=l++;u[P]="((?:<|>)?=?)";var T=l++;u[T]=u[d]+"|x|X|\\*";var A=l++;u[A]=u[h]+"|x|X|\\*";var O=l++;u[O]="[v=\\s]*("+u[A]+")(?:\\.("+u[A]+")(?:\\.("+u[A]+")(?:"+u[x]+")?"+u[S]+"?)?)?";var N=l++;u[N]="[v=\\s]*("+u[T]+")(?:\\.("+u[T]+")(?:\\.("+u[T]+")(?:"+u[w]+")?"+u[S]+"?)?)?";var R=l++;u[R]="^"+u[P]+"\\s*"+u[O]+"$";var L=l++;u[L]="^"+u[P]+"\\s*"+u[N]+"$";var M=l++;u[M]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var F=l++;u[F]="(?:~>?)";var j=l++;u[j]="(\\s*)"+u[F]+"\\s+",o[j]=new RegExp(u[j],"g"),s[j]=new RegExp(p(u[j]),"g");var D=l++;u[D]="^"+u[F]+u[O]+"$";var V=l++;u[V]="^"+u[F]+u[N]+"$";var B=l++;u[B]="(?:\\^)";var z=l++;u[z]="(\\s*)"+u[B]+"\\s+",o[z]=new RegExp(u[z],"g"),s[z]=new RegExp(p(u[z]),"g");var U=l++;u[U]="^"+u[B]+u[O]+"$";var $=l++;u[$]="^"+u[B]+u[N]+"$";var W=l++;u[W]="^"+u[P]+"\\s*("+C+")$|^$";var q=l++;u[q]="^"+u[P]+"\\s*("+k+")$|^$";var H=l++;u[H]="(\\s*)"+u[P]+"\\s*("+C+"|"+u[O]+")",o[H]=new RegExp(u[H],"g"),s[H]=new RegExp(p(u[H]),"g");var G=l++;u[G]="^\\s*("+u[O]+")\\s+-\\s+("+u[O]+")\\s*$";var K=l++;u[K]="^\\s*("+u[N]+")\\s+-\\s+("+u[N]+")\\s*$";var Q=l++;u[Q]="(<|>)?=?\\s*\\*";for(var Y=0;Y<35;Y++)n(Y,u[Y]),o[Y]||(o[Y]=new RegExp(u[Y]),s[Y]=new RegExp(p(u[Y])));function X(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?s[I]:s[E]).test(e))return null;try{return new Z(e,t)}catch(e){return null}}function Z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof Z))return new Z(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?s[I]:s[E]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=X,t.valid=function(e,t){var n=X(e,t);return n?n.version:null},t.clean=function(e,t){var n=X(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=Z,Z.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Z.prototype.toString=function(){return this.version},Z.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof Z||(e=new Z(e,this.options)),this.compareMain(e)||this.comparePre(e)},Z.prototype.compareMain=function(e){return e instanceof Z||(e=new Z(e,this.options)),ee(this.major,e.major)||ee(this.minor,e.minor)||ee(this.patch,e.patch)},Z.prototype.comparePre=function(e){if(e instanceof Z||(e=new Z(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return ee(r,i)}while(++t)},Z.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new Z(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(ie(e,t))return null;var n=X(e),r=X(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var a="prerelease"}for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==r[o])return i+o;return a},t.compareIdentifiers=ee;var J=/^[0-9]+$/;function ee(e,t){var n=J.test(e),r=J.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function te(e,t,n){return new Z(e,n).compare(new Z(t,n))}function ne(e,t,n){return te(e,t,n)>0}function re(e,t,n){return te(e,t,n)<0}function ie(e,t,n){return 0===te(e,t,n)}function ae(e,t,n){return 0!==te(e,t,n)}function oe(e,t,n){return te(e,t,n)>=0}function se(e,t,n){return te(e,t,n)<=0}function ue(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return ie(e,n,r);case"!=":return ae(e,n,r);case">":return ne(e,n,r);case">=":return oe(e,n,r);case"<":return re(e,n,r);case"<=":return se(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function le(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof le){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof le))return new le(e,t);e=e.trim().split(/\s+/).join(" "),n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ce?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return ee(t,e)},t.major=function(e,t){return new Z(e,t).major},t.minor=function(e,t){return new Z(e,t).minor},t.patch=function(e,t){return new Z(e,t).patch},t.compare=te,t.compareLoose=function(e,t){return te(e,t,!0)},t.rcompare=function(e,t,n){return te(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=ne,t.lt=re,t.eq=ie,t.neq=ae,t.gte=oe,t.lte=se,t.cmp=ue,t.Comparator=le;var ce={};function fe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof fe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new fe(e.raw,t);if(e instanceof le)return new fe(e.value,t);if(!(this instanceof fe))return new fe(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function pe(e){return!e||"x"===e.toLowerCase()||"*"===e}function he(e,t,n,r,i,a,o,s,u,l,c,f,p){return((t=pe(n)?"":pe(r)?">="+n+".0.0":pe(i)?">="+n+"."+r+".0":">="+t)+" "+(s=pe(u)?"":pe(l)?"<"+(+u+1)+".0.0":pe(c)?"<"+u+"."+(+l+1)+".0":f?"<="+u+"."+l+"."+c+"-"+f:"<="+s)).trim()}function de(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==ce&&e[i].semver.prerelease.length>0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function me(e,t,n){try{t=new fe(t,n)}catch(e){return!1}return t.test(e)}function ge(e,t,n,r){var i,a,o,s,u;switch(e=new Z(e,r),t=new fe(t,r),n){case">":i=ne,a=se,o=re,s=">",u=">=";break;case"<":i=re,a=oe,o=ne,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(me(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],f=null,p=null;if(c.forEach((function(e){e.semver===ce&&(e=new le(">=0.0.0")),f=f||e,p=p||e,i(e.semver,f.semver,r)?f=e:o(e.semver,p.semver,r)&&(p=e)})),f.operator===s||f.operator===u)return!1;if((!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===u&&o(e,p.semver))return!1}return!0}le.prototype.parse=function(e){var t=this.options.loose?s[W]:s[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new Z(n[2],this.options.loose):this.semver=ce},le.prototype.toString=function(){return this.value},le.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ce||("string"==typeof e&&(e=new Z(e,this.options)),ue(e,this.operator,this.semver,this.options))},le.prototype.intersects=function(e,t){if(!(e instanceof le))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new fe(e.value,t),me(this.value,n,t);if(""===e.operator)return n=new fe(this.value,t),me(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ue(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ue(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||a&&o||s||u},t.Range=fe,fe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},fe.prototype.toString=function(){return this.range},fe.prototype.parseRange=function(e){var t=this.options.loose,r=t?s[K]:s[G];e=e.replace(r,he),n("hyphen replace",e),e=e.replace(s[H],"$1$2$3"),n("comparator trim",e,s[H]),e=(e=e.replace(s[j],"$1~")).replace(s[z],"$1^");var i=t?s[W]:s[q],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?s[$]:s[U];return e.replace(r,(function(t,r,i,a,o){var s;return n("caret",e,t,r,i,a,o),pe(r)?s="":pe(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":pe(a)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":o?(n("replaceCaret pr",o),s="0"===r?"0"===i?">="+r+"."+i+"."+a+"-"+o+" <"+r+"."+i+"."+(+a+1):">="+r+"."+i+"."+a+"-"+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+a+"-"+o+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+a+" <"+r+"."+i+"."+(+a+1):">="+r+"."+i+"."+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+a+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?s[V]:s[D];return e.replace(r,(function(t,r,i,a,o){var s;return n("tilde",e,t,r,i,a,o),pe(r)?s="":pe(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":pe(a)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":o?(n("replaceTilde pr",o),s=">="+r+"."+i+"."+a+"-"+o+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+a+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?s[L]:s[R];return e.replace(r,(function(t,r,i,a,o,s){n("xRange",e,t,r,i,a,o,s);var u=pe(i),l=u||pe(a),c=l||pe(o);return"="===r&&c&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&c?(l&&(a=0),o=0,">"===r?(r=">=",l?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===r&&(r="<",l?i=+i+1:a=+a+1),t=r+i+"."+a+"."+o):l?t=">="+i+".0.0 <"+(+i+1)+".0.0":c&&(t=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(s[Q],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new le(e,this.options)}),this)},fe.prototype.intersects=function(e,t){if(!(e instanceof fe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new fe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},fe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new Z(e,this.options));for(var t=0;t<this.set.length;t++)if(de(this.set[t],e,this.options))return!0;return!1},t.satisfies=me,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var a=new fe(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&-1!==i.compare(e)||(i=new Z(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var a=new fe(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&1!==i.compare(e)||(i=new Z(r=e,n)))})),r},t.minVersion=function(e,t){e=new fe(e,t);var n=new Z("0.0.0");if(e.test(n))return n;if(n=new Z("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new Z(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!ne(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new fe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return ge(e,t,"<",n)},t.gtr=function(e,t,n){return ge(e,t,">",n)},t.outside=ge,t.prerelease=function(e,t){var n=X(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new fe(e,n),t=new fe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof Z)return e;if("string"!=typeof e)return null;var t=e.match(s[M]);return null==t?null:X(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},345:e=>{"use strict";e.exports=require("bson")},9497:e=>{"use strict";e.exports=require("react")},2037:e=>{"use strict";e.exports=require("os")},6224:e=>{"use strict";e.exports=require("tty")},3849:e=>{"use strict";e.exports=require("util")},7028:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():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},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,loaded:!1,exports:{}},o=!0;try{e[r].call(a.exports,a,a.exports,n),o=!1}finally{o&&delete t[r]}return a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";n.r(r),n.d(r,{activate:()=>Yn,configureStore:()=>Un,deactivate:()=>Xn,default:()=>Zn,metadata:()=>Hn});var e=n(9497),t=n.n(e),i=n(3100),a=n(1110),o=n(8316);let s=function(e){e()};const u=()=>s,l=(0,e.createContext)(null);let c=null;function f(){return f=Object.assign?Object.assign.bind():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},f.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var h=n(3463),d=n.n(h),m=n(3920);const g=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function v(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s,u,l,c,f,p=!1;return function(h,d){return p?function(p,h){const d=!a(h,u),m=!i(p,s,h,u);return s=p,u=h,d&&m?(l=e(s,u),t.dependsOnOwnProps&&(c=t(r,u)),f=n(l,c,u),f):d?(e.dependsOnOwnProps&&(l=e(s,u)),t.dependsOnOwnProps&&(c=t(r,u)),f=n(l,c,u),f):m?function(){const t=e(s,u),r=!o(t,l);return l=t,r&&(f=n(l,c,u)),f}():f}(h,d):(s=h,u=d,l=e(s,u),c=t(r,u),f=n(l,c,u),p=!0,f)}}function y(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function b(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function x(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=b(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=b(i),i=r(t,n)),i},r}}function w(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function _(e,t,n){return f({},n,e,t)}const S={notify(){},get:()=>[]};function E(e,t){let n,r=S;function i(){o.onStateChange&&o.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=u();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}const o={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=S)},getListeners:()=>r};return o}const k="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function I(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!C(e[n[r]],t[n[r]]))return!1;return!0}const P=["reactReduxForwardedRef"];let T=()=>{throw new Error("uSES not initialized!")};const A=[null,null];function O(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function N(e,t){return e===t}const R=function(n,r,i,{pure:a,areStatesEqual:o=N,areOwnPropsEqual:s=I,areStatePropsEqual:u=I,areMergedPropsEqual:c=I,forwardRef:h=!1,context:b=l}={}){const S=b,C=function(e){return e?"function"==typeof e?x(e):w(e,"mapStateToProps"):y((()=>({})))}(n),R=function(e){return e&&"object"==typeof e?y((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"==typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"==typeof e?x(e):w(e,"mapDispatchToProps"):y((e=>({dispatch:e})))}(r),L=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,a=!1;return function(t,n,o){const s=e(t,n,o);return a?r(s,i)||(i=s):(a=!0,i=s),i}}}(e):w(e,"mergeProps"):()=>_}(i),M=Boolean(n);return n=>{const r=n.displayName||n.name||"Component",i=`Connect(${r})`,a={shouldHandleStateChanges:M,displayName:i,wrappedComponentName:r,WrappedComponent:n,initMapStateToProps:C,initMapDispatchToProps:R,initMergeProps:L,areStatesEqual:o,areStatePropsEqual:u,areOwnPropsEqual:s,areMergedPropsEqual:c};function l(r){const[i,o,s]=(0,e.useMemo)((()=>{const{reactReduxForwardedRef:e}=r,t=p(r,P);return[r.context,e,t]}),[r]),u=(0,e.useMemo)((()=>i&&i.Consumer&&(0,m.isContextConsumer)(t().createElement(i.Consumer,null))?i:S),[i,S]),l=(0,e.useContext)(u),c=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch),h=Boolean(l)&&Boolean(l.store),d=c?r.store:l.store,y=h?l.getServerState:d.getState,b=(0,e.useMemo)((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,a=p(t,g);return v(n(e,a),r(e,a),i(e,a),e,a)}(d.dispatch,a)),[d]),[x,w]=(0,e.useMemo)((()=>{if(!M)return A;const e=E(d,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,l]),_=(0,e.useMemo)((()=>c?l:f({},l,{subscription:x})),[c,l,x]),C=(0,e.useRef)(),I=(0,e.useRef)(s),N=(0,e.useRef)(),R=(0,e.useRef)(!1),L=((0,e.useRef)(!1),(0,e.useRef)(!1)),F=(0,e.useRef)();k((()=>(L.current=!0,()=>{L.current=!1})),[]);const j=(0,e.useMemo)((()=>()=>N.current&&s===I.current?N.current:b(d.getState(),s)),[d,s]),D=(0,e.useMemo)((()=>e=>x?function(e,t,n,r,i,a,o,s,u,l,c){if(!e)return()=>{};let f=!1,p=null;const h=()=>{if(f||!s.current)return;const e=t.getState();let n,h;try{n=r(e,i.current)}catch(e){h=e,p=e}h||(p=null),n===a.current?o.current||l():(a.current=n,u.current=n,o.current=!0,c())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(M,d,x,b,I,C,R,L,N,w,e):()=>{}),[x]);var V,B;let z;V=O,B=[I,C,R,s,N,w],k((()=>V(...B)),undefined);try{z=T(D,j,y?()=>b(y(),s):j)}catch(e){throw F.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${F.current.stack}\n\n`),e}k((()=>{F.current=void 0,N.current=void 0,C.current=z}));const U=(0,e.useMemo)((()=>t().createElement(n,f({},z,{ref:o}))),[o,n,z]);return(0,e.useMemo)((()=>M?t().createElement(u.Provider,{value:_},U):U),[u,U,_])}const y=t().memo(l);if(y.WrappedComponent=n,y.displayName=l.displayName=i,h){const e=t().forwardRef((function(e,n){return t().createElement(y,f({},e,{reactReduxForwardedRef:n}))}));return e.displayName=i,e.WrappedComponent=n,d()(e,n)}return d()(y,n)}},L=function({store:n,context:r,children:i,serverState:a}){const o=(0,e.useMemo)((()=>{const e=E(n);return{store:n,subscription:e,getServerState:a?()=>a:void 0}}),[n,a]),s=(0,e.useMemo)((()=>n.getState()),[n]);k((()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==n.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[o,s]);const u=r||l;return t().createElement(u.Provider,{value:o},i)};var M;c=a.useSyncExternalStoreWithSelector,(e=>{T=e})(i.useSyncExternalStore),M=o.unstable_batchedUpdates,s=M;var F=n(3980),j=n.n(F);const D=require("@mongodb-js/compass-components"),V=require("compass-preferences-model");n(0),n(6464),n(8339),n(8166),n(5162);var B=n(2563),z=n.n(B);const U=require("@mongodb-js/compass-logging");var $=n(6635);function W(e,t){return e.type===t}const q=e=>t().createElement(t().Fragment,null,"The index `",t().createElement("b",null,e),"` will no longer be visible to the query planner and cannot be used to support a query. If the impact is negative, you can unhide this index."),H=e=>t().createElement(t().Fragment,null,"The index `",t().createElement("b",null,e),"` will become visible to the query planner and can be used to support a query. If the impact is negative, you can hide this index."),{debug:G}=(0,U.createLoggerAndTelemetry)("COMPASS-INDEXES"),K={"Name and Definition":"name",Type:"type",Size:"size",Usage:"usageCount",Properties:"properties"};let Q=function(e){return e.IndexesAdded="indexes/regular-indexes/IndexesAdded",e.IndexesSorted="indexes/regular-indexes/IndexesSorted",e.SetIsRefreshing="indexes/regular-indexes/SetIsRefreshing",e.SetError="indexes/regular-indexes/SetError",e.InProgressIndexAdded="indexes/regular-indexes/InProgressIndexAdded",e.InProgressIndexRemoved="indexes/regular-indexes/InProgressIndexRemoved",e.InProgressIndexFailed="indexes/regular-indexes/InProgressIndexFailed",e}({});const Y={indexes:[],sortOrder:"asc",sortColumn:"Name and Definition",inProgressIndexes:[],isRefreshing:!1,error:null},X=e=>({type:Q.SetIsRefreshing,isRefreshing:e}),Z=e=>({type:Q.SetError,error:e}),J=e=>t=>{t((e=>({type:Q.IndexesAdded,indexes:e}))(e)),t(X(!1)),t((0,B.localAppRegistryEmit)("indexes-changed",e))},ee=()=>async(e,t)=>{const{isReadonlyView:n,dataService:r,namespace:i,regularIndexes:{sortColumn:a,sortOrder:o,inProgressIndexes:s}}=t();if(n)e(J([]));else{if(!r||!r.isConnected())return e(X(!1)),void G("warning: trying to load indexes but dataService is disconnected");try{e(Z(null));const t=function(e,t){const n=(0,$.cloneDeep)(e);for(const e of t){const t=n.find((t=>t.name===e.name));t?(t.extra=t.extra??{},t.extra.status=e.extra.status,e.extra.error&&(t.extra.error=e.extra.error)):n.push(e)}return n}(await r.indexes(i),(0,$.cloneDeep)(s)).sort(ne(re(a),o));e(J(t))}catch(t){e(Z(t.message)),e(J([]))}}},te=e=>({type:Q.InProgressIndexRemoved,id:e}),ne=(e,t)=>{const n="asc"===t?1:-1;return"properties"===e?(e=>function(t,n){const r="compound"===t.cardinality?"compound":t.properties?.[0]||"",i="compound"===n.cardinality?"compound":n.properties?.[0]||"";return r>i?e:r<i?-e:0})(n):function(t,r){return void 0===r[e]?n:void 0===t[e]?-n:t[e]>r[e]?n:t[e]<r[e]?-n:0}},re=e=>K[e];var ie=n(7028),ae=n.n(ie);const oe=(0,D.css)({margin:`${D.spacing[3]}px 0`}),se=(0,D.css)({display:"flex",flexDirection:"row",gap:D.spacing[2],justifyContent:"flex-start",alignItems:"center"}),ue=(0,D.css)({marginLeft:"auto"}),le=(0,D.css)({marginTop:D.spacing[2]}),ce=(0,D.css)({marginRight:D.spacing[2]}),fe=(0,D.css)({display:"inline-block",width:"fit-content"}),pe=({errorMessage:n,isReadonlyView:r,isWritable:i,localAppRegistry:a,isRefreshing:o,writeStateDescription:s,hasTooManyIndexes:u,isAtlasSearchSupported:l,onRefreshIndexes:c,onChangeIndexView:f,readOnly:p})=>{const h=(0,V.usePreference)("enableAtlasSearchIndexManagement",t()),d=(0,V.usePreference)("showInsights",t())&&!n,m=(0,e.useCallback)((()=>{a.emit("open-create-index-modal")}),[a]),g=(0,e.useCallback)((()=>{a.emit("open-create-search-index-modal")}),[a]),v=(0,e.useCallback)((e=>{f(e)}),[f]),y=!r&&!p&&!n,b=o?t().createElement("div",{className:ce},t().createElement(D.SpinLoader,{title:"Refreshing Indexes"})):t().createElement(D.Icon,{glyph:"Refresh",title:"Refresh Indexes"});return t().createElement("div",{className:oe},!r&&t().createElement("div",{"data-testid":"indexes-toolbar"},t().createElement("div",{className:se},y&&t().createElement(D.Tooltip,{enabled:!i,align:"top",justify:"middle",trigger:({children:e,...n})=>t().createElement("div",(0,D.mergeProps)({className:fe},n),t().createElement(he,{isSearchManagementActive:h,isAtlasSearchSupported:l,isWritable:i,onClickCreateIndex:m,onClickCreateAtlasSearchIndex:g}),e)},s),t().createElement(D.Button,{"data-testid":"refresh-indexes-button",disabled:o,onClick:()=>c(),variant:"default",size:"small",leftGlyph:b},"Refresh"),d&&u&&t().createElement(D.SignalPopover,{signals:D.PerformanceSignals.get("too-many-indexes")}),h&&t().createElement(D.SegmentedControl,{onChange:v,className:ue,label:"Viewing",defaultValue:"regular-indexes"},t().createElement(D.SegmentedControlOption,{value:"regular-indexes"},"Indexes"),!l&&t().createElement(D.Tooltip,{align:"top",justify:"middle",enabled:!0,delay:500,trigger:({children:e,...n})=>t().createElement(D.SegmentedControlOption,ae()({},n,{value:"search-indexes",disabled:!0}),"Search Indexes",e)},"Search indexes are unavailable in your current connection."),l&&t().createElement(D.SegmentedControlOption,{value:"search-indexes"},"Search Indexes")))),r?t().createElement(D.WarningSummary,{className:le,warnings:["Readonly views may not contain indexes."]}):!!n&&t().createElement(D.ErrorSummary,{className:le,errors:[n]}))},he=({isSearchManagementActive:n,isAtlasSearchSupported:r,isWritable:i,onClickCreateIndex:a,onClickCreateAtlasSearchIndex:o})=>{const s=(0,e.useCallback)((e=>{switch(e){case"createRegularIndex":return a();case"createSearchIndex":return o()}}),[a,o]);return r&&n?t().createElement(D.DropdownMenuButton,{"data-testid":"multiple-index-types-creation-dropdown",buttonText:"Create",buttonProps:{size:"small",variant:"primary",disabled:!i},actions:[{action:"createRegularIndex",label:"Index"},{action:"createSearchIndex",label:"Search Index"}],onAction:s}):t().createElement(D.Button,{"data-testid":"open-create-index-modal-button",disabled:!i,onClick:a,variant:"primary",size:"small"},"Create Index")};n(4925),n(4819);const de={SINGLE:"https://docs.mongodb.org/manual/core/index-single/",COMPOUND:"https://docs.mongodb.org/manual/core/index-compound/",UNIQUE:"https://docs.mongodb.org/manual/core/index-unique/",PARTIAL:"https://docs.mongodb.org/manual/core/index-partial/",SPARSE:"https://docs.mongodb.org/manual/core/index-sparse/",TTL:"https://docs.mongodb.org/manual/core/index-ttl/","2D":"https://docs.mongodb.org/manual/core/2d/","2DSPHERE":"https://docs.mongodb.org/manual/core/2dsphere/",GEOHAYSTACK:"https://docs.mongodb.org/manual/core/geohaystack/",GEOSPATIAL:"https://docs.mongodb.org/manual/applications/geospatial-indexes/#geospatial-indexes",WILDCARD:"https://docs.mongodb.com/manual/core/index-wildcard/",CLUSTERED:"https://www.mongodb.com/docs/manual/core/clustered-collections/",COLUMNSTORE:null,TEXT:"https://docs.mongodb.org/manual/core/index-text/",HASHED:"https://docs.mongodb.org/manual/core/index-hashed/",REGULAR:"https://docs.mongodb.com/manual/indexes/#single-field",COLLATION:"https://docs.mongodb.com/master/reference/bson-type-comparison-order/#collation",COLLATION_REF:"https://docs.mongodb.com/master/reference/collation",HIDDEN:"https://www.mongodb.com/docs/manual/core/index-hidden/",UNKNOWN:null};function me(e="UNKNOWN"){return de[e?.toUpperCase()]??null}const ge=(0,D.css)({gap:D.spacing[2]}),ve=(0,D.css)({lineHeight:0,color:D.palette.white,span:{backgroundImage:"none !important"}},D.focusRing),ye=({text:e,link:n})=>t().createElement(D.Badge,{variant:D.BadgeVariant.DarkGray,className:ge,"data-testid":`${e}-badge`},e,t().createElement(D.Link,{hideExternalIcon:!0,"aria-label":e,className:ve,href:n},t().createElement(D.Icon,{glyph:"InfoWithCircle"}))),be=e=>-1!==["text","wildcard","columnstore"].indexOf(e??""),xe=({extra:e})=>{const n=["weights","default_language","language_override","wildcardProjection","columnstoreProjection"],r=[];for(const i in e)n.includes(i)&&r.push(t().createElement(D.Body,{key:i},`${i}: ${JSON.stringify(e[i])}`));return t().createElement(t().Fragment,null,r)},we=({type:e,extra:n})=>{const r=me(e);return t().createElement(D.Tooltip,{enabled:be(e),trigger:({children:n,...i})=>t().createElement("span",i,n,t().createElement(ye,{text:e??"unknown",link:r??"#"}))},t().createElement(xe,{extra:n}))};var _e=n(2077),Se=n.n(_e);const Ee=({relativeSize:e,size:n})=>t().createElement(D.Tooltip,{trigger:({children:e,...r})=>t().createElement("span",r,e,t().createElement(D.Body,null,(e=>{const t=e<=1e3?"0":"0.0";return Se()(e).format(t+" b")})(n)))},t().createElement(D.Body,null,(e=>`${e.toFixed(2)}% compared to largest index`)(e))),ke=({usage:e,since:n})=>t().createElement(D.Tooltip,{trigger:({children:r,...i})=>t().createElement("span",i,r,t().createElement(D.Body,null,e||0," ",t().createElement(t().Fragment,null,n?`(since ${n.toDateString()})`:"")))},t().createElement(D.Body,null,(e=>e?`${e} index hits since index creation or last server restart`:"Either the server does not support the $indexStats command or the user is not authorized to execute it.")(e))),Ce=(0,D.css)({display:"flex",gap:D.spacing[1],minWidth:7*D.spacing[3],alignItems:"baseline"}),Ie=(e,t)=>{return"ttl"===e?`expireAfterSeconds: ${t.expireAfterSeconds}`:"partial"===e?(n=t.partialFilterExpression,`partialFilterExpression: ${JSON.stringify(n)}`):null;var n},Pe=({text:e,link:n,tooltip:r})=>t().createElement(D.Tooltip,{enabled:!!r,trigger:({children:r,...i})=>t().createElement("span",i,r,t().createElement(ye,{link:n,text:e}))},t().createElement(D.Body,null,r)),Te=({tooltip:e,darkMode:n})=>t().createElement(D.Tooltip,{enabled:!!e,darkMode:n,delay:500,trigger:({children:e,...n})=>t().createElement("span",n,e,t().createElement(D.Badge,{variant:D.BadgeVariant.Red},"Failed"))},t().createElement(D.Body,null,e)),Ae="HIDDEN",Oe=({extra:e,properties:n,cardinality:r})=>{const i=(0,D.useDarkMode)();return t().createElement("div",{className:Ce},n?.map((n=>t().createElement(Pe,{key:n,text:n,link:me(n)??"#",tooltip:Ie(n,e)}))),"compound"===r&&t().createElement(Pe,{text:r,link:me(r)??"#"}),e.hidden&&t().createElement(Pe,{text:Ae,link:me(Ae)??"#"}),"inprogress"===e.status&&t().createElement(D.Badge,{variant:D.BadgeVariant.Blue},"In Progress ..."),"failed"===e.status&&t().createElement(Te,{tooltip:e.error?String(e.error):"",darkMode:i}))};var Ne=n(6625),Re=n.n(Ne);const Le=({index:n,serverVersion:r,onDeleteIndex:i,onHideIndex:a,onUnhideIndex:o})=>{const s=(0,e.useMemo)((()=>{const e=[{action:"delete",label:`Drop Index ${n.name}`,icon:"Trash"}];return(e=>{try{return Re().gte(e,"4.4.0")}catch(e){return!0}})(r)&&e.unshift(n.extra?.hidden?{action:"unhide",label:`Unhide Index ${n.name}`,tooltip:"Unhide Index",icon:"Visibility"}:{action:"hide",label:`Hide Index ${n.name}`,tooltip:"Hide Index",icon:"VisibilityOff"}),e}),[n,r]),u=(0,e.useCallback)((e=>{"delete"===e?i(n):"hide"===e?a(n.name):"unhide"===e&&o(n.name)}),[i,a,o,n]);return t().createElement(D.ItemActionGroup,{"data-testid":"index-actions",actions:s,onAction:u})},Me=(0,D.css)({":hover":{".index-actions-cell":{button:{opacity:1}}}}),Fe=(0,D.css)({button:{opacity:0,"&:focus":{opacity:1}},minWidth:D.spacing[5]}),je=(0,D.css)({borderWidth:0,borderBottomWidth:3,"> div":{justifyContent:"space-between"}}),De=(0,D.css)({verticalAlign:"middle"}),Ve=(0,D.css)({padding:0}),Be=(0,D.css)({thead:{position:"sticky",top:0,background:D.palette.white,zIndex:5}}),ze=(0,D.css)({padding:D.spacing[3]}),Ue=(0,D.css)({flex:1,position:"relative",overflow:"hidden"});function $e({"data-testid":n,"aria-label":r,columns:i,canModifyIndex:a,data:o,onSortTable:s}){const u=(0,e.useRef)(null),[l,{height:c}]=(0,D.useDOMRect)();(0,e.useEffect)((()=>{const e=u.current?.getElementsByTagName("table")[0],t=e?.parentElement;if(e&&t){const n=c-3*D.spacing[3],r=Math.max(e.clientHeight,n/2),i=Math.max(0,Math.min(r,n));t.style.height=`${i}px`}}),[c]);const f=(0,e.useMemo)((()=>{const e=i.map((e=>t().createElement(D.TableHeader,{"data-testid":`index-header-${e}`,label:e,key:e,className:je,handleSort:t=>{s(e,t)}})));return a&&e.push(t().createElement(D.TableHeader,{label:"",className:je})),e}),[a,s,i]);return t().createElement("div",ae()({className:Ue},l),t().createElement(D.KeylineCard,{ref:u,"data-testid":n,className:ze},t().createElement(D.Table,{className:Be,columns:f,data:o,"data-testid":`${n}-list`,"aria-label":`${r} List Table`},(({datum:e,index:n})=>t().createElement(D.Row,{key:e.key,"data-testid":e["data-testid"],className:Me},e.fields.map((r=>t().createElement(D.Cell,{key:r.key??`${e.key}-${n}`,"data-testid":r["data-testid"],className:De},r.children))),a&&t().createElement(D.Cell,{"data-testid":"index-actions-field",className:De},e.actions&&t().createElement("div",{className:(0,D.cx)(Fe,"index-actions-cell")},e.actions)),e.details&&t().createElement(D.Row,null,t().createElement(D.Cell,{className:(0,D.cx)(Ve,De),colSpan:a?e.fields.length+1:e.fields.length},e.details)))))))}const We=({indexes:e,canModifyIndex:n,serverVersion:r,onDeleteIndex:i,onHideIndex:a,onUnhideIndex:o,onSortTable:s})=>{const u=e.map((e=>({key:e.name,"data-testid":`index-row-${e.name}`,fields:[{"data-testid":"index-name-field",children:e.name},{"data-testid":"index-type-field",children:t().createElement(we,{type:e.type,extra:e.extra})},{"data-testid":"index-size-field",children:t().createElement(Ee,{size:e.size,relativeSize:e.relativeSize})},{"data-testid":"index-usage-field",children:t().createElement(ke,{usage:e.usageCount,since:e.usageSince})},{"data-testid":"index-property-field",children:t().createElement(Oe,{cardinality:e.cardinality,extra:e.extra,properties:e.properties})}],actions:"_id_"!==e.name&&"inprogress"!==e.extra.status&&t().createElement(Le,{index:e,serverVersion:r,onDeleteIndex:i,onHideIndex:a,onUnhideIndex:o}),details:t().createElement(D.IndexKeysBadge,{keys:e.fields})})));return t().createElement($e,{"data-testid":"indexes","aria-label":"Indexes",canModifyIndex:n,columns:["Name and Definition","Type","Size","Usage","Properties"],data:u,onSortTable:(e,t)=>s(e,t)})};let qe=function(e){return e.NOT_AVAILABLE="NOT_AVAILABLE",e.PENDING="PENDING",e.READY="READY",e.REFRESHING="REFRESHING",e}({}),He=function(e){return e.SetStatus="indexes/regular-indexes/SetStatus",e}({});const Ge={status:"NOT_AVAILABLE"},Ke=(0,D.css)({margin:D.spacing[3],marginTop:0,display:"flex",flexDirection:"column",width:"100%"}),Qe={sortIndexes:(e,t)=>(n,r)=>{const{regularIndexes:{indexes:i}}=r(),a=[...i].sort(ne(re(e),t));n({type:Q.IndexesSorted,indexes:a,sortOrder:t,sortColumn:e})},refreshIndexes:()=>e=>{e(X(!0)),e(ee())},dropFailedIndex:e=>t=>{t(te(e)),t(ee())},onHideIndex:e=>async(t,n)=>{const{dataService:r,namespace:i}=n();if(await(0,D.showConfirmation)({title:`Hiding \`${e}\``,description:q(e)}))try{await(r?.updateCollection(i,{index:{name:e,hidden:!0}})),t(ee())}catch(e){(0,D.openToast)("hide-index-error",{title:"Failed to hide the index",variant:"warning",description:`An error occurred while hiding the index. ${e.message}`})}},onUnhideIndex:e=>async(t,n)=>{const{namespace:r,dataService:i}=n();if(await(0,D.showConfirmation)({title:`Unhiding \`${e}\``,description:H(e)}))try{await(i?.updateCollection(r,{index:{name:e,hidden:!1}})),t(ee())}catch(e){(0,D.openToast)("unhide-index-error",{title:"Failed to unhide the index",variant:"warning",description:`An error occurred while unhiding the index. ${e.message}`})}}},Ye=R((({isWritable:e,isReadonlyView:t,description:n,serverVersion:r,appRegistry:i,regularIndexes:{indexes:a,isRefreshing:o,error:s},searchIndexes:{status:u}})=>({indexes:a,isWritable:e,isReadonlyView:t,description:n,error:s,localAppRegistry:i.localAppRegistry,isRefreshing:o,serverVersion:r,isAtlasSearchSupported:u!==qe.NOT_AVAILABLE})),Qe)((0,V.withPreferences)((({indexes:n,isWritable:r,isReadonlyView:i,description:a,error:o,localAppRegistry:s,isRefreshing:u,serverVersion:l,sortIndexes:c,refreshIndexes:f,dropFailedIndex:p,onHideIndex:h,onUnhideIndex:d,readOnly:m,isAtlasSearchSupported:g})=>{const[v,y]=(0,e.useState)("regular-indexes");return t().createElement("div",{className:Ke},t().createElement(pe,{isWritable:r,isReadonlyView:i,readOnly:m,errorMessage:o,localAppRegistry:s,isRefreshing:u,writeStateDescription:a,hasTooManyIndexes:n.length>10,isAtlasSearchSupported:g,onRefreshIndexes:f,onChangeIndexView:y}),!i&&!o&&"regular-indexes"===v&&t().createElement(We,{indexes:n,serverVersion:l,canModifyIndex:r&&!m,onSortTable:c,onDeleteIndex:e=>"failed"===e.extra.status?p(String(e.extra.id)):s.emit("toggle-drop-index-modal",!0,e.name),onHideIndex:h,onUnhideIndex:d}),!i&&!o&&"search-indexes"===v&&t().createElement("p",{style:{textAlign:"center"}},"In Progress feature"))}),["readOnly"],t()));class Xe extends e.Component{static displayName="IndexesPlugin";static propTypes={store:j().object.isRequired};render(){return t().createElement(L,{store:this.props.store},t().createElement(Ye,null))}}const Ze=Xe;n(2856),n(7610);const Je="indexes/reset-form",et=()=>({type:Je});let tt=function(e){return e.HandleError="indexes/create-index/HandleError",e.ClearError="indexes/create-index/ClearError",e}({});const nt=e=>({type:tt.HandleError,error:e}),rt=()=>({type:tt.ClearError}),it="indexes/create-index/fields/ADD_FIELD",at="indexes/create-index/fields/UPDATE_FIELD_TYPE",ot="indexes/create-index/fields/REMOVE_FIELD",st="indexes/create-index/fields/CHANGE_FIELDS",ut=[{name:"",type:""}],lt="indexes/create-index/schema-fields/CHANGE_SCHEMA_FIELDS",ct=[],ft=e=>({type:lt,schemaFields:e});n(4407),n(4903),n(4715),n(9570);var pt=n(345);function ht(e){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(e)}function dt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ht(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ht(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yt="function"==typeof Symbol&&Symbol.observable||"@@observable",bt=function(){return Math.random().toString(36).substring(7).split("").join(".")},xt={INIT:"@@redux/INIT"+bt(),REPLACE:"@@redux/REPLACE"+bt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bt()}};function wt(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(vt(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(vt(1));return n(wt)(e,t)}if("function"!=typeof e)throw new Error(vt(2));var i=e,a=t,o=[],s=o,u=!1;function l(){s===o&&(s=o.slice())}function c(){if(u)throw new Error(vt(3));return a}function f(e){if("function"!=typeof e)throw new Error(vt(4));if(u)throw new Error(vt(5));var t=!0;return l(),s.push(e),function(){if(t){if(u)throw new Error(vt(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(vt(7));if(void 0===e.type)throw new Error(vt(8));if(u)throw new Error(vt(9));try{u=!0,a=i(a,e)}finally{u=!1}for(var t=o=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:xt.INIT}),(r={dispatch:p,subscribe:f,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(vt(10));i=e,p({type:xt.REPLACE})}})[yt]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(vt(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[yt]=function(){return this},e},r}function _t(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var a,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:xt.INIT}))throw new Error(vt(12));if(void 0===n(void 0,{type:xt.PROBE_UNKNOWN_ACTION()}))throw new Error(vt(13))}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var u=o[s],l=n[u],c=e[u],f=l(c,t);if(void 0===f)throw t&&t.type,new Error(vt(14));i[u]=f,r=r||f!==c}return(r=r||o.length!==Object.keys(e).length)?i:e}}function St(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(vt(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return r=St.apply(void 0,a)(n.dispatch),gt(gt({},n),{},{dispatch:r})}}}var kt=n(315);kt.default,kt.DEFAULT_COLLATION,kt.DEFAULT_FILTER,kt.DEFAULT_LIMIT,kt.DEFAULT_MAX_TIME_MS,kt.DEFAULT_PROJECT,kt.DEFAULT_SKIP,kt.DEFAULT_SORT,kt.QUERY_PROPERTIES;const Ct=kt.isCollationValid;kt.isFilterValid,kt.isLimitValid,kt.isMaxTimeMSValid,kt.isProjectValid,kt.isSkipValid,kt.isSortValid,kt.parseCollation,kt.parseFilter,kt.parseProject,kt.parseSort,kt.stringify,kt.toJSString,kt.validate;let It=function(e){return e.DataServiceConnected="indexes/data-service/DATA_SERVICE_CONNECTED",e}({});function Pt(e=null,t){return t.type===It.DataServiceConnected?t.dataService:e}const Tt=e=>({type:It.DataServiceConnected,dataService:e}),At="indexes/in-progress/TOGGLE_IN_PROGRESS";function Ot(e=!1,t){return t.type===At?t.inProgress:t.type!==Je&&e}const Nt=e=>({type:At,inProgress:e}),Rt="indexes/is-visible/TOGGLE_IS_VISIBLE";function Lt(e=!1,t){return t.type===Rt?t.isVisible:t.type!==Je&&e}const Mt=e=>({type:Rt,isVisible:e}),Ft="explain/namespace/NAMESPACE_CHANGED";function jt(e="",t){return t.type===Ft?t.namespace:e}const Dt=e=>({type:Ft,namespace:e}),Vt="compass-indexes/server-version/SERVER_VERSION_CHANGED";function Bt(e="4.0.0",t){return t.type===Vt&&t.version||e}const zt={unique:{type:"checkbox",label:"Create unique index",description:"A unique index ensures that the indexed fields do not store duplicate values; i.e. enforces uniqueness for the indexed fields."},name:{type:"text",label:"Index name",description:"Enter the name of the index to create, or leave blank to have MongoDB create a default name for the index.",units:void 0,optional:!0},expireAfterSeconds:{type:"number",label:"Create TTL",description:"TTL indexes are special single-field indexes that MongoDB can use to automatically remove documents from a collection after a certain amount of time or at a specific clock time.",units:"seconds",optional:!1},partialFilterExpression:{type:"code",label:"Partial Filter Expression",description:"Partial indexes only index the documents in a collection that meet a specified filter expression.",units:void 0,optional:!1},wildcardProjection:{type:"code",label:"Wildcard Projection",description:"Wildcard indexes support queries against unknown or arbitrary fields.",units:void 0,optional:!1},collation:{type:"code",label:"Use Custom Collation",description:"Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.",units:void 0,optional:!1},columnstoreProjection:{type:"code",label:t().createElement(t().Fragment,null,"Columnstore Projection ",t().createElement(D.Badge,null,"Preview")),description:"Columnstore indexes support queries against unknown or arbitrary fields.",units:void 0,optional:!1},sparse:{type:"checkbox",label:"Create sparse index",description:"Sparse indexes only contain entries for documents that have the indexed field, even if the index field contains a null value. The index skips over any document that is missing the indexed field."}};var Ut=function(e){return e.ChangeOption="compass-indexes/create-index/change-option",e.ChangeOptionEnabled="compass-indexes/create-index/change-option-enabled",e}(Ut||{});function $t(e,t){return{type:Ut.ChangeOption,name:e,value:t}}const Wt=Object.fromEntries(Object.keys(zt).map((e=>[e,{value:"checkbox"!==zt[e].type&&"",enabled:!1}]))),qt="20.0.0-alpha0";function Ht(e){if(!e)return!0;try{return Re().gte(e,qt)}catch(e){return!0}}const{track:Gt}=(0,U.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),Kt=_t({dataService:Pt,appRegistry:z(),namespace:jt,serverVersion:Bt,inProgress:Ot,isVisible:Lt,fields:function(e=ut,t){const n=[...e];if(t.type===it)return n.push({name:"",type:""}),n;if(t.type===ot)return n.splice(t.idx,1),n;if(t.type===at){if(t.idx>=0&&t.idx<n.length){const e={...n[t.idx]};e.type=t.fType,n[t.idx]=e}return n}return t.type===st?t.fields:t.type===Je?ut:e},schemaFields:function(e=ct,t){return t.type===lt?t.schemaFields:e},error:function(e=null,t){return W(t,tt.HandleError)?t.error:W(t,tt.ClearError)||t.type===Je?null:e},options:(e=Wt,t)=>W(t,Ut.ChangeOption)?{...e,[t.name]:{value:t.value,enabled:"checkbox"===zt[t.name].type||e[t.name].enabled}}:W(t,Ut.ChangeOptionEnabled)?{...e,[t.name]:{...e[t.name],enabled:t.enabled}}:t.type===Je?JSON.parse(JSON.stringify(Wt)):e}),Qt=["1 (asc)","-1 (desc)","2dsphere","text","columnstore"],Yt={name:"Select or type a field name",type:"Select a type"},Xt=(0,D.css)({display:"flex",gap:D.spacing[2]}),Zt=(0,D.css)({flexGrow:1,textTransform:"none",whiteSpace:"nowrap"}),Jt=(0,D.css)({textTransform:"none",whiteSpace:"nowrap"});function en({fields:n,serverVersion:r,schemaFields:i,addField:a,removeField:o,updateFieldName:s,updateFieldType:u}){const[l,c]=(0,e.useMemo)((()=>{const e=Ht(r);return[Qt.filter((t=>e||"columnstore"!==t)),`calc(${Math.max(...Qt.map((e=>e.length)))}ch + ${D.spacing[6]+(e?D.spacing[6]:0)}px)`]}),[r]),f=(0,e.useCallback)(((e,t)=>{null!==t&&s(e,t)}),[s]),p=i.map((e=>({value:e})));return t().createElement(D.ListEditor,{items:n,renderItem:(e,n)=>t().createElement("div",{className:Xt,"data-testid":`create-index-fields-line-${n}`},t().createElement("div",{className:Zt,"data-testid":`create-index-fields-name-${n}`},t().createElement(D.ComboboxWithCustomOption,{"aria-label":"Index fields",placeholder:Yt.name,size:"default",clearable:!1,overflow:"scroll-x",onChange:e=>f(n,e),options:p,renderOption:(e,n,r)=>t().createElement(D.ComboboxOption,{key:`field-option-${n}`,value:e.value,displayName:r?`Field: "${e.value}"`:e.value})})),t().createElement("div",{className:Jt,"data-testid":`create-index-fields-type-${n}`},t().createElement(D.Select,{id:`create-index-fields-type-select-${n}`,placeholder:Yt.type,onChange:e=>u(n,e),allowDeselect:!1,value:e.type,popoverZIndex:999999,"aria-labelledby":"Field type",style:{width:c}},l.map((e=>t().createElement(D.Option,{key:e,value:e},e,"columnstore"===e&&t().createElement(t().Fragment,null," ",t().createElement(D.Badge,null,"Preview")))))))),onAddItem:a,onRemoveItem:o,addButtonTestId:"add-index-field-button",removeButtonTestId:"remove-index-field-button"})}const tn=R(((e,{name:t})=>({label:zt[t].label,description:zt[t].description,checked:e.options[t].value})),{onChange:$t})((({name:e,label:n,description:r,disabled:i,checked:a,onChange:o})=>{const s=`create-index-modal-${e}-checkbox`;return t().createElement(D.FormFieldContainer,null,t().createElement(D.Checkbox,{id:s,"data-testid":s,checked:a,onChange:t=>{o(e,t.target.checked)},label:t().createElement(D.Label,{htmlFor:s},n),description:r,disabled:i}))})),nn=require("@mongodb-js/compass-editor"),rn=R(((e,{name:t})=>({type:zt[t].type,label:zt[t].label,description:zt[t].description,optional:zt[t].optional,units:zt[t].units,value:e.options[t].value,enabled:e.options[t].enabled})),{onChange:$t,onEnabled:function(e,t){return{type:Ut.ChangeOptionEnabled,name:e,enabled:t}}})((({name:e,type:n,label:r,description:i,disabled:a,optional:o,units:s,value:u,onChange:l,enabled:c,onEnabled:f})=>{const p=`create-index-modal-${e}`,h=`${p}-${n}`;return t().createElement(D.CollapsibleFieldSet,{id:p,toggled:!a&&c,onToggle:t=>{f(e,t)},label:r,"data-testid":p,description:i,disabled:a},"code"===n?t().createElement(nn.CodemirrorMultilineEditor,{"data-testid":h,text:u,onChangeText:t=>{l(e,t)},id:h,"aria-labelledby":p,readOnly:a}):t().createElement(D.TextInput,{id:h,value:u,"data-testid":h,type:n,onChange:t=>{l(e,t.target.value)},spellCheck:!1,disabled:a,optional:o,label:s,"aria-labelledby":s?void 0:p}))})),an=(0,D.css)({margin:`${D.spacing[4]}px 0 ${D.spacing[5]}px 0`}),on=(0,D.css)({marginBottom:D.spacing[1]}),sn=(0,D.css)({paddingLeft:D.spacing[1]+2});function un({fields:e,schemaFields:n,serverVersion:r,updateFieldName:i,updateFieldType:a,addField:o,removeField:s}){return t().createElement(t().Fragment,null,t().createElement("div",{className:an,"data-testid":"create-index-form"},t().createElement(D.Body,{weight:"medium",className:on},"Index fields"),e.length>0?t().createElement(en,{schemaFields:n,fields:e,serverVersion:r,isRemovable:!(e.length>1),updateFieldName:i,updateFieldType:a,addField:o,removeField:s}):null),t().createElement(D.Accordion,{"data-testid":"create-index-modal-toggle-options",text:"Options"},t().createElement("div",{"data-testid":"create-index-modal-options",className:sn},t().createElement(tn,{name:"unique"}),t().createElement(rn,{name:"name"}),t().createElement(rn,{name:"expireAfterSeconds"}),t().createElement(rn,{name:"partialFilterExpression"}),t().createElement(rn,{name:"wildcardProjection"}),t().createElement(rn,{name:"collation"}),Ht(r)&&t().createElement(rn,{name:"columnstoreProjection"}),t().createElement(tn,{name:"sparse"}))))}const ln=(0,D.css)({display:"flex",flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",gap:D.spacing[2]}),cn=(0,D.css)({flexGrow:1,width:"100%"}),fn=(0,D.css)({flex:"none"}),pn=function({error:e,clearError:n,inProgress:r,createIndex:i,closeCreateIndexModal:a}){return t().createElement("div",{className:ln},(()=>{if(e)return t().createElement("div",{"data-testid":"create-index-actions-error-banner-wrapper",className:cn},t().createElement(D.Banner,{variant:"danger",dismissible:!0,onClose:n},e))})(),(()=>{if(!e&&r)return t().createElement("div",{"data-testid":"create-index-actions-in-progress-banner-wrapper",className:cn},t().createElement(D.Banner,{variant:"info"},"Index creation in progress. The dialog can be closed."))})(),t().createElement(D.Button,{"data-testid":"create-index-actions-cancel-button",onClick:()=>{a()}},r?"Close":"Cancel"),!r&&t().createElement(D.Button,{"data-testid":"create-index-actions-create-index-button",onClick:()=>{i()},variant:"primary",className:fn},"Create Index"))},hn={changeSchemaFields:ft,clearError:rt,createIndex:()=>async(e,t)=>{const n=t(),r={};if(n.fields.some((e=>""===e.name||""===e.type)))return void e(nt("You must select a field name and type"));const i=n.options;n.fields.forEach((e=>{let t=e.type;"1 (asc)"===e.type&&(t=1),"-1 (desc)"===e.type&&(t=-1),r[e.name]=t}));const a={},o=Ct(i.collation.value??"")||void 0;if(i.collation.enabled&&!o)return void e(nt("You must provide a valid collation object"));if(i.collation.enabled&&(a.collation=o),i.unique.enabled&&(a.unique=i.unique.value),i.sparse.enabled&&(a.sparse=i.sparse.value),i.name.enabled&&i.name.value&&(a.name=i.name.value),i.expireAfterSeconds.enabled&&(a.expireAfterSeconds=Number(i.expireAfterSeconds.value),isNaN(a.expireAfterSeconds)))return void e(nt(`Bad TTL: "${String(i.expireAfterSeconds.value)}"`));if(i.wildcardProjection.enabled)try{a.wildcardProjection=pt.EJSON.parse(i.wildcardProjection.value??"")}catch(t){return void e(nt(`Bad WildcardProjection: ${String(t)}`))}if(i.columnstoreProjection.enabled)try{a.columnstoreProjection=pt.EJSON.parse(i.columnstoreProjection.value??"")}catch(t){return void e(nt(`Bad ColumnstoreProjection: ${String(t)}`))}if(i.partialFilterExpression.enabled)try{a.partialFilterExpression=pt.EJSON.parse(n.options.partialFilterExpression.value??"")}catch(t){return void e(nt(`Bad PartialFilterExpression: ${String(t)}`))}for(const e of Object.keys(i))[!1,""].includes(i[e].value)&&delete a[e];e(rt()),e(Nt(!0));const s=n.namespace,u=(({ns:e,name:t,spec:n})=>{const r=(new pt.ObjectId).toHexString(),i=Object.keys(n).map((e=>({field:e,value:n[e]}))),a=t||Object.keys(n).reduce(((e,t)=>`${""===e?"":`${e}_`}${t}_${n[t]}`),"");return{id:r,extra:{status:"inprogress"},key:n,fields:i,name:a,ns:e,size:0,relativeSize:0,usageCount:0}})({ns:s,name:a.name,spec:r});e((0,B.localAppRegistryEmit)("in-progress-indexes-added",u));const l={unique:a.unique,ttl:i.expireAfterSeconds.enabled,columnstore_index:(c=n.fields,c.some((e=>"columnstore"===e.type))),has_columnstore_projection:i.columnstoreProjection.enabled,has_wildcard_projection:i.wildcardProjection.enabled,custom_collation:i.collation.enabled,geo:n.fields.filter((({type:e})=>"2dsphere"===e)).length>0};var c;try{await(n.dataService?.createIndex(s,r,a)),Gt("Index Created",l),e(et()),e(Nt(!1)),e(Mt(!1)),e((0,B.localAppRegistryEmit)("in-progress-indexes-removed",u.id)),e((0,B.localAppRegistryEmit)("refresh-data"))}catch(t){e(Nt(!1)),e(nt(t.message)),e((0,B.localAppRegistryEmit)("in-progress-indexes-failed",{inProgressIndexId:u.id,error:t.message}))}},closeCreateIndexModal:()=>e=>{e(Mt(!1)),e(et())},addField:()=>({type:it}),removeField:e=>({type:ot,idx:e}),updateFieldName:(e,t)=>(n,r)=>{const i=r(),a=[...i.fields];if(e>=0&&e<i.fields.length){if(i.fields.some(((n,r)=>n.name===t&&r!==e)))return void n(nt("Index keys must be unique"));const r={...a[e]};r.name=t,a[e]=r,n((e=>({type:st,fields:e}))(a))}},updateFieldType:(e,t)=>({type:at,idx:e,fType:t})},dn=R((({fields:e,inProgress:t,schemaFields:n,error:r,isVisible:i,namespace:a,serverVersion:o})=>({fields:e,inProgress:t,schemaFields:n,error:r,isVisible:i,namespace:a,serverVersion:o})),hn)((function({isVisible:n,namespace:r,error:i,clearError:a,inProgress:o,createIndex:s,closeCreateIndexModal:u,...l}){const c=(0,e.useCallback)((e=>{e||u()}),[u]);return(0,U.useTrackOnChange)("COMPASS-INDEXES-UI",(e=>{n&&e("Screen",{name:"create_index_modal"})}),[n],void 0,t()),t().createElement(D.Modal,{open:n,setOpen:c,"data-testid":"create-index-modal"},t().createElement(D.ModalHeader,{title:"Create Index",subtitle:r}),t().createElement(D.ModalBody,null,t().createElement(un,l)),t().createElement(D.ModalFooter,null,t().createElement(pn,{error:i,clearError:a,inProgress:o,createIndex:s,closeCreateIndexModal:u})))})),mn=dn;class gn extends e.Component{static displayName="CreateIndexPlugin";static propTypes={store:j().object.isRequired};render(){return t().createElement(L,{store:this.props.store},t().createElement(mn,null))}}const vn=gn,yn="indexes/drop-index/name/NAME_CHANGED",bn=e=>({type:yn,name:e}),xn="indexes/drop-index/confirm-name/CHANGE_CONFIRM_NAME";let wn=function(e){return e.HandleError="indexes/create-index/HandleError",e.ClearError="indexes/create-index/ClearError",e}({});const _n=e=>({type:wn.HandleError,error:e}),Sn=()=>({type:wn.ClearError}),{track:En}=(0,U.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),kn=_t({dataService:Pt,appRegistry:z(),isVisible:Lt,inProgress:Ot,error:function(e=null,t){return W(t,wn.HandleError)?t.error:W(t,wn.ClearError)||t.type===Je?null:e},name:function(e="",t){return t.type===yn?t.name:e},confirmName:function(e="",t){return t.type===xn?t.name:e},namespace:jt}),Cn=(e,t)=>t.type===Je?{...e,inProgress:false,isVisible:false,error:null,name:"",confirmName:""}:kn(e,t),In=(0,D.css)({display:"flex",gap:D.spacing[1],marginTop:D.spacing[3],marginBottom:D.spacing[3]}),Pn=(0,D.css)({margin:`${D.spacing[3]}px 0`}),Tn=(0,D.css)({flexShrink:0}),An=(0,D.css)({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,textOverflow:"ellipsis",overflow:"hidden"}),On=R((({isVisible:e,inProgress:t,error:n,name:r,confirmName:i})=>({isVisible:e,inProgress:t,error:n,name:r,confirmName:i})),{toggleIsVisible:Mt,clearError:Sn,nameChanged:bn,changeConfirmName:e=>({type:xn,name:e}),dropIndex:e=>async(t,n)=>{const r=n(),i=r.namespace;t(Nt(!0));try{await(r.dataService?.dropIndex(i,e)),En("Index Dropped"),t(et()),t((0,B.localAppRegistryEmit)("refresh-data")),t(Sn()),t(Nt(!1)),t(Mt(!1))}catch(e){t(Nt(!1)),t(_n(e.message))}},resetForm:et})((function({isVisible:e,inProgress:n,error:r,name:i,confirmName:a,toggleIsVisible:o,changeConfirmName:s,resetForm:u,dropIndex:l,clearError:c}){return(0,U.useTrackOnChange)("COMPASS-INDEXES-UI",(t=>{e&&t("Screen",{name:"drop_index_modal"})}),[e],void 0,t()),t().createElement(D.ConfirmationModal,{title:"Drop Index",open:e,onConfirm:()=>{l(i)},onCancel:()=>{o(!1),u()},buttonText:"Drop",variant:"danger",submitDisabled:a!==i,"data-testid":"drop-index-modal"},t().createElement("div",{className:In},t().createElement(D.Icon,{glyph:"Warning",className:Tn}),t().createElement(D.Body,{className:An},"Type the index name"," ",t().createElement(D.Label,{htmlFor:"confirm-drop-index-name"},i)," to drop")),t().createElement("form",{onSubmit:e=>{e.preventDefault(),e.stopPropagation()}},t().createElement(D.TextInput,{id:"confirm-drop-index-name","aria-labelledby":"Confirm drop index",type:"text","data-testid":"confirm-drop-index-name",value:a,onChange:e=>s(e.target.value)}),(()=>{if(r)return t().createElement("div",{"data-testid":"drop-index-error-banner-wrapper"},t().createElement(D.Banner,{className:Pn,variant:"danger",dismissible:!0,onClose:c},r))})(),(()=>{if(!r&&n)return t().createElement("div",{"data-testid":"drop-index-in-progress-banner-wrapper"},t().createElement(D.Banner,{className:Pn,variant:"info"},"Index dropping in progress."))})()))}));class Nn extends e.Component{static displayName="DropIndexPlugin";static propTypes={store:j().object.isRequired};render(){return t().createElement(L,{store:this.props.store},t().createElement(On,null))}}const Rn=Nn,Ln="indexes/is-writable/WRITE_STATE_CHANGED",Mn=e=>({type:Ln,isWritable:e}),Fn="indexes/description/GET_DESCRIPTION",jn=e=>({type:Fn,description:e}),Dn=_t({isWritable:(e=!0,t)=>t.type===Ln?t.isWritable:e,isReadonlyView:function(e=!1,t){return"indexes/is-readonly-view/READONLY_VIEW_CHANGED"===t.type?t.isReadonlyView:e},description:(e="Topology type not yet discovered.",t)=>t.type===Fn?t.description:e,appRegistry:z(),dataService:Pt,serverVersion:Bt,namespace:jt,regularIndexes:function(e=Y,t){if(W(t,Q.IndexesAdded))return{...e,indexes:t.indexes};if(W(t,Q.IndexesSorted))return{...e,indexes:t.indexes,sortOrder:t.sortOrder,sortColumn:t.sortColumn};if(W(t,Q.SetIsRefreshing))return{...e,isRefreshing:t.isRefreshing};if(W(t,Q.SetError))return{...e,error:t.error};if(W(t,Q.InProgressIndexAdded))return{...e,inProgressIndexes:[...e.inProgressIndexes,t.index]};if(W(t,Q.InProgressIndexRemoved))return{...e,inProgressIndexes:e.inProgressIndexes.filter((e=>e.id!==t.id))};if(W(t,Q.InProgressIndexFailed)){const n=e.inProgressIndexes.findIndex((e=>e.id===t.id)),r=e.inProgressIndexes;return r[n]={...r[n],extra:{...r[n].extra,status:"failed",error:t.error}},{...e,inProgressIndexes:r}}return e},searchIndexes:function(e=Ge,t){return W(t,He.SetStatus)?{...e,status:t.status}:e}});function Vn(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var Bn=Vn();Bn.withExtraArgument=Vn;const zn=Bn,Un=e=>{if(!e.dataProvider?.dataProvider)throw new Error("Can't configure store for indexes plugin without data serivce");const t=wt(Dn,{appRegistry:{localAppRegistry:e.localAppRegistry,globalAppRegistry:e.globalAppRegistry},dataService:e.dataProvider.dataProvider,namespace:e.namespace,serverVersion:e.serverVersion,isReadonlyView:e.isReadonly,searchIndexes:{status:e.isSearchIndexesSupported?qe.PENDING:qe.NOT_AVAILABLE}},Et(zn.withExtraArgument({})));if(e.localAppRegistry){const n=e.localAppRegistry;t.dispatch((0,B.localAppRegistryActivated)(n)),n.on("refresh-data",(()=>{t.dispatch(ee())})),n.on("in-progress-indexes-added",(e=>{var n;t.dispatch((n=e,{type:Q.InProgressIndexAdded,index:n}))})),n.on("in-progress-indexes-removed",(e=>{t.dispatch(te(e))})),n.on("in-progress-indexes-failed",(e=>{t.dispatch((({inProgressIndexId:e,error:t})=>({type:Q.InProgressIndexFailed,id:e,error:t}))(e))}))}if(e.globalAppRegistry){const n=e.globalAppRegistry;t.dispatch((0,B.globalAppRegistryActivated)(n)),n.on("refresh-data",(()=>{t.dispatch(ee())}));const r=n.getStore("App.InstanceStore");if(r){const e=r.getState().instance;t.dispatch(Mn(e.isWritable)),t.dispatch(jn(e.description)),e.on("change:isWritable",(()=>{t.dispatch(Mn(e.isWritable))})),e.on("change:description",(()=>{t.dispatch(jn(e.description))}))}}return t.dispatch(ee()),t},{track:$n}=(0,U.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),Wn=(e,t,n)=>{null!==t?e.dispatch(nt(t.message)):e.dispatch(Tt(n))},qn=(e,t,n)=>{null!==t?e.dispatch(_n(t.message)):e.dispatch(Tt(n))},Hn=JSON.parse('{"name":"@mongodb-js/compass-indexes","productName":"Compass Indexes plugin","description":"Collection index management for Compass","version":"5.13.0","author":{"name":"MongoDB Inc","email":"compass@mongodb.com"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/mongodb-js/compass.git"},"license":"SSPL","homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"files":["dist"],"main":"dist/index.js","compass:main":"src/index.ts","types":"dist/src/index.d.ts","exports":{"browser":"./dist/browser.js","require":"./dist/index.js"},"compass:exports":{".":"./src/index.ts"},"scripts":{"bootstrap":"npm run postcompile","prepublishOnly":"npm run compile && compass-scripts check-exports-exist","compile":"npm run webpack -- --mode production","webpack":"webpack-compass","postcompile":"tsc --emitDeclarationOnly","analyze":"npm run webpack -- --mode production --analyze","typecheck":"tsc -p tsconfig-lint.json --noEmit","eslint":"eslint","prettier":"prettier","lint":"npm run eslint . && npm run prettier -- --check .","depcheck":"compass-scripts check-peer-deps && depcheck","check":"npm run typecheck && npm run lint && npm run depcheck","check-ci":"npm run check","test":"mocha","test-electron":"xvfb-maybe electron-mocha --no-sandbox","test-cov":"nyc --compact=false --produce-source-map=false -x \\"**/*.spec.*\\" --reporter=lcov --reporter=text --reporter=html npm run test","test-watch":"npm run test -- --watch","test-ci":"npm run test-cov","test-ci-electron":"npm run test-electron","reformat":"npm run prettier -- --write . && npm run eslint . --fix"},"peerDependencies":{"@mongodb-js/compass-components":"^1.13.0","@mongodb-js/compass-editor":"^0.12.0","@mongodb-js/compass-logging":"^1.1.9","@mongodb-js/mongodb-redux-common":"^2.0.11","bson":"^6.0.0","compass-preferences-model":"^2.13.0","react":"^17.0.2"},"devDependencies":{"@mongodb-js/eslint-config-compass":"^1.0.9","@mongodb-js/mocha-config-compass":"^1.3.1","@mongodb-js/prettier-config-compass":"^1.0.1","@mongodb-js/tsconfig-compass":"^1.0.3","@mongodb-js/webpack-config-compass":"^1.1.3","@testing-library/react":"^12.1.4","@testing-library/user-event":"^13.5.0","chai":"^4.2.0","depcheck":"^1.4.1","electron":"^24.8.2","enzyme":"^3.11.0","eslint":"^7.25.0","hadron-app-registry":"^9.0.10","lodash":"^4.17.21","mocha":"^10.2.0","mongodb":"^6.0.0","mongodb-data-service":"^22.10.0","mongodb-query-parser":"^3.1.3","numeral":"^2.0.6","nyc":"^15.1.0","prop-types":"^15.7.2","react":"^17.0.2","react-dom":"^17.0.2","react-redux":"^8.0.5","redux":"^4.2.1","redux-thunk":"^2.4.1","semver":"^5.4.1","sinon":"^9.2.3","xvfb-maybe":"^0.2.1"},"dependencies":{"@mongodb-js/compass-components":"^1.13.0","@mongodb-js/compass-editor":"^0.12.0","@mongodb-js/compass-logging":"^1.1.9","@mongodb-js/mongodb-redux-common":"^2.0.11","bson":"^6.0.0","compass-preferences-model":"^2.13.0"},"gitHead":"75b346b5f8c4bc9252af65ae3c65b97c6cc47d00"}'),Gn={name:"Indexes",component:Ze,order:6,configureStore:Un,configureActions:()=>{},storeName:"Indexes.Store",actionName:"Indexes.Actions"},Kn={name:"Create Index",component:vn,configureStore:(e={})=>{const t=wt(Kt,Et(zn));if(e.localAppRegistry){const n=e.localAppRegistry;t.dispatch((0,B.localAppRegistryActivated)(n)),n.on("fields-changed",(e=>{t.dispatch(ft(Object.keys(e.fields).filter((e=>"_id"!==e))))})),n.on("open-create-index-modal",(()=>{$n("Index Create Opened"),t.dispatch(Mt(!0))})),n.on("data-service-connected",((e,n)=>{Wn(t,e,n)}))}if(e.globalAppRegistry){const n=e.globalAppRegistry;t.dispatch((0,B.globalAppRegistryActivated)(n))}var n;return e.namespace&&t.dispatch(Dt(e.namespace)),e.serverVersion&&t.dispatch((n=e.serverVersion,{type:Vt,version:n})),e.dataProvider&&Wn(t,e.dataProvider.error,e.dataProvider.dataProvider),t},configureActions:()=>{},storeName:"Indexes.CreateIndexStore",actionName:"Indexes.CreateIndexActions"},Qn={name:"Drop Index",component:Rn,configureStore:(e={})=>{const t=wt(Cn,Et(zn));if(e.localAppRegistry){const n=e.localAppRegistry;t.dispatch((0,B.localAppRegistryActivated)(n)),n.on("toggle-drop-index-modal",((e,n)=>{t.dispatch(bn(n)),t.dispatch(Mt(e))})),n.on("data-service-connected",((e,n)=>{qn(t,e,n)}))}if(e.globalAppRegistry){const n=e.globalAppRegistry;t.dispatch((0,B.globalAppRegistryActivated)(n))}return e.namespace&&t.dispatch(Dt(e.namespace)),e.dataProvider&&qn(t,e.dataProvider.error,e.dataProvider.dataProvider),t},configureActions:()=>{},storeName:"Indexes.DropIndexStore",actionName:"Indexes.DropIndexActions"};function Yn(e){e.registerRole("Collection.Tab",Gn),e.registerRole("Collection.ScopedModal",Kn),e.registerRole("Collection.ScopedModal",Qn)}function Xn(e){e.deregisterRole("Collection.Tab",Gn),e.deregisterRole("Collection.ScopedModal",Kn),e.deregisterRole("Collection.ScopedModal",Qn)}const Zn=Ze})(),r})()));