Awful Stuff
🧩 Syntax:
/*! For license information please see index.js.LICENSE.txt */
(()=>{var e={446:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var r=n(717),s=n(658),i=n(79),o=function(){function e(){this.crc32=new i.Crc32}return e.prototype.update=function(e){(0,s.isEmptyData)(e)||this.crc32.update((0,s.convertToBuffer)(e))},e.prototype.digest=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,(0,s.numToUint8)(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new i.Crc32},e}();t.AwsCrc32=o},79:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var r=n(717),s=n(658);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,n;try{for(var s=r.__values(e),i=s.next();!i.done;i=s.next()){var a=i.value;this.checksum=this.checksum>>>8^o[255&(this.checksum^a)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var o=(0,s.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=n(446);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})},717:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>x,__asyncGenerator:()=>w,__asyncValues:()=>v,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>I,__createBinding:()=>p,__decorate:()=>a,__exportStar:()=>h,__extends:()=>s,__generator:()=>d,__importDefault:()=>k,__importStar:()=>S,__makeTemplateObject:()=>E,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArrays:()=>y,__values:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function s(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}function a(e,t,n,r){var s,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(s,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,s,i,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[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(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(s=2&i[0]?r.return:i[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;switch(r=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((s=(s=o.trys).length>0&&s[s.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(6===i[0]&&o.label<s[1]){o.label=s[1],s=i;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(i);break}s[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,s,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){s={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return o}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,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),s=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,a=i.length;o<a;o++,s++)r[s]=i[o];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,s=n.apply(e,t||[]),i=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){s[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=s[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function c(e){a("next",e)}function l(e){a("throw",e)}function u(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,s){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:s?s(t):t}:s}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,s){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,s,(t=e[n](t)).done,t.value)}))}}}function E(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 n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=n(84),s="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:r.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?s(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=n(106);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var s=n(304);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return s.isEmptyData}});var i=n(174);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return i.numToUint8}});var o=n(558);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})},304:(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}},174:(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])}},558:(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),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return Uint32Array.from(e)}},84:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:()=>r,toUtf8:()=>s});const r=e=>"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const t=[];for(let n=0,r=e.length;n<r;n++){const r=e.charCodeAt(n);if(r<128)t.push(r);else if(r<2048)t.push(r>>6|192,63&r|128);else if(n+1<e.length&&55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))){const s=65536+((1023&r)<<10)+(1023&e.charCodeAt(++n));t.push(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}else t.push(r>>12|224,r>>6&63|128,63&r|128)}return Uint8Array.from(t)})(e),s=e=>"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let t="";for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r<128)t+=String.fromCharCode(r);else if(192<=r&&r<224){const s=e[++n];t+=String.fromCharCode((31&r)<<6|63&s)}else if(240<=r&&r<365){const s="%"+[r,e[++n],e[++n],e[++n]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(s)}else t+=String.fromCharCode((15&r)<<12|(63&e[++n])<<6|63&e[++n])}return t})(e)},996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function s(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||s,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r;var l=Array.isArray(n);return l===Array.isArray(e)?l?c.arrayMerge(e,n,c):function(e,t,n){var s={};return n.isMergeableObject(e)&&i(e).forEach((function(t){s[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&n.isMergeableObject(t[i])?s[i]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(i,n)(e[i],t[i],n):s[i]=r(t[i],n))})),s}(e,n,c):r(n,c)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})};var c=a;e.exports=c},932:(e,t,n)=>{"use strict";const r=n(501),s=n(844),i=n(192);e.exports={XMLParser:s,XMLValidator:r,XMLBuilder:i}},849:(e,t)=>{"use strict";const n=":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",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",s=new RegExp("^"+r+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t){const r=Object.keys(t),s=r.length;for(let i=0;i<s;i++)e[r[i]]="strict"===n?[t[r[i]]]:t[r[i]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==s.exec(e))},t.getAllMatches=function(e,t){const n=[];let r=t.exec(e);for(;r;){const s=[];s.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let e=0;e<i;e++)s.push(r[e]);n.push(s),r=t.exec(e)}return n},t.nameRegexp=r},501:(e,t,n)=>{"use strict";const r=n(849),s={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function o(e,t){const n=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const r=e.substr(n,t-n);if(t>5&&"xml"===r)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 n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))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({},s,t);const n=[];let c=!1,l=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let s=0;s<e.length;s++)if("<"===e[s]&&"?"===e[s+1]){if(s+=2,s=o(e,s),s.err)return s}else{if("<"!==e[s]){if(i(e[s]))continue;return f("InvalidChar","char '"+e[s]+"' is not expected.",g(e,s))}{let m=s;if(s++,"!"===e[s]){s=a(e,s);continue}{let y=!1;"/"===e[s]&&(y=!0,s++);let b="";for(;s<e.length&&">"!==e[s]&&" "!==e[s]&&"\t"!==e[s]&&"\n"!==e[s]&&"\r"!==e[s];s++)b+=e[s];if(b=b.trim(),"/"===b[b.length-1]&&(b=b.substring(0,b.length-1),s--),d=b,!r.isName(d)){let t;return t=0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",f("InvalidTag",t,g(e,s))}const w=u(e,s);if(!1===w)return f("InvalidAttr","Attributes for '"+b+"' have open quote.",g(e,s));let x=w.value;if(s=w.index,"/"===x[x.length-1]){const n=s-x.length;x=x.substring(0,x.length-1);const r=p(x,t);if(!0!==r)return f(r.err.code,r.err.msg,g(e,n+r.err.line));c=!0}else if(y){if(!w.tagClosed)return f("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",g(e,s));if(x.trim().length>0)return f("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",g(e,m));{const t=n.pop();if(b!==t.tagName){let n=g(e,t.tagStartPos);return f("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+b+"'.",g(e,m))}0==n.length&&(l=!0)}}else{const r=p(x,t);if(!0!==r)return f(r.err.code,r.err.msg,g(e,s-x.length+r.err.line));if(!0===l)return f("InvalidXml","Multiple possible root nodes found.",g(e,s));-1!==t.unpairedTags.indexOf(b)||n.push({tagName:b,tagStartPos:m}),c=!0}for(s++;s<e.length;s++)if("<"===e[s]){if("!"===e[s+1]){s++,s=a(e,s);continue}if("?"!==e[s+1])break;if(s=o(e,++s),s.err)return s}else if("&"===e[s]){const t=h(e,s);if(-1==t)return f("InvalidChar","char '&' is not expected.",g(e,s));s=t}else if(!0===l&&!i(e[s]))return f("InvalidXml","Extra text at the end",g(e,s));"<"===e[s]&&s--}}}var d;return c?1==n.length?f("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",g(e,n[0].tagStartPos)):!(n.length>0)||f("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):f("InvalidXml","Start tag expected.",1)};const c='"',l="'";function u(e,t){let n="",r="",s=!1;for(;t<e.length;t++){if(e[t]===c||e[t]===l)""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){s=!0;break}n+=e[t]}return""===r&&{value:n,index:t,tagClosed:s}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(e,t){const n=r.getAllMatches(e,d),s={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return f("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",y(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return f("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",y(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",y(n[e]));const r=n[e][2];if(!m(r))return f("InvalidAttr","Attribute '"+r+"' is an invalid name.",y(n[e]));if(s.hasOwnProperty(r))return f("InvalidAttr","Attribute '"+r+"' is repeated.",y(n[e]));s[r]=1}return!0}function h(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function f(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return r.isName(e)}function g(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function y(e){return e.startIndex+e[1].length}},192:(e,t,n)=>{"use strict";const r=n(592),s={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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},s,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=c),this.processTextOrObjNode=o,this.options.format?(this.indentate=a,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function o(e,t,n){const r=this.j2x(e,n+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,n):this.buildObjectNode(r.val,t,r.attrStr,n)}function a(e){return this.options.indentBy.repeat(e)}function c(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?r(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 n="",r="";for(let s in e)if(void 0===e[s]);else if(null===e[s])"?"===s[0]?r+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)r+=this.buildTextValNode(e[s],s,"",t);else if("object"!=typeof e[s]){const i=this.isAttribute(s);if(i)n+=this.buildAttrPairStr(i,""+e[s]);else if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,""+e[s]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[s],s,"",t)}else if(Array.isArray(e[s])){const n=e[s].length;let i="";for(let o=0;o<n;o++){const n=e[s][o];void 0===n||(null===n?"?"===s[0]?r+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+s+"/"+this.tagEndChar:"object"==typeof n?this.options.oneListGroup?i+=this.j2x(n,t+1).val:i+=this.processTextOrObjNode(n,s,t):i+=this.buildTextValNode(n,s,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,s,"",t)),r+=i}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const t=Object.keys(e[s]),r=t.length;for(let i=0;i<r;i++)n+=this.buildAttrPairStr(t[i],""+e[s][t[i]])}else r+=this.processTextOrObjNode(e[s],s,t);return{attrStr:n,val:r}},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,n,r){if(""===e)return"?"===t[0]?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let s="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",s=""),n&&-1===e.indexOf("<")?this.indentate(r)+"<"+t+n+i+">"+e+s:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(r)+"<"+t+n+i+this.tagEndChar+e+this.indentate(r)+s}},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,n,r){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(r)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(r)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(t,e);return s=this.replaceEntitiesValue(s),""===s?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+s+"</"+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 n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e},e.exports=i},592:e=>{function t(e,o,a,c){let l="",u=!1;for(let d=0;d<e.length;d++){const p=e[d],h=n(p);let f="";if(f=0===a.length?h:`${a}.${h}`,h===o.textNodeName){let e=p[h];s(f,o)||(e=o.tagValueProcessor(h,e),e=i(e,o)),u&&(l+=c),l+=e,u=!1;continue}if(h===o.cdataPropName){u&&(l+=c),l+=`<![CDATA[${p[h][0][o.textNodeName]}]]>`,u=!1;continue}if(h===o.commentPropName){l+=c+`\x3c!--${p[h][0][o.textNodeName]}--\x3e`,u=!0;continue}if("?"===h[0]){const e=r(p[":@"],o),t="?xml"===h?"":c;let n=p[h][0][o.textNodeName];n=0!==n.length?" "+n:"",l+=t+`<${h}${n}${e}?>`,u=!0;continue}let m=c;""!==m&&(m+=o.indentBy);const g=c+`<${h}${r(p[":@"],o)}`,y=t(p[h],o,f,m);-1!==o.unpairedTags.indexOf(h)?o.suppressUnpairedNode?l+=g+">":l+=g+"/>":y&&0!==y.length||!o.suppressEmptyNode?y&&y.endsWith(">")?l+=g+`>${y}${c}</${h}>`:(l+=g+">",y&&""!==c&&(y.includes("/>")||y.includes("</"))?l+=c+o.indentBy+y+c:l+=y,l+=`</${h}>`):l+=g+"/>",u=!0}return l}function n(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function r(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){let s=t.attributeValueProcessor(r,e[r]);s=i(s,t),!0===s&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${s}"`}return n}function s(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let r in t.stopNodes)if(t.stopNodes[r]===e||t.stopNodes[r]==="*."+n)return!0;return!1}function i(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const r=t.entities[n];e=e.replace(r.regex,r.val)}return e}e.exports=function(e,n){let r="";return n.format&&n.indentBy.length>0&&(r="\n"),t(e,n,"",r)}},780:(e,t,n)=>{const r=n(849);function s(e,t){let n="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)n+=e[t];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const r=e[t++];let s="";for(;t<e.length&&e[t]!==r;t++)s+=e[t];return[n,s,t]}function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function o(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 c(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 l(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 u(e){if(r.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const n={};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 r=1,d=!1,p=!1,h="";for(;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,r--):r--,0===r)break}else"["===e[t]?d=!0:h+=e[t];else{if(d&&o(e,t))t+=7,[entityName,val,t]=s(e,t+1),-1===val.indexOf("&")&&(n[u(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(d&&a(e,t))t+=8;else if(d&&c(e,t))t+=8;else if(d&&l(e,t))t+=9;else{if(!i)throw new Error("Invalid DOCTYPE");p=!0}r++,h=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}},745:(e,t)=>{const n={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,n){return e}};t.buildOptions=function(e){return Object.assign({},n,e)},t.defaultOptions=n},78:(e,t,n)=>{"use strict";const r=n(849),s=n(311),i=n(780),o=n(153);function a(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function c(e,t,n,r,s,i,o){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){o||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,n,s,i);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?x(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function l(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);const u=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(e,t,n){if(!this.options.ignoreAttributes&&"string"==typeof e){const n=r.getAllMatches(e,u),s=n.length,i={};for(let e=0;e<s;e++){const r=this.resolveNameSpace(n[e][1]);let s=n[e][4],o=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),"__proto__"===o&&(o="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);const e=this.options.attributeValueProcessor(r,s,t);i[o]=null==e?s:typeof e!=typeof s||e!==s?e:x(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[o]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=i,e}return i}}const p=function(e){e=e.replace(/\r\n?/g,"\n");const t=new s("!xml");let n=t,r="",o="";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 s=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&(r=this.saveTextToParentTag(r,n,o));const i=o.substring(o.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error(`Unpaired tag can not be used as closing tag: </${s}>`);let c=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(c=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=o.lastIndexOf("."),o=o.substring(0,c),n=this.tagsNodeStack.pop(),r="",a=t}else if("?"===e[a+1]){let t=b(e,a,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,o),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new s(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,o,t.tagName)),this.addChild(n,e,o)}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 s=e.substring(a+4,t-2);r=this.saveTextToParentTag(r,n,o),n.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}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,s=e.substring(a+9,t);if(r=this.saveTextToParentTag(r,n,o),this.options.cdataPropName)n.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]);else{let e=this.parseTextData(s,n.tagname,o,!0,!1,!0);null==e&&(e=""),n.add(this.options.textNodeName,e)}a=t+2}else{let i=b(e,a,this.options.removeNSPrefix),c=i.tagName,l=i.tagExp,u=i.attrExpPresent,d=i.closeIndex;this.options.transformTagName&&(c=this.options.transformTagName(c)),n&&r&&"!xml"!==n.tagname&&(r=this.saveTextToParentTag(r,n,o,!1));const p=n;if(p&&-1!==this.options.unpairedTags.indexOf(p.tagname)&&(n=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),c!==t.tagname&&(o+=o?"."+c:c),this.isItStopNode(this.options.stopNodes,o,c)){let t="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)a=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(c))a=i.closeIndex;else{const n=this.readStopNodeData(e,c,d+1);if(!n)throw new Error(`Unexpected end of ${c}`);a=n.i,t=n.tagContent}const r=new s(c);c!==l&&u&&(r[":@"]=this.buildAttributesMap(l,o,c)),t&&(t=this.parseTextData(t,c,o,!0,u,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(n,r,o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){"/"===c[c.length-1]?(c=c.substr(0,c.length-1),l=c):l=l.substr(0,l.length-1),this.options.transformTagName&&(c=this.options.transformTagName(c));const e=new s(c);c!==l&&u&&(e[":@"]=this.buildAttributesMap(l,o,c)),this.addChild(n,e,o),o=o.substr(0,o.lastIndexOf("."))}else{const e=new s(c);this.tagsNodeStack.push(n),c!==l&&u&&(e[":@"]=this.buildAttributesMap(l,o,c)),this.addChild(n,e,o),n=e}r="",a=d}}else r+=e[a];return t.child};function h(e,t,n){const r=this.options.updateTag(t.tagname,n,t[":@"]);!1===r||("string"==typeof r?(t.tagname=r,e.addChild(t)):e.addChild(t))}const f=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,n,r){return e&&(void 0===r&&(r=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function g(e,t,n){const r="*."+n;for(const n in e){const s=e[n];if(r===s||t===s)return!0}return!1}function y(e,t,n,r){const s=e.indexOf(t,n);if(-1===s)throw new Error(r);return s+t.length-1}function b(e,t,n,r=">"){const s=function(e,t,n=">"){let r,s="";for(let i=t;i<e.length;i++){let t=e[i];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===n[0]){if(!n[1])return{data:s,index:i};if(e[i+1]===n[1])return{data:s,index:i}}else"\t"===t&&(t=" ");s+=t}}(e,t+1,r);if(!s)return;let i=s.data;const o=s.index,a=i.search(/\s/);let c=i,l=!0;if(-1!==a&&(c=i.substr(0,a).replace(/\s\s*$/,""),i=i.substr(a+1)),n){const e=c.indexOf(":");-1!==e&&(c=c.substr(e+1),l=c!==s.data.substr(e+1))}return{tagName:c,tagExp:i,closeIndex:o,attrExpPresent:l}}function w(e,t,n){const r=n;let s=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const i=y(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(s--,0===s))return{tagContent:e.substring(r,n),i};n=i}else if("?"===e[n+1])n=y(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=y(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=y(e,"]]>",n,"StopNode is not closed.")-2;else{const r=b(e,n,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&s++,n=r.closeIndex)}}function x(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&o(e,n)}return r.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=p,this.parseTextData=c,this.resolveNameSpace=l,this.buildAttributesMap=d,this.isItStopNode=g,this.replaceEntitiesValue=f,this.readStopNodeData=w,this.saveTextToParentTag=m,this.addChild=h}}},844:(e,t,n)=>{const{buildOptions:r}=n(745),s=n(78),{prettify:i}=n(997),o=n(501);e.exports=class{constructor(e){this.externalEntities={},this.options=r(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 n=o.validate(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new s(this.options);n.addExternalEntities(this.externalEntities);const r=n.parseXml(e);return this.options.preserveOrder||void 0===r?r:i(r,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 '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},997:(e,t)=>{"use strict";function n(e,t,o){let a;const c={};for(let l=0;l<e.length;l++){const u=e[l],d=r(u);let p="";if(p=void 0===o?d:o+"."+d,d===t.textNodeName)void 0===a?a=u[d]:a+=""+u[d];else{if(void 0===d)continue;if(u[d]){let e=n(u[d],t,p);const r=i(e,t);u[":@"]?s(e,u[":@"],p,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!==c[d]&&c.hasOwnProperty(d)?(Array.isArray(c[d])||(c[d]=[c[d]]),c[d].push(e)):t.isArray(d,p,r)?c[d]=[e]:c[d]=e}}}return"string"==typeof a?a.length>0&&(c[t.textNodeName]=a):void 0!==a&&(c[t.textNodeName]=a),c}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function s(e,t,n,r){if(t){const s=Object.keys(t),i=s.length;for(let o=0;o<i;o++){const i=s[o];r.isArray(i,n+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function i(e,t){const{textNodeName:n}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}t.prettify=function(e,t){return n(e,t)}},311: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})}}},675:(e,t,n)=>{var r=n(993),s=n(113),i=n(801),o=n(650);function a(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,"number"!=typeof this.capacity||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var r=i.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K="function"==typeof e?new e(n):new Array(n),this.V="function"==typeof t?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}a.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},a.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this},a.prototype.set=function(e,t){var n=this.items[e];if(void 0!==n)return this.splayOnTop(n),void(this.V[n]=t);this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},a.prototype.setpop=function(e,t){var n=null,r=null,s=this.items[e];return void 0!==s?(this.splayOnTop(s),n=this.V[s],this.V[s]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?s=this.size++:(s=this.tail,this.tail=this.backward[s],n=this.V[s],r=this.K[s],delete this.items[this.K[s]]),this.items[e]=s,this.K[s]=e,this.V[s]=t,this.forward[s]=this.head,this.backward[this.head]=s,this.head=s,r?{evicted:!0,key:r,value:n}:null)},a.prototype.has=function(e){return e in this.items},a.prototype.get=function(e){var t=this.items[e];if(void 0!==t)return this.splayOnTop(t),this.V[t]},a.prototype.peek=function(e){var t=this.items[e];if(void 0!==t)return this.V[t]},a.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,s=this.head,i=this.K,o=this.V,a=this.forward;n<r;)e.call(t,o[s],i[s],this),s=a[s],n++},a.prototype.keys=function(){var e=0,t=this.size,n=this.head,s=this.K,i=this.forward;return new r((function(){if(e>=t)return{done:!0};var r=s[n];return++e<t&&(n=i[n]),{done:!1,value:r}}))},a.prototype.values=function(){var e=0,t=this.size,n=this.head,s=this.V,i=this.forward;return new r((function(){if(e>=t)return{done:!0};var r=s[n];return++e<t&&(n=i[n]),{done:!1,value:r}}))},a.prototype.entries=function(){var e=0,t=this.size,n=this.head,s=this.K,i=this.V,o=this.forward;return new r((function(){if(e>=t)return{done:!0};var r=s[n],a=i[n];return++e<t&&(n=o[n]),{done:!1,value:[r,a]}}))},"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=a.prototype.entries),a.prototype.inspect=function(){for(var e,t=new Map,n=this.entries();!(e=n.next()).done;)t.set(e.value[0],e.value[1]);return Object.defineProperty(t,"constructor",{value:a,enumerable:!1}),t},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.from=function(e,t,n,r){if(arguments.length<2){if("number"!=typeof(r=o.guessLength(e)))throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else 2===arguments.length&&(r=t,t=null,n=null);var i=new a(t,n,r);return s(e,(function(e,t){i.set(t,e)})),i},e.exports=a},650:(e,t,n)=>{var r=n(113),s=n(801);function i(e){return"number"==typeof e.length?e.length:"number"==typeof e.size?e.size:void 0}t.isArrayLike=function(e){return Array.isArray(e)||s.isTypedArray(e)},t.guessLength=i,t.toArray=function(e){var t=i(e),n="number"==typeof t?new Array(t):[],s=0;return r(e,(function(e){n[s++]=e})),n},t.toArrayWithIndices=function(e){var t=i(e),n="number"==typeof t?s.getPointerArray(t):Array,o="number"==typeof t?new Array(t):[],a="number"==typeof t?new n(t):[],c=0;return r(e,(function(e){o[c]=e,a[c]=c++})),[o,a]}},801:(e,t)=>{var n=Math.pow(2,8)-1,r=Math.pow(2,16)-1,s=Math.pow(2,32)-1,i=Math.pow(2,7)-1,o=Math.pow(2,15)-1,a=Math.pow(2,31)-1;t.getPointerArray=function(e){var t=e-1;return t<=n?Uint8Array:t<=r?Uint16Array:t<=s?Uint32Array:Float64Array},t.getSignedPointerArray=function(e){var t=e-1;return t<=i?Int8Array:t<=o?Int16Array:t<=a?Int32Array:Float64Array},t.getNumberType=function(e){return e===(0|e)?-1===Math.sign(e)?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var c={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};t.getMinimalRepresentation=function(e,n){var r,s,i,o,a,l=null,u=0;for(o=0,a=e.length;o<a;o++)i=n?n(e[o]):e[o],s=t.getNumberType(i),(r=c[s.name])>u&&(u=r,l=s);return l},t.isTypedArray=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView(e)},t.concat=function(){var e,t,n,r=0;for(e=0,n=arguments.length;e<n;e++)r+=arguments[e].length;var s=new arguments[0].constructor(r);for(e=0,t=0;e<n;e++)s.set(arguments[e],t),t+=arguments[e].length;return s},t.indices=function(e){for(var n=new(t.getPointerArray(e))(e),r=0;r<e;r++)n[r]=r;return n}},113:e=>{var t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof Symbol;function r(e,r){var s,i,o,a,c;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if("function"!=typeof r)throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(o=0,a=e.length;o<a;o++)r(e[o],o);else if("function"!=typeof e.forEach)if(n&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(i in e)e.hasOwnProperty(i)&&r(e[i],i);else for(s=e,o=0;!0!==(c=s.next()).done;)r(c.value,o),o++;else e.forEach(r)}r.forEachWithNullKeys=function(e,r){var s,i,o,a,c;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if("function"!=typeof r)throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(o=0,a=e.length;o<a;o++)r(e[o],null);else if(e instanceof Set)e.forEach((function(e){r(e,null)}));else if("function"!=typeof e.forEach)if(n&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(i in e)e.hasOwnProperty(i)&&r(e[i],i);else for(s=e,o=0;!0!==(c=s.next()).done;)r(c.value,null),o++;else e.forEach(r)},e.exports=r},993:e=>{function t(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}t.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e},"undefined"!=typeof Symbol&&(t.prototype[Symbol.iterator]=function(){return this}),t.of=function(){var e=arguments,n=e.length,r=0;return new t((function(){return r>=n?{done:!0}:{done:!1,value:e[r++]}}))},t.empty=function(){var e=new t(null);return e.done=!0,e},t.is=function(e){return e instanceof t||"object"==typeof e&&null!==e&&"function"==typeof e.next},e.exports=t},153:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(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 r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,s={}){if(s=Object.assign({},r,s),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==s.skipLike&&s.skipLike.test(i))return e;if(s.hex&&t.test(i))return Number.parseInt(i,16);{const t=n.exec(i);if(t){const n=t[1],r=t[2];let a=(o=t[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substr(0,o.length-1)),o):o;const c=t[4]||t[6];if(!s.leadingZeros&&r.length>0&&n&&"."!==i[2])return e;if(!s.leadingZeros&&r.length>0&&!n&&"."!==i[1])return e;{const t=Number(i),o=""+t;return-1!==o.search(/[eE]/)||c?s.eNotation?t:e:-1!==i.indexOf(".")?"0"===o&&""===a||o===a||n&&o==="-"+a?t:e:r?a===o||n+a===o?t:e:i===o||i===n+o?t:e}}return e}var o}}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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})};var r={};(()=>{"use strict";n.r(r),n.d(r,{handler:()=>ig});var e={};n.r(e),n.d(e,{getUserAgentPrefix:()=>Be,isVirtualHostableS3Bucket:()=>He,parseArn:()=>Ge,partition:()=>_e,setPartitionInfo:()=>$e,useDefaultPartitionInfo:()=>qe});var t,s,i,o={};n.r(o),n.d(o,{aws:()=>e,booleanEquals:()=>Ke,getAttr:()=>Ze,isSet:()=>Je,isValidHostLabel:()=>We,not:()=>Ye,parseURL:()=>et,stringEquals:()=>tt,substring:()=>nt,uriEncode:()=>rt}),function(e){e.HEADER="header",e.QUERY="query"}(t||(t={})),function(e){e.HTTP="http",e.HTTPS="https"}(s||(s={})),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(i||(i={}));const a=e=>{const t=[];return void 0!==e.sha256&&t.push({algorithmId:()=>i.SHA256,checksumConstructor:()=>e.sha256}),null!=e.md5&&t.push({algorithmId:()=>i.MD5,checksumConstructor:()=>e.md5}),{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}},c=e=>{const t={};return e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()})),t},l=e=>({...a(e)}),u=e=>({...c(e)});var d,p,h;(h=d||(d={}))[h.HEADER=0]="HEADER",h[h.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"}(p||(p={}));class f{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 f({...this,headers:{...this.headers}});var t;return e.query&&(e.query=(t=e.query,Object.keys(t).reduce(((e,n)=>{const r=t[n];return{...e,[n]:Array.isArray(r)?[...r]:r}}),{}))),e}}class m{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 g={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},y=e=>({applyToStack:t=>{t.add((e=>t=>async n=>{if(!f.isInstance(n.request))return t(n);const{request:r}=n,{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]="";else if(!r.headers.host){let e=r.hostname;null!=r.port&&(e+=`:${r.port}`),r.headers.host=e}return t(n)})(e),g)}}),b={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},w=e=>({applyToStack:e=>{e.add(((e,t)=>async n=>{try{const r=await e(n),{clientName:s,commandName:i,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=a,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:p,...h}=r.output;return o?.info?.({clientName:s,commandName:i,input:u(n.input),output:d(h),metadata:p}),r}catch(e){const{clientName:r,commandName:s,logger:i,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:a}=o,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:r,commandName:s,input:c(n.input),error:e,metadata:e.$metadata}),e}}),b)}}),x="X-Amzn-Trace-Id",v={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},E=e=>({applyToStack:t=>{t.add((e=>t=>async n=>{const{request:r}=n;if(!f.isInstance(r)||"node"!==e.runtime||r.headers.hasOwnProperty(x))return t(n);const s=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,o=e=>"string"==typeof e&&e.length>0;return o(s)&&o(i)&&(r.headers[x]=i),t({...n,request:r})})(e),v)}}),S=(e,t,n)=>{let r,s,i,o=!1;const a=async()=>{s||(s=e());try{r=await s,i=!0,o=!1}finally{s=void 0}return r};return void 0===t?async e=>(i&&!e?.forceRefresh||(r=await a()),r):async e=>(i&&!e?.forceRefresh||(r=await a()),o?r:n&&!n(r)?(o=!0,r):t(r)?(await a(),r):r)};n(79);const k={},A={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),k[e]=t,A[t]=e}function I(e){let t="";for(let n=0;n<e.byteLength;n++)t+=k[e[n]];return t}class T{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 n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256)t[n]=r;return e<0&&N(t),new T(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&N(e),parseInt(I(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function N(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class C{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const n of Object.keys(e)){const r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let r=0;for(const e of t)n.set(e,r),r+=e.byteLength;return n}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 n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":const o=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+o.byteLength));a.setUint8(0,7),a.setUint16(1,o.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(o,3),c;case"timestamp":const l=new Uint8Array(9);return l[0]=8,l.set(T.fromNumber(e.value.valueOf()).bytes,1),l;case"uuid":if(!U.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.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 n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(!(r in A))throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`);t[n/2]=A[r]}return t}(e.value.replace(/\-/g,"")),1),u}}parse(e){const t={};let n=0;for(;n<e.byteLength;){const r=e.getUint8(n++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,r));switch(n+=r,e.getUint8(n++)){case 0:t[s]={type:O,value:!0};break;case 1:t[s]={type:O,value:!1};break;case 2:t[s]={type:L,value:e.getInt8(n++)};break;case 3:t[s]={type:R,value:e.getInt16(n,!1)},n+=2;break;case 4:t[s]={type:D,value:e.getInt32(n,!1)},n+=4;break;case 5:t[s]={type:_,value:new T(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:const r=e.getUint16(n,!1);n+=2,t[s]={type:$,value:new Uint8Array(e.buffer,e.byteOffset+n,r)},n+=r;break;case 7:const i=e.getUint16(n,!1);n+=2,t[s]={type:q,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,i))},n+=i;break;case 8:t[s]={type:B,value:new Date(new T(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:const o=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,t[s]={type:j,value:`${I(o.subarray(0,4))}-${I(o.subarray(4,6))}-${I(o.subarray(6,8))}-${I(o.subarray(8,10))}-${I(o.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var P;!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"}(P||(P={}));const O="boolean",L="byte",R="short",D="integer",_="long",$="binary",q="string",B="timestamp",j="uuid",U=/^[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},F=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e),z=require("buffer"),V=(e,t=0,n=e.byteLength-t)=>{if(!F(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return z.Buffer.from(e,t,n)},W=(e,t)=>{if("string"!=typeof e)throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?z.Buffer.from(e,t):z.Buffer.from(e)},H=e=>{const t=W(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},G=e=>"string"==typeof e?H(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),K=e=>V(e.buffer,e.byteOffset,e.byteLength).toString("utf8"),Z="X-Amz-Date",J="X-Amz-Signature",Y="X-Amz-Security-Token",X="authorization",Q=Z.toLowerCase(),ee=[X,Q,"date"],te=J.toLowerCase(),ne="x-amz-content-sha256",re=Y.toLowerCase(),se={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},ie=/^proxy-/,oe=/^sec-/,ae="AWS4-HMAC-SHA256",ce="AWS4-HMAC-SHA256-PAYLOAD",le="aws4_request",ue={},de=[],pe=(e,t,n)=>`${e}/${t}/${n}/${le}`,he=(e,t,n)=>{const r=new e(t);return r.update(G(n)),r.digest()},fe=({headers:e},t,n)=>{const r={};for(const s of Object.keys(e).sort()){if(null==e[s])continue;const i=s.toLowerCase();(i in se||t?.has(i)||ie.test(i)||oe.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[s].trim().replace(/\s+/g," "))}return r},me=e=>encodeURIComponent(e).replace(/[!'()*]/g,ge),ge=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,ye=async({headers:e,body:t},n)=>{for(const t of Object.keys(e))if(t.toLowerCase()===ne)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||F(t)){const e=new n;return e.update(G(t)),I(await e.digest())}return"UNSIGNED-PAYLOAD"},be=({headers:e,query:t,...n})=>({...n,headers:{...e},query:t?we(t):void 0}),we=e=>Object.keys(e).reduce(((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}}),{}),xe=e=>{e="function"==typeof e.clone?e.clone():be(e);for(const t of Object.keys(e.headers))ee.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class ve{constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:s,uriEscapePath:i=!0}){this.headerMarshaller=new C(K,H),this.service=r,this.sha256=s,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=M(n),this.credentialProvider=M(t)}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:o,signingRegion:a,signingService:c}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);const u=a??await this.regionProvider(),{longDate:d,shortDate:p}=Ee(n);if(r>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const h=pe(p,u,c??this.service),f=((e,t={})=>{const{headers:n,query:r={}}="function"==typeof e.clone?e.clone():be(e);for(const e of Object.keys(n)){const s=e.toLowerCase();"x-amz-"!==s.slice(0,6)||t.unhoistableHeaders?.has(s)||(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}})(xe(e),{unhoistableHeaders:i});l.sessionToken&&(f.query[Y]=l.sessionToken),f.query["X-Amz-Algorithm"]=ae,f.query["X-Amz-Credential"]=`${l.accessKeyId}/${h}`,f.query[Z]=d,f.query["X-Amz-Expires"]=r.toString(10);const m=fe(f,s,o);return f.query["X-Amz-SignedHeaders"]=Se(m),f.query[J]=await this.getSignature(d,h,this.getSigningKey(l,u,p,c),this.createCanonicalRequest(f,m,await ye(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:n=new Date,priorSignature:r,signingRegion:s,signingService:i}){const o=s??await this.regionProvider(),{shortDate:a,longDate:c}=Ee(n),l=pe(a,o,i??this.service),u=await ye({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const p=I(await d.digest()),h=[ce,c,l,r,p,u].join("\n");return this.signString(h,{signingDate:n,signingRegion:o,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const i=n??await this.regionProvider(),{shortDate:o}=Ee(t),a=new this.sha256(await this.getSigningKey(s,i,o,r));return a.update(G(e)),I(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:s,signingService:i}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const a=s??await this.regionProvider(),c=xe(e),{longDate:l,shortDate:u}=Ee(t),d=pe(u,a,i??this.service);c.headers[Q]=l,o.sessionToken&&(c.headers[re]=o.sessionToken);const p=await ye(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1})(ne,c.headers)&&this.applyChecksum&&(c.headers[ne]=p);const h=fe(c,r,n),f=await this.getSignature(l,d,this.getSigningKey(o,a,u,i),this.createCanonicalRequest(c,h,p));return c.headers[X]=`${ae} Credential=${o.accessKeyId}/${d}, SignedHeaders=${Se(h)}, Signature=${f}`,c}createCanonicalRequest(e,t,n){const r=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e).sort()){if(r.toLowerCase()===te)continue;t.push(r);const s=e[r];"string"==typeof s?n[r]=`${me(r)}=${me(s)}`:Array.isArray(s)&&(n[r]=s.slice(0).reduce(((e,t)=>e.concat([`${me(r)}=${me(t)}`])),[]).sort().join("&"))}return t.map((e=>n[e])).filter((e=>e)).join("&")})(e)}\n${r.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${r.join(";")}\n${n}`}async createStringToSign(e,t,n){const r=new this.sha256;r.update(G(n));const s=await r.digest();return`${ae}\n${e}\n${t}\n${I(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/"))0!==n?.length&&"."!==n&&(".."===n?t.pop():t.push(n));const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return e}async getSignature(e,t,n,r){const s=await this.createStringToSign(e,t,r),i=new this.sha256(await n);return i.update(G(s)),I(await i.digest())}getSigningKey(e,t,n,r){return(async(e,t,n,r,s)=>{const i=`${n}:${r}:${s}:${I(await he(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in ue)return ue[i];for(de.push(i);de.length>50;)delete ue[de.shift()];let o=`AWS4${t.secretAccessKey}`;for(const t of[n,r,s,le])o=await he(e,o,t);return ue[i]=o})(this.sha256,e,n,t,r||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=(n=e,(e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e)(n).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var n;return{longDate:t,shortDate:t.slice(0,8)}},Se=e=>Object.keys(e).sort().join(";"),ke=e=>{const t=e.credentials?Ae(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=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((([r,i])=>{const{signingRegion:o,signingService:a}=r;e.signingRegion=e.signingRegion||o||i,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:n};return new(e.signerConstructor||ve)(c)})):async r=>{const i=(r=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await M(e.region)(),properties:{}},r)).signingRegion,o=r.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||o||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:n};return new(e.signerConstructor||ve)(a)},{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:i}},Ae=e=>"function"==typeof e?S(e,(e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5),(e=>void 0!==e.expiration)):M(e),Ie=e=>new Date(Date.now()+e),Te=(e,t)=>{const n=Date.parse(e);return((e,t)=>Math.abs(Ie(t).getTime()-e)>=3e5)(n,t)?n-Date.now():t},Ne=e=>m.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Ce={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},Pe=e=>({applyToStack:t=>{t.addRelativeTo((e=>(t,n)=>async function(r){if(!f.isInstance(r.request))return t(r);const s=n.endpointV2?.properties?.authSchemes?.[0],i="sigv4a"===s?.name?s?.signingRegionSet?.join(","):void 0,o=await e.signer(s),a=await t({...r,request:await o.sign(r.request,{signingDate:Ie(e.systemClockOffset),signingRegion:i||n.signing_region,signingService:n.signing_service})}).catch((t=>{const n=t.ServerTime??Ne(t.$response);throw n&&(e.systemClockOffset=Te(n,e.systemClockOffset)),t})),c=Ne(a.response);return c&&(e.systemClockOffset=Te(c,e.systemClockOffset)),a})(e),Ce)}});function Oe(e){return{...e,customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent}}const Le=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|il)\\\\-\\\\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)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"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 Re=Le,De="";const _e=e=>{const{partitions:t}=Re;for(const n of t){const{regions:t,outputs:r}=n;for(const[n,s]of Object.entries(t))if(n===e)return{...r,...s}}for(const n of t){const{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}const n=t.find((e=>"aws"===e.id));if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},$e=(e,t="")=>{Re=e,De=t},qe=()=>{$e(Le,"")},Be=()=>De,je="endpoints";function Ue(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${Ue(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Ue).join(", ")})`:JSON.stringify(e,null,2)}class Me extends Error{constructor(e){super(e),this.name="EndpointError"}}const Fe=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}$"),ze=e=>Fe.test(e)||e.startsWith("[")&&e.endsWith("]"),Ve=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),We=(e,t=!1)=>{if(!t)return Ve.test(e);const n=e.split(".");for(const e of n)if(!We(e))return!1;return!0},He=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!He(t))return!1;return!0}return!(!We(e)||e.length<3||e.length>63||e!==e.toLowerCase()||ze(e))},Ge=e=>{const t=e.split(":");if(t.length<6)return null;const[n,r,s,i,o,...a]=t;return"arn"!==n||""===r||""===s||""===a[0]?null:{partition:r,service:s,region:i,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},Ke=(e,t)=>e===t,Ze=(e,t)=>(e=>{const t=e.split("."),n=[];for(const r of t){const t=r.indexOf("[");if(-1!==t){if(r.indexOf("]")!==r.length-1)throw new Me(`Path: '${e}' does not end with ']'`);const s=r.slice(t+1,-1);if(Number.isNaN(parseInt(s)))throw new Me(`Invalid array index: '${s}' in path: '${e}'`);0!==t&&n.push(r.slice(0,t)),n.push(s)}else n.push(r)}return n})(t).reduce(((n,r)=>{if("object"!=typeof n)throw new Me(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]}),e),Je=e=>null!=e,Ye=e=>!e;var Xe;!function(e){e.AAAA="AAAA",e.A="A"}(Xe||(Xe={}));const Qe={[s.HTTP]:80,[s.HTTPS]:443},et=e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:n,protocol:r="",path:s="",query:i={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:""}${s}`);return o.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),o}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 n=t.href,{host:r,hostname:i,pathname:o,protocol:a,search:c}=t;if(c)return null;const l=a.slice(0,-1);if(!Object.values(s).includes(l))return null;const u=ze(i);return{scheme:l,authority:`${r}${n.includes(`${r}:${Qe[l]}`)||"string"==typeof e&&e.includes(`${r}:${Qe[l]}`)?`:${Qe[l]}`:""}`,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},tt=(e,t)=>e===t,nt=(e,t,n,r)=>t>=n||e.length<n?null:r?e.substring(e.length-n,e.length-t):e.substring(t,n),rt=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),st=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let s=0;for(;s<e.length;){const t=e.indexOf("{",s);if(-1===t){n.push(e.slice(s));break}n.push(e.slice(s,t));const i=e.indexOf("}",t);if(-1===i){n.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(n.push(e.slice(t+1,i)),s=i+2);const o=e.substring(t+1,i);if(o.includes("#")){const[e,t]=o.split("#");n.push(Ze(r[e],t))}else n.push(r[o]);s=i+1}return n.join("")},it=(e,t,n)=>{if("string"==typeof e)return st(e,n);if(e.fn)return ot(e,n);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,n);throw new Me(`'${t}': ${String(e)} is not a string, function or reference.`)},ot=({fn:e,argv:t},n)=>{const r=t.map((e=>["boolean","number"].includes(typeof e)?e:it(e,"arg",n)));return e.split(".").reduce(((e,t)=>e[t]),o)(...r)},at=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new Me(`'${e}' is already defined in Reference Record.`);const r=ot(t,n);return n.logger?.debug?.(je,`evaluateCondition: ${Ue(t)} = ${Ue(r)}`),{result:""===r||!!r,...null!=e&&{toAssign:{name:e,value:r}}}},ct=(e=[],t)=>{const n={};for(const r of e){const{result:e,toAssign:s}=at(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e)return{result:e};s&&(n[s.name]=s.value,t.logger?.debug?.(je,`assign: ${s.name} := ${Ue(s.value)}`))}return{result:!0,referenceRecord:n}},lt=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:r.map((e=>{const r=it(e,"Header value entry",t);if("string"!=typeof r)throw new Me(`Header '${n}' value '${r}' is not a string`);return r}))})),{}),ut=(e,t)=>{if(Array.isArray(e))return e.map((e=>ut(e,t)));switch(typeof e){case"string":return st(e,t);case"object":if(null===e)throw new Me(`Unexpected endpoint property: ${e}`);return dt(e,t);case"boolean":return e;default:throw new Me("Unexpected endpoint property type: "+typeof e)}},dt=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:ut(r,t)})),{}),pt=(e,t)=>{const n=it(e,"Endpoint URL",t);if("string"==typeof n)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new Me("Endpoint URL must be a string, got "+typeof n)},ht=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:s,referenceRecord:i}=ct(n,t);if(!s)return;const o={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:c,headers:l}=r;return t.logger?.debug?.(je,`Resolving endpoint from template: ${Ue(r)}`),{...null!=l&&{headers:lt(l,o)},...null!=c&&{properties:dt(c,o)},url:pt(a,o)}},ft=(e,t)=>{const{conditions:n,error:r}=e,{result:s,referenceRecord:i}=ct(n,t);if(s)throw new Me(it(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},mt=(e,t)=>{const{conditions:n,rules:r}=e,{result:s,referenceRecord:i}=ct(n,t);if(s)return gt(r,{...t,referenceRecord:{...t.referenceRecord,...i}})},gt=(e,t)=>{for(const n of e)if("endpoint"===n.type){const e=ht(n,t);if(e)return e}else if("error"===n.type)ft(n,t);else{if("tree"!==n.type)throw new Me(`Unknown endpoint rule: ${n}`);{const e=mt(n,t);if(e)return e}}throw new Me("Rules evaluation failed")},yt=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:s,rules:i}=e;t.logger?.debug?.(`${je} Initial EndpointParams: ${Ue(n)}`);const o=Object.entries(s).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(o.length>0)for(const[e,t]of o)n[e]=n[e]??t;const a=Object.entries(s).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==n[e])throw new Me(`Missing required parameter: '${e}'`);const c=gt(i,{endpointParams:n,logger:r,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{const e=new URL(t.endpointParams.Endpoint),{protocol:n,port:r}=e;c.url.protocol=n,c.url.port=r}catch(e){}return t.logger?.debug?.(`${je} Resolved endpoint: ${Ue(c)}`),c},bt="user-agent",wt="x-amz-user-agent",xt=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,vt=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,Et=e=>{const t=e[0].split("/").map((e=>e.replace(xt,"-"))).join("/"),n=e[1]?.replace(vt,"-"),r=t.indexOf("/"),s=t.substring(0,r);let i=t.substring(r+1);return"api"===s&&(i=i.toLowerCase()),[s,i,n].filter((e=>e&&e.length>0)).reduce(((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},St={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},kt=e=>({applyToStack:t=>{var n;t.add((n=e,(e,t)=>async r=>{const{request:s}=r;if(!f.isInstance(s))return e(r);const{headers:i}=s,o=t?.userAgent?.map(Et)||[],a=(await n.defaultUserAgentProvider()).map(Et),c=n?.customUserAgent?.map(Et)||[],l=Be(),u=(l?[l]:[]).concat([...a,...o,...c]).join(" "),d=[...a.filter((e=>e.startsWith("aws-sdk-"))),...c].join(" ");return"browser"!==n.runtime?(d&&(i[wt]=i[wt]?`${i[bt]} ${d}`:d),i[bt]=u):i[wt]=u,e({...r,request:s})}),St)}});var At;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(At||(At={}));const It=(e,t,n)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}},Tt={environmentVariableSelector:e=>It(e,"AWS_USE_DUALSTACK_ENDPOINT",At.ENV),configFileSelector:e=>It(e,"use_dualstack_endpoint",At.CONFIG),default:!1},Nt={environmentVariableSelector:e=>It(e,"AWS_USE_FIPS_ENDPOINT",At.ENV),configFileSelector:e=>It(e,"use_fips_endpoint",At.CONFIG),default:!1},Ct={environmentVariableSelector:e=>e.AWS_REGION,configFileSelector:e=>e.region,default:()=>{throw new Error("Region is missing")}},Pt={preferredFile:"credentials"},Ot=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),Lt=e=>Ot(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,Rt=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return Lt(t);const e=await t();return Lt(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!Ot(e)||("function"!=typeof n?Promise.resolve(!!n):n())}}},Dt="content-length",_t={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},$t=e=>({applyToStack:t=>{var n;t.add((n=e.bodyLengthChecker,e=>async t=>{const r=t.request;if(f.isInstance(r)){const{body:e,headers:t}=r;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(Dt))try{const t=n(e);r.headers={...r.headers,[Dt]:String(t)}}catch(e){}}return e({...t,request:r})}),_t)}}),qt={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Bt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function jt(e,t,n){return{applyToStack:r=>{r.add(((e,t)=>(n,r)=>async r=>{const{response:s}=await n(r);try{return{response:s,output:await t(s,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:s}),!("$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,n),qt),r.add(((e,t)=>(n,r)=>async s=>{const i=r.endpointV2?.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const o=await t(s.input,{...e,endpoint:i});return n({...s,request:o})})(e,t),Bt)}}}const Ut=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Mt=/(\d+\.){3}\d+/,Ft=/\.\./,zt=(e,t,n)=>{const r=async()=>{const r=n[e]??n[t];return"function"==typeof r?r():r};return"endpoint"===e||"endpoint"===t?async()=>{const e=await r();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:n,port:r,path:s}=e;return`${t}//${n}${r?":"+r:""}${s}`}}return e}:r},Vt=async(e,t,n)=>{const r={},s=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(s))switch(i.type){case"staticContextParams":r[t]=i.value;break;case"contextParams":r[t]=e[i.name];break;case"clientContextParams":case"builtInParams":r[t]=await zt(i.name,t,n)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(s).length&&Object.assign(r,n),"s3"===String(n.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,n,r,s,i,o]=e.split(":"),a="arn"===t&&e.split(":").length>=6,c=5===[t,n,r,i,o].filter(Boolean).length;if(a&&!c)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return!!("arn"===t&&n&&r&&i&&o)})(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else n=t,(!Ut.test(n)||Mt.test(n)||Ft.test(n)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);var n;return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(r),r},Wt={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Bt.name},Ht=(e,t)=>({applyToStack:n=>{n.addRelativeTo((({config:e,instructions:t})=>(n,r)=>async s=>{const i=await(async(e,t,n,r)=>{const s=await Vt(e,t,n);if("function"!=typeof n.endpointProvider)throw new Error("config.endpointProvider is not set.");return n.endpointProvider(s,r)})(s.input,{getEndpointParameterInstructions:()=>t},{...e},r);r.endpointV2=i,r.authSchemes=i.properties?.authSchemes;const o=r.authSchemes?.[0];return o&&(r.signing_region=o.signingRegion,r.signing_service=o.signingName),n({...s})})({config:e,instructions:t}),Wt)}}),Gt=e=>{if("string"==typeof e)return Gt(new URL(e));const{hostname:t,pathname:n,port:r,protocol:s,search:i}=e;let o;return i&&(o=function(e){const t={};if(e=e.replace(/^\?/,""))for(const n of e.split("&")){let[e,r=null]=n.split("=");e=decodeURIComponent(e),r&&(r=decodeURIComponent(r)),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}(i)),{hostname:t,port:r?parseInt(r):void 0,protocol:s,path:n,query:o}},Kt=e=>{const t=e.tls??!0,{endpoint:n}=e,r=null!=n?async()=>(e=>"object"==typeof e?"url"in e?Gt(e.url):e:Gt(e))(await M(n)()):void 0,s=!!n;return{...e,endpoint:r,tls:t,isCustomEndpoint:s,useDualstackEndpoint:M(e.useDualstackEndpoint??!1),useFipsEndpoint:M(e.useFipsEndpoint??!1)}};var Zt,Jt;(Jt=Zt||(Zt={})).STANDARD="standard",Jt.ADAPTIVE="adaptive";const Yt=Zt.STANDARD,Xt=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Qt=["TimeoutError","RequestTimeout","RequestTimeoutException"],en=[500,502,503,504],tn=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],nn=e=>429===e.$metadata?.httpStatusCode||Xt.includes(e.name)||1==e.$retryable?.throttling,rn=e=>Qt.includes(e.name)||tn.includes(e?.code||"")||en.includes(e.$metadata?.httpStatusCode||0);class sn{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(),nn(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 n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}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 on=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(2e4,e),getRetryCost:()=>n});class an{constructor(e){this.maxAttempts=e,this.mode=Zt.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 on({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===n?500:100);const r=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,r):r,i=this.getCapacityCost(n);return this.capacity-=i,on({retryDelay:s,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,n){return e.getRetryCount()+1<n&&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 cn{constructor(e,t){this.maxAttemptsProvider=e,this.mode=Zt.ADAPTIVE;const{rateLimiter:n}=t??{};this.rateLimiter=n??new sn,this.standardRetryStrategy=new an(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 ln="AWS_MAX_ATTEMPTS",un="max_attempts",dn={environmentVariableSelector:e=>{const t=e[ln];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${ln} mast be a number, got "${t}"`);return n},configFileSelector:e=>{const t=e[un];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${un} mast be a number, got "${t}"`);return n},default:3},pn=e=>{const{retryStrategy:t}=e,n=M(e.maxAttempts??3);return{...e,maxAttempts:n,retryStrategy:async()=>t||(await M(e.retryMode)()===Zt.ADAPTIVE?new cn(n):new an(n))}},hn={environmentVariableSelector:e=>e.AWS_RETRY_MODE,configFileSelector:e=>e.retry_mode,default:Yt},fn=require("crypto");var mn=n.n(fn);const gn=new Uint8Array(256);let yn=gn.length;function bn(){return yn>gn.length-16&&(mn().randomFillSync(gn),yn=0),gn.slice(yn,yn+=16)}const wn=/^(?:[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,xn=[];for(let e=0;e<256;++e)xn.push((e+256).toString(16).substr(1));const vn=function(e,t=0){const n=(xn[e[t+0]]+xn[e[t+1]]+xn[e[t+2]]+xn[e[t+3]]+"-"+xn[e[t+4]]+xn[e[t+5]]+"-"+xn[e[t+6]]+xn[e[t+7]]+"-"+xn[e[t+8]]+xn[e[t+9]]+"-"+xn[e[t+10]]+xn[e[t+11]]+xn[e[t+12]]+xn[e[t+13]]+xn[e[t+14]]+xn[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&wn.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},En=function(e,t,n){const r=(e=e||{}).random||(e.rng||bn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return vn(r)},Sn=e=>{const t={errorType:kn(e)},n=Tn(e.$response);return n&&(t.retryAfterHint=n),t},kn=e=>nn(e)?"THROTTLING":rn(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!rn(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",An={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},In=e=>({applyToStack:t=>{t.add((e=>(t,n)=>async r=>{let s=await e.retryStrategy();const i=await e.maxAttempts();if(!(e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess)(s))return s?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,r);{let e=await s.acquireInitialRetryToken(n.partition_id),a=new Error,c=0,l=0;const{request:u}=r;for(f.isInstance(u)&&(u.headers["amz-sdk-invocation-id"]=En());;)try{f.isInstance(u)&&(u.headers["amz-sdk-request"]=`attempt=${c+1}; max=${i}`);const{response:n,output:o}=await t(r);return s.recordSuccess(e),o.$metadata.attempts=c+1,o.$metadata.totalRetryDelay=l,{response:n,output:o}}catch(t){const n=Sn(t);a=(o=t)instanceof Error?o:o instanceof Object?Object.assign(new Error,o):"string"==typeof o?new Error(o):new Error(`AWS SDK error wrapper for ${o}`);try{e=await s.refreshRetryTokenForRetry(e,n)}catch(e){throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=c+1,a.$metadata.totalRetryDelay=l,a}c=e.getRetryCount();const r=e.getRetryDelay();l+=r,await new Promise((e=>setTimeout(e,r)))}}var o})(e),An)}}),Tn=e=>{if(!m.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(1e3*r)};class Nn{trace(){}debug(){}info(){}warn(){}error(){}}const Cn=()=>{let e=[],t=[];const n=new Set,r=n=>(e.forEach((e=>{n.add(e.middleware,{...e})})),t.forEach((e=>{n.addRelativeTo(e.middleware,{...e})})),n),s=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...s(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...s(e))})),t},i=(n=!1)=>{const r=[],i=[],o={};e.forEach((e=>{const t={...e,before:[],after:[]};t.name&&(o[t.name]=t),r.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};t.name&&(o[t.name]=t),i.push(t)})),i.forEach((e=>{if(e.toMiddleware){const t=o[e.toMiddleware];if(void 0===t){if(n)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=(c=r,c.sort(((e,t)=>Pn[t.step]-Pn[e.step]||On[t.priority||"normal"]-On[e.priority||"normal"]))).map(s).reduce(((e,t)=>(e.push(...t),e)),[]);var c;return a},o={add:(t,r={})=>{const{name:s,override:i}=r,o={step:"initialize",priority:"normal",middleware:t,...r};if(s){if(n.has(s)){if(!i)throw new Error(`Duplicate middleware name '${s}'`);const t=e.findIndex((e=>e.name===s)),n=e[t];if(n.step!==o.step||n.priority!==o.priority)throw new Error(`"${s}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by same-name middleware with ${o.priority} priority in ${o.step} step.`);e.splice(t,1)}n.add(s)}e.push(o)},addRelativeTo:(e,r)=>{const{name:s,override:i}=r,o={middleware:e,...r};if(s){if(n.has(s)){if(!i)throw new Error(`Duplicate middleware name '${s}'`);const e=t.findIndex((e=>e.name===s)),n=t[e];if(n.toMiddleware!==o.toMiddleware||n.relation!==o.relation)throw new Error(`"${s}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by same-name middleware ${o.relation} "${o.toMiddleware}" middleware.`);t.splice(e,1)}n.add(s)}t.push(o)},clone:()=>r(Cn()),use:e=>{e.applyToStack(o)},remove:r=>"string"==typeof r?(r=>{let s=!1;const i=e=>!e.name||e.name!==r||(s=!0,n.delete(r),!1);return e=e.filter(i),t=t.filter(i),s})(r):(r=>{let s=!1;const i=e=>e.middleware!==r||(s=!0,e.name&&n.delete(e.name),!1);return e=e.filter(i),t=t.filter(i),s})(r),removeByTag:r=>{let s=!1;const i=e=>{const{tags:t,name:i}=e;return!t||!t.includes(r)||(i&&n.delete(i),s=!0,!1)};return e=e.filter(i),t=t.filter(i),s},concat:e=>{const t=r(Cn());return t.use(e),t},applyToStack:r,identify:()=>i(!0).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const n of i().map((e=>e.middleware)).reverse())e=n(e,t);return e}};return o},Pn={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},On={high:3,normal:2,low:1};class Ln{constructor(e){this.middlewareStack=Cn(),this.config=e}send(e,t,n){const r="function"!=typeof t?t:void 0,s="function"==typeof t?t:n,i=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!s)return i(e).then((e=>e.output));i(e).then((e=>s(null,e.output)),(e=>s(e))).catch((()=>{}))}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const Rn=/^[A-Za-z0-9+/]*={0,2}$/,Dn=e=>{if(3*e.length%4!=0)throw new TypeError("Incorrect padding on base64 string.");if(!Rn.exec(e))throw new TypeError("Invalid base64 string.");const t=W(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},_n=e=>V(e.buffer,e.byteOffset,e.byteLength).toString("base64");class $n extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?$n.mutate(Dn(e)):$n.mutate(H(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,$n.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?_n(e):K(e)}(this,e)}}const qn=require("stream"),Bn=require("http"),jn=require("https"),Un=["ECONNRESET","EPIPE","ETIMEDOUT"],Mn=e=>{const t={};for(const n of Object.keys(e)){const r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};class Fn{constructor(e){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise(((t,n)=>{"function"==typeof e?e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(n):t(this.resolveDefaultConfig(e))}))}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:n,socketTimeout:r,httpAgent:s,httpsAgent:i}=e||{};return{connectionTimeout:n,requestTimeout:t??r,httpAgent:s||new Bn.Agent({keepAlive:!0,maxSockets:50}),httpsAgent:i||new jn.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(((n,r)=>{let s;const i=async e=>{await s,r(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 o="https:"===e.protocol,a=function(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=me(n),Array.isArray(r))for(let e=0,s=r.length;e<s;e++)t.push(`${n}=${me(r[e])}`);else{let e=n;(r||"string"==typeof r)&&(e+=`=${me(r)}`),t.push(e)}}return t.join("&")}(e.query||{});let c;null==e.username&&null==e.password||(c=`${e.username??""}:${e.password??""}`);let l=e.path;a&&(l+=`?${a}`),e.fragment&&(l+=`#${e.fragment}`);const u={headers:e.headers,host:e.hostname,method:e.method,path:l,port:e.port,agent:o?this.config.httpsAgent:this.config.httpAgent,auth:c},d=(o?jn.request:Bn.request)(u,(e=>{(async e=>{await s,n(e)})({response:new m({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:Mn(e.headers),body:e})})}));d.on("error",(e=>{Un.includes(e.code)?i(Object.assign(e,{name:"TimeoutError"})):i(e)})),((e,t,n=0)=>{if(!n)return;const r=setTimeout((()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))}),n);e.on("socket",(e=>{e.connecting?e.on("connect",(()=>{clearTimeout(r)})):clearTimeout(r)}))})(d,i,this.config.connectionTimeout),((e,t,n=0)=>{e.setTimeout(n,(()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))}))})(d,i,this.config.requestTimeout),t&&(t.onabort=()=>{d.abort();const e=new Error("Request aborted");e.name="AbortError",i(e)});const p=u.agent;"object"==typeof p&&"keepAlive"in p&&((e,{keepAlive:t,keepAliveMsecs:n})=>{!0===t&&e.on("socket",(e=>{e.setKeepAlive(t,n||0)}))})(d,{keepAlive:p.keepAlive,keepAliveMsecs:p.keepAliveMsecs}),s=async function(e,t,n=1e3){const r=t.headers??{},s=r.Expect||r.expect;let i=-1,o=!1;"100-continue"===s&&await Promise.race([new Promise((e=>{i=Number(setTimeout(e,Math.max(1e3,n)))})),new Promise((t=>{e.on("continue",(()=>{clearTimeout(i),t()})),e.on("error",(()=>{o=!0,clearTimeout(i),t()}))}))]),o||function(e,t){t instanceof qn.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}(e,t.body)}(d,e,this.config.requestTimeout).catch(r)}))}}require("http2"),Symbol.iterator;class zn extends qn.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(e,t,n){this.bufferedBytes.push(e),n()}}const Vn=e=>new Promise(((t,n)=>{const r=new zn;e.pipe(r),e.on("error",(e=>{r.end(),n(e)})),r.on("error",n),r.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))})),Wn=require("util"),Hn=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return $n.mutate(e);if(!e)return $n.mutate(new Uint8Array);const n=t.streamCollector(e);return $n.mutate(await n)};class Gn{constructor(){this.middlewareStack=Cn()}}const Kn="***SensitiveInformation***",Zn=e=>{if(null!=e){if("number"==typeof e){if(0!==e&&1!==e||pr.warn(dr(`Expected boolean, got ${typeof e}: ${e}`)),0===e)return!1;if(1===e)return!0}if("string"==typeof e){const t=e.toLowerCase();if("false"!==t&&"true"!==t||pr.warn(dr(`Expected boolean, got ${typeof e}: ${e}`)),"false"===t)return!1;if("true"===t)return!0}if("boolean"==typeof e)return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},Jn=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&pr.warn(dr(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},Yn=Math.ceil(2**127*(2-2**-23)),Xn=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},Qn=e=>er(e,32),er=(e,t)=>{const n=Xn(e);if(void 0!==n&&tr(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},tr=(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]}},nr=(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},rr=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}`)},sr=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return pr.warn(dr(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},ir=e=>{if(null==e)return;const t=rr(e),n=Object.entries(t).filter((([,e])=>null!=e)).map((([e])=>e));if(0===n.length)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(n.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t},or=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,ar=e=>{const t=e.match(or);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},cr=e=>"string"==typeof e?lr(e):Jn(e),lr=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},ur=e=>Qn("string"==typeof e?ar(e):e),dr=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),pr={warn:console.warn},hr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fr=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),mr=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=fr.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[n,r,s,i,o,a,c,l,u]=t,d=(e=>(e=>er(e,16))("string"==typeof e?ar(e):e))(Sr(r)),p=xr(s,"month",1,12),h=xr(i,"day",1,31),f=gr(d,p,h,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l});return"Z"!=u.toUpperCase()&&f.setTime(f.getTime()-Er(u)),f},gr=(e,t,n,r)=>{const s=t-1;return br(e,s,n),new Date(Date.UTC(e,s,n,xr(r.hours,"hour",0,23),xr(r.minutes,"minute",0,59),xr(r.seconds,"seconds",0,60),vr(r.fractionalMilliseconds)))},yr=[31,28,31,30,31,30,31,31,30,31,30,31],br=(e,t,n)=>{let r=yr[t];if(1===t&&wr(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${hr[t]} in ${e}: ${n}`)},wr=e=>e%4==0&&(e%100!=0||e%400==0),xr=(e,t,n,r)=>{const s=(e=>(e=>er(e,8))("string"==typeof e?ar(e):e))(Sr(e));if(s<n||s>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return s},vr=e=>null==e?0:1e3*(e=>(e=>{const t=Jn(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Yn)throw new TypeError(`Expected 32-bit float, got ${e}`);return t})("string"==typeof e?ar(e):e))("0."+e),Er=e=>{const t=e[0];let n=1;if("+"==t)n=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);n=-1}return n*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},Sr=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)};class kr extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,kr.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Ar=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,n])=>{null!=e[t]&&""!==e[t]||(e[t]=n)}));const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},Ir=e=>({output:t,parsedBody:n,errorCode:r})=>{(({output:e,parsedBody:t,exceptionCtor:n,errorCode:r})=>{const s=Tr(e),i=s.httpStatusCode?s.httpStatusCode+"":void 0,o=new n({name:t?.code||t?.Code||r||i||"UnknownError",$fault:"client",$metadata:s});throw Ar(o,t)})({output:t,parsedBody:n,exceptionCtor:e,errorCode:r})},Tr=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"]}),Nr=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 Cr=!1;const Pr=e=>{e&&!Cr&&parseInt(e.substring(1,e.indexOf(".")))<14&&(Cr=!0)};function Or(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}const Lr=e=>{const t="#text";for(const n in e)e.hasOwnProperty(n)&&void 0!==e[n][t]?e[n]=e[n][t]:"object"==typeof e[n]&&null!==e[n]&&(e[n]=Lr(e[n]));return e},Rr=function(){const e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(t,e.prototype),t};function Dr(e,t,n){let r,s,i;if(void 0===t&&void 0===n)r={},i=e;else{if(r=e,"function"==typeof t)return s=t,i=n,$r(r,s,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?qr(r,null,i,e):r[e]=i[e];return r}Rr.prototype=Object.create(String.prototype,{constructor:{value:Rr,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(Rr,String);const _r=(e,t)=>{const n={};for(const r in t)qr(n,e,t,r);return n},$r=(e,t,n)=>Dr(e,Object.entries(n).reduce(((e,[n,r])=>(Array.isArray(r)?e[n]=r:e[n]="function"==typeof r?[t,r()]:[t,r],e)),{})),qr=(e,t,n,r)=>{if(null!==t){let s=n[r];"function"==typeof s&&(s=[,s]);const[i=Br,o=jr,a=r]=s;return void(("function"==typeof i&&i(t[a])||"function"!=typeof i&&i)&&(e[r]=o(t[a])))}let[s,i]=n[r];if("function"==typeof i){let t;const n=void 0===s&&null!=(t=i()),o="function"==typeof s&&!!s(void 0)||"function"!=typeof s&&!!s;n?e[r]=t:o&&(e[r]=i())}else{const t=void 0===s&&null!=i,n="function"==typeof s&&!!s(i)||"function"!=typeof s&&!!s;(t||n)&&(e[r]=i)}},Br=e=>null!=e,jr=e=>e,Ur=e=>{if(null==e)return{};if(Array.isArray(e))return e.filter((e=>null!=e));if("object"==typeof e){const t={};for(const n of Object.keys(e))null!=e[n]&&(t[n]=Ur(e[n]));return t}return e};class Mr extends kr{constructor(e){super(e),Object.setPrototypeOf(this,Mr.prototype)}}class Fr extends Mr{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Fr.prototype)}}class zr extends Mr{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,zr.prototype)}}class Vr extends Mr{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Vr.prototype)}}class Wr extends Mr{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Wr.prototype)}}class Hr extends Mr{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Hr.prototype)}}class Gr extends Mr{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,Gr.prototype)}}class Kr extends Mr{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,Kr.prototype)}}const Zr=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:Kn}}),Jr=e=>({...e,...e.Credentials&&{Credentials:Zr(e.Credentials)}}),Yr=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:Kn}}),Xr=e=>({...e,...e.Credentials&&{Credentials:Zr(e.Credentials)}});var Qr=n(932);const es=async(e,t)=>{const n=e.body,r=bs(n.Error,t),s=new Fr({$metadata:As(e),...r});return Ar(s,n)},ts=async(e,t)=>{const n=e.body,r=ws(n.Error,t),s=new Kr({$metadata:As(e),...r});return Ar(s,n)},ns=async(e,t)=>{const n=e.body,r=xs(n.Error,t),s=new Hr({$metadata:As(e),...r});return Ar(s,n)},rs=async(e,t)=>{const n=e.body,r=vs(n.Error,t),s=new Gr({$metadata:As(e),...r});return Ar(s,n)},ss=async(e,t)=>{const n=e.body,r=Es(n.Error,t),s=new zr({$metadata:As(e),...r});return Ar(s,n)},is=async(e,t)=>{const n=e.body,r=Ss(n.Error,t),s=new Vr({$metadata:As(e),...r});return Ar(s,n)},os=async(e,t)=>{const n=e.body,r=ks(n.Error,t),s=new Wr({$metadata:As(e),...r});return Ar(s,n)},as=(e,t)=>{const n={};if(null!=e.RoleArn&&(n.RoleArn=e.RoleArn),null!=e.RoleSessionName&&(n.RoleSessionName=e.RoleSessionName),null!=e.PolicyArns){const r=ls(e.PolicyArns,t);0===e.PolicyArns?.length&&(n.PolicyArns=[]),Object.entries(r).forEach((([e,t])=>{n[`PolicyArns.${e}`]=t}))}if(null!=e.Policy&&(n.Policy=e.Policy),null!=e.DurationSeconds&&(n.DurationSeconds=e.DurationSeconds),null!=e.Tags){const r=ms(e.Tags,t);0===e.Tags?.length&&(n.Tags=[]),Object.entries(r).forEach((([e,t])=>{n[`Tags.${e}`]=t}))}if(null!=e.TransitiveTagKeys){const r=fs(e.TransitiveTagKeys,t);0===e.TransitiveTagKeys?.length&&(n.TransitiveTagKeys=[]),Object.entries(r).forEach((([e,t])=>{n[`TransitiveTagKeys.${e}`]=t}))}if(null!=e.ExternalId&&(n.ExternalId=e.ExternalId),null!=e.SerialNumber&&(n.SerialNumber=e.SerialNumber),null!=e.TokenCode&&(n.TokenCode=e.TokenCode),null!=e.SourceIdentity&&(n.SourceIdentity=e.SourceIdentity),null!=e.ProvidedContexts){const r=ps(e.ProvidedContexts,t);0===e.ProvidedContexts?.length&&(n.ProvidedContexts=[]),Object.entries(r).forEach((([e,t])=>{n[`ProvidedContexts.${e}`]=t}))}return n},cs=(e,t)=>{const n={};if(null!=e.RoleArn&&(n.RoleArn=e.RoleArn),null!=e.RoleSessionName&&(n.RoleSessionName=e.RoleSessionName),null!=e.WebIdentityToken&&(n.WebIdentityToken=e.WebIdentityToken),null!=e.ProviderId&&(n.ProviderId=e.ProviderId),null!=e.PolicyArns){const r=ls(e.PolicyArns,t);0===e.PolicyArns?.length&&(n.PolicyArns=[]),Object.entries(r).forEach((([e,t])=>{n[`PolicyArns.${e}`]=t}))}return null!=e.Policy&&(n.Policy=e.Policy),null!=e.DurationSeconds&&(n.DurationSeconds=e.DurationSeconds),n},ls=(e,t)=>{const n={};let r=1;for(const s of e){if(null===s)continue;const e=us(s,t);Object.entries(e).forEach((([e,t])=>{n[`member.${r}.${e}`]=t})),r++}return n},us=(e,t)=>{const n={};return null!=e.arn&&(n.arn=e.arn),n},ds=(e,t)=>{const n={};return null!=e.ProviderArn&&(n.ProviderArn=e.ProviderArn),null!=e.ContextAssertion&&(n.ContextAssertion=e.ContextAssertion),n},ps=(e,t)=>{const n={};let r=1;for(const t of e){if(null===t)continue;const e=ds(t);Object.entries(e).forEach((([e,t])=>{n[`member.${r}.${e}`]=t})),r++}return n},hs=(e,t)=>{const n={};return null!=e.Key&&(n.Key=e.Key),null!=e.Value&&(n.Value=e.Value),n},fs=(e,t)=>{const n={};let r=1;for(const t of e)null!==t&&(n[`member.${r}`]=t,r++);return n},ms=(e,t)=>{const n={};let r=1;for(const t of e){if(null===t)continue;const e=hs(t);Object.entries(e).forEach((([e,t])=>{n[`member.${r}.${e}`]=t})),r++}return n},gs=(e,t)=>{const n={};return void 0!==e.AssumedRoleId&&(n.AssumedRoleId=sr(e.AssumedRoleId)),void 0!==e.Arn&&(n.Arn=sr(e.Arn)),n},ys=(e,t)=>{const n={};return void 0!==e.AccessKeyId&&(n.AccessKeyId=sr(e.AccessKeyId)),void 0!==e.SecretAccessKey&&(n.SecretAccessKey=sr(e.SecretAccessKey)),void 0!==e.SessionToken&&(n.SessionToken=sr(e.SessionToken)),void 0!==e.Expiration&&(n.Expiration=nr(mr(e.Expiration))),n},bs=(e,t)=>{const n={};return void 0!==e.message&&(n.message=sr(e.message)),n},ws=(e,t)=>{const n={};return void 0!==e.message&&(n.message=sr(e.message)),n},xs=(e,t)=>{const n={};return void 0!==e.message&&(n.message=sr(e.message)),n},vs=(e,t)=>{const n={};return void 0!==e.message&&(n.message=sr(e.message)),n},Es=(e,t)=>{const n={};return void 0!==e.message&&(n.message=sr(e.message)),n},Ss=(e,t)=>{const n={};return void 0!==e.message&&(n.message=sr(e.message)),n},ks=(e,t)=>{const n={};return void 0!==e.message&&(n.message=sr(e.message)),n},As=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"]}),Is=Ir(Mr),Ts=async(e,t,n,r,s)=>{const{hostname:i,protocol:o="https",port:a,path:c}=await e.endpoint(),l={protocol:o,hostname:i,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return void 0!==r&&(l.hostname=r),void 0!==s&&(l.body=s),new f(l)},Ns={"content-type":"application/x-www-form-urlencoded"},Cs=(e,t)=>((e,t)=>Hn(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length){const t=new Qr.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 n=t.parse(e),r="#text",s=Object.keys(n)[0],i=n[s];return i[r]&&(i[s]=i[r],delete i[r]),Lr(i)}return{}})),Ps=async(e,t)=>{const n=await Cs(e,t);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n},Os=e=>Object.entries(e).map((([e,t])=>Or(e)+"="+Or(t))).join("&"),Ls=(e,t)=>void 0!==t.Error?.Code?t.Error.Code:404==e.statusCode?"NotFound":void 0;class Rs extends Gn{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,n){this.middlewareStack.use(jt(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(t,Rs.getEndpointParameterInstructions())),this.middlewareStack.use(Pe(t));const r=e.concat(this.middlewareStack),{logger:s}=t,i={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:Jr},{requestHandler:o}=t;return r.resolve((e=>o.handle(e.request,n||{})),i)}serialize(e,t){return(async(e,t)=>{const n=Ns;let r;return r=Os({...as(e,t),Action:"AssumeRole",Version:"2011-06-15"}),Ts(t,n,"/",void 0,r)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Ps(e.body,t)},r=Ls(e,n.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await es(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await ss(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await is(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await os(n,t);default:const s=n.body;return Is({output:e,parsedBody:s.Error,errorCode:r})}})(e,t);let n={};return n=((e,t)=>{const n={};return void 0!==e.Credentials&&(n.Credentials=ys(e.Credentials,t)),void 0!==e.AssumedRoleUser&&(n.AssumedRoleUser=gs(e.AssumedRoleUser)),void 0!==e.PackedPolicySize&&(n.PackedPolicySize=ur(e.PackedPolicySize)),void 0!==e.SourceIdentity&&(n.SourceIdentity=sr(e.SourceIdentity)),n})((await Cs(e.body,t)).AssumeRoleResult,t),{$metadata:As(e),...n}})(e,t)}}class Ds extends Gn{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,n){this.middlewareStack.use(jt(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(t,Ds.getEndpointParameterInstructions()));const r=e.concat(this.middlewareStack),{logger:s}=t,i={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:Yr,outputFilterSensitiveLog:Xr},{requestHandler:o}=t;return r.resolve((e=>o.handle(e.request,n||{})),i)}serialize(e,t){return(async(e,t)=>{const n=Ns;let r;return r=Os({...cs(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),Ts(t,n,"/",void 0,r)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Ps(e.body,t)},r=Ls(e,n.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await es(n,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await ts(n,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await ns(n,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await rs(n,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await ss(n,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await is(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await os(n,t);default:const s=n.body;return Is({output:e,parsedBody:s.Error,errorCode:r})}})(e,t);let n={};return n=((e,t)=>{const n={};return void 0!==e.Credentials&&(n.Credentials=ys(e.Credentials,t)),void 0!==e.SubjectFromWebIdentityToken&&(n.SubjectFromWebIdentityToken=sr(e.SubjectFromWebIdentityToken)),void 0!==e.AssumedRoleUser&&(n.AssumedRoleUser=gs(e.AssumedRoleUser)),void 0!==e.PackedPolicySize&&(n.PackedPolicySize=ur(e.PackedPolicySize)),void 0!==e.Provider&&(n.Provider=sr(e.Provider)),void 0!==e.Audience&&(n.Audience=sr(e.Audience)),void 0!==e.SourceIdentity&&(n.SourceIdentity=sr(e.SourceIdentity)),n})((await Cs(e.body,t)).AssumeRoleWithWebIdentityResult,t),{$metadata:As(e),...n}})(e,t)}}const _s="us-east-1",$s=e=>"function"!=typeof e?void 0===e?_s:e:async()=>{try{return await e()}catch(e){return _s}},qs=(e,t)=>{let n,r;return async(s,i)=>{if(r=s,!n){const{logger:s,region:i,requestHandler:o}=e;n=new t({logger:s,credentialDefaultProvider:()=>async()=>r,region:$s(i||e.region),...o?{requestHandler:o}:{}})}const{Credentials:o}=await n.send(new Rs(i));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}},Bs=(e,t)=>{let n;return async r=>{if(!n){const{logger:r,region:s,requestHandler:i}=e;n=new t({logger:r,region:$s(s||e.region),...i?{requestHandler:i}:{}})}const{Credentials:s}=await n.send(new Ds(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};class js extends Error{constructor(e,t=!0){super(e),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,js.prototype)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}class Us extends js{constructor(e,t=!0){super(e,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Us.prototype)}}const Ms=()=>async()=>{const e=process.env.AWS_ACCESS_KEY_ID,t=process.env.AWS_SECRET_ACCESS_KEY,n=process.env.AWS_SESSION_TOKEN,r=process.env.AWS_CREDENTIAL_EXPIRATION;if(e&&t)return{accessKeyId:e,secretAccessKey:t,...n&&{sessionToken:n},...r&&{expiration:new Date(r)}};throw new Us("Unable to find environment variable credentials.")},Fs=require("os"),zs=require("path"),Vs=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${zs.sep}`}=process.env;return e||t||(n?`${r}${n}`:(0,Fs.homedir)())},Ws="AWS_PROFILE",Hs=e=>e.profile||process.env[Ws]||"default",Gs=e=>{const t=(0,fn.createHash)("sha1").update(e).digest("hex");return(0,zs.join)(Vs(),".aws","sso","cache",`${t}.json`)},Ks=require("fs"),{readFile:Zs}=Ks.promises,Js=async e=>{const t=Gs(e),n=await Zs(t,"utf8");return JSON.parse(n)},Ys=()=>process.env.AWS_CONFIG_FILE||(0,zs.join)(Vs(),".aws","config"),Xs=()=>process.env.AWS_SHARED_CREDENTIALS_FILE||(0,zs.join)(Vs(),".aws","credentials"),Qs=/^profile\s(["'])?([^\1]+)\1$/,ei=e=>Object.entries(e).filter((([e])=>Qs.test(e))).reduce(((e,[t,n])=>({...e,[Qs.exec(t)[2]]:n})),{...e.default&&{default:e.default}}),ti=["__proto__","profile __proto__"],ni=e=>{const t={};let n;for(let r of e.split(/\r?\n/))if(r=r.split(/(^|\s)[;#]/)[0].trim(),"["===r[0]&&"]"===r[r.length-1]){if(n=r.substring(1,r.length-1),ti.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){const e=r.indexOf("="),s=0,i=r.length-1;if(-1!==e&&e!==s&&e!==i){const[s,i]=[r.substring(0,e).trim(),r.substring(e+1).trim()];t[n]=t[n]||{},t[n][s]=i}}return t},{readFile:ri}=Ks.promises,si={},ii=(e,t)=>(si[e]&&!t?.ignoreCache||(si[e]=ri(e,"utf8")),si[e]),oi=()=>({}),ai=async(e={})=>{const{filepath:t=Xs(),configFilepath:n=Ys()}=e,r=await Promise.all([ii(n,{ignoreCache:e.ignoreCache}).then(ni).then(ei).catch(oi),ii(t,{ignoreCache:e.ignoreCache}).then(ni).catch(oi)]);return{configFile:r[0],credentialsFile:r[1]}},ci=/^sso-session\s(["'])?([^\1]+)\1$/,li=e=>Object.entries(e).filter((([e])=>ci.test(e))).reduce(((e,[t,n])=>({...e,[ci.exec(t)[2]]:n})),{}),ui=()=>({}),di=async(e={})=>ii(e.configFilepath??Ys()).then(ni).then(li).catch(ui),pi=async e=>{const t=await ai(e);return((...e)=>{const t={};for(const n of e)for(const[e,r]of Object.entries(n))void 0!==t[e]?Object.assign(t[e],r):t[e]=r;return t})(t.configFile,t.credentialsFile)},hi=require("url");function fi(e){return new Promise(((t,n)=>{const r=(0,Bn.request)({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});r.on("error",(e=>{n(Object.assign(new js("Unable to connect to instance metadata service"),e)),r.destroy()})),r.on("timeout",(()=>{n(new js("TimeoutError from instance metadata service")),r.destroy()})),r.on("response",(e=>{const{statusCode:s=400}=e;(s<200||300<=s)&&(n(Object.assign(new js("Error response received from instance metadata service"),{statusCode:s})),r.destroy());const i=[];e.on("data",(e=>{i.push(e)})),e.on("end",(()=>{t(z.Buffer.concat(i)),r.destroy()}))})),r.end()}))}const mi=e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.AccessKeyId&&"string"==typeof e.SecretAccessKey&&"string"==typeof e.Token&&"string"==typeof e.Expiration,gi=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),yi=({maxRetries:e=0,timeout:t=1e3})=>({maxRetries:e,timeout:t}),bi=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n},wi="AWS_CONTAINER_CREDENTIALS_FULL_URI",xi="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",vi="AWS_CONTAINER_AUTHORIZATION_TOKEN",Ei=(e={})=>{const{timeout:t,maxRetries:n}=yi(e);return()=>bi((async()=>{const e=await Ii(),n=JSON.parse(await Si(t,e));if(!mi(n))throw new Us("Invalid response received from instance metadata service.");return gi(n)}),n)},Si=async(e,t)=>(process.env[vi]&&(t.headers={...t.headers,Authorization:process.env[vi]}),(await fi({...t,timeout:e})).toString()),ki={localhost:!0,"127.0.0.1":!0},Ai={"http:":!0,"https:":!0},Ii=async()=>{if(process.env[xi])return{hostname:"169.254.170.2",path:process.env[xi]};if(process.env[wi]){const e=(0,hi.parse)(process.env[wi]);if(!e.hostname||!(e.hostname in ki))throw new Us(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in Ai))throw new Us(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Us(`The container metadata credential provider cannot be used unless the ${xi} or ${wi} environment variable is set`,!1)};function Ti(...e){return()=>{let t=Promise.reject(new js("No providers in chain"));for(const n of e)t=t.catch((e=>{if(e?.tryNextLink)return n();throw e}));return t}}const Ni=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>{return S(Ti((s=e,async()=>{try{const e=s(process.env);if(void 0===e)throw new Error;return e}catch(e){throw new Us(e.message||`Cannot load config from environment variables with getter: ${s}`)}}),((e,{preferredFile:t="config",...n}={})=>async()=>{const r=Hs(n),{configFile:s,credentialsFile:i}=await ai(n),o=i[r]||{},a=s[r]||{},c="config"===t?{...o,...a}:{...a,...o};try{const t=e(c);if(void 0===t)throw new Error;return t}catch(t){throw new Us(t.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}})(t,r),(e=>{return"function"==typeof e?async()=>await e():(t=e,()=>Promise.resolve(t));var t})(n)));var s};var Ci;!function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"}(Ci||(Ci={}));const Pi={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:e=>e.ec2_metadata_service_endpoint,default:void 0};var Oi;!function(e){e.IPv4="IPv4",e.IPv6="IPv6"}(Oi||(Oi={}));const Li={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE,configFileSelector:e=>e.ec2_metadata_service_endpoint_mode,default:Oi.IPv4},Ri=async()=>Gt(await Di()||await _i()),Di=async()=>Ni(Pi)(),_i=async()=>{const e=await Ni(Li)();switch(e){case Oi.IPv4:return Ci.IPv4;case Oi.IPv6:return Ci.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(Oi)}`)}},$i=(e,t)=>{const n=300+Math.floor(300*Math.random()),r=new Date(Date.now()+1e3*n);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 s=e.originalExpiration??e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:r}},qi="/latest/meta-data/iam/security-credentials/",Bi=(e={})=>((e,t={})=>{const n=t?.logger||console;let r;return async()=>{let t;try{t=await e(),t.expiration&&t.expiration.getTime()<Date.now()&&(t=$i(t,n))}catch(e){if(!r)throw e;n.warn("Credential renew failed: ",e),t=$i(r,n)}return r=t,t}})(ji(e),{logger:e.logger}),ji=e=>{let t=!1;const{timeout:n,maxRetries:r}=yi(e),s=async(e,n)=>{const r=(await bi((async()=>{let e;try{e=await Mi(n)}catch(e){throw 401===e.statusCode&&(t=!1),e}return e}),e)).trim();return bi((async()=>{let e;try{e=await Fi(r,n)}catch(e){throw 401===e.statusCode&&(t=!1),e}return e}),e)};return async()=>{const e=await Ri();if(t)return s(r,{...e,timeout:n});{let i;try{i=(await Ui({...e,timeout:n})).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),s(r,{...e,timeout:n})}return s(r,{...e,headers:{"x-aws-ec2-metadata-token":i},timeout:n})}}},Ui=async e=>fi({...e,path:"/latest/api/token",method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Mi=async e=>(await fi({...e,path:qi})).toString(),Fi=async(e,t)=>{const n=JSON.parse((await fi({...t,path:qi+e})).toString());if(!mi(n))throw new Us("Invalid response received from instance metadata service.");return gi(n)},zi=require("child_process"),Vi=(e={})=>async()=>{const t=await pi(e);return(async(e,t)=>{const n=t[e];if(!t[e])throw new Us(`Profile ${e} could not be found in shared credentials file.`);{const t=n.credential_process;if(void 0===t)throw new Us(`Profile ${e} did not contain credential_process.`);{const n=(0,Wn.promisify)(zi.exec);try{const{stdout:r}=await n(t);let s;try{s=JSON.parse(r.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 n=new Date;if(new Date(t.Expiration)<n)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,s)}catch(e){throw new Us(e.message)}}}})(Hs(e),t)},Wi=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),Hi=require("process"),Gi=({serviceId:e,clientVersion:t})=>{const r=[["aws-sdk-js",t],["ua","2.0"],[`os/${(0,Fs.platform)()}`,(0,Fs.release)()],["lang/js"],["md/nodejs",`${Hi.versions.node}`]],s=(()=>{try{return n(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}})();s&&r.push(s),e&&r.push([`api/${e}`,t]),Hi.env.AWS_EXECUTION_ENV&&r.push([`exec-env/${Hi.env.AWS_EXECUTION_ENV}`]);const i=Ni({environmentVariableSelector:e=>e.AWS_SDK_UA_APP_ID,configFileSelector:e=>e["sdk-ua-app-id"],default:void 0})();let o;return async()=>{if(!o){const e=await i;o=e?[...r,[`app/${e}`]]:[...r]}return o}};class Ki{constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update(G(Zi(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,fn.createHmac)(this.algorithmIdentifier,Zi(this.secret)):(0,fn.createHash)(this.algorithmIdentifier)}}function Zi(e,t){return z.Buffer.isBuffer(e)?e:"string"==typeof e?W(e,t):ArrayBuffer.isView(e)?V(e.buffer,e.byteOffset,e.byteLength):V(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,Ks.lstatSync)(e.path).size;if("number"==typeof e.fd)return(0,Ks.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},Yi="required",Xi="fn",Qi="argv",eo="ref",to="PartitionResult",no="tree",ro="error",so="endpoint",io={[Yi]:!1,type:"String"},oo={[Yi]:!0,default:!1,type:"Boolean"},ao={[eo]:"Endpoint"},co={[Xi]:"booleanEquals",[Qi]:[{[eo]:"UseFIPS"},!0]},lo={[Xi]:"booleanEquals",[Qi]:[{[eo]:"UseDualStack"},!0]},uo={},po={[Xi]:"booleanEquals",[Qi]:[!0,{[Xi]:"getAttr",[Qi]:[{[eo]:to},"supportsFIPS"]}]},ho={[Xi]:"booleanEquals",[Qi]:[!0,{[Xi]:"getAttr",[Qi]:[{[eo]:to},"supportsDualStack"]}]},fo=[ao],mo=[co],go=[lo],yo={version:"1.0",parameters:{Region:io,UseDualStack:oo,UseFIPS:oo,Endpoint:io},rules:[{conditions:[{[Xi]:"aws.partition",[Qi]:[{[eo]:"Region"}],assign:to}],type:no,rules:[{conditions:[{[Xi]:"isSet",[Qi]:fo},{[Xi]:"parseURL",[Qi]:fo,assign:"url"}],type:no,rules:[{conditions:mo,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ro},{type:no,rules:[{conditions:go,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ro},{endpoint:{url:ao,properties:uo,headers:uo},type:so}]}]},{conditions:[co,lo],type:no,rules:[{conditions:[po,ho],type:no,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:uo,headers:uo},type:so}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ro}]},{conditions:mo,type:no,rules:[{conditions:[po],type:no,rules:[{type:no,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:uo,headers:uo},type:so}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:ro}]},{conditions:go,type:no,rules:[{conditions:[ho],type:no,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:uo,headers:uo},type:so}]},{error:"DualStack is enabled but this partition does not support DualStack",type:ro}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:uo,headers:uo},type:so}]}]},bo=(e,t={})=>yt(yo,{endpointParams:e,logger:t.logger}),wo="AWS_REGION",xo="AWS_DEFAULT_REGION",vo=["in-region","cross-region","mobile","standard","legacy"],Eo={environmentVariableSelector:e=>e.AWS_DEFAULTS_MODE,configFileSelector:e=>e.defaults_mode,default:"legacy"},So=({region:e=Ni(Ct),defaultsMode:t=Ni(Eo)}={})=>S((async()=>{const n="function"==typeof t?await t():t;switch(n?.toLowerCase()){case"auto":return ko(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${vo.join(", ")}, got ${n}`)}})),ko=async e=>{if(e){const t="function"==typeof e?await e():e,n=await Ao();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},Ao=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env[wo]||process.env[xo]))return process.env[wo]??process.env[xo];if(!process.env.AWS_EC2_METADATA_DISABLED)try{const e=await Ri();return(await fi({...e,path:"/latest/meta-data/placement/region"})).toString()}catch(e){}};class Io extends Ln{constructor(...[e]){const t=(n=(e=>{Pr(process.version);const t=So(e),n=()=>t().then(Nr),r=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dn,base64Encoder:e?.base64Encoder??_n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??bo,extensions:e?.extensions??[],logger:e?.logger??new Nn,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??Gt,utf8Decoder:e?.utf8Decoder??H,utf8Encoder:e?.utf8Encoder??K}))(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ji,defaultUserAgentProvider:e?.defaultUserAgentProvider??Gi({serviceId:r.serviceId,clientVersion:"3.395.0"}),maxAttempts:e?.maxAttempts??Ni(dn),region:e?.region??Ni(Ct,Pt),requestHandler:e?.requestHandler??new Fn(n),retryMode:e?.retryMode??Ni({...hn,default:async()=>(await n()).retryMode||Yt}),sha256:e?.sha256??Ki.bind(null,"sha256"),streamCollector:e?.streamCollector??Vn,useDualstackEndpoint:e?.useDualstackEndpoint??Ni(Tt),useFipsEndpoint:e?.useFipsEndpoint??Ni(Nt)}})(e||{}),{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});var n;const r=Rt(t),s=Kt(r),i=((e,t)=>{const n={...l(e)};return t.forEach((e=>e.configureClient(n))),{...e,...u(n)}})(Oe(pn(s)),e?.extensions||[]);super(i),this.config=i,this.middlewareStack.use(In(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(y(this.config)),this.middlewareStack.use(w(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(kt(this.config))}destroy(){super.destroy()}}class To extends kr{constructor(e){super(e),Object.setPrototypeOf(this,To.prototype)}}class No extends To{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,No.prototype)}}class Co extends To{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Co.prototype)}}class Po extends To{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Po.prototype)}}class Oo extends To{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Oo.prototype)}}const Lo=e=>({...e,...e.accessToken&&{accessToken:Kn}}),Ro=e=>({...e,...e.secretAccessKey&&{secretAccessKey:Kn},...e.sessionToken&&{sessionToken:Kn}}),Do=e=>({...e,...e.roleCredentials&&{roleCredentials:Ro(e.roleCredentials)}}),_o=Ir(To),$o=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new No({$metadata:Uo(e),...n});return Ar(i,e.body)},qo=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new Co({$metadata:Uo(e),...n});return Ar(i,e.body)},Bo=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new Po({$metadata:Uo(e),...n});return Ar(i,e.body)},jo=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new Oo({$metadata:Uo(e),...n});return Ar(i,e.body)},Uo=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=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),Fo=(e,t)=>((e,t)=>Hn(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),zo=async(e,t)=>{const n=await Fo(e,t);return n.message=n.message??n.Message,n},Vo=(e,t)=>{const n=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},r=(s=e.headers,"x-amzn-errortype",Object.keys(s).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var s;return void 0!==r?n(e.headers[r]):void 0!==t.code?n(t.code):void 0!==t.__type?n(t.__type):void 0};class Wo extends Gn{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,n){this.middlewareStack.use(jt(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(t,Wo.getEndpointParameterInstructions()));const r=e.concat(this.middlewareStack),{logger:s}=t,i={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:Lo,outputFilterSensitiveLog:Do},{requestHandler:o}=t;return r.resolve((e=>o.handle(e.request,n||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),o=Dr({},Mo,{"x-amz-sso_bearer_token":e.accessToken}),a=`${i?.endsWith("/")?i.slice(0,-1):i||""}/federation/credentials`,c=Dr({role_name:[,nr(e.roleName,"roleName")],account_id:[,nr(e.accountId,"accountId")]});return new f({protocol:r,hostname:n,port:s,method:"GET",headers:o,path:a,query:c,body:void 0})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await zo(e.body,t)},r=Vo(e,n.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await $o(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await qo(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Bo(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await jo(n,t);default:const s=n.body;return _o({output:e,parsedBody:s,errorCode:r})}})(e,t);const n=Dr({$metadata:Uo(e)}),r=nr(rr(await Fo(e.body,t)),"body"),s=_r(r,{roleCredentials:Ur});return Object.assign(n,s),n})(e,t)}}class Ho extends js{constructor(e,t=!0){super(e,t),this.tryNextLink=t,this.name="TokenProviderError",Object.setPrototypeOf(this,Ho.prototype)}}const Go="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var Ko="required",Zo="fn",Jo="argv",Yo="ref",Xo="PartitionResult",Qo="tree",ea="error",ta="endpoint",na={[Ko]:!1,type:"String"},ra={[Ko]:!0,default:!1,type:"Boolean"},sa={[Yo]:"Endpoint"},ia={[Zo]:"booleanEquals",[Jo]:[{[Yo]:"UseFIPS"},!0]},oa={[Zo]:"booleanEquals",[Jo]:[{[Yo]:"UseDualStack"},!0]},aa={},ca={[Zo]:"booleanEquals",[Jo]:[!0,{[Zo]:"getAttr",[Jo]:[{[Yo]:Xo},"supportsFIPS"]}]},la={[Zo]:"booleanEquals",[Jo]:[!0,{[Zo]:"getAttr",[Jo]:[{[Yo]:Xo},"supportsDualStack"]}]},ua=[sa],da=[ia],pa=[oa],ha={version:"1.0",parameters:{Region:na,UseDualStack:ra,UseFIPS:ra,Endpoint:na},rules:[{conditions:[{[Zo]:"aws.partition",[Jo]:[{[Yo]:"Region"}],assign:Xo}],type:Qo,rules:[{conditions:[{[Zo]:"isSet",[Jo]:ua},{[Zo]:"parseURL",[Jo]:ua,assign:"url"}],type:Qo,rules:[{conditions:da,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ea},{type:Qo,rules:[{conditions:pa,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ea},{endpoint:{url:sa,properties:aa,headers:aa},type:ta}]}]},{conditions:[ia,oa],type:Qo,rules:[{conditions:[ca,la],type:Qo,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:aa,headers:aa},type:ta}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ea}]},{conditions:da,type:Qo,rules:[{conditions:[ca],type:Qo,rules:[{type:Qo,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:aa,headers:aa},type:ta}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:ea}]},{conditions:pa,type:Qo,rules:[{conditions:[la],type:Qo,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:aa,headers:aa},type:ta}]},{error:"DualStack is enabled but this partition does not support DualStack",type:ea}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:aa,headers:aa},type:ta}]}]},fa=(e,t={})=>yt(ha,{endpointParams:e,logger:t.logger}),ma=class extends Ln{constructor(...[e]){const t=(n=(e=>{Pr(process.version);const t=So(e),n=()=>t().then(Nr),r=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dn,base64Encoder:e?.base64Encoder??_n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??fa,logger:e?.logger??new Nn,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??Gt,utf8Decoder:e?.utf8Decoder??H,utf8Encoder:e?.utf8Encoder??K}))(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ji,defaultUserAgentProvider:e?.defaultUserAgentProvider??Gi({serviceId:r.serviceId,clientVersion:"3.387.0"}),maxAttempts:e?.maxAttempts??Ni(dn),region:e?.region??Ni(Ct,Pt),requestHandler:e?.requestHandler??new Fn(n),retryMode:e?.retryMode??Ni({...hn,default:async()=>(await n()).retryMode||Yt}),sha256:e?.sha256??Ki.bind(null,"sha256"),streamCollector:e?.streamCollector??Vn,useDualstackEndpoint:e?.useDualstackEndpoint??Ni(Tt),useFipsEndpoint:e?.useFipsEndpoint??Ni(Nt)}})(e||{}),{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"awsssooidc"});var n;const r=Rt(t),s=Kt(r),i=Oe(pn(s));super(i),this.config=i,this.middlewareStack.use(In(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(y(this.config)),this.middlewareStack.use(w(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(kt(this.config))}destroy(){super.destroy()}},ga=class e extends kr{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},ya=class e extends ga{constructor(t){super({name:"AccessDeniedException",$fault:"client",...t}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},ba=class e extends ga{constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},wa=class e extends ga{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},xa=class e extends ga{constructor(t){super({name:"InternalServerException",$fault:"server",...t}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},va=class e extends ga{constructor(t){super({name:"InvalidClientException",$fault:"client",...t}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Ea=class e extends ga{constructor(t){super({name:"InvalidGrantException",$fault:"client",...t}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Sa=class e extends ga{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},ka=class e extends ga{constructor(t){super({name:"InvalidScopeException",$fault:"client",...t}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Aa=class e extends ga{constructor(t){super({name:"SlowDownException",$fault:"client",...t}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Ia=class e extends ga{constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Ta=class e extends ga{constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Na=class e extends ga{constructor(t){super({name:"InvalidClientMetadataException",$fault:"client",...t}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Ca=Ir(ga),Pa=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new ya({$metadata:Fa(e),...n});return Ar(i,e.body)},Oa=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new ba({$metadata:Fa(e),...n});return Ar(i,e.body)},La=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new wa({$metadata:Fa(e),...n});return Ar(i,e.body)},Ra=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new xa({$metadata:Fa(e),...n});return Ar(i,e.body)},Da=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new va({$metadata:Fa(e),...n});return Ar(i,e.body)},_a=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new Na({$metadata:Fa(e),...n});return Ar(i,e.body)},$a=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new Ea({$metadata:Fa(e),...n});return Ar(i,e.body)},qa=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new Sa({$metadata:Fa(e),...n});return Ar(i,e.body)},Ba=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new ka({$metadata:Fa(e),...n});return Ar(i,e.body)},ja=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new Aa({$metadata:Fa(e),...n});return Ar(i,e.body)},Ua=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new Ia({$metadata:Fa(e),...n});return Ar(i,e.body)},Ma=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{error:sr,error_description:sr});Object.assign(n,s);const i=new Ta({$metadata:Fa(e),...n});return Ar(i,e.body)},Fa=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"]}),za=(e,t)=>((e,t)=>Hn(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),Va=async(e,t)=>{const n=await za(e,t);return n.message=n.message??n.Message,n},Wa=(e,t)=>{const n=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},r=(s=e.headers,"x-amzn-errortype",Object.keys(s).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var s;return void 0!==r?n(e.headers[r]):void 0!==t.code?n(t.code):void 0!==t.__type?n(t.__type):void 0},Ha=class e extends Gn{constructor(e){super(),this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use(jt(n,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(n,e.getEndpointParameterInstructions()));const s=t.concat(this.middlewareStack),{logger:i}=n,o={logger:i,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:a}=n;return s.resolve((e=>a.handle(e.request,r||{})),o)}serialize(e,t){return(async(e,t)=>{const{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/token`;let a;return a=JSON.stringify(_r(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:e=>Ur(e)})),new f({protocol:r,hostname:n,port:s,method:"POST",headers:{"content-type":"application/json"},path:o,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Va(e.body,t)},r=Wa(e,n.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Pa(n,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Oa(n,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await La(n,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ra(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Da(n,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await $a(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await qa(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Ba(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await ja(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Ua(n,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await Ma(n,t);default:const s=n.body;return Ca({output:e,parsedBody:s,errorCode:r})}})(e,t);const n=Dr({$metadata:Fa(e)}),r=nr(rr(await za(e.body,t)),"body"),s=_r(r,{accessToken:sr,expiresIn:Qn,idToken:sr,refreshToken:sr,tokenType:sr});return Object.assign(n,s),n})(e,t)}},Ga={CreateTokenCommand:Ha,RegisterClientCommand:class e extends Gn{constructor(e){super(),this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use(jt(n,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(n,e.getEndpointParameterInstructions()));const s=t.concat(this.middlewareStack),{logger:i}=n,o={logger:i,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:a}=n;return s.resolve((e=>a.handle(e.request,r||{})),o)}serialize(e,t){return(async(e,t)=>{const{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/client/register`;let a;return a=JSON.stringify(_r(e,{clientName:[],clientType:[],scopes:e=>Ur(e)})),new f({protocol:r,hostname:n,port:s,method:"POST",headers:{"content-type":"application/json"},path:o,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Va(e.body,t)},r=Wa(e,n.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ra(n,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await _a(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await qa(n,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Ba(n,t);default:const s=n.body;return Ca({output:e,parsedBody:s,errorCode:r})}})(e,t);const n=Dr({$metadata:Fa(e)}),r=nr(rr(await za(e.body,t)),"body"),s=_r(r,{authorizationEndpoint:sr,clientId:sr,clientIdIssuedAt:Xn,clientSecret:sr,clientSecretExpiresAt:Xn,tokenEndpoint:sr});return Object.assign(n,s),n})(e,t)}},StartDeviceAuthorizationCommand:class e extends Gn{constructor(e){super(),this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,n,r){this.middlewareStack.use(jt(n,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(n,e.getEndpointParameterInstructions()));const s=t.concat(this.middlewareStack),{logger:i}=n,o={logger:i,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:a}=n;return s.resolve((e=>a.handle(e.request,r||{})),o)}serialize(e,t){return(async(e,t)=>{const{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/device_authorization`;let a;return a=JSON.stringify(_r(e,{clientId:[],clientSecret:[],startUrl:[]})),new f({protocol:r,hostname:n,port:s,method:"POST",headers:{"content-type":"application/json"},path:o,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Va(e.body,t)},r=Wa(e,n.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ra(n,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Da(n,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await qa(n,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await ja(n,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Ua(n,t);default:const s=n.body;return Ca({output:e,parsedBody:s,errorCode:r})}})(e,t);const n=Dr({$metadata:Fa(e)}),r=nr(rr(await za(e.body,t)),"body"),s=_r(r,{deviceCode:sr,expiresIn:Qn,interval:Qn,userCode:sr,verificationUri:sr,verificationUriComplete:sr});return Object.assign(n,s),n})(e,t)}}};((e,t)=>{for(const n of Object.keys(e)){const r=e[n],s=async function(e,t,n){const s=new r(e);if("function"==typeof t)this.send(s,t);else{if("function"!=typeof n)return this.send(s,t);if("object"!=typeof t)throw new Error("Expected http options but got "+typeof t);this.send(s,t||{},n)}},i=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[i]=s}})(Ga,class extends ma{});const Ka={},Za=e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new Ho(`Token is expired. ${Go}`,!1)},Ja=(e,t,n=!1)=>{if(void 0===t)throw new Ho(`Value not present for '${e}' in SSO Token${n?". Cannot refresh":""}. ${Go}`,!1)},{writeFile:Ya}=Ks.promises,Xa=new Date(0),Qa=(e={})=>async()=>{const t=await pi(e),n=Hs(e),r=t[n];if(!r)throw new Ho(`Profile '${n}' could not be found in shared credentials file.`,!1);if(!r.sso_session)throw new Ho(`Profile '${n}' is missing required property 'sso_session'.`);const s=r.sso_session,i=(await di(e))[s];if(!i)throw new Ho(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(const e of["sso_start_url","sso_region"])if(!i[e])throw new Ho(`Sso session '${s}' is missing required property '${e}'.`,!1);i.sso_start_url;const o=i.sso_region;let a;try{a=await Js(s)}catch(e){throw new Ho(`The SSO session token associated with profile=${n} was not found or is invalid. ${Go}`,!1)}Ja("accessToken",a.accessToken),Ja("expiresAt",a.expiresAt);const{accessToken:c,expiresAt:l}=a,u={token:c,expiration:new Date(l)};if(u.expiration.getTime()-Date.now()>3e5)return u;if(Date.now()-Xa.getTime()<3e4)return Za(u),u;Ja("clientId",a.clientId,!0),Ja("clientSecret",a.clientSecret,!0),Ja("refreshToken",a.refreshToken,!0);try{Xa.setTime(Date.now());const e=await((e,t)=>{const n=(e=>{if(Ka[e])return Ka[e];const t=new ma({region:e});return Ka[e]=t,t})(t);return n.send(new Ha({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))})(a,o);Ja("accessToken",e.accessToken),Ja("expiresIn",e.expiresIn);const t=new Date(Date.now()+1e3*e.expiresIn);try{await((e,t)=>{const n=Gs(e),r=JSON.stringify(t,null,2);return Ya(n,r)})(s,{...a,accessToken:e.accessToken,expiresAt:t.toISOString(),refreshToken:e.refreshToken})}catch(e){}return{token:e.accessToken,expiration:t}}catch(e){return Za(u),u}},ec=!1,tc=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:s,ssoClient:i,profile:o})=>{let a;const c="To refresh this SSO session run aws sso login with the corresponding profile.";if(t)try{const e=await Qa({profile:o})();a={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new Us(e.message,ec)}else try{a=await Js(e)}catch(e){throw new Us(`The SSO session associated with this profile is invalid. ${c}`,ec)}if(new Date(a.expiresAt).getTime()-Date.now()<=9e5)throw new Us(`The SSO session associated with this profile has expired. ${c}`,ec);const{accessToken:l}=a,u=i||new Io({region:r});let d;try{d=await u.send(new Wo({accountId:n,roleName:s,accessToken:l}))}catch(e){throw Us.from(e,ec)}const{roleCredentials:{accessKeyId:p,secretAccessKey:h,sessionToken:f,expiration:m}={}}=d;if(!(p&&h&&f&&m))throw new Us("SSO returns an invalid temporary credential.",ec);return{accessKeyId:p,secretAccessKey:h,sessionToken:f,expiration:new Date(m)}},nc=e=>{const{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:s}=e;if(!(t&&n&&r&&s))throw new Us(`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},rc=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:s,ssoClient:i,ssoSession:o}=e,a=Hs(e);if(t||n||r||s||o){if(t&&n&&r&&s)return tc({ssoStartUrl:t,ssoSession:o,ssoAccountId:n,ssoRegion:r,ssoRoleName:s,ssoClient:i,profile:a});throw new Us('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"')}{const n=(await pi(e))[a];if(!n)throw new Us(`Profile ${a} was not found.`);if(!Wi(n))throw new Us(`Profile ${a} is not configured with SSO credentials.`);if(n?.sso_session){const s=(await di(e))[n.sso_session],i=` configurations in profile ${a} and sso-session ${n.sso_session}`;if(r&&r!==s.sso_region)throw new Us("Conflicting SSO region"+i,!1);if(t&&t!==s.sso_start_url)throw new Us("Conflicting SSO start_url"+i,!1);n.sso_region=s.sso_region,n.sso_start_url=s.sso_start_url}const{sso_start_url:s,sso_account_id:o,sso_region:c,sso_role_name:l,sso_session:u}=nc(n);return tc({ssoStartUrl:s,ssoSession:u,ssoAccountId:o,ssoRegion:c,ssoRoleName:l,ssoClient:i,profile:a})}},sc=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,ic=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),oc=(e={})=>async()=>{const t=e?.webIdentityTokenFile??process.env.AWS_WEB_IDENTITY_TOKEN_FILE,n=e?.roleArn??process.env.AWS_ROLE_ARN,r=e?.roleSessionName??process.env.AWS_ROLE_SESSION_NAME;if(!t||!n)throw new Us("Web identity configuration not specified");return(e=>()=>{const{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:s,policyArns:i,policy:o,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new Us(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:s,PolicyArns:i,Policy:o,DurationSeconds:a})})({...e,webIdentityToken:(0,Ks.readFileSync)(t,{encoding:"ascii"}),roleArn:n,roleSessionName:r})()},ac=async(e,t,n,r={})=>{const s=t[e];if(Object.keys(r).length>0&&sc(s))return ic(s);if(i=s,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,n,r={})=>{const s=t[e];if(!n.roleAssumer)throw new Us(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);const{source_profile:i}=s;if(i&&i in r)throw new Us(`Detected a cycle attempting to resolve credentials for profile ${Hs(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);const o=i?ac(i,t,n,{...r,[i]:!0}):((e,t)=>{const n={EcsContainer:Ei,Ec2InstanceMetadata:Bi,Environment:Ms};if(e in n)return n[e]();throw new Us(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)})(s.credential_source,e)(),a={RoleArn:s.role_arn,RoleSessionName:s.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:s.external_id},{mfa_serial:c}=s;if(c){if(!n.mfaCodeProvider)throw new Us(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);a.SerialNumber=c,a.TokenCode=await n.mfaCodeProvider(c)}const l=await o;return n.roleAssumer(l,a)})(e,t,n,r);var i;if(sc(s))return ic(s);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)(s))return(async(e,t)=>oc({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})())(s,n);if((e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.credential_process)(s))return(async(e,t)=>Vi({...e,profile:t})())(n,e);if(Wi(s))return(e=>{const{sso_start_url:t,sso_account_id:n,sso_session:r,sso_region:s,sso_role_name:i}=nc(e);return rc({ssoStartUrl:t,ssoAccountId:n,ssoSession:r,ssoRegion:s,ssoRoleName:i})()})(s);throw new Us(`Profile ${e} could not be found or parsed in shared credentials file.`)},cc=(e={})=>S(Ti(...e.profile||process.env[Ws]?[]:[Ms()],rc(e),((e={})=>async()=>{const t=await pi(e);return ac(Hs(e),t,e)})(e),Vi(e),oc(e),(e=>process.env[xi]||process.env[wi]?Ei(e):process.env.AWS_EC2_METADATA_DISABLED?async()=>{throw new Us("EC2 Instance Metadata Service access disabled")}:Bi(e))(e),(async()=>{throw new Us("Could not load credentials from any providers",!1)})),(e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5),(e=>void 0!==e.expiration)),lc="required",uc="type",dc="fn",pc="argv",hc="ref",fc="booleanEquals",mc="tree",gc="stringEquals",yc="sigv4",bc="us-east-1",wc="endpoint",xc="https://sts.{Region}.{PartitionResult#dnsSuffix}",vc="error",Ec="getAttr",Sc={[lc]:!1,[uc]:"String"},kc={[lc]:!0,default:!1,[uc]:"Boolean"},Ac={[hc]:"Endpoint"},Ic={[dc]:"isSet",[pc]:[{[hc]:"Region"}]},Tc={[hc]:"Region"},Nc={[dc]:"aws.partition",[pc]:[Tc],assign:"PartitionResult"},Cc={[hc]:"UseFIPS"},Pc={[hc]:"UseDualStack"},Oc={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:yc,signingName:"sts",signingRegion:bc}]},headers:{}},Lc={},Rc={conditions:[{[dc]:gc,[pc]:[Tc,"aws-global"]}],[wc]:Oc,[uc]:wc},Dc={[dc]:fc,[pc]:[Cc,!0]},_c={[dc]:fc,[pc]:[Pc,!0]},$c={[dc]:fc,[pc]:[!0,{[dc]:Ec,[pc]:[{[hc]:"PartitionResult"},"supportsFIPS"]}]},qc={[hc]:"PartitionResult"},Bc={[dc]:fc,[pc]:[!0,{[dc]:Ec,[pc]:[qc,"supportsDualStack"]}]},jc=[{[dc]:"isSet",[pc]:[Ac]}],Uc=[Dc],Mc=[_c],Fc={version:"1.0",parameters:{Region:Sc,UseDualStack:kc,UseFIPS:kc,Endpoint:Sc,UseGlobalEndpoint:kc},rules:[{conditions:[{[dc]:fc,[pc]:[{[hc]:"UseGlobalEndpoint"},!0]},{[dc]:"not",[pc]:jc},Ic,Nc,{[dc]:fc,[pc]:[Cc,!1]},{[dc]:fc,[pc]:[Pc,!1]}],[uc]:mc,rules:[{conditions:[{[dc]:gc,[pc]:[Tc,"ap-northeast-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"ap-south-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"ap-southeast-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"ap-southeast-2"]}],endpoint:Oc,[uc]:wc},Rc,{conditions:[{[dc]:gc,[pc]:[Tc,"ca-central-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"eu-central-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"eu-north-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"eu-west-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"eu-west-2"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"eu-west-3"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"sa-east-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,bc]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"us-east-2"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"us-west-1"]}],endpoint:Oc,[uc]:wc},{conditions:[{[dc]:gc,[pc]:[Tc,"us-west-2"]}],endpoint:Oc,[uc]:wc},{endpoint:{url:xc,properties:{authSchemes:[{name:yc,signingName:"sts",signingRegion:"{Region}"}]},headers:Lc},[uc]:wc}]},{conditions:jc,[uc]:mc,rules:[{conditions:Uc,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[uc]:vc},{[uc]:mc,rules:[{conditions:Mc,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[uc]:vc},{endpoint:{url:Ac,properties:Lc,headers:Lc},[uc]:wc}]}]},{[uc]:mc,rules:[{conditions:[Ic],[uc]:mc,rules:[{conditions:[Nc],[uc]:mc,rules:[{conditions:[Dc,_c],[uc]:mc,rules:[{conditions:[$c,Bc],[uc]:mc,rules:[{[uc]:mc,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Lc,headers:Lc},[uc]:wc}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[uc]:vc}]},{conditions:Uc,[uc]:mc,rules:[{conditions:[$c],[uc]:mc,rules:[{[uc]:mc,rules:[{conditions:[{[dc]:gc,[pc]:["aws-us-gov",{[dc]:Ec,[pc]:[qc,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Lc,headers:Lc},[uc]:wc},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Lc,headers:Lc},[uc]:wc}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[uc]:vc}]},{conditions:Mc,[uc]:mc,rules:[{conditions:[Bc],[uc]:mc,rules:[{[uc]:mc,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Lc,headers:Lc},[uc]:wc}]}]},{error:"DualStack is enabled but this partition does not support DualStack",[uc]:vc}]},{[uc]:mc,rules:[Rc,{endpoint:{url:xc,properties:Lc,headers:Lc},[uc]:wc}]}]}]},{error:"Invalid Configuration: Missing Region",[uc]:vc}]}]},zc=(e,t={})=>yt(Fc,{endpointParams:e,logger:t.logger});class Vc extends Ln{constructor(...[e]){const t=(n=(e=>{Pr(process.version);const t=So(e),n=()=>t().then(Nr),r=(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??Dn,base64Encoder:e?.base64Encoder??_n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??zc,extensions:e?.extensions??[],logger:e?.logger??new Nn,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Gt,utf8Decoder:e?.utf8Decoder??H,utf8Encoder:e?.utf8Encoder??K}))(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ji,credentialDefaultProvider:e?.credentialDefaultProvider??(s=cc,e=>s({roleAssumer:qs(e,e.stsClientCtor),roleAssumerWithWebIdentity:Bs(e,e.stsClientCtor),...e})),defaultUserAgentProvider:e?.defaultUserAgentProvider??Gi({serviceId:r.serviceId,clientVersion:"3.395.0"}),maxAttempts:e?.maxAttempts??Ni(dn),region:e?.region??Ni(Ct,Pt),requestHandler:e?.requestHandler??new Fn(n),retryMode:e?.retryMode??Ni({...hn,default:async()=>(await n()).retryMode||Yt}),sha256:e?.sha256??Ki.bind(null,"sha256"),streamCollector:e?.streamCollector??Vn,useDualstackEndpoint:e?.useDualstackEndpoint??Ni(Tt),useFipsEndpoint:e?.useFipsEndpoint??Ni(Nt)};var s})(e||{}),{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,useGlobalEndpoint:n.useGlobalEndpoint??!1,defaultSigningName:"sts"});var n;const r=Rt(t),s=Kt(r),i=((e,t)=>{const n={...l(e)};return t.forEach((e=>e.configureClient(n))),{...e,...u(n)}})(Oe(((e,{stsClientCtor:t})=>ke({...e,stsClientCtor:t}))(pn(s),{stsClientCtor:Vc})),e?.extensions||[]);super(i),this.config=i,this.middlewareStack.use(In(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(y(this.config)),this.middlewareStack.use(w(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(kt(this.config))}destroy(){super.destroy()}}const Wc=(e,t)=>t?class extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,Hc=(e={},t)=>qs(e,Wc(Vc,t)),Gc=(e={},t)=>Bs(e,Wc(Vc,t)),Kc=e=>t=>e({roleAssumer:Hc(t),roleAssumerWithWebIdentity:Gc(t),...t}),Zc="required",Jc="fn",Yc="argv",Xc="ref",Qc="isSet",el="tree",tl="error",nl="endpoint",rl="PartitionResult",sl={[Zc]:!1,type:"String"},il={[Zc]:!0,default:!1,type:"Boolean"},ol={[Xc]:"Endpoint"},al={[Jc]:"booleanEquals",[Yc]:[{[Xc]:"UseFIPS"},!0]},cl={[Jc]:"booleanEquals",[Yc]:[{[Xc]:"UseDualStack"},!0]},ll={},ul={[Jc]:"booleanEquals",[Yc]:[!0,{[Jc]:"getAttr",[Yc]:[{[Xc]:rl},"supportsFIPS"]}]},dl={[Jc]:"booleanEquals",[Yc]:[!0,{[Jc]:"getAttr",[Yc]:[{[Xc]:rl},"supportsDualStack"]}]},pl=[al],hl=[cl],fl=[{[Xc]:"Region"}],ml={version:"1.0",parameters:{Region:sl,UseDualStack:il,UseFIPS:il,Endpoint:sl},rules:[{conditions:[{[Jc]:Qc,[Yc]:[ol]}],type:el,rules:[{conditions:pl,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:tl},{type:el,rules:[{conditions:hl,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:tl},{endpoint:{url:ol,properties:ll,headers:ll},type:nl}]}]},{type:el,rules:[{conditions:[{[Jc]:Qc,[Yc]:fl}],type:el,rules:[{conditions:[{[Jc]:"aws.partition",[Yc]:fl,assign:rl}],type:el,rules:[{conditions:[al,cl],type:el,rules:[{conditions:[ul,dl],type:el,rules:[{type:el,rules:[{endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ll,headers:ll},type:nl}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:tl}]},{conditions:pl,type:el,rules:[{conditions:[ul],type:el,rules:[{type:el,rules:[{endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ll,headers:ll},type:nl}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:tl}]},{conditions:hl,type:el,rules:[{conditions:[dl],type:el,rules:[{type:el,rules:[{endpoint:{url:"https://email.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ll,headers:ll},type:nl}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:tl}]},{type:el,rules:[{endpoint:{url:"https://email.{Region}.{PartitionResult#dnsSuffix}",properties:ll,headers:ll},type:nl}]}]}]},{error:"Invalid Configuration: Missing Region",type:tl}]}]},gl=(e,t={})=>yt(ml,{endpointParams:e,logger:t.logger});class yl extends kr{constructor(e){super(e),Object.setPrototypeOf(this,yl.prototype)}}class bl extends yl{constructor(e){super({name:"AccountSuspendedException",$fault:"client",...e}),this.name="AccountSuspendedException",this.$fault="client",Object.setPrototypeOf(this,bl.prototype)}}class wl extends yl{constructor(e){super({name:"BadRequestException",$fault:"client",...e}),this.name="BadRequestException",this.$fault="client",Object.setPrototypeOf(this,wl.prototype)}}class xl extends yl{constructor(e){super({name:"NotFoundException",$fault:"client",...e}),this.name="NotFoundException",this.$fault="client",Object.setPrototypeOf(this,xl.prototype)}}class vl extends yl{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,vl.prototype)}}class El extends yl{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,El.prototype)}}class Sl extends yl{constructor(e){super({name:"MailFromDomainNotVerifiedException",$fault:"client",...e}),this.name="MailFromDomainNotVerifiedException",this.$fault="client",Object.setPrototypeOf(this,Sl.prototype)}}class kl extends yl{constructor(e){super({name:"MessageRejected",$fault:"client",...e}),this.name="MessageRejected",this.$fault="client",Object.setPrototypeOf(this,kl.prototype)}}class Al extends yl{constructor(e){super({name:"SendingPausedException",$fault:"client",...e}),this.name="SendingPausedException",this.$fault="client",Object.setPrototypeOf(this,Al.prototype)}}const Il=Ir(yl),Tl=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new bl({$metadata:$l(e),...n});return Ar(i,e.body)},Nl=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new wl({$metadata:$l(e),...n});return Ar(i,e.body)},Cl=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new El({$metadata:$l(e),...n});return Ar(i,e.body)},Pl=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new Sl({$metadata:$l(e),...n});return Ar(i,e.body)},Ol=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new kl({$metadata:$l(e),...n});return Ar(i,e.body)},Ll=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new xl({$metadata:$l(e),...n});return Ar(i,e.body)},Rl=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new Al({$metadata:$l(e),...n});return Ar(i,e.body)},Dl=async(e,t)=>{const n=Dr({}),r=e.body,s=_r(r,{message:sr});Object.assign(n,s);const i=new vl({$metadata:$l(e),...n});return Ar(i,e.body)},_l=(e,t)=>_r(e,{Data:t.base64Encoder}),$l=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"]}),ql=(e,t)=>((e,t)=>Hn(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),Bl=async(e,t)=>{const n=await ql(e,t);return n.message=n.message??n.Message,n},jl=(e,t)=>{const n=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},r=(s=e.headers,"x-amzn-errortype",Object.keys(s).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var s;return void 0!==r?n(e.headers[r]):void 0!==t.code?n(t.code):void 0!==t.__type?n(t.__type):void 0};class Ul extends Gn{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,n){this.middlewareStack.use(jt(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(t,Ul.getEndpointParameterInstructions()));const r=e.concat(this.middlewareStack),{logger:s}=t,i={logger:s,clientName:"SESv2Client",commandName:"SendEmailCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:o}=t;return r.resolve((e=>o.handle(e.request,n||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),o=`${i?.endsWith("/")?i.slice(0,-1):i||""}/v2/email/outbound-emails`;let a;return a=JSON.stringify(_r(e,{ConfigurationSetName:[],Content:e=>((e,t)=>_r(e,{Raw:e=>_l(e,t),Simple:Ur,Template:Ur}))(e,t),Destination:e=>Ur(e),EmailTags:e=>Ur(e),FeedbackForwardingEmailAddress:[],FeedbackForwardingEmailAddressIdentityArn:[],FromEmailAddress:[],FromEmailAddressIdentityArn:[],ListManagementOptions:e=>Ur(e),ReplyToAddresses:e=>Ur(e)})),new f({protocol:r,hostname:n,port:s,method:"POST",headers:{"content-type":"application/json"},path:o,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Bl(e.body,t)},r=jl(e,n.body);switch(r){case"AccountSuspendedException":case"com.amazonaws.sesv2#AccountSuspendedException":throw await Tl(n,t);case"BadRequestException":case"com.amazonaws.sesv2#BadRequestException":throw await Nl(n,t);case"LimitExceededException":case"com.amazonaws.sesv2#LimitExceededException":throw await Cl(n,t);case"MailFromDomainNotVerifiedException":case"com.amazonaws.sesv2#MailFromDomainNotVerifiedException":throw await Pl(n,t);case"MessageRejected":case"com.amazonaws.sesv2#MessageRejected":throw await Ol(n,t);case"NotFoundException":case"com.amazonaws.sesv2#NotFoundException":throw await Ll(n,t);case"SendingPausedException":case"com.amazonaws.sesv2#SendingPausedException":throw await Rl(n,t);case"TooManyRequestsException":case"com.amazonaws.sesv2#TooManyRequestsException":throw await Dl(n,t);default:const s=n.body;return Il({output:e,parsedBody:s,errorCode:r})}})(e,t);const n=Dr({$metadata:$l(e)}),r=nr(rr(await ql(e.body,t)),"body"),s=_r(r,{MessageId:sr});return Object.assign(n,s),n})(e,t)}}const Ml=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],Fl="endpoint_discovery_enabled",zl=e=>["false","0"].indexOf(e)>=0,Vl={environmentVariableSelector:e=>{for(let t=0;t<Ml.length;t++){const n=Ml[t];if(n in e){const t=e[n];if(""===t)throw Error(`Environment variable ${n} can't be empty of undefined, got "${t}"`);return!zl(t)}}},configFileSelector:e=>{if(Fl in e){const t=e[Fl];if(void 0===t)throw Error(`Shared config entry ${Fl} can't be undefined, got "${t}"`);return!zl(t)}},default:void 0};var Wl,Hl=n(675),Gl=n.n(Hl);class Kl{constructor(e){this.cache=new(Gl())(e)}getEndpoint(e){const t=this.get(e);if(!t||0===t.length)return;const n=t.map((e=>e.Address));return n[Math.floor(Math.random()*n.length)]}get(e){if(!this.has(e))return;const t=this.cache.get(e);if(!t)return;const n=Date.now(),r=t.filter((e=>n<e.Expires));if(0!==r.length)return r;this.delete(e)}set(e,t){const n=Date.now();this.cache.set(e,t.map((({Address:e,CachePeriodInMinutes:t})=>({Address:e,Expires:n+60*t*1e3}))))}delete(e){this.cache.set(e,[])}has(e){if(!this.cache.has(e))return!1;const t=this.cache.peek(e);return!!t&&t.length>0}clear(){this.cache.clear()}}class Zl extends kr{constructor(e){super(e),Object.setPrototypeOf(this,Zl.prototype)}}class Jl extends Zl{constructor(e){super({name:"InternalServerError",$fault:"server",...e}),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,Jl.prototype)}}class Yl extends Zl{constructor(e){super({name:"RequestLimitExceeded",$fault:"client",...e}),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,Yl.prototype)}}class Xl extends Zl{constructor(e){super({name:"InvalidEndpointException",$fault:"client",...e}),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,Xl.prototype),this.Message=e.Message}}class Ql extends Zl{constructor(e){super({name:"ProvisionedThroughputExceededException",$fault:"client",...e}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,Ql.prototype)}}class eu extends Zl{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,eu.prototype)}}class tu extends Zl{constructor(e){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...e}),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,tu.prototype)}}class nu extends Zl{constructor(e){super({name:"TransactionConflictException",$fault:"client",...e}),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,nu.prototype)}}!function(e){e.visit=(e,t)=>void 0!==e.S?t.S(e.S):void 0!==e.N?t.N(e.N):void 0!==e.B?t.B(e.B):void 0!==e.SS?t.SS(e.SS):void 0!==e.NS?t.NS(e.NS):void 0!==e.BS?t.BS(e.BS):void 0!==e.M?t.M(e.M):void 0!==e.L?t.L(e.L):void 0!==e.NULL?t.NULL(e.NULL):void 0!==e.BOOL?t.BOOL(e.BOOL):t._(e.$unknown[0],e.$unknown[1])}(Wl||(Wl={}));class ru extends Zl{constructor(e){super({name:"ConditionalCheckFailedException",$fault:"client",...e}),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,ru.prototype),this.Item=e.Item}}const su=async(e,t)=>{const n=e.body,r=Tu(n,t),s=new ru({$metadata:_u(e),...r});return Ar(s,n)},iu=async(e,t)=>{const n=e.body,r=Ur(n),s=new Jl({$metadata:_u(e),...r});return Ar(s,n)},ou=async(e,t)=>{const n=e.body,r=Ur(n),s=new Xl({$metadata:_u(e),...r});return Ar(s,n)},au=async(e,t)=>{const n=e.body,r=Ur(n),s=new tu({$metadata:_u(e),...r});return Ar(s,n)},cu=async(e,t)=>{const n=e.body,r=Ur(n),s=new Ql({$metadata:_u(e),...r});return Ar(s,n)},lu=async(e,t)=>{const n=e.body,r=Ur(n),s=new Yl({$metadata:_u(e),...r});return Ar(s,n)},uu=async(e,t)=>{const n=e.body,r=Ur(n),s=new eu({$metadata:_u(e),...r});return Ar(s,n)},du=async(e,t)=>{const n=e.body,r=Ur(n),s=new nu({$metadata:_u(e),...r});return Ar(s,n)},pu=(e,t)=>Wl.visit(e,{B:e=>({B:t.base64Encoder(e)}),BOOL:e=>({BOOL:e}),BS:e=>({BS:fu(e,t)}),L:e=>({L:bu(e,t)}),M:e=>({M:wu(e,t)}),N:e=>({N:e}),NS:e=>({NS:Ur(e)}),NULL:e=>({NULL:e}),S:e=>({S:e}),SS:e=>({SS:Ur(e)}),_:(e,t)=>({name:t})}),hu=(e,t)=>e.filter((e=>null!=e)).map((e=>pu(e,t))),fu=(e,t)=>e.filter((e=>null!=e)).map((e=>t.base64Encoder(e))),mu=(e,t)=>_r(e,{AttributeValueList:e=>hu(e,t),ComparisonOperator:[]}),gu=(e,t)=>_r(e,{AttributeValueList:e=>hu(e,t),ComparisonOperator:[],Exists:[],Value:e=>pu(e,t)}),yu=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=pu(r,t)),e)),{}),bu=(e,t)=>e.filter((e=>null!=e)).map((e=>pu(e,t))),wu=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=pu(r,t)),e)),{}),xu=(e,t)=>_r(e,{ConditionExpression:[],ConditionalOperator:[],Expected:e=>((e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=gu(r,t)),e)),{}))(e,t),ExpressionAttributeNames:Ur,ExpressionAttributeValues:e=>yu(e,t),Item:e=>vu(e,t),ReturnConsumedCapacity:[],ReturnItemCollectionMetrics:[],ReturnValues:[],ReturnValuesOnConditionCheckFailure:[],TableName:[]}),vu=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=pu(r,t)),e)),{}),Eu=(e,t)=>_r(e,{AttributesToGet:Ur,ConditionalOperator:[],ConsistentRead:[],ExclusiveStartKey:e=>((e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=pu(r,t)),e)),{}))(e,t),ExpressionAttributeNames:Ur,ExpressionAttributeValues:e=>yu(e,t),FilterExpression:[],IndexName:[],KeyConditionExpression:[],KeyConditions:e=>((e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=mu(r,t)),e)),{}))(e,t),Limit:[],ProjectionExpression:[],QueryFilter:e=>((e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=mu(r,t)),e)),{}))(e,t),ReturnConsumedCapacity:[],ScanIndexForward:[],Select:[],TableName:[]}),Su=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=ku(ir(r),t)),e)),{}),ku=(e,t)=>null!=e.B?{B:t.base64Decoder(e.B)}:void 0!==Zn(e.BOOL)?{BOOL:Zn(e.BOOL)}:null!=e.BS?{BS:Au(e.BS,t)}:null!=e.L?{L:Pu(e.L,t)}:null!=e.M?{M:Ou(e.M,t)}:void 0!==sr(e.N)?{N:sr(e.N)}:null!=e.NS?{NS:Ur(e.NS)}:void 0!==Zn(e.NULL)?{NULL:Zn(e.NULL)}:void 0!==sr(e.S)?{S:sr(e.S)}:null!=e.SS?{SS:Ur(e.SS)}:{$unknown:Object.entries(e)[0]},Au=(e,t)=>{const n=(e||[]).filter((e=>null!=e)).map((e=>t.base64Decoder(e)));return n},Iu=(e,t)=>_r(e,{CapacityUnits:cr,ReadCapacityUnits:cr,WriteCapacityUnits:cr}),Tu=(e,t)=>_r(e,{Item:e=>Su(e,t),message:sr}),Nu=(e,t)=>_r(e,{CapacityUnits:cr,GlobalSecondaryIndexes:e=>Du(e,t),LocalSecondaryIndexes:e=>Du(e,t),ReadCapacityUnits:cr,Table:e=>Iu(e),TableName:sr,WriteCapacityUnits:cr}),Cu=(e,t)=>{const n=(e||[]).filter((e=>null!=e)).map((e=>cr(e)));return n},Pu=(e,t)=>{const n=(e||[]).filter((e=>null!=e)).map((e=>ku(ir(e),t)));return n},Ou=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=ku(ir(r),t)),e)),{}),Lu=(e,t)=>_r(e,{Attributes:e=>Su(e,t),ConsumedCapacity:e=>Nu(e,t),ItemCollectionMetrics:e=>((e,t)=>_r(e,{ItemCollectionKey:e=>((e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=ku(ir(r),t)),e)),{}))(e,t),SizeEstimateRangeGB:e=>Cu(e,t)}))(e,t)}),Ru=(e,t)=>_r(e,{ConsumedCapacity:e=>Nu(e,t),Count:Qn,Items:e=>((e,t)=>{const n=(e||[]).filter((e=>null!=e)).map((e=>Su(e,t)));return n})(e,t),LastEvaluatedKey:e=>((e,t)=>Object.entries(e).reduce(((e,[n,r])=>(null===r||(e[n]=ku(ir(r),t)),e)),{}))(e,t),ScannedCount:Qn}),Du=(e,t)=>Object.entries(e).reduce(((e,[t,n])=>(null===n||(e[t]=Iu(n)),e)),{}),_u=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"]}),$u=Ir(Zl),qu=async(e,t,n,r,s)=>{const{hostname:i,protocol:o="https",port:a,path:c}=await e.endpoint(),l={protocol:o,hostname:i,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return void 0!==r&&(l.hostname=r),void 0!==s&&(l.body=s),new f(l)};function Bu(e){return{"content-type":"application/x-amz-json-1.0","x-amz-target":`DynamoDB_20120810.${e}`}}const ju=(e,t)=>((e,t)=>Hn(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),Uu=async(e,t)=>{const n=await ju(e,t);return n.message=n.message??n.Message,n},Mu=(e,t)=>{const n=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},r=(s=e.headers,"x-amzn-errortype",Object.keys(s).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var s;return void 0!==r?n(e.headers[r]):void 0!==t.code?n(t.code):void 0!==t.__type?n(t.__type):void 0};class Fu extends Gn{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,n){this.middlewareStack.use(jt(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(t,Fu.getEndpointParameterInstructions()));const r=e.concat(this.middlewareStack),{logger:s}=t,i={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:o}=t;return r.resolve((e=>o.handle(e.request,n||{})),i)}serialize(e,t){return(async(e,t)=>{const n=Bu("DescribeEndpoints");let r;return r=JSON.stringify(Ur(e)),qu(t,n,"/",void 0,r)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Uu(e.body,t)},r=Mu(e,n.body),s=n.body;return $u({output:e,parsedBody:s,errorCode:r})})(e,t);const n=await ju(e.body,t);let r={};return r=Ur(n),{$metadata:_u(e),...r}})(e,t)}}const zu="required",Vu="fn",Wu="argv",Hu="ref",Gu="isSet",Ku="tree",Zu="error",Ju="endpoint",Yu="PartitionResult",Xu="getAttr",Qu="stringEquals",ed={[zu]:!1,type:"String"},td={[zu]:!0,default:!1,type:"Boolean"},nd={[Hu]:"Endpoint"},rd={[Vu]:"booleanEquals",[Wu]:[{[Hu]:"UseFIPS"},!0]},sd={[Vu]:"booleanEquals",[Wu]:[{[Hu]:"UseDualStack"},!0]},id={},od={[Hu]:"Region"},ad={[Vu]:"booleanEquals",[Wu]:[!0,{[Vu]:Xu,[Wu]:[{[Hu]:Yu},"supportsFIPS"]}]},cd={[Hu]:Yu},ld={[Vu]:"booleanEquals",[Wu]:[!0,{[Vu]:Xu,[Wu]:[cd,"supportsDualStack"]}]},ud=[rd],dd=[sd],pd=[od],hd={version:"1.0",parameters:{Region:ed,UseDualStack:td,UseFIPS:td,Endpoint:ed},rules:[{conditions:[{[Vu]:Gu,[Wu]:[nd]}],type:Ku,rules:[{conditions:ud,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Zu},{type:Ku,rules:[{conditions:dd,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Zu},{endpoint:{url:nd,properties:id,headers:id},type:Ju}]}]},{type:Ku,rules:[{conditions:[{[Vu]:Gu,[Wu]:pd}],type:Ku,rules:[{conditions:[{[Vu]:"aws.partition",[Wu]:pd,assign:Yu}],type:Ku,rules:[{conditions:[rd,sd],type:Ku,rules:[{conditions:[ad,ld],type:Ku,rules:[{type:Ku,rules:[{endpoint:{url:"https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:id,headers:id},type:Ju}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Zu}]},{conditions:ud,type:Ku,rules:[{conditions:[ad],type:Ku,rules:[{type:Ku,rules:[{conditions:[{[Vu]:Qu,[Wu]:["aws-us-gov",{[Vu]:Xu,[Wu]:[cd,"name"]}]}],endpoint:{url:"https://dynamodb.{Region}.amazonaws.com",properties:id,headers:id},type:Ju},{endpoint:{url:"https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:id,headers:id},type:Ju}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Zu}]},{conditions:dd,type:Ku,rules:[{conditions:[ld],type:Ku,rules:[{type:Ku,rules:[{endpoint:{url:"https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:id,headers:id},type:Ju}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Zu}]},{type:Ku,rules:[{conditions:[{[Vu]:Qu,[Wu]:[od,"local"]}],endpoint:{url:"http://localhost:8000",properties:{authSchemes:[{name:"sigv4",signingName:"dynamodb",signingRegion:"us-east-1"}]},headers:id},type:Ju},{endpoint:{url:"https://dynamodb.{Region}.{PartitionResult#dnsSuffix}",properties:id,headers:id},type:Ju}]}]}]},{error:"Invalid Configuration: Missing Region",type:Zu}]}]},fd=(e,t={})=>yt(hd,{endpointParams:e,logger:t.logger}),md=(e,t)=>{if(void 0===e)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(null===e&&"object"==typeof e)return xd();if(Array.isArray(e))return gd(e,t);if("Set"===e?.constructor?.name)return yd(e,t);if("Map"===e?.constructor?.name)return bd(e,t);if("Object"===e?.constructor?.name||!e.constructor&&"object"==typeof e)return wd(e,t);if(Id(e))return 0===e.length&&t?.convertEmptyValues?xd():vd(e);if("boolean"==typeof e||"Boolean"===e?.constructor?.name)return{BOOL:e.valueOf()};if("number"==typeof e||"Number"===e?.constructor?.name)return Ad(e);if("bigint"==typeof e)return Sd(e);if("string"==typeof e||"String"===e?.constructor?.name)return 0===e.length&&t?.convertEmptyValues?xd():Ed(e);if(t?.convertClassInstanceToMap&&"object"==typeof e)return wd(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)},gd=(e,t)=>({L:e.filter((e=>!t?.removeUndefinedValues||t?.removeUndefinedValues&&void 0!==e)).map((e=>md(e,t)))}),yd=(e,t)=>{const n=t?.removeUndefinedValues?new Set([...e].filter((e=>void 0!==e))):e;if(!t?.removeUndefinedValues&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(0===n.size){if(t?.convertEmptyValues)return xd();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}const r=n.values().next().value;if("number"==typeof r)return{NS:Array.from(n).map(Ad).map((e=>e.N))};if("bigint"==typeof r)return{NS:Array.from(n).map(Sd).map((e=>e.N))};if("string"==typeof r)return{SS:Array.from(n).map(Ed).map((e=>e.S))};if(Id(r))return{BS:Array.from(n).map(vd).map((e=>e.B))};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},bd=(e,t)=>({M:(e=>{const n={};for(const[r,s]of e)"function"==typeof s||void 0===s&&t?.removeUndefinedValues||(n[r]=md(s,t));return n})(e)}),wd=(e,t)=>({M:(e=>{const n={};for(const r in e){const s=e[r];"function"==typeof s||void 0===s&&t?.removeUndefinedValues||(n[r]=md(s,t))}return n})(e)}),xd=()=>({NULL:!0}),vd=e=>({B:e}),Ed=e=>({S:e.toString()}),Sd=e=>({N:e.toString()}),kd=e=>{throw new Error(`${e} ${"function"==typeof BigInt?"Use BigInt.":"Pass string value instead."} `)},Ad=e=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map((e=>e.toString())).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return e>Number.MAX_SAFE_INTEGER?kd(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&kd(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},Id=e=>!!e?.constructor&&["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"].includes(e.constructor.name),Td=(e,t)=>{for(const[n,r]of Object.entries(e))if(void 0!==r)switch(n){case"NULL":return null;case"BOOL":return Boolean(r);case"N":return Nd(r,t);case"B":return Pd(r);case"S":return Cd(r);case"L":return Od(r,t);case"M":return Ld(r,t);case"NS":return new Set(r.map((e=>Nd(e,t))));case"BS":return new Set(r.map(Pd));case"SS":return new Set(r.map(Cd));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)},Nd=(e,t)=>{if(t?.wrapNumbers)return{value:e};const n=Number(e),r=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!r.includes(n)){if("function"!=typeof BigInt)throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);try{return BigInt(e)}catch(t){throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}}return n},Cd=e=>e,Pd=e=>e,Od=(e,t)=>e.map((e=>Td(e,t))),Ld=(e,t)=>Object.entries(e).reduce(((e,[n,r])=>(e[n]=Td(r,t),e)),{}),Rd=(e,t,n)=>{if(void 0!==e)return!n||Array.isArray(n)&&0===n.length?t(e):Array.isArray(n)?_d(e,t,n):$d(e,t,n.children)},Dd=(e,t,n)=>Array.isArray(e)?e.map((e=>Rd(e,t,n))):Rd(e,t,n),_d=(e,t,n)=>{const r={...e};return n.reduce(((e,{key:n,children:r})=>(e[n]=Dd(e[n],t,r),e)),r)},$d=(e,t,n)=>Object.entries(e).reduce(((e,[r,s])=>(e[r]=Dd(s,t,n),e)),{});class qd extends Gn{addMarshallingMiddleware(e){const{marshallOptions:t,unmarshallOptions:n}=e.translateConfig||{};this.clientCommand.middlewareStack.addRelativeTo(((e,n)=>async r=>{var s,i,o;r.input=(s=this.input,i=this.inputKeyNodes,o=t,_d(s,(e=>function(e,t){const n=md(e,t),[r,s]=Object.entries(n)[0];switch(r){case"M":case"L":return s;default:return n}}(e,o)),i)),n.dynamoDbDocumentClientOptions=n.dynamoDbDocumentClientOptions||qd.defaultLogFilterOverrides;const a=r.input;return n.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog=()=>n.inputFilterSensitiveLog?.(a),e(r)}),{name:"DocumentMarshall",relation:"before",toMiddleware:"serializerMiddleware",override:!0}),this.clientCommand.middlewareStack.addRelativeTo(((e,t)=>async r=>{const s=await e(r),i=s.output;return t.dynamoDbDocumentClientOptions=t.dynamoDbDocumentClientOptions||qd.defaultLogFilterOverrides,t.dynamoDbDocumentClientOptions.overrideOutputFilterSensitiveLog=()=>t.outputFilterSensitiveLog?.(i),s.output=(o=s.output,a=this.outputKeyNodes,c=n,_d(o,(e=>((e,t)=>Td({M:e},t))(e,c)),a)),s;var o,a,c}),{name:"DocumentUnmarshall",relation:"before",toMiddleware:"deserializerMiddleware",override:!0})}}qd.defaultLogFilterOverrides={overrideInputFilterSensitiveLog(...e){},overrideOutputFilterSensitiveLog(...e){}};class Bd extends Gn{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,n){this.middlewareStack.use(jt(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(t,Bd.getEndpointParameterInstructions()));const r=e.concat(this.middlewareStack),{logger:s}=t,i={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:o}=t;return r.resolve((e=>o.handle(e.request,n||{})),i)}serialize(e,t){return(async(e,t)=>{const n=Bu("PutItem");let r;return r=JSON.stringify(xu(e,t)),qu(t,n,"/",void 0,r)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Uu(e.body,t)},r=Mu(e,n.body);switch(r){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await su(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await iu(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await ou(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await au(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await cu(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await lu(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await uu(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await du(n,t);default:const s=n.body;return $u({output:e,parsedBody:s,errorCode:r})}})(e,t);const n=await ju(e.body,t);let r={};return r=Lu(n,t),{$metadata:_u(e),...r}})(e,t)}}class jd extends qd{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"Item"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}],this.clientCommand=new Bd(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,n){this.addMarshallingMiddleware(t);const r=e.concat(this.middlewareStack),s=this.clientCommand.resolveMiddleware(r,t,n);return async()=>s(this.clientCommand)}}class Ud extends Gn{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,n){this.middlewareStack.use(jt(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ht(t,Ud.getEndpointParameterInstructions()));const r=e.concat(this.middlewareStack),{logger:s}=t,i={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:o}=t;return r.resolve((e=>o.handle(e.request,n||{})),i)}serialize(e,t){return(async(e,t)=>{const n=Bu("Query");let r;return r=JSON.stringify(Eu(e,t)),qu(t,n,"/",void 0,r)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const n={...e,body:await Uu(e.body,t)},r=Mu(e,n.body);switch(r){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await iu(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await ou(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await cu(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await lu(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await uu(n,t);default:const s=n.body;return $u({output:e,parsedBody:s,errorCode:r})}})(e,t);const n=await ju(e.body,t);let r={};return r=Ru(n,t),{$metadata:_u(e),...r}})(e,t)}}class Md extends qd{constructor(e){super(),this.input=e,this.inputKeyNodes=[{key:"KeyConditions",children:{children:[{key:"AttributeValueList"}]}},{key:"QueryFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}],this.clientCommand=new Ud(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,n){this.addMarshallingMiddleware(t);const r=e.concat(this.middlewareStack),s=this.clientCommand.resolveMiddleware(r,t,n);return async()=>s(this.clientCommand)}}class Fd extends Ln{constructor(e,t){super(e.config),this.config=e.config,this.config.translateConfig=t,this.middlewareStack=e.middlewareStack}static from(e,t){return new Fd(e,t)}destroy(){}}var zd,Vd;(Vd=zd||(zd={})).Root="root",Vd.Text="text",Vd.Directive="directive",Vd.Comment="comment",Vd.Script="script",Vd.Style="style",Vd.Tag="tag",Vd.CDATA="cdata",Vd.Doctype="doctype";const Wd=zd.Root,Hd=zd.Text,Gd=zd.Directive,Kd=zd.Comment,Zd=zd.Script,Jd=zd.Style,Yd=zd.Tag,Xd=zd.CDATA,Qd=zd.Doctype;class ep{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return up(this,e)}}class tp extends ep{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class np extends tp{constructor(){super(...arguments),this.type=zd.Text}get nodeType(){return 3}}class rp extends tp{constructor(){super(...arguments),this.type=zd.Comment}get nodeType(){return 8}}class sp extends tp{constructor(e,t){super(t),this.name=e,this.type=zd.Directive}get nodeType(){return 1}}class ip extends ep{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class op extends ip{constructor(){super(...arguments),this.type=zd.CDATA}get nodeType(){return 4}}class ap extends ip{constructor(){super(...arguments),this.type=zd.Root}get nodeType(){return 9}}class cp extends ip{constructor(e,t,n=[],r=("script"===e?zd.Script:"style"===e?zd.Style:zd.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map((e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}function lp(e){return(t=e).type===zd.Tag||t.type===zd.Script||t.type===zd.Style;var t}function up(e,t=!1){let n;if(function(e){return e.type===zd.Text}(e))n=new np(e.data);else if(function(e){return e.type===zd.Comment}(e))n=new rp(e.data);else if(lp(e)){const r=t?dp(e.children):[],s=new cp(e.name,{...e.attribs},r);r.forEach((e=>e.parent=s)),null!=e.namespace&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=s}else if(function(e){return e.type===zd.CDATA}(e)){const r=t?dp(e.children):[],s=new op(r);r.forEach((e=>e.parent=s)),n=s}else if(function(e){return e.type===zd.Root}(e)){const r=t?dp(e.children):[],s=new ap(r);r.forEach((e=>e.parent=s)),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!function(e){return e.type===zd.Directive}(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new sp(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function dp(e){const t=e.map((e=>up(e,!0)));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const pp={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class hp{constructor(e,t,n){this.dom=[],this.root=new ap(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=pp),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:pp,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new ap(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const n=this.options.xmlMode?zd.Tag:void 0,r=new cp(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===zd.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new np(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===zd.Comment)return void(this.lastNode.data+=e);const t=new rp(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new np(""),t=new op([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new sp(e,t);this.addNode(n)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}const fp=/\n/g;function mp(e){const t=[...e.matchAll(fp)].map((e=>e.index||0));t.unshift(-1);const n=gp(t,0,t.length);return e=>yp(n,e)}function gp(e,t,n){if(n-t==1)return{offset:e[t],index:t+1};const r=Math.ceil((t+n)/2),s=gp(e,t,r),i=gp(e,r,n);return{offset:s.offset,low:s,high:i}}function yp(e,t){return function(e){return Object.prototype.hasOwnProperty.call(e,"index")}(e)?{line:e.index,column:t-e.offset}:yp(e.high.offset<t?e.high:e.low,t)}function bp(e,t="",n={}){const r="string"!=typeof t?t:n,s="string"==typeof t?t:"",i=e.map(wp),o=!!r.lineNumbers;return function(e,t=0){const n=o?mp(e):()=>({line:0,column:0});let r=t;const a=[];e:for(;r<e.length;){let t=!1;for(const o of i){o.regex.lastIndex=r;const i=o.regex.exec(e);if(i&&i[0].length>0){if(!o.discard){const e=n(r),t="string"==typeof o.replace?i[0].replace(new RegExp(o.regex.source,o.regex.flags),o.replace):i[0];a.push({state:s,name:o.name,text:t,offset:r,len:i[0].length,line:e.line,column:e.column})}if(r=o.regex.lastIndex,t=!0,o.push){const t=o.push(e,r);a.push(...t.tokens),r=t.offset}if(o.pop)break e;break}}if(!t)break}return{tokens:a,offset:r,complete:e.length<=r}}}function wp(e,t){return{...e,regex:xp(e,t)}}function xp(e,t){if(0===e.name.length)throw new Error(`Rule #${t} has empty name, which is not allowed.`);if(function(e){return Object.prototype.hasOwnProperty.call(e,"regex")}(e))return function(e){if(e.global)throw new Error(`Regular expression /${e.source}/${e.flags} contains the global flag, which is not allowed.`);return e.sticky?e:new RegExp(e.source,e.flags+"y")}(e.regex);if(function(e){return Object.prototype.hasOwnProperty.call(e,"str")}(e)){if(0===e.str.length)throw new Error(`Rule #${t} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(vp(e.str),"y")}return new RegExp(vp(e.name),"y")}function vp(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function Ep(e,t){return(n,r)=>{let s,i=r;return r<n.tokens.length?(s=e(n.tokens[r],n,r),void 0!==s&&i++):t?.(n,r),void 0===s?{matched:!1}:{matched:!0,position:i,value:s}}}function Sp(e,t){return e.matched?{matched:!0,position:e.position,value:t(e.value,e.position)}:e}function kp(e,t){return e.matched?t(e):e}function Ap(e,t){return(n,r)=>Sp(e(n,r),((e,s)=>t(e,n,r,s)))}function Ip(e,t){return(n,r)=>{const s=e(n,r);return s.matched?s:{matched:!0,position:r,value:t}}}function Tp(...e){return(t,n)=>{for(const r of e){const e=r(t,n);if(e.matched)return e}return{matched:!1}}}function Np(e,t){return(n,r)=>{const s=e(n,r);return s.matched?s:t(n,r)}}function Cp(e){return function(e,t){return(n,r)=>{const s=[];let i=!0;do{const o=e(n,r);o.matched&&t(o.value,s.length+1,n,r,o.position)?(s.push(o.value),r=o.position):i=!1}while(i);return{matched:!0,position:r,value:s}}}(e,(()=>!0))}function Pp(e,t,n){return(r,s)=>kp(e(r,s),(e=>Sp(t(r,e.position),((t,i)=>n(e.value,t,r,s,i)))))}function Op(e,t){return Pp(e,t,((e,t)=>t))}function Lp(e,t,n,r){return(s,i)=>kp(e(s,i),(e=>kp(t(s,e.position),(t=>Sp(n(s,t.position),((n,o)=>r(e.value,t.value,n,s,i,o)))))))}function Rp(e,t,n){return Lp(e,t,n,((e,t)=>t))}function Dp(e,t,n){return function(e,t){return(n,r)=>kp(e(n,r),(e=>t(e.value,n,r,e.position)(n,e.position)))}(e,(e=>function(e,t,n){return function(e,t){return(n,r)=>{let s=!0,i=e,o=r;do{const e=t(i)(n,o);e.matched?(i=e.value,o=e.position):s=!1}while(s);return{matched:!0,position:o,value:i}}}(e,(e=>Ap(t,((t,r,s,i)=>n(e,t,r,s,i)))))}(e,Pp(t,n,((e,t)=>[e,t])),((e,[t,n])=>t(e,n)))))}const _p="(?:\\n|\\r\\n|\\r|\\f)",$p="[^\\x00-\\x7F]",qp="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",Bp="(?:\\\\[^\\n\\r\\f0-9a-f])",jp=`(?:[_a-z0-9-]|${$p}|${qp}|${Bp})`,Up=`(?:${jp}+)`,Mp=`(?:[-]?(?:[_a-z]|${$p}|${qp}|${Bp})${jp}*)`,Fp=`'([^\\n\\r\\f\\\\']|\\\\${_p}|${$p}|${qp}|${Bp})*'`,zp=`"([^\\n\\r\\f\\\\"]|\\\\${_p}|${$p}|${qp}|${Bp})*"`,Vp=bp([{name:"ws",regex:new RegExp("(?:[ \\t\\r\\n\\f]*)")},{name:"hash",regex:new RegExp(`#${Up}`,"i")},{name:"ident",regex:new RegExp(Mp,"i")},{name:"str1",regex:new RegExp(Fp,"i")},{name:"str2",regex:new RegExp(zp,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),Wp=bp([{name:"unicode",regex:new RegExp(qp,"i")},{name:"escape",regex:new RegExp(Bp,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function Hp([e,t,n],[r,s,i]){return[e+r,t+s,n+i]}function Gp(e){return e.reduce(Hp,[0,0,0])}const Kp=Ep((e=>"unicode"===e.name?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0)),Zp=Ep((e=>"escape"===e.name?e.text.slice(1):void 0)),Jp=Ep((e=>"any"===e.name?e.text:void 0)),Yp=Ap(Cp(Tp(Kp,Zp,Jp)),(e=>e.join("")));function Xp(e){const t=Wp(e);return Yp({tokens:t.tokens,options:void 0},0).value}function Qp(e){return Ep((t=>t.name===e||void 0))}const eh=Ep((e=>"ws"===e.name?null:void 0)),th=Ip(eh,null);function nh(e){return Rp(th,e,th)}const rh=Ep((e=>"ident"===e.name?Xp(e.text):void 0)),sh=Ep((e=>"hash"===e.name?Xp(e.text.slice(1)):void 0)),ih=Ep((e=>e.name.startsWith("str")?Xp(e.text.slice(1,-1)):void 0)),oh=Pp(Ip(rh,""),Qp("|"),(e=>e));const ah=Np(Pp(oh,rh,((e,t)=>({name:t,namespace:e}))),Ap(rh,(e=>({name:e,namespace:null})))),ch=Np(Pp(oh,Qp("*"),(e=>({type:"universal",namespace:e,specificity:[0,0,0]}))),Ap(Qp("*"),(()=>({type:"universal",namespace:null,specificity:[0,0,0]})))),lh=Ap(ah,(({name:e,namespace:t})=>({type:"tag",name:e,namespace:t,specificity:[0,0,1]}))),uh=Pp(Qp("."),rh,((e,t)=>({type:"class",name:t,specificity:[0,1,0]}))),dh=Ap(sh,(e=>({type:"id",name:e,specificity:[1,0,0]}))),ph=Ep((e=>{if("ident"===e.name){if("i"===e.text||"I"===e.text)return"i";if("s"===e.text||"S"===e.text)return"s"}})),hh=Np(Pp(ih,Ip(Op(th,ph),null),((e,t)=>({value:e,modifier:t}))),Pp(rh,Ip(Op(eh,ph),null),((e,t)=>({value:e,modifier:t})))),fh=Tp(Ap(Qp("="),(()=>"=")),Pp(Qp("~"),Qp("="),(()=>"~=")),Pp(Qp("|"),Qp("="),(()=>"|=")),Pp(Qp("^"),Qp("="),(()=>"^=")),Pp(Qp("$"),Qp("="),(()=>"$=")),Pp(Qp("*"),Qp("="),(()=>"*="))),mh=Np(Lp(Qp("["),nh(ah),Qp("]"),((e,{name:t,namespace:n})=>({type:"attrPresence",name:t,namespace:n,specificity:[0,1,0]}))),Rp(Qp("["),Lp(nh(ah),fh,nh(hh),(({name:e,namespace:t},n,{value:r,modifier:s})=>({type:"attrValue",name:e,namespace:t,matcher:n,value:r,modifier:s,specificity:[0,1,0]}))),Qp("]"))),gh=Np(ch,lh),yh=Tp(dh,uh,mh),bh=Ap(Np(function(...e){return function(e){return Ap(e,(e=>e.flatMap((e=>e))))}(function(...e){return(t,n)=>{const r=[];let s=n;for(const n of e){const e=n(t,s);if(!e.matched)return{matched:!1};r.push(e.value),s=e.position}return{matched:!0,position:s,value:r}}}(...e))}(gh,Cp(yh)),function(e){return Pp(e,Cp(e),((e,t)=>[e,...t]))}(yh)),(e=>({type:"compound",list:e,specificity:Gp(e.map((e=>e.specificity)))}))),wh=Np(nh(Tp(Ap(Qp(">"),(()=>">")),Ap(Qp("+"),(()=>"+")),Ap(Qp("~"),(()=>"~")),Pp(Qp("|"),Qp("|"),(()=>"||")))),Ap(eh,(()=>" "))),xh=Dp(bh,Ap(wh,(e=>(t,n)=>({type:"compound",list:[...n.list,{type:"combinator",combinator:e,left:t,specificity:t.specificity}],specificity:Hp(t.specificity,n.specificity)}))),bh);function vh(e,t,n=1){return`${e.replace(/(\t)|(\r)|(\n)/g,((e,t,n)=>t?"␉":n?"␍":"␊"))}\n${"".padEnd(t)}${"^".repeat(n)}`}function Eh(e){return function(e,t){if(!("string"==typeof t||t instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const n=Vp(t);if(!n.complete)throw new Error(`The input "${t}" was only partially tokenized, stopped at offset ${n.offset}!\n`+vh(t,n.offset));const r=nh(e)({tokens:n.tokens,options:void 0},0);if(!r.matched)throw new Error(`No match for "${t}" input!`);if(r.position<n.tokens.length){const e=n.tokens[r.position];throw new Error(`The input "${t}" was only partially parsed, stopped at offset ${e.offset}!\n`+vh(t,e.offset,e.len))}return r.value}(xh,e)}function Sh(e){if(!e.type)throw new Error("This is not an AST node.");switch(e.type){case"universal":return kh(e.namespace)+"*";case"tag":return kh(e.namespace)+Ih(e.name);case"class":return"."+Ih(e.name);case"id":return"#"+Ih(e.name);case"attrPresence":return`[${kh(e.namespace)}${Ih(e.name)}]`;case"attrValue":return`[${kh(e.namespace)}${Ih(e.name)}${e.matcher}"${t=e.value,t.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,((e,t,n,r,s)=>t?'\\"':n?"\\\\":r?"�":Ah(s)))}"${e.modifier?e.modifier:""}]`;case"combinator":return Sh(e.left)+e.combinator;case"compound":return e.list.reduce(((e,t)=>"combinator"===t.type?Sh(t)+e:e+Sh(t)),"");case"list":return e.list.map(Sh).join(",")}var t}function kh(e){return e||""===e?Ih(e)+"|":""}function Ah(e){return`\\${e.codePointAt(0).toString(16)} `}function Ih(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,((e,t,n,r,s,i,o,a)=>t?Ah(t):n?"-"+Ah(n.slice(1)):r?"\\-":s||(i?"�":o?Ah(o):"\\"+a)))}function Th(e){if(!e.type)throw new Error("This is not an AST node.");switch(e.type){case"compound":e.list.forEach(Th),e.list.sort(((e,t)=>Ph(Nh(e),Nh(t))));break;case"combinator":Th(e.left);break;case"list":e.list.forEach(Th),e.list.sort(((e,t)=>Sh(e)<Sh(t)?-1:1))}return e}function Nh(e){switch(e.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,e.name];case"attrPresence":return[4,Sh(e)];case"attrValue":return[5,Sh(e)];case"combinator":return[15,Sh(e)]}}function Ch(e,t){return Ph(e,t)}function Ph(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw new Error("Arguments must be arrays.");const n=e.length<t.length?e.length:t.length;for(let r=0;r<n;r++)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return e.length-t.length}Dp(Ap(xh,(e=>({type:"list",list:[e]}))),Ap(nh(Qp(",")),(()=>(e,t)=>({type:"list",list:[...e.list,t]}))),xh);class Oh{constructor(e){this.branches=Dh(function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++){const[t,s]=e[r],i=Lh(Eh(t));n[r]={ast:i,terminal:{type:"terminal",valueContainer:{index:r,value:s,specificity:i.specificity}}}}return n}(e))}build(e){return e(this.branches)}}function Lh(e){return Rh(e),Th(e),e}function Rh(e){const t=[];e.list.forEach((e=>{switch(e.type){case"class":t.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:e.specificity,type:"attrValue",value:e.name});break;case"id":t.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:e.specificity,type:"attrValue",value:e.name});break;case"combinator":Rh(e.left),t.push(e);break;case"universal":break;default:t.push(e)}})),e.list=t}function Dh(e){const t=[];for(;e.length;){const n=zh(e,(e=>!0),qh),{matches:r,nonmatches:s,empty:i}=$h(e,n);e=s,r.length&&t.push(Bh(n,r)),i.length&&t.push(..._h(i))}return t}function _h(e){const t=[];for(const n of e){const e=n.terminal;if("terminal"===e.type)t.push(e);else{const{matches:n,rest:r}=Vh(e.cont,(e=>"terminal"===e.type));n.forEach((e=>t.push(e))),r.length&&(e.cont=r,t.push(e))}}return t}function $h(e,t){const n=[],r=[],s=[];for(const i of e){const e=i.ast.list;e.length?(e.some((e=>qh(e)===t))?n:r).push(i):s.push(i)}return{matches:n,nonmatches:r,empty:s}}function qh(e){switch(e.type){case"attrPresence":return`attrPresence ${e.name}`;case"attrValue":return`attrValue ${e.name}`;case"combinator":return`combinator ${e.combinator}`;default:return e.type}}function Bh(e,t){if("tag"===e)return function(e){const t=Mh(e,(e=>"tag"===e.type),(e=>e.name));return{type:"tagName",variants:Object.entries(t).map((([e,t])=>({type:"variant",value:e,cont:Dh(t.items)})))}}(t);if(e.startsWith("attrValue "))return function(e,t){const n=Mh(t,(t=>"attrValue"===t.type&&t.name===e),(e=>`${e.matcher} ${e.modifier||""} ${e.value}`)),r=[];for(const e of Object.values(n)){const t=e.oneSimpleSelector,n=jh(t),s=Dh(e.items);r.push({type:"matcher",matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:n,cont:s})}return{type:"attrValue",name:e,matchers:r}}(e.substring(10),t);if(e.startsWith("attrPresence "))return function(e,t){for(const n of t)Fh(n,(t=>"attrPresence"===t.type&&t.name===e));return{type:"attrPresence",name:e,cont:Dh(t)}}(e.substring(13),t);if("combinator >"===e)return Uh(">",t);if("combinator +"===e)return Uh("+",t);throw new Error(`Unsupported selector kind: ${e}`)}function jh(e){if("i"===e.modifier){const t=e.value.toLowerCase();switch(e.matcher){case"=":return e=>t===e.toLowerCase();case"~=":return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case"^=":return e=>e.toLowerCase().startsWith(t);case"$=":return e=>e.toLowerCase().endsWith(t);case"*=":return e=>e.toLowerCase().includes(t);case"|=":return e=>{const n=e.toLowerCase();return t===n||n.startsWith(t)&&"-"===n[t.length]}}}else{const t=e.value;switch(e.matcher){case"=":return e=>t===e;case"~=":return e=>e.split(/[ \t]+/).includes(t);case"^=":return e=>e.startsWith(t);case"$=":return e=>e.endsWith(t);case"*=":return e=>e.includes(t);case"|=":return e=>t===e||e.startsWith(t)&&"-"===e[t.length]}}}function Uh(e,t){const n=Mh(t,(t=>"combinator"===t.type&&t.combinator===e),(e=>Sh(e.left))),r=[];for(const e of Object.values(n)){const t=Dh(e.items),n=e.oneSimpleSelector.left;r.push({ast:n,terminal:{type:"popElement",cont:t}})}return{type:"pushElement",combinator:e,cont:Dh(r)}}function Mh(e,t,n){const r={};for(;e.length;){const s=zh(e,t,n),i=e=>t(e)&&n(e)===s,o=e=>e.ast.list.some(i),{matches:a,rest:c}=Wh(e,o);let l=null;for(const e of a){const t=Fh(e,i);l||(l=t)}if(null==l)throw new Error("No simple selector is found.");r[s]={oneSimpleSelector:l,items:a},e=c}return r}function Fh(e,t){const n=e.ast.list,r=new Array(n.length);let s=-1;for(let e=n.length;e-- >0;)t(n[e])&&(r[e]=!0,s=e);if(-1==s)throw new Error("Couldn't find the required simple selector.");const i=n[s];return e.ast.list=n.filter(((e,t)=>!r[t])),i}function zh(e,t,n){const r={};for(const s of e){const e={};for(const r of s.ast.list.filter(t))e[n(r)]=!0;for(const t of Object.keys(e))r[t]?r[t]++:r[t]=1}let s="",i=0;for(const e of Object.entries(r))e[1]>i&&(s=e[0],i=e[1]);return s}function Vh(e,t){const n=[],r=[];for(const s of e)t(s)?n.push(s):r.push(s);return{matches:n,rest:r}}function Wh(e,t){const n=[],r=[];for(const s of e)t(s)?n.push(s):r.push(s);return{matches:n,rest:r}}class Hh{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){const n=this.f(e),r=n.length;if(0===r)return null;if(1===r)return n[0].value;const s=t?Gh:Kh;let i=n[0];for(let e=1;e<r;e++){const t=n[e];s(i,t)&&(i=t)}return i.value}}function Gh(e,t){const n=Ch(t.specificity,e.specificity);return n>0||0===n&&t.index<e.index}function Kh(e,t){const n=Ch(t.specificity,e.specificity);return n>0||0===n&&t.index>e.index}function Zh(e){return new Hh(Jh(e))}function Jh(e){const t=e.map(Yh);return(e,...n)=>t.flatMap((t=>t(e,...n)))}function Yh(e){switch(e.type){case"terminal":{const t=[e.valueContainer];return(e,...n)=>t}case"tagName":return function(e){const t={};for(const n of e.variants)t[n.value]=Jh(n.cont);return(e,...n)=>{const r=t[e.name];return r?r(e,...n):[]}}(e);case"attrValue":return function(e){const t=[];for(const n of e.matchers){const e=n.predicate,r=Jh(n.cont);t.push(((t,n,...s)=>e(t)?r(n,...s):[]))}const n=e.name;return(e,...r)=>{const s=e.attribs[n];return s||""===s?t.flatMap((t=>t(s,e,...r))):[]}}(e);case"attrPresence":return function(e){const t=e.name,n=Jh(e.cont);return(e,...r)=>Object.prototype.hasOwnProperty.call(e.attribs,t)?n(e,...r):[]}(e);case"pushElement":return function(e){const t=Jh(e.cont),n="+"===e.combinator?Xh:Qh;return(e,...r)=>{const s=n(e);return null===s?[]:t(s,e,...r)}}(e);case"popElement":return function(e){const t=Jh(e.cont);return(e,n,...r)=>t(n,...r)}(e)}}const Xh=e=>{const t=e.prev;return null===t?null:lp(t)?t:Xh(t)},Qh=e=>{const t=e.parent;return t&&lp(t)?t:null},ef=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),tf=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var nf;const rf=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),sf=null!==(nf=String.fromCodePoint)&&void 0!==nf?nf:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function of(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=rf.get(e))&&void 0!==t?t:e}var af,cf,lf,uf,df,pf,hf,ff;function mf(e){return e>=af.ZERO&&e<=af.NINE}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(af||(af={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(cf||(cf={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(lf||(lf={})),(df=uf||(uf={}))[df.Legacy=0]="Legacy",df[df.Strict=1]="Strict",df[df.Attribute=2]="Attribute";class gf{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=lf.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=uf.Strict}startEntity(e){this.decodeMode=e,this.state=lf.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case lf.EntityStart:return e.charCodeAt(t)===af.NUM?(this.state=lf.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=lf.NamedEntity,this.stateNamedEntity(e,t));case lf.NumericStart:return this.stateNumericStart(e,t);case lf.NumericDecimal:return this.stateNumericDecimal(e,t);case lf.NumericHex:return this.stateNumericHex(e,t);case lf.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===af.LOWER_X?(this.state=lf.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=lf.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const s=n-t;this.result=this.result*Math.pow(r,s)+parseInt(e.substr(t,s),r),this.consumed+=s}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const s=e.charCodeAt(t);if(!(mf(s)||(r=s,r>=af.UPPER_A&&r<=af.UPPER_F||r>=af.LOWER_A&&r<=af.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(s,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!mf(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===af.SEMI)this.consumed+=1;else if(this.decodeMode===uf.Strict)return 0;return this.emitCodePoint(of(this.result),this.consumed),this.errors&&(e!==af.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],s=(r&cf.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=bf(n,r,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return 0===this.result||this.decodeMode===uf.Attribute&&(0===s||((i=o)===af.EQUALS||function(e){return e>=af.UPPER_A&&e<=af.UPPER_Z||e>=af.LOWER_A&&e<=af.LOWER_Z||mf(e)}(i)))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],s=(r&cf.VALUE_LENGTH)>>14,0!==s){if(o===af.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==uf.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}var i;return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&cf.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~cf.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case lf.NamedEntity:return 0===this.result||this.decodeMode===uf.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case lf.NumericDecimal:return this.emitNumericEntity(0,2);case lf.NumericHex:return this.emitNumericEntity(0,3);case lf.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case lf.EntityStart:return 0}}}function yf(e){let t="";const n=new gf(e,(e=>t+=sf(e)));return function(e,r){let s=0,i=0;for(;(i=e.indexOf("&",i))>=0;){t+=e.slice(s,i),n.startEntity(r);const o=n.write(e,i+1);if(o<0){s=i+n.end();break}s=i+o,i=0===o?s+1:s}const o=t+e.slice(s);return t="",o}}function bf(e,t,n,r){const s=(t&cf.BRANCH_LENGTH)>>7,i=t&cf.JUMP_TABLE;if(0===s)return 0!==i&&r===i?n:-1;if(i){const t=r-i;return t<0||t>=s?-1:e[n+t]-1}let o=n,a=o+s-1;for(;o<=a;){const t=o+a>>>1,n=e[t];if(n<r)o=t+1;else{if(!(n>r))return e[t+s];a=t-1}}return-1}function wf(e){return e===pf.Space||e===pf.NewLine||e===pf.Tab||e===pf.FormFeed||e===pf.CarriageReturn}function xf(e){return e===pf.Slash||e===pf.Gt||wf(e)}function vf(e){return e>=pf.Zero&&e<=pf.Nine}yf(ef),yf(tf),function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(pf||(pf={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(hf||(hf={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(ff||(ff={}));const Ef={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Sf{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=hf.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=hf.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?tf:ef}reset(){this.state=hf.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=hf.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===pf.Lt||!this.decodeEntities&&this.fastForwardTo(pf.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=hf.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===pf.Amp&&(this.state=hf.BeforeEntity)}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?xf(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=hf.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===pf.Gt||wf(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Ef.TitleEnd?this.decodeEntities&&e===pf.Amp&&(this.state=hf.BeforeEntity):this.fastForwardTo(pf.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===pf.Lt)}stateCDATASequence(e){e===Ef.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ef.Cdata.length&&(this.state=hf.InCommentLike,this.currentSequence=Ef.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=hf.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ef.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=hf.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!xf(e):function(e){return e>=pf.LowerA&&e<=pf.LowerZ||e>=pf.UpperA&&e<=pf.UpperZ}(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=hf.SpecialStartSequence}stateBeforeTagName(e){if(e===pf.ExclamationMark)this.state=hf.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===pf.Questionmark)this.state=hf.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const t=32|e;this.sectionStart=this.index,this.xmlMode||t!==Ef.TitleEnd[2]?this.state=this.xmlMode||t!==Ef.ScriptEnd[2]?hf.InTagName:hf.BeforeSpecialS:this.startSpecial(Ef.TitleEnd,3)}else e===pf.Slash?this.state=hf.BeforeClosingTagName:(this.state=hf.Text,this.stateText(e))}stateInTagName(e){xf(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=hf.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){wf(e)||(e===pf.Gt?this.state=hf.Text:(this.state=this.isTagStartChar(e)?hf.InClosingTagName:hf.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===pf.Gt||wf(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=hf.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===pf.Gt||this.fastForwardTo(pf.Gt))&&(this.state=hf.Text,this.baseState=hf.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===pf.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=hf.InSpecialTag,this.sequenceIndex=0):this.state=hf.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===pf.Slash?this.state=hf.InSelfClosingTag:wf(e)||(this.state=hf.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===pf.Gt?(this.cbs.onselfclosingtag(this.index),this.state=hf.Text,this.baseState=hf.Text,this.sectionStart=this.index+1,this.isSpecial=!1):wf(e)||(this.state=hf.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===pf.Eq||xf(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=hf.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===pf.Eq?this.state=hf.BeforeAttributeValue:e===pf.Slash||e===pf.Gt?(this.cbs.onattribend(ff.NoValue,this.index),this.state=hf.BeforeAttributeName,this.stateBeforeAttributeName(e)):wf(e)||(this.cbs.onattribend(ff.NoValue,this.index),this.state=hf.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===pf.DoubleQuote?(this.state=hf.InAttributeValueDq,this.sectionStart=this.index+1):e===pf.SingleQuote?(this.state=hf.InAttributeValueSq,this.sectionStart=this.index+1):wf(e)||(this.sectionStart=this.index,this.state=hf.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===pf.DoubleQuote?ff.Double:ff.Single,this.index),this.state=hf.BeforeAttributeName):this.decodeEntities&&e===pf.Amp&&(this.baseState=this.state,this.state=hf.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,pf.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,pf.SingleQuote)}stateInAttributeValueNoQuotes(e){wf(e)||e===pf.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(ff.Unquoted,this.index),this.state=hf.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===pf.Amp&&(this.baseState=this.state,this.state=hf.BeforeEntity)}stateBeforeDeclaration(e){e===pf.OpeningSquareBracket?(this.state=hf.CDATASequence,this.sequenceIndex=0):this.state=e===pf.Dash?hf.BeforeComment:hf.InDeclaration}stateInDeclaration(e){(e===pf.Gt||this.fastForwardTo(pf.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=hf.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===pf.Gt||this.fastForwardTo(pf.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=hf.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===pf.Dash?(this.state=hf.InCommentLike,this.currentSequence=Ef.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=hf.InDeclaration}stateInSpecialComment(e){(e===pf.Gt||this.fastForwardTo(pf.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=hf.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===Ef.ScriptEnd[3]?this.startSpecial(Ef.ScriptEnd,4):t===Ef.StyleEnd[3]?this.startSpecial(Ef.StyleEnd,4):(this.state=hf.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===pf.Number?this.state=hf.BeforeNumericEntity:e===pf.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=hf.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=bf(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];const t=this.trieCurrent&cf.VALUE_LENGTH;if(t){const n=(t>>14)-1;if(this.allowLegacyEntity()||e===pf.Semi){const e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}}emitNamedEntity(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&cf.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~cf.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(32|e)===pf.LowerX?(this.entityExcess++,this.state=hf.InHexEntity):(this.state=hf.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){const t=this.index-this.entityExcess-1;t+2+Number(this.state===hf.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(of(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===pf.Semi?this.emitNumericEntity(!0):vf(e)?(this.entityResult=10*this.entityResult+(e-pf.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===pf.Semi?this.emitNumericEntity(!0):vf(e)?(this.entityResult=16*this.entityResult+(e-pf.Zero),this.entityExcess++):function(e){return e>=pf.UpperA&&e<=pf.UpperF||e>=pf.LowerA&&e<=pf.LowerF}(e)?(this.entityResult=16*this.entityResult+((32|e)-pf.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===hf.Text||this.baseState===hf.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===hf.Text||this.state===hf.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==hf.InAttributeValueDq&&this.state!==hf.InAttributeValueSq&&this.state!==hf.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case hf.Text:this.stateText(e);break;case hf.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case hf.InSpecialTag:this.stateInSpecialTag(e);break;case hf.CDATASequence:this.stateCDATASequence(e);break;case hf.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case hf.InAttributeName:this.stateInAttributeName(e);break;case hf.InCommentLike:this.stateInCommentLike(e);break;case hf.InSpecialComment:this.stateInSpecialComment(e);break;case hf.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case hf.InTagName:this.stateInTagName(e);break;case hf.InClosingTagName:this.stateInClosingTagName(e);break;case hf.BeforeTagName:this.stateBeforeTagName(e);break;case hf.AfterAttributeName:this.stateAfterAttributeName(e);break;case hf.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case hf.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case hf.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case hf.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case hf.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case hf.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case hf.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case hf.InDeclaration:this.stateInDeclaration(e);break;case hf.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case hf.BeforeComment:this.stateBeforeComment(e);break;case hf.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case hf.InNamedEntity:this.stateInNamedEntity(e);break;case hf.BeforeEntity:this.stateBeforeEntity(e);break;case hf.InHexEntity:this.stateInHexEntity(e);break;case hf.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===hf.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length+this.offset;this.state===hf.InCommentLike?this.currentSequence===Ef.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===hf.InNumericEntity&&this.allowLegacyEntity()||this.state===hf.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===hf.InTagName||this.state===hf.BeforeAttributeName||this.state===hf.BeforeAttributeValue||this.state===hf.AfterAttributeName||this.state===hf.InAttributeName||this.state===hf.InAttributeValueSq||this.state===hf.InAttributeValueDq||this.state===hf.InAttributeValueNq||this.state===hf.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==hf.Text&&this.baseState!==hf.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}emitCodePoint(e){this.baseState!==hf.Text&&this.baseState!==hf.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}}const kf=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Af=new Set(["p"]),If=new Set(["thead","tbody"]),Tf=new Set(["dd","dt"]),Nf=new Set(["rt","rp"]),Cf=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Af],["h1",Af],["h2",Af],["h3",Af],["h4",Af],["h5",Af],["h6",Af],["select",kf],["input",kf],["output",kf],["button",kf],["datalist",kf],["textarea",kf],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Tf],["dt",Tf],["address",Af],["article",Af],["aside",Af],["blockquote",Af],["details",Af],["div",Af],["dl",Af],["fieldset",Af],["figcaption",Af],["figure",Af],["footer",Af],["form",Af],["header",Af],["hr",Af],["main",Af],["nav",Af],["ol",Af],["pre",Af],["section",Af],["table",Af],["ul",Af],["rt",Nf],["rp",Nf],["tbody",If],["tfoot",If]]),Pf=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Of=new Set(["math","svg"]),Lf=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Rf=/\s|\//;class Df{constructor(e,t={}){var n,r,s,i,o;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(s=t.Tokenizer)&&void 0!==s?s:Sf)(this.options,this),null===(o=(i=this.cbs).onparserinit)||void 0===o||o.call(i,this)}ontext(e,t){var n,r;const s=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,s),this.startIndex=t}ontextentity(e){var t,n;const r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,sf(e)),this.startIndex=r}isVoidElement(e){return!this.options.xmlMode&&Pf.has(e)}onopentagname(e,t){this.endIndex=t;let n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(e){var t,n,r,s;this.openTagStart=this.startIndex,this.tagname=e;const i=!this.options.xmlMode&&Cf.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){const e=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.push(e),Of.has(e)?this.foreignContext.push(!0):Lf.has(e)&&this.foreignContext.push(!1)),null===(s=(r=this.cbs).onopentagname)||void 0===s||s.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,s,i,o,a;this.endIndex=t;let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(Of.has(c)||Lf.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))this.options.xmlMode||"br"!==c||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(i=(s=this.cbs).onopentag)||void 0===i||i.call(s,"br",{},!0),null===(a=(o=this.cbs).onclosetag)||void 0===a||a.call(o,"br",!1));else{const e=this.stack.lastIndexOf(c);if(-1!==e)if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),0!==t)}else this.stack.length=e;else this.options.xmlMode||"p"!==c||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;const r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;const n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=sf(e)}onattribend(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===ff.Double?'"':e===ff.Single?"'":e===ff.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(Rf);let n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var r,s,i,o;this.endIndex=t,null===(s=(r=this.cbs).oncomment)||void 0===s||s.call(r,this.getSlice(e,t-n)),null===(o=(i=this.cbs).oncommentend)||void 0===o||o.call(i),this.startIndex=t+1}oncdata(e,t,n){var r,s,i,o,a,c,l,u,d,p;this.endIndex=t;const h=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(s=(r=this.cbs).oncdatastart)||void 0===s||s.call(r),null===(o=(i=this.cbs).ontext)||void 0===o||o.call(i,h),null===(c=(a=this.cbs).oncdataend)||void 0===c||c.call(a)):(null===(u=(l=this.cbs).oncomment)||void 0===u||u.call(l,`[CDATA[${h}]]`),null===(p=(d=this.cbs).oncommentend)||void 0===p||p.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)}reset(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}function _f(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(_f([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(_f([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(_f([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(_f([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));const $f=/["&'<>$\x80-\uFFFF]/g,qf=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Bf=null!=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function jf(e){let t,n="",r=0;for(;null!==(t=$f.exec(e));){const s=t.index,i=e.charCodeAt(s),o=qf.get(i);void 0!==o?(n+=e.substring(r,s)+o,r=s+1):(n+=`${e.substring(r,s)}&#x${Bf(e,s).toString(16)};`,r=$f.lastIndex+=Number(55296==(64512&i)))}return n+e.substr(r)}function Uf(e,t){return function(n){let r,s=0,i="";for(;r=e.exec(n);)s!==r.index&&(i+=n.substring(s,r.index)),i+=t.get(r[0].charCodeAt(0)),s=r.index+1;return i+n.substring(s)}}Uf(/[&<>'"]/g,qf);const Mf=Uf(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Ff=Uf(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var zf,Vf;!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(zf||(zf={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(Vf||(Vf={}));const Wf=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),Hf=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Gf=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Kf(e){return e.replace(/"/g,""")}const Zf=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Jf(e,t={}){const n="length"in e?e:[e];let r="";for(let e=0;e<n.length;e++)r+=Yf(n[e],t);return r}function Yf(e,t){switch(e.type){case Wd:return Jf(e.children,t);case Qd:case Gd:return`<${e.data}>`;case Kd:return`\x3c!--${e.data}--\x3e`;case Xd:return function(e){return`<![CDATA[${e.children[0].data}]]>`}(e);case Zd:case Jd:case Yd:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=Wf.get(e.name))&&void 0!==n?n:e.name,e.parent&&Xf.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Qf.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const s=function(e,t){var n;if(!e)return;const r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?Kf:t.xmlMode||"utf8"!==t.encodeEntities?jf:Mf;return Object.keys(e).map((n=>{var s,i;const o=null!==(s=e[n])&&void 0!==s?s:"";return"foreign"===t.xmlMode&&(n=null!==(i=Hf.get(n))&&void 0!==i?i:n),t.emptyAttrs||t.xmlMode||""!==o?`${n}="${r(o)}"`:n})).join(" ")}(e.attribs,t);return s&&(r+=` ${s}`),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&Zf.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=Jf(e.children,t)),!t.xmlMode&&Zf.has(e.name)||(r+=`</${e.name}>`)),r}(e,t);case Hd:return function(e,t){var n;let r=e.data||"";return!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&Gf.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?jf(r):Ff(r)),r}(e,t)}}const Xf=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Qf=new Set(["svg","math"]);var em;!function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(em||(em={}));var tm=n(996);function nm(e,t,n=(()=>{})){if(void 0===e){const e=function(...n){return t(e,...n)};return e}return e>=0?function(...r){return t(nm(e-1,t,n),...r)}:n}function rm(e,t){let n=0,r=e.length;for(;n<r&&e[n]===t;)++n;for(;r>n&&e[r-1]===t;)--r;return n>0||r<e.length?e.substring(n,r):e}function sm(e,t){const n=new Map;for(let r=e.length;r-- >0;){const s=e[r],i=t(s);n.set(i,n.has(i)?tm(s,n.get(i),{arrayMerge:im}):s)}return[...n.values()].reverse()}const im=(e,t,n)=>[...t];function om(e,t){for(const n of t){if(!e)return;e=e[n]}return e}function am(e,t="a",n=26){const r=[];do{e-=1,r.push(e%n),e=e/n>>0}while(e>0);const s=t.charCodeAt(0);return r.reverse().map((e=>String.fromCharCode(s+e))).join("")}const cm=["I","X","C","M"],lm=["V","L","D"];function um(e){return[...e+""].map((e=>+e)).reverse().map(((e,t)=>e%5<4?(e<5?"":lm[t])+cm[t].repeat(e%5):cm[t]+(e<5?lm[t]:cm[t+1]))).reverse().join("")}class dm{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=om(e,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=om(e,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();const n=0===this.nextLineWords.length,r=e.length+(n?0:1);if(r<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{const[t,...r]=this.splitLongWord(e);n||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length;for(const e of r)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){const e=this.nextLineWords.pop();if(void 0!==e){const t=0===this.nextLineWords.length,n=e.length+(t?0:1);this.nextLineAvailableChars+=n}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{const n=this.popWord();this.pushWord(n?n.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},(()=>[]))),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map((e=>e.join(" "))).join("\n")}splitLongWord(e){const t=[];let n=0;for(;e.length>this.maxLineLength;){const r=e.substring(0,this.maxLineLength),s=e.substring(this.maxLineLength),i=r.lastIndexOf(this.wrapCharacters[n]);if(i>-1)e=r.substring(i+1)+s,t.push(r.substring(0,i+1));else{if(n++,!(n<this.wrapCharacters.length)){if(this.forceWrapOnLimit){if(t.push(r),(e=s).length>this.maxLineLength)continue}else e=r+s;break}e=r+s}}return t.push(e),t}}class pm{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class hm extends pm{constructor(e,t=null,n=1,r=void 0){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new dm(e,r),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class fm extends hm{constructor(e,t=null,{interRowLineBreaks:n=1,leadingLineBreaks:r=2,maxLineLength:s,maxPrefixLength:i=0,prefixAlign:o="left"}={}){super(e,t,r,s),this.maxPrefixLength=i,this.prefixAlign=o,this.interRowLineBreaks=n}}class mm extends hm{constructor(e,t=null,{leadingLineBreaks:n=1,maxLineLength:r,prefix:s=""}={}){super(e,t,n,r),this.prefix=s}}class gm extends pm{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class ym extends pm{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class bm extends pm{constructor(e,t=null,n=void 0){super(t),this.inlineTextBuilder=new dm(e,n),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}}class wm extends pm{constructor(e=null,t){super(e),this.transform=t}}class xm{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,""):e.whitespaceCharacters;const t=(n=this.whitespaceChars,[...n].map((e=>"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0"))).join(""));var n;if(this.leadingWhitespaceRe=new RegExp(`^[${t}]`),this.trailingWhitespaceRe=new RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${t}])`,"g"),this.newlineOrNonNewlineStringRe=new RegExp("(\\n|[^\\n]+)","g"),e.preserveNewlines){const e=new RegExp(`\\n|[^\\n${t}]+`,"gm");this.shrinkWrapAdd=function(t,n,r=(e=>e),s=!1){if(!t)return;const i=n.stashedSpace;let o=!1,a=e.exec(t);if(a)for(o=!0,"\n"===a[0]?n.startNewLine():i||this.testLeadingWhitespace(t)?n.pushWord(r(a[0]),s):n.concatWord(r(a[0]),s);null!==(a=e.exec(t));)"\n"===a[0]?n.startNewLine():n.pushWord(r(a[0]),s);n.stashedSpace=i&&!o||this.testTrailingWhitespace(t)}}else{const e=new RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,n,r=(e=>e),s=!1){if(!t)return;const i=n.stashedSpace;let o=!1,a=e.exec(t);if(a)for(o=!0,i||this.testLeadingWhitespace(t)?n.pushWord(r(a[0]),s):n.concatWord(r(a[0]),s);null!==(a=e.exec(t));)n.pushWord(r(a[0]),s);n.stashedSpace=i&&!o||this.testTrailingWhitespace(t)}}}addLiteral(e,t,n=!0){if(!e)return;const r=t.stashedSpace;let s=!1,i=this.newlineOrNonNewlineStringRe.exec(e);if(i)for(s=!0,"\n"===i[0]?t.startNewLine():r?t.pushWord(i[0],n):t.concatWord(i[0],n);null!==(i=this.newlineOrNonNewlineStringRe.exec(e));)"\n"===i[0]?t.startNewLine():t.pushWord(i[0],n);t.stashedSpace=r&&!s}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let t,n=0;for(;null!==(t=this.newlineOrNonWhitespaceRe.exec(e));){if("\n"!==t[0])return 0;n++}return n}}class vm{constructor(e,t,n=void 0){this.options=e,this.picker=t,this.metadata=n,this.whitespaceProcessor=new xm(e),this._stackItem=new hm(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new wm(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;const e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}startNoWrap(){this._stackItem.isNoWrap=!0}stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){const e=this._wordTransformer?e=>km(e,this._wordTransformer):void 0,t=this.options.encodeCharacters;return e?t?n=>t(e(n)):e:t}_popStackItem(){const e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof hm||this._stackItem instanceof mm||this._stackItem instanceof bm)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof hm||this._stackItem instanceof mm||this._stackItem instanceof bm)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof hm||this._stackItem instanceof mm||this._stackItem instanceof bm)if(this._stackItem.isPre)this._stackItem.rawText+=e;else if(0!==e.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){const t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0)return void this._stackItem.inlineTextBuilder.startNewLine(t)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,t?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}addLiteral(e){(this._stackItem instanceof hm||this._stackItem instanceof mm||this._stackItem instanceof bm)&&0!==e.length&&(this._stackItem.isPre?this._stackItem.rawText+=e:(this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(e,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0))}openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:n=!1}={}){const r=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new hm(this.options,this._stackItem,e,r),n&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:t}={}){const n=this._popStackItem(),r=t?t(Em(n)):Em(n);Sm(this._stackItem,r,n.leadingLineBreaks,Math.max(n.stashedLineBreaks,e))}openList({maxPrefixLength:e=0,prefixAlign:t="left",interRowLineBreaks:n=1,leadingLineBreaks:r=2}={}){this._stackItem=new fm(this.options,this._stackItem,{interRowLineBreaks:n,leadingLineBreaks:r,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=""}={}){if(!(this._stackItem instanceof fm))throw new Error("Can't add a list item to something that is not a list! Check the formatter.");const t=this._stackItem,n=Math.max(e.length,t.maxPrefixLength),r=Math.max(20,t.inlineTextBuilder.maxLineLength-n);this._stackItem=new mm(this.options,t,{prefix:e,maxLineLength:r,leadingLineBreaks:t.interRowLineBreaks})}closeListItem(){const e=this._popStackItem(),t=e.next,n=Math.max(e.prefix.length,t.maxPrefixLength),r="\n"+" ".repeat(n);Sm(t,("right"===t.prefixAlign?e.prefix.padStart(n):e.prefix.padEnd(n))+Em(e).replace(/\n/g,r),e.leadingLineBreaks,Math.max(e.stashedLineBreaks,t.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){const t=this._popStackItem(),n=Em(t);n&&Sm(this._stackItem,n,t.leadingLineBreaks,e)}openTable(){this._stackItem=new gm(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof gm))throw new Error("Can't add a table row to something that is not a table! Check the formatter.");this._stackItem=new ym(this._stackItem)}openTableCell({maxColumnWidth:e}={}){if(!(this._stackItem instanceof ym))throw new Error("Can't add a table cell to something that is not a table row! Check the formatter.");this._stackItem=new bm(this.options,this._stackItem,e)}closeTableCell({colspan:e=1,rowspan:t=1}={}){const n=this._popStackItem(),r=rm(Em(n),"\n");n.next.cells.push({colspan:e,rowspan:t,text:r})}closeTableRow(){const e=this._popStackItem();e.next.rows.push(e.cells)}closeTable({tableToString:e,leadingLineBreaks:t=2,trailingLineBreaks:n=2}){const r=e(this._popStackItem().rows);r&&Sm(this._stackItem,r,t,n)}toString(){return Em(this._stackItem.getRoot())}}function Em(e){if(!(e instanceof hm||e instanceof mm||e instanceof bm))throw new Error("Only blocks, list items and table cells can be requested for text contents.");return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function Sm(e,t,n,r){if(!(e instanceof hm||e instanceof mm||e instanceof bm))throw new Error("Only blocks, list items and table cells can contain text.");const s=Em(e),i=Math.max(e.stashedLineBreaks,n);e.inlineTextBuilder.clear(),s?e.rawText=s+"\n".repeat(i)+t:(e.rawText=t,e.leadingLineBreaks=i),e.stashedLineBreaks=r}function km(e,t){return t?km(t.transform(e),t.next):e}function Am(e={}){const t=e.selectors.filter((e=>!e.format));if(t.length)throw new Error("Following selectors have no specified format: "+t.map((e=>`\`${e.selector}\``)).join(", "));const n=new Oh(e.selectors.map((e=>[e.selector,e]))).build(Zh);"function"!=typeof e.encodeCharacters&&(e.encodeCharacters=function(e){if(!e||0===Object.keys(e).length)return;const t=Object.entries(e).filter((([,e])=>!1!==e)),n=new RegExp(t.map((([e])=>{return`(${t=[...e][0],t.replace(/[\s\S]/g,(e=>"\\u"+e.charCodeAt().toString(16).padStart(4,"0")))})`;var t})).join("|"),"g"),r=t.map((([,e])=>e)),s=(e,...t)=>r[t.findIndex((e=>e))];return e=>e.replace(n,s)}(e.encodeCharacters));const r=new Oh(e.baseElements.selectors.map(((e,t)=>[e,t+1]))).build(Zh);function s(t){return function(e,t,n){const r=[];const s=nm(t.limits.maxDepth,(function(e,s){s=s.slice(0,t.limits.maxChildNodes);for(const i of s){if("tag"!==i.type)continue;const s=n.pick1(i);if(s>0?r.push({selectorIndex:s,element:i}):i.children&&e(i.children),r.length>=t.limits.maxBaseElements)return}}));return s(e),"occurrence"!==t.baseElements.orderBy&&r.sort(((e,t)=>e.selectorIndex-t.selectorIndex)),t.baseElements.returnDomByDefault&&0===r.length?e:r.map((e=>e.element))}(t,e,r)}const i=nm(e.limits.maxDepth,Im,(function(t,n){n.addInline(e.limits.ellipsis||"")}));return function(t,r=void 0){return function(e,t,n,r,s,i){const o=n.limits.maxInputLength;o&&e&&e.length>o&&(console.warn(`Input length ${e.length} is above allowed limit of ${o}. Truncating without ellipsis.`),e=e.substring(0,o));const a=function(e,t){const n=new hp(void 0,t);return new Df(n,t).end(e),n.root}(e,{decodeEntities:n.decodeEntities}),c=s(a.children),l=new vm(n,r,t);return i(c,l),l.toString()}(t,r,e,n,s,i)}}function Im(e,t,n){if(!t)return;const r=n.options;t.length>r.limits.maxChildNodes&&(t=t.slice(0,r.limits.maxChildNodes)).push({data:r.limits.ellipsis,type:"text"});for(const s of t)switch(s.type){case"text":n.addInline(s.data);break;case"tag":{const t=n.picker.pick1(s);(0,r.formatters[t.format])(s,e,n,t.options||{});break}}}function Tm(e){const t=e.attribs&&e.attribs.length?" "+Object.entries(e.attribs).map((([e,t])=>""===t?e:`${e}=${t.replace(/"/g,""")}`)).join(" "):"";return`<${e.name}${t}>`}function Nm(e){return`</${e.name}>`}var Cm=Object.freeze({__proto__:null,block:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},blockHtml:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(Jf(e,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},blockString:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addLiteral(r.string||""),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},blockTag:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(Tm(e)),n.stopNoWrap(),t(e.children,n),n.startNoWrap(),n.addLiteral(Nm(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},inline:function(e,t,n,r){t(e.children,n)},inlineHtml:function(e,t,n,r){n.startNoWrap(),n.addLiteral(Jf(e,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap()},inlineString:function(e,t,n,r){n.addLiteral(r.string||"")},inlineSurround:function(e,t,n,r){n.addLiteral(r.prefix||""),t(e.children,n),n.addLiteral(r.suffix||"")},inlineTag:function(e,t,n,r){n.startNoWrap(),n.addLiteral(Tm(e)),n.stopNoWrap(),t(e.children,n),n.startNoWrap(),n.addLiteral(Nm(e)),n.stopNoWrap()},skip:function(e,t,n,r){}});function Pm(e,t){return e[t]||(e[t]=[]),e[t]}function Om(e,t=0){for(;e[t];)t++;return t}function Lm(e,t,n,r){for(let s=0;s<e.rowspan;s++){const i=Pm(t,n+s);for(let t=0;t<e.colspan;t++)i[r+t]=e}}function Rm(e,t){return void 0===e[t]&&(e[t]=0===t?0:1+Rm(e,t-1)),e[t]}function Dm(e,t,n,r){e[t+n]=Math.max(Rm(e,t+n),Rm(e,t)+r)}function _m(e,t){return t?("string"==typeof t[0]?t[0]:"[")+e+("string"==typeof t[1]?t[1]:"]"):e}function $m(e,t,n,r,s){const i="function"==typeof t?t(e,r,s):e;return"/"===i[0]&&n?function(e,t){let n=e.length;for(;n>0&&"/"===e[n-1];)--n;return n<e.length?e.substring(0,n):e}(n)+i:i}function qm(e,t,n,r,s){const i="li"===om(e,["parent","name"]);let o=0;const a=(e.children||[]).filter((e=>"text"!==e.type||!/^\s*$/.test(e.data))).map((function(e){if("li"!==e.name)return{node:e,prefix:""};const t=i?s().trimStart():s();return t.length>o&&(o=t.length),{node:e,prefix:t}}));if(a.length){n.openList({interRowLineBreaks:1,leadingLineBreaks:i?1:r.leadingLineBreaks||2,maxPrefixLength:o,prefixAlign:"left"});for(const{node:e,prefix:r}of a)n.openListItem({prefix:r}),t([e],n),n.closeListItem();n.closeList({trailingLineBreaks:i?1:r.trailingLineBreaks||2})}}function Bm(e,t,n,r){function s(e){const s=+om(e,["attribs","colspan"])||1,i=+om(e,["attribs","rowspan"])||1;n.openTableCell({maxColumnWidth:r.maxColumnWidth}),t(e.children,n),n.closeTableCell({colspan:s,rowspan:i})}n.openTable(),e.children.forEach((function e(t){if("tag"!==t.type)return;const i=!1!==r.uppercaseHeaderCells?e=>{n.pushWordTransform((e=>e.toUpperCase())),s(e),n.popWordTransform()}:s;switch(t.name){case"thead":case"tbody":case"tfoot":case"center":return void t.children.forEach(e);case"tr":n.openTableRow();for(const e of t.children)if("tag"===e.type)switch(e.name){case"th":i(e);break;case"td":s(e)}n.closeTableRow()}})),n.closeTable({tableToString:e=>function(e,t,n){const r=[];let s=0;const i=e.length,o=[0];for(let n=0;n<i;n++){const i=Pm(r,n),a=e[n];let c=0;for(let e=0;e<a.length;e++){const s=a[e];c=Om(i,c),Lm(s,r,n,c),c+=s.colspan,s.lines=s.text.split("\n");const l=s.lines.length;Dm(o,n,s.rowspan,l+t)}s=i.length>s?i.length:s}!function(e,t){for(let n=0;n<t;n++){const t=Pm(e,n);for(let r=0;r<n;r++){const s=Pm(e,r);if(t[r]||s[n]){const e=t[r];t[r]=s[n],s[n]=e}}}}(r,i>s?i:s);const a=[],c=[0];for(let e=0;e<s;e++){let t,s=0;const l=Math.min(i,r[e].length);for(;s<l;)if(t=r[e][s],t){if(!t.rendered){let r=0;for(let n=0;n<t.lines.length;n++){const i=t.lines[n],l=o[s]+n;a[l]=(a[l]||"").padEnd(c[e])+i,r=i.length>r?i.length:r}Dm(c,e,t.colspan,r+n),t.rendered=!0}s+=t.rowspan}else{const e=o[s];a[e]=a[e]||"",s++}}return a.join("\n")}(e,r.rowSpacing??0,r.colSpacing??3),leadingLineBreaks:r.leadingLineBreaks,trailingLineBreaks:r.trailingLineBreaks})}var jm=Object.freeze({__proto__:null,anchor:function(e,t,n,r){const s=function(){if(r.ignoreHref)return"";if(!e.attribs||!e.attribs.href)return"";let t=e.attribs.href.replace(/^mailto:/,"");return r.noAnchorUrl&&"#"===t[0]?"":(t=$m(t,r.pathRewrite,r.baseUrl,n.metadata,e),t)}();if(s){let i="";n.pushWordTransform((e=>(e&&(i+=e),e))),t(e.children,n),n.popWordTransform(),r.hideLinkHrefIfSameAsText&&s===i||n.addInline(i?" "+_m(s,r.linkBrackets):s,{noWordTransform:!0})}else t(e.children,n)},blockquote:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2,blockTransform:e=>(!1!==r.trimEmptyLines?rm(e,"\n"):e).split("\n").map((e=>"> "+e)).join("\n")})},dataTable:Bm,heading:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),!1!==r.uppercase?(n.pushWordTransform((e=>e.toUpperCase())),t(e.children,n),n.popWordTransform()):t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},horizontalLine:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addInline("-".repeat(r.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},image:function(e,t,n,r){const s=e.attribs||{},i=s.alt?s.alt:"",o=s.src?$m(s.src,r.pathRewrite,r.baseUrl,n.metadata,e):"",a=o?i?i+" "+_m(o,r.linkBrackets):_m(o,r.linkBrackets):i;n.addInline(a,{noWordTransform:!0})},lineBreak:function(e,t,n,r){n.addLineBreak()},orderedList:function(e,t,n,r){let s=Number(e.attribs.start||"1");const i=function(e="1"){switch(e){case"a":return e=>am(e,"a");case"A":return e=>am(e,"A");case"i":return e=>um(e).toLowerCase();case"I":return e=>um(e);default:return e=>e.toString()}}(e.attribs.type);return qm(e,t,n,r,(()=>" "+i(s++)+". "))},paragraph:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},pre:function(e,t,n,r){n.openBlock({isPre:!0,leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},table:function(e,t,n,r){return function(e,t){if(!0===t)return!0;if(!e)return!1;const{classes:n,ids:r}=function(e){const t=[],n=[];for(const r of e)r.startsWith(".")?t.push(r.substring(1)):r.startsWith("#")&&n.push(r.substring(1));return{classes:t,ids:n}}(t),s=(e.class||"").split(" "),i=(e.id||"").split(" ");return s.some((e=>n.includes(e)))||i.some((e=>r.includes(e)))}(e.attribs,n.options.tables)?Bm(e,t,n,r):function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks})}(e,t,n,r)},unorderedList:function(e,t,n,r){const s=r.itemPrefix||" * ";return qm(e,t,n,r,(()=>s))},wbr:function(e,t,n,r){n.addWordBreakOpportunity()}});const Um={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \t\r\n\f",wordwrap:80},Mm=(e,t,n)=>[...t],Fm=(e,t,n)=>e.some((e=>"object"==typeof e))?((e,t,n)=>[...e,...t])(e,t):Mm(0,t);const zm="https://fhvwzg7yh8.execute-api.eu-west-1.amazonaws.com/testing/CiteGeistGMail",Vm={customer:{body:function(){return'<!DOCTYPE html>\n <head>\n <title>CiteGeist Request</title>\n <meta charset="UTF-8">\n <style>\n div.container {\n background-color: #ffffff;\n }\n </style>\n </head>\n <body>\n <div class="container">\n <p>Deine CiteGeist Anfrage ist bei uns eingegangen.</p>\n <p>Die Autoren der von dir ausgewählten Zitate wurden von uns benachrichtigt.</p>\n <p>Sobald sie entschieden haben, ob sie mit der Nutzung ihrer Zitate einverstanden sind, wirst du von uns per E-Mail benachrichtigt</p>\n </div>\n </body>\n '},subject:function(){return"Deine CiteGeist Anfrage wird bearbeitet!"}},author:{body:function(e){let{userName:t,authorId:n,projectId:r,post:s,publishDate:i}=e;const o=`${zm}?type=response&projectId=${r}&authorId=${n}&response=`;return`<!DOCTYPE html>\n<head>\n <title>CiteGeist Request</title>\n <meta charset="UTF-8">\n <style>\n div.container {\n background-color: #ffffff;\n }\n .buttondiv {\n display:flex;\n flex-direction: row;\n width:200px;\n max-width:100%;\n gap:5px;\n\n }\n .button {\n border-radius: 10px;\n /* margin-right: 5px; */\n padding: 8px 12px;\n border: 1px solid black;\n background-color: #506cff;\n font-family: Helvetica,Arial,sans-serif;\n font-size: 14px;\n color: #ffffff;\n text-decoration: none;\n font-weight: bold;\n display: inline-block;\n width: 100px;\n text-align: center; \n }\n\n .button a {\n color: white;\n display: block;\n width: 100%;\n height: 100%;\n }\n .post {\n max-width: 500px;\n border: 1px solid darkgray;\n border-radius: 20px;\n padding: 10px;\n background-color: lightgray;\n white-space: pre-line;\n max-height: 300px;\n overflow-y: auto;\n }\n </style>\n</head>\n<body>\n <div class="container">\n <p>${t} will dich in einem Beitrag zitieren!</p>\n <p></p>\n <p>Folgender Beitrag soll zu diesem Zeitpunkt veröffentlicht werden:</p>\n <p><b>${i}</b></p>\n <p></p>\n <p class="post">${s}</p>\n <p>Stimmst du der Nutzung deiner Zitate zu?</p> \n <div class="buttondiv">\n <div class="button">\n <a href=${o}True target="_blank"> Ja </a>\n </div>\n <div class="button">\n <a href=${o}False target="_blank"> Nein </a>\n </div>\n </div>\n </div>\n</body>\n`},subject:function(){return"Neue CiteGeist Anfrage!"}}},Wm={yes:function(){return'<!DOCTYPE html>\n <style>\n div {\n display: flex;\n flex-direction: column;\n height: max-content;\n gap: 10px;\n max-width: 400px;\n justify-content: flex-start;\n border: 1px solid darkgray;\n border-radius: 20px;\n background-color: lightgray;\n padding: 10px;\n}\n </style>\n<html>\n <head>\n <meta charset="UTF-8">\n <title>CiteGeist Response</title>\n </head> \n <body>\n <div>\n <p>Danke, 💕dass du der Nutzung deiner Zitate zugestimmt hast</p>\n <p>Sobald der Kunde diesen veröffentlicht hat, wirst du den Link zum LinkedIn-Post per Mail erhalten.</p>\n <p>Bitte kommentiere zeitnah (innerhalb von 2 Stunden) nach Erhalt der Mail den Beitrag.</p>\n <p>PS. Diese Landingpage wird bald eleganter aussehen 🙂 Unsere Designer werden in wenigen Wochen die neue Landingpage live schalten!</p>\n </div>\n </body>\n</html>'},no:function(e){let{projectId:t,authorId:n}=e;return`<!DOCTYPE html>\n<style>\nform {\n display: flex;\n flex-direction: column;\n height: max-content;\n gap: 10px;\n max-width: 400px;\n align-items: flex-end;\n justify-content: flex-start;\n border: 1px solid darkgray;\n border-radius: 20px;\n background-color: lightgray;\n padding: 10px;\n}\ntextarea {\n height: 100px;\n width: 100%;\n}\nform > input{\n width: 100px;\n}\n</style>\n<html>\n <head>\n <meta charset="UTF-8">\n <title>CiteGeist Response</title>\n </head> \n <body>\n <form id=getReason action="${zm}" method="GET">\n <p>Bitte gib dem Kunden eine kurze Begründung, warum du die Anfrage abgelehnt hast</p>\n <textarea name=reason id="reason" placeholder="Grund"></textarea>\n <input type="hidden" name="type" value="authorRejection"/>\n <input type="hidden" name="authorId" value="${n}" />\n <input type="hidden" name="projectId" value="${t}" />\n <input type="submit">\n </form> \n </body>\n</html>`},invalid:function(){return'<!DOCTYPE html>\n<style>\ndiv {\n display: flex;\n flex-direction: column;\n height: max-content;\n gap: 10px;\n max-width: 400px;\n align-items: flex-end;\n justify-content: flex-start;\n border: 1px solid darkgray;\n border-radius: 20px;\n background-color: lightgray;\n padding: 10px;\n}\ntextarea {\n height: 100px;\n width: 100%;\n}\nform > input{\n width: 100px;\n}\n</style>\n<html>\n <head>\n <meta charset="UTF-8">\n <title>CiteGeist Response</title>\n </head> \n <body>\n <div>\n <p>Über diese Kaufanfrage wurde bereits eine Entscheidung getroffen</p>\n </div> \n </body>\n</html>'},customerMail:{body:function(e){let{post:t,date:n}=e;return`<!DOCTYPE html>\n\n<head>\n <title>CiteGeist Request</title>\n <meta charset="UTF-8">\n <style>\n div.container {\n background-color: #ffffff;\n }\n .buttondiv {\n display:flex;\n flex-direction: row;\n width:200px;\n max-width:100%;\n gap:5px;\n\n }\n .button {\n border-radius: 10px;\n /* margin-right: 5px; */\n padding: 8px 12px;\n border: 1px solid black;\n background-color: #506cff;\n font-family: Helvetica,Arial,sans-serif;\n font-size: 14px;\n color: #ffffff;\n text-decoration: none;\n font-weight: bold;\n display: inline-block;\n width: 100px;\n text-align: center; \n }\n\n .button a {\n color: white;\n display: block;\n width: 100%;\n height: 100%;\n }\n .post {\n max-width: 500px;\n border: 1px solid darkgray;\n border-radius: 20px;\n padding: 10px;\n background-color: lightgray;\n white-space: pre-line;\n max-height: 300px;\n overflow-y: auto;\n }\n </style>\n</head>\n<body>\n <div class="container">\n <p>Yeah! Die Autoren aller Zitate, die du in deinem Beitrag verwenden möchtest, haben deiner Nutzung zugestimmt!</p>\n <p></p>\n <p>Dein nächster Schritt:</p>\n <p><b>Veröffentliche deinen Beitragstext inkl. Zitat zu diesem Zeitpunkt:</b></p>\n <p><b>${n}</b></p>\n <p>Der zitierte Influencer wird in der Regel deinen Beitrag dann zeitnah kommentieren und damit boosten!</p>\n <p></p>\n <p class="post">${t}</p>\n <p>Am Tag der Veröffentlichung erhältst du von uns eine Erinnerung, in der die letzten Schritte erklärt werden</p> \n </div>\n</body>`},subject:function(){return"Yeah! Deine CiteGeist Anfrage wurde vom Influencer angenommen!"}}},Hm={submissionResponseForm:function(){return'<!DOCTYPE html>\n\n<head>\n <title>CiteGeist Request</title>\n <meta charset="UTF-8">\n <style>\n div.container {\n background-color: #ffffff;\n }\n .buttondiv {\n display:flex;\n flex-direction: row;\n width:200px;\n max-width:100%;\n gap:5px;\n\n }\n .button {\n border-radius: 10px;\n /* margin-right: 5px; */\n padding: 8px 12px;\n border: 1px solid black;\n background-color: #506cff;\n font-family: Helvetica,Arial,sans-serif;\n font-size: 14px;\n color: #ffffff;\n text-decoration: none;\n font-weight: bold;\n display: inline-block;\n width: 100px;\n text-align: center; \n }\n\n .button a {\n color: white;\n display: block;\n width: 100%;\n height: 100%;\n }\n .post {\n max-width: 500px;\n border: 1px solid darkgray;\n border-radius: 20px;\n padding: 10px;\n background-color: lightgray;\n white-space: pre-line;\n max-height: 300px;\n overflow-y: auto;\n }\n </style>\n</head>\n<body>\n <div class="container">\n <p>Vielen Dank für dein Feedback</p>\n <p></p>\n <p>Der Kunde wurde über deine Entscheidung informiert</p>\n <p></p>\n </div>\n</body>'},customer:{subject:function(){return"Ups! Deine CiteGeist Anfrage wurde leider abgelehnt..."},body:function(e){let{post:t,reason:n}=e;return`<!DOCTYPE html>\n\n<head>\n <title>CiteGeist Request</title>\n <meta charset="UTF-8">\n <style>\n div.container {\n background-color: #ffffff;\n }\n .buttondiv {\n display:flex;\n flex-direction: row;\n width:200px;\n max-width:100%;\n gap:5px;\n\n }\n .button {\n border-radius: 10px;\n /* margin-right: 5px; */\n padding: 8px 12px;\n border: 1px solid black;\n background-color: #506cff;\n font-family: Helvetica,Arial,sans-serif;\n font-size: 14px;\n color: #ffffff;\n text-decoration: none;\n font-weight: bold;\n display: inline-block;\n width: 100px;\n text-align: center; \n }\n\n .button a {\n color: white;\n display: block;\n width: 100%;\n height: 100%;\n }\n .post {\n max-width: 500px;\n border: 1px solid darkgray;\n border-radius: 20px;\n padding: 10px;\n background-color: lightgray;\n white-space: pre-line;\n max-height: 300px;\n overflow-y: auto;\n }\n </style>\n</head>\n<body>\n <div class="container">\n <p>Einer der Autoren der Zitate, die du in deinem Beitrag verwenden möchtest, hat der Nutzung in deinem Beitrag leider nicht zugestimmt!</p>\n <p></p>\n <p>Es wurde folgender Grund dafür angegeben:</p>\n <p></p>\n <p class="post">${n}</p>\n <p></p>\n <p class="post">${t}</p>\n </div>\n</body>`}},author:{subject:function(){return""},body:function(e){let{post:t,reason:n}=e;return`<!DOCTYPE html>\n\n<head>\n <title>CiteGeist Request</title>\n <meta charset="UTF-8">\n <style>\n div.container {\n background-color: #ffffff;\n }\n .buttondiv {\n display:flex;\n flex-direction: row;\n width:200px;\n max-width:100%;\n gap:5px;\n\n }\n .button {\n border-radius: 10px;\n /* margin-right: 5px; */\n padding: 8px 12px;\n border: 1px solid black;\n background-color: #506cff;\n font-family: Helvetica,Arial,sans-serif;\n font-size: 14px;\n color: #ffffff;\n text-decoration: none;\n font-weight: bold;\n display: inline-block;\n width: 100px;\n text-align: center; \n }\n\n .button a {\n color: white;\n display: block;\n width: 100%;\n height: 100%;\n }\n .post {\n max-width: 500px;\n border: 1px solid darkgray;\n border-radius: 20px;\n padding: 10px;\n background-color: lightgray;\n white-space: pre-line;\n max-height: 300px;\n overflow-y: auto;\n }\n </style>\n</head>\n<body>\n <div class="container">\n <p>Einer der Autoren der Zitate, die du in deinem Beitrag verwenden möchtest, hat der Nutzung in deinem Beitrag leider nicht zugestimmt!</p>\n <p></p>\n <p>Es wurde folgender Grund dafür angegeben:</p>\n <p></p>\n <p class="post">${n}</p>\n <p></p>\n <p class="post">${t}</p>\n </div>\n</body>\n`}}},Gm=function(){return{statusCode:500,body:"Internal Server Error"}},Km=function(e){return{statusCode:400,body:{error:"event type not found",event:e}}};let Zm=function(e){return e.Requested="Requested",e.Accepted="Accepted",e.Posted="Posted",e.Rejected="Rejected",e}({});const Jm={mailFrom:"team@citegeist.ai",identityArn:"arn:aws:ses:eu-west-1:698370298205:identity/citegeist.ai",charsetUtf8:"UTF-8"},Ym=new class extends Ln{constructor(...[e]){const t=(n=(e=>{Pr(process.version);const t=So(e),n=()=>t().then(Nr),r=(e=>({apiVersion:"2019-09-27",base64Decoder:e?.base64Decoder??Dn,base64Encoder:e?.base64Encoder??_n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??gl,extensions:e?.extensions??[],logger:e?.logger??new Nn,serviceId:e?.serviceId??"SESv2",urlParser:e?.urlParser??Gt,utf8Decoder:e?.utf8Decoder??H,utf8Encoder:e?.utf8Encoder??K}))(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ji,credentialDefaultProvider:e?.credentialDefaultProvider??Kc(cc),defaultUserAgentProvider:e?.defaultUserAgentProvider??Gi({serviceId:r.serviceId,clientVersion:"3.395.0"}),maxAttempts:e?.maxAttempts??Ni(dn),region:e?.region??Ni(Ct,Pt),requestHandler:e?.requestHandler??new Fn(n),retryMode:e?.retryMode??Ni({...hn,default:async()=>(await n()).retryMode||Yt}),sha256:e?.sha256??Ki.bind(null,"sha256"),streamCollector:e?.streamCollector??Vn,useDualstackEndpoint:e?.useDualstackEndpoint??Ni(Tt),useFipsEndpoint:e?.useFipsEndpoint??Ni(Nt)}})(e||{}),{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"ses"});var n;const r=Rt(t),s=Kt(r),i=pn(s),o=((e,t)=>{const n={...l(e)};return t.forEach((e=>e.configureClient(n))),{...e,...u(n)}})(Oe(ke(i)),e?.extensions||[]);super(o),this.config=o,this.middlewareStack.use(In(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(y(this.config)),this.middlewareStack.use(w(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(kt(this.config))}destroy(){super.destroy()}}({region:"eu-west-1"}),Xm=new class extends Ln{constructor(...[e]){const t=(n=(e=>{Pr(process.version);const t=So(e),n=()=>t().then(Nr),r=(e=>({apiVersion:"2012-08-10",base64Decoder:e?.base64Decoder??Dn,base64Encoder:e?.base64Encoder??_n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??fd,extensions:e?.extensions??[],logger:e?.logger??new Nn,serviceId:e?.serviceId??"DynamoDB",urlParser:e?.urlParser??Gt,utf8Decoder:e?.utf8Decoder??H,utf8Encoder:e?.utf8Encoder??K}))(e);return{...r,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ji,credentialDefaultProvider:e?.credentialDefaultProvider??Kc(cc),defaultUserAgentProvider:e?.defaultUserAgentProvider??Gi({serviceId:r.serviceId,clientVersion:"3.395.0"}),endpointDiscoveryEnabledProvider:e?.endpointDiscoveryEnabledProvider??Ni(Vl),maxAttempts:e?.maxAttempts??Ni(dn),region:e?.region??Ni(Ct,Pt),requestHandler:e?.requestHandler??new Fn(n),retryMode:e?.retryMode??Ni({...hn,default:async()=>(await n()).retryMode||Yt}),sha256:e?.sha256??Ki.bind(null,"sha256"),streamCollector:e?.streamCollector??Vn,useDualstackEndpoint:e?.useDualstackEndpoint??Ni(Tt),useFipsEndpoint:e?.useFipsEndpoint??Ni(Nt)}})(e||{}),{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"dynamodb"});var n;const r=Rt(t),s=Kt(r),i=pn(s),o=((e,t)=>{const n={...l(e)};return t.forEach((e=>e.configureClient(n))),{...e,...u(n)}})(((e,{endpointDiscoveryCommandCtor:t})=>({...e,endpointDiscoveryCommandCtor:t,endpointCache:new Kl(e.endpointCacheSize??1e3),endpointDiscoveryEnabled:void 0!==e.endpointDiscoveryEnabled?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:void 0!==e.endpointDiscoveryEnabled}))(Oe(ke(i)),{endpointDiscoveryCommandCtor:Fu}),e?.extensions||[]);super(o),this.config=o,this.middlewareStack.use(In(this.config)),this.middlewareStack.use($t(this.config)),this.middlewareStack.use(y(this.config)),this.middlewareStack.use(w(this.config)),this.middlewareStack.use(E(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(kt(this.config))}destroy(){super.destroy()}}({region:"eu-central-1"}),Qm=Fd.from(Xm),eg="User-2jvn5umhxfavzep2qzfke2pobu-staging",tg="Requests",ng=function(e={}){return(e=tm(Um,e,{arrayMerge:Mm,customMerge:e=>"selectors"===e?Fm:void 0})).formatters=Object.assign({},Cm,jm,e.formatters),e.selectors=sm(e.selectors,(e=>e.selector)),function(e){if(e.tags){const t=Object.entries(e.tags).map((([e,t])=>({...t,selector:e||"*"})));e.selectors.push(...t),e.selectors=sm(e.selectors,(e=>e.selector))}function t(e,t,n){const r=t.pop();for(const n of t){let t=e[n];t||(t={},e[n]=t),e=t}e[r]=n}if(e.baseElement){const n=e.baseElement;t(e,["baseElements","selectors"],Array.isArray(n)?n:[n])}void 0!==e.returnDomByDefault&&t(e,["baseElements","returnDomByDefault"],e.returnDomByDefault);for(const n of e.selectors)"anchor"===n.format&&om(n,["options","noLinkBrackets"])&&t(n,["options","linkBrackets"],!1)}(e),Am(e)}({wordwrap:130});var rg=!1;const sg={id:"1235-456-789",name:"Jonas Roth",email:"jonasroth1@gmail.com",accepted:!1},ig=async e=>{let t,n=e.type;const r={type:e.type,response:e.response,reason:e.reason,projectId:e.projectId,postLink:e.postLink,authorId:e.authorId};console.log("-----------------------------------"),console.log("API Call Start: ",n),e.debug&&(rg=!0,console.log("Debug Mode active"));try{switch(n){case"newRequest":const s=e.request||{};t=await async function(e){if(!e)return{statusCode:500,body:"Request not found"};const t=function(e){const t=(0,fn.randomUUID)(),n=e.publishDate??null,r=e.userEmail??null,s=`${e.userTitle??""} ${e.userFirstName??""} ${e.userLastName??""}`.trim(),i=[],o=[],a=e.citations??[];for(const e of a){let t=e.citationAuthorId??null;t&&!i.find((e=>e.id===t))&&i.push({id:t,name:e.citationAuthorName,email:"",accepted:!1}),o.push(e.id)}const c=Zm.Requested,l=e.post,u=(new Date).toISOString();return{id:t,requestStep:c,publishDate:n,customerMail:r,customerName:s,post:l,authors:i,citationIds:o,createdAt:u,updatedAt:u}}(e);await Promise.all(t.authors.map((e=>async function(e){const t=await async function(e){let{id:t}=e;const n={keyName:"id",keyValue:t,projectionExpression:"email",tableName:eg};return(await mg(n)).Items[0].email??""}({id:e.id});e.email=t}(e)))),await Promise.all([og({customerEmail:t.customerMail}),ag({request:t}),pg({request:t})]);return{statusCode:200,body:"True"}}(s);break;case"response":t=await async function(e){const t=e.authorId,n="True"===e.response,r=e.projectId;var s="";const i=await hg({requestId:r});if(i.requestStep!==Zm.Requested)s=Wm.invalid();else if(n){const e=i.authors.find((e=>e.id===t));if(!e)throw new Error("Author not found");e.accepted=!0,s=Wm.yes(),i.authors.find((e=>!1===e.accepted))||(console.log("Everyone accepted"),i.requestStep=Zm.Accepted,await async function(e){let{request:t}=e;const n=t.post,r=ug({request:t}),s={mailTo:t.customerMail,mailHtml:Wm.customerMail.body({post:n,date:r}),mailSubject:Wm.customerMail.subject()};await dg(s)}({request:i})),await fg({request:i})}else s=Wm.no({projectId:r,authorId:t});return{statusCode:200,headers:{"content-type":"text/html; charset=utf-8"},body:s}}(r);break;case"authorRejection":t=await async function(e){const t=e.authorId,n=e.projectId,r=e.reason,s=await hg({requestId:n});if(s.requestStep!==Zm.Requested)return{statusCode:200,body:"Error"};s.requestStep=Zm.Rejected,await Promise.all([cg({request:s,reason:r}),lg({request:s,reason:r,rejectingAuthorId:t}),fg({request:s})]);return{statusCode:200,body:Hm.submissionResponseForm()}}(r);break;case"postLink":case"shareLink":case"publishDateCheck":case"refreshToken":console.log("Not Implemented"),t={statusCode:400,body:"request type not implemented"};break;default:t=Km(n)}}catch(e){console.log(e),t=Gm()}return console.log("API Call End: ",t),console.log("-----------------------------------"),t};async function og(e){let{customerEmail:t}=e;rg&&(t=sg.email);const n={mailTo:t,mailSubject:Vm.customer.subject(),mailHtml:Vm.customer.body()};await dg(n)}async function ag(e){let{request:t}=e;rg&&(t.authors=[sg]);const n=ug({request:t});await Promise.all(t.authors.map((async e=>{const r={mailTo:e.email,mailSubject:Vm.author.subject(),mailHtml:Vm.author.body({userName:t.customerName,authorId:e.id,projectId:t.id,post:t.post,publishDate:n})};await dg(r)})))}async function cg(e){let{request:t,reason:n}=e;const r=t.post,s={mailTo:t.customerMail,mailSubject:Hm.customer.subject(),mailHtml:Hm.customer.body({post:r,reason:n})};await dg(s)}async function lg(e){let{request:t,reason:n,rejectingAuthorId:r}=e;const s=t.post,i=t.authors;await Promise.all(i.map((async e=>{if(e.id===r)return;const t={mailTo:e.email,mailSubject:Hm.author.subject(),mailHtml:Hm.author.body({post:s,reason:n})};await dg(t)})))}function ug(e){let{request:t}=e;return new Date(t.publishDate).toLocaleString("de-DE",{timeZone:"Europe/Berlin",timeZoneName:"shortGeneric",weekday:"long",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}async function dg(e){let{mailFrom:t=Jm.mailFrom,mailTo:n,mailSubject:r,mailHtml:s,charset:i="UTF-8"}=e;const o=new Ul({Destination:{ToAddresses:[n]},Content:{Simple:{Body:{Html:{Data:s,Charset:i},Text:{Data:ng(s),Charset:i}},Subject:{Data:r,Charset:i}}},FromEmailAddress:t,FromEmailAddressIdentityArn:Jm.identityArn});try{return await Ym.send(o)}catch(e){throw console.error("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAH"),console.error(e),e}}async function pg(e){let{request:t}=e;gg({tableName:tg,item:t})}async function hg(e){let{requestId:t}=e;return(await mg({tableName:tg,keyName:"id",keyValue:t})).Items[0]}async function fg(e){let{request:t}=e;gg({tableName:tg,item:t})}async function mg(e){let{tableName:t,indexName:n,keyName:r,keyValue:s,projectionExpression:i}=e;const o=new Md({TableName:t,IndexName:n,ExpressionAttributeNames:{"#key":r},ExpressionAttributeValues:{":keyValue":s},KeyConditionExpression:"#key = :keyValue",ProjectionExpression:i});try{return await Qm.send(o)}catch(e){return console.error(e),{}}}async function gg(e){let{tableName:t,item:n}=e;const r=new jd({TableName:t,Item:n});await Qm.send(r)}})();var s=exports;for(var i in r)s[i]=r[i];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();