PageSourceSearch

https://coffeemania.ru/_next/static/chunks/pages/_app-0a2f8e9e06af73d7.js

js coffeemania.ru collected 2026-09-24 18:18:23 UTC 1,192,532 bytes, 30 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{25687:function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}n.d(t,{kG:function(){return r}})},95957:function(e,t,n){"use strict";function r(e,t){var n=t&&t.cache?t.cache:l,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:function(e,t){var n,r,a=1===e.length?i:o;return n=t.cache.create(),r=t.serializer,a.bind(this,e,n,r)})(e,{cache:n,serializer:r})}function i(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(i);return void 0===o&&(o=e.call(this,r),t.set(i,o)),o}function o(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}n.d(t,{A:function(){return c},H:function(){return r}});var a=function(){return JSON.stringify(arguments)};function s(){this.cache=Object.create(null)}s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new s}},c={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,o.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)}}},56096:function(e,t,n){"use strict";n.d(t,{wD:function(){return s},VG:function(){return f},rp:function(){return m},Ii:function(){return _},O4:function(){return p},uf:function(){return h},Wh:function(){return w},Jo:function(){return v},yx:function(){return b},Wi:function(){return y},HI:function(){return x},pe:function(){return g},Qc:function(){return er}});var r,i,o,a,s,l,c,u,d=n(97582);function p(e){return e.type===s.literal}function f(e){return e.type===s.argument}function h(e){return e.type===s.number}function m(e){return e.type===s.date}function g(e){return e.type===s.time}function y(e){return e.type===s.select}function v(e){return e.type===s.plural}function b(e){return e.type===s.pound}function x(e){return e.type===s.tag}function w(e){return!!(e&&"object"==typeof e&&e.type===l.number)}function _(e){return!!(e&&"object"==typeof e&&e.type===l.dateTime)}(r=a||(a={}))[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=s||(s={}))[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(o=l||(l={}))[o.number=0]="number",o[o.dateTime=1]="dateTime";var C=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,S=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,E=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,T=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,k=/^(@+)?(\+|#+)?[rs]?$/g,j=/(\*)(0+)|(#+)(0+)|(0+)/g,O=/^(0+)$/;function P(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(k,function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function I(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function N(e){return I(e)||{}}var D={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},M=new RegExp("^".concat(C.source,"*")),A=new RegExp("".concat(C.source,"*$"));function L(e,t){return{start:e,end:t}}var R=!!String.prototype.startsWith,Z=!!String.fromCodePoint,z=!!Object.fromEntries,F=!!String.prototype.codePointAt,B=!!String.prototype.trimStart,H=!!String.prototype.trimEnd,$=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},U=!0;try{var Y=J("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");U=(null===(c=Y.exec("a"))||void 0===c?void 0:c[0])==="a"}catch(e){U=!1}var G=R?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},V=Z?String.fromCodePoint:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0;i>o;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");r+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return r},q=z?Object.fromEntries:function(e){for(var t={},n=0;n<e.length;n++){var r=e[n],i=r[0],o=r[1];t[i]=o}return t},W=F?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0)&&!(t>=r)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536}},X=B?function(e){return e.trimStart()}:function(e){return e.replace(M,"")},K=H?function(e){return e.trimEnd()}:function(e){return e.replace(A,"")};function J(e,t){return new RegExp(e,t)}if(U){var Q=J("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");u=function(e,t){var n;return Q.lastIndex=t,null!==(n=Q.exec(e)[1])&&void 0!==n?n:""}}else u=function(e,t){for(var n=[];;){var r,i=W(e,t);if(void 0===i||en(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>
1=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return V.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(e,n);if(o.err)return o;r.push(o.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),r.push({type:s.pound,location:L(l,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&et(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;r.push(o.val)}}else{if(!n)return this.error(a.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()));break}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:s.literal,value:"<".concat(r,"/>"),location:L(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(a.INVALID_TAG,L(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(a.UNCLOSED_TAG,L(n,this.clonePosition()));if(this.isEOF()||!et(this.char()))return this.error(a.INVALID_TAG,L(l,this.clonePosition()));var c=this.clonePosition();return r!==this.parseTagName()?this.error(a.UNMATCHED_CLOSING_TAG,L(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:s.tag,value:r,children:o,location:L(n,this.clonePosition())},err:null}:this.error(a.INVALID_TAG,L(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){r+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var l=L(n,this.clonePosition());return{val:{type:s.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(et(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
1case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return V.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),V(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(a.EMPTY_ARGUMENT,L(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(a.MALFORMED_ARGUMENT,L(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:s.argument,value:r,location:L(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,L(n,this.clonePosition()));return this.parseArgumentOptions(e,t,r,n);default:return this.error(a.MALFORMED_ARGUMENT,L(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=u(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:L(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),c=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(c){case"":return this.error(a.EXPECT_ARGUMENT_TYPE,L(o,u));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var m=K(h.val);if(0===m.length)return this.error(a.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));p={style:m,styleLocation:L(f,this.clonePosition())}}var g=this.tryParseArgumentClose(r);if(g.err)return g;var y=L(r,this.clonePosition());if(p&&G(null==p?void 0:p.style,"::",0)){var v,b=X(p.style.slice(2));if("number"===c){var h=this.parseNumberSkeletonFromString(b,p.styleLocation);if(h.err)return h;return{val:{type:s.number,value:n,location:y,style:h.val},err:null}}if(0===b.length)return this.error(a.EXPECT_DATE_TIME_SKELETON,y);var x=b;this.locale&&(x=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(void 0===n&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=e.language;return"root"!==r&&(t=e.maximize().region),(D[t||""]||D[r||""]||D["".concat(r,"-001")]||D["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(b,this.locale));var m={type:l.dateTime,pattern:x,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},x.replace(S,function(e){var t=e.length;switch(e[0]){case"G":v.era=4===t?"long":5===t?"narrow":"short";break;case"y":v.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":v.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":v.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":v.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"a":v.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":v.hourCycle="h12",v.hour=["numeric","2-digit"][t-1];break;case"H":v.hourCycle="h23",v.hour=["numeric","2-digit"][t-1];break;case"K":v.hourCycle="h11",v.hour=["numeric","2-digit"][t-1];break;case"k":v.hourCycle="h24",v.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":v.minute=["numeric","2-digit"][t-1];break;case"s":v.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":v.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),v):{}};return{val:{type:"date"===c?s.date:s.time,value:n,location:y,style:m},err:null}}return{val:{type:"number"===c?s.number:"date"===c?s.date:s.time,value:n,location:y,style:null!==(i=null==p?void 0:p.style)&&void 0!==i?i:null},err:null};
1case"plural":case"selectordinal":case"select":var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(a.EXPECT_SELECT_ARGUMENT_OPTIONS,L(w,(0,d.pi)({},w)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),C=0;if("select"!==c&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),_=this.parseIdentifierIfPossible(),C=h.val}var E=this.tryParsePluralOrSelectOptions(e,c,t,_);if(E.err)return E;var g=this.tryParseArgumentClose(r);if(g.err)return g;var T=L(r,this.clonePosition());if("select"===c)return{val:{type:s.select,value:n,options:q(E.val),location:T},err:null};return{val:{type:s.plural,value:n,options:q(E.val),offset:C,pluralType:"plural"===c?"cardinal":"ordinal",location:T},err:null};default:return this.error(a.INVALID_ARGUMENT_TYPE,L(o,u))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,L(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(E).filter(function(e){return e.length>0}),n=[],r=0;r<t.length;r++){var i=t[r].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0;s<a.length;s++)if(0===a[s].length)throw Error("Invalid number skeleton");n.push({stem:o,options:a})}return n}(e)}catch(e){return this.error(a.INVALID_NUMBER_SKELETON,t)}return{val:{type:l.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,d.pi)((0,d.pi)((0,d.pi)({},t),{notation:"scientific"}),r.options.reduce(function(e,t){return(0,d.pi)((0,d.pi)({},e),I(t)||{})},{}));continue;case"engineering":t=(0,d.pi)((0,d.pi)((0,d.pi)({},t),{notation:"engineering"}),r.options.reduce(function(e,t){return(0,d.pi)((0,d.pi)({},e),I(t)||{})},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(j,function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(O.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(T.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(T,function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=(0,d.pi)((0,d.pi)({}
1,t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,d.pi)((0,d.pi)({},t),P(i)));continue}if(k.test(r.stem)){t=(0,d.pi)((0,d.pi)({},t),P(r.stem));continue}var o=I(r.stem);o&&(t=(0,d.pi)((0,d.pi)({},t),o));var a=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!O.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);a&&(t=(0,d.pi)((0,d.pi)({},t),a))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,s=[],l=new Set,c=r.value,u=r.location;;){if(0===c.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_SELECTOR,a.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=L(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(l.has(c))return this.error("select"===t?a.DUPLICATE_SELECT_ARGUMENT_SELECTOR:a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([c,{value:h.val,location:L(f,this.clonePosition())}]),l.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR:a.EXPECT_PLURAL_ARGUMENT_SELECTOR,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(a.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=L(r,this.clonePosition());return i?$(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=W(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(G(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&en(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function et(e){return e>=97&&e<=122||e>=65&&e<=90}function en(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function er(e,t){void 0===t&&(t={});var n=new ee(e,t=(0,d.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(n.err){var r=SyntaxError(a[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,y(t)||v(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else h(t)&&w(t.style)?delete t.style.location:(m(t)||g(t))&&_(t.style)?delete t.style.location:x(t)&&e(t.children)})}(n.val),n.val}},88222:function(e,t,n){"use strict";n.d(t,{$6:function(){return p},OV:function(){return l},Qe:function(){return u},X9:function(){return d},gb:function(){return c},wI:function(){return s}});var r,i,o=n(97582);(r=i||(i={})).FORMAT_ERROR="FORMAT_ERROR",r.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",r.INVALID_CONFIG="INVALID_CONFIG",r.MISSING_DATA="MISSING_DATA",r.MISSING_TRANSLATION="MISSING_TRANSLATION";var a=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,o.ZT)(t,e),t}(Error),s=function(e){function t(t,n){return e.call(this,i.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.ZT)(t,e),t}(a),l=function(e){function t(t,n){return e.call(this,i.INVALID_CONFIG,t,n)||this}return(0,o.ZT)(t,e),t}(a),c=function(e){function t(t,n){return e.call(this,i.MISSING_DATA,t,n)||this}return(0,o.ZT)(t,e),t}(a),u=function(e){function t(t,n,r){var o=e.call(this,i.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this;return o.locale=n,o}return(0,o.ZT)(t,e),t}(a),d=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o.locale=n,o}return(0,o.ZT)(t,e),t}(u),p=function(e){function t(t,n){var r=e.call(this,i.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return r.descriptor=t,r}return(0,o.ZT)(t,e),t}(a)},82644:function(e,t,n){"use strict";n.d(t,{L6:function(){return s},Sn:function(){return c},TB:function(){return p},Z0:function(){return l},ax:function(){return d}});var r=n(97582),i=n(16284),o=n(95957),a=n(88222);function s(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function c(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function u(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function d(e){void 0===e&&(e=c());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.H)(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.ev)([void 0],t,!1)))},{cache:u(e.dateTime),strategy:o.A.variadic}),l=(0,o.H)(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.ev)([void 0],t,!1)))},{cache:u(e.number),strategy:o.A.variadic}),d=(0,o.H)(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.ev)([void 0],t,!1)))},{cache:u(e.pluralRules),strategy:o.A.variadic});return{getDateTimeFormat:s,getNumberFormat:l,getMessageFormat:(0,o.H)(function(e,t,n,o){return new i.C(e,t,n,(0,r.pi)({formatters:{getNumberFormat:l,getDateTimeFormat:s,getPluralRules:d}},o||{}))},{cache:u(e.message),strategy:o.A.variadic}),getRelativeTimeFormat:(0,o.H)(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.ev)([void 0],e,!1)))},{cache:u(e.relativeTime),strategy:o.A.variadic}),getPluralRules:d,getListFormat:(0,o.H)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.ev)([void 0],e,!1)))},{cache:u(e.list),strategy:o.A.variadic}),getDisplayNames:(0,o.H)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,(0,r.ev)([void 0],e,!1)))},{cache:u(e.displayNames),strategy:o.A.variadic})}}function p(e,t,n,r){var i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(new a.wI("No ".concat(t," format named: ").concat(n)))}},27272:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[$]}function o(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===U}(e)||Array.isArray(e)||!!e[H]||!!(null===(t=e.constructor)||void 0===t?void 0:t[H])||d(e)||p(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:Y)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function s(e){var t=e[$];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}
vendor: 6,151 bytes, line 1
1function c(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return Z&&e instanceof Map}function p(e){return z&&e instanceof Set}function f(e){return e.o||e.t}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=G(e);delete t[$];for(var n=Y(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),y(e)||i(e)||!o(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,function(e,t){return m(t,!0)},!0)),e}function g(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=V[e];return t||r(18,e),t}function b(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function x(e){w(e),e.p.forEach(C),e.p=null}function w(e){e===L&&(L=e.l)}function _(e){return L={p:[],l:L,h:e,m:!0,_:0}}function C(e){var t=e[$];0===t.i||1===t.i?t.j():t.g=!0}function S(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||v("ES5").S(t,e,i),i?(n[$].P&&(x(t),r(4)),o(e)&&(e=E(t,e),t.l||k(t,e)),t.u&&v("Patches").M(n[$].t,e,t.u,t.s)):e=E(t,n,[]),x(t),t.u&&t.v(t.u,t.s),e!==B?e:void 0}function E(e,t,n){if(y(t))return t;var r=t[$];if(!r)return a(t,function(i,o){return T(e,r,t,i,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return k(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=h(r.k):r.o,o=i,s=!1;3===r.i&&(o=new Set(i),i.clear(),s=!0),a(o,function(t,o){return T(e,r,i,t,o,n,s)}),k(e,i,!1),n&&e.u&&v("Patches").N(r,n,e.u,e.s)}return r.o}function T(e,t,n,r,a,s,u){if(i(a)){var d=E(e,a,s&&t&&3!==t.i&&!l(t.R,r)?s.concat(r):void 0);if(c(n,r,d),!i(d))return;e.m=!1}else u&&n.add(a);if(o(a)&&!y(a)){if(!e.h.D&&e._<1)return;E(e,a),t&&t.A.l||k(e,a)}}function k(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&m(t,n)}function j(e,t){var n=e[$];return(n?f(n):e)[t]}function O(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function P(e){e.P||(e.P=!0,e.l&&P(e.l))}function I(e){e.o||(e.o=h(e.t))}function N(e,t,n){var r,i,o,a,s,l,c,u=d(t)?v("MapSet").F(t,n):p(t)?v("MapSet").T(t,n):e.O?(o=i={i:(r=Array.isArray(t))?1:0,A:n?n.A:L,P:!1,I:!1,R:{},l:n,t:t,k:null,o:null,j:null,C:!1},a=q,r&&(o=[i],a=W),l=(s=Proxy.revocable(o,a)).revoke,c=s.proxy,i.k=c,i.j=l,c):v("ES5").J(t,n);return(n?n.A:L).p.push(u),u}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}n.d(t,{xC:function(){return eg},hg:function(){return eS},Lq:function(){return ev}});var M,A,L,R="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Z="undefined"!=typeof Map,z="undefined"!=typeof Set,F="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,B=R?Symbol.for("immer-nothing"):((A={})["immer-nothing"]=!0,A),H=R?Symbol.for("immer-draftable"):"__$immer_draftable",$=R?Symbol.for("immer-state"):"__$immer_state",U=""+Object.prototype.constructor,Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,G=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},V={},q={get:function(e,t){if(t===$)return e;var n,r,i=f(e);if(!l(i,t))return(r=O(i,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var a=i[t];return e.I||!o(a)?a:a===j(e.t,t)?(I(e),e.o[t]=N(e.A.h,a,e)):a},has:function(e,t){return t in f(e)},ownKeys:function(e){return Reflect.ownKeys(f(e))},set:function(e,t,n){var r=O(f(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=j(f(e),t),o=null==i?void 0:i[$];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(u(n,i)&&(void 0!==n||l(e.t,t)))return!0;I(e),P(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==j(e.t,t)||t in e.t?(e.R[t]=!1,I(e),P(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=f(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},W={};a(q,function(e,t){W[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),W.deleteProperty=function(e,t){return W.set.call(this,e,t,void 0)},W.set=function(e,t,n){return q.set.call(this,e[0],t,n,e[0])};var X=new(function(){function e(e){var t=this;this.O=F,this.D=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a,s=n;return n=e,function(e){var r=this;void 0===e&&(e=s);for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.produce(e,function(e){var t;return(t=n).call.apply(t,[r,e].concat(o))})}}if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var l=_(t),c=N(t,e,void 0),u=!0;try{a=n(c),u=!1}finally{u?x(l):w(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return b(l,i),S(e,l)},function(e){throw x(l),e}):(b(l,i),S(a,l))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===B&&(a=void 0),t.D&&m(a,!0),i){var d=[],p=[];v("Patches").M(e,a,d,p),i(d,p)}return a}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(i))})};var r,i,o=t.produce(e,n,function(e,t){r=e,i=t});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(function(e){return[e,r,i]}):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}
1var t=e.prototype;return t.createDraft=function(e){o(e)||r(8),i(e)&&(i(t=e)||r(22,t),e=function e(t){if(!o(t))return t;var n,r=t[$],i=s(t);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=D(t,i),r.I=!1}else n=D(t,i);return a(n,function(t,i){var o;r&&(2===s(o=r.t)?o.get(t):o[t])===i||c(n,t,e(i))}),3===i?new Set(n):n}(t));var t,n=_(this),l=N(this,e,void 0);return l[$].C=!0,w(n),l},t.finishDraft=function(e,t){var n=(e&&e[$]).A;return b(n,t),S(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!F&&r(20),this.O=e},t.applyPatches=function(e,t){for(n=t.length-1;n>=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=v("Patches").$;return i(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}()),K=X.produce;X.produceWithPatches.bind(X),X.setAutoFreeze.bind(X),X.setUseProxies.bind(X),X.applyPatches.bind(X),X.createDraft.bind(X),X.finishDraft.bind(X);var J=n(14890),Q=n(53894);n(83454);var ee=(M=function(e,t){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),et=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},en=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},er=Object.defineProperty,ei=Object.defineProperties,eo=Object.getOwnPropertyDescriptors,ea=Object.getOwnPropertySymbols,es=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable,ec=function(e,t,n){return t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},eu=function(e,t){for(var n in t||(t={}
1))es.call(t,n)&&ec(e,n,t[n]);if(ea)for(var r=0,i=ea(t);r<i.length;r++){var n=i[r];el.call(t,n)&&ec(e,n,t[n])}return e},ed=function(e,t){return ei(e,eo(t))},ep="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?J.qC:J.qC.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var ef=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return ee(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,en([void 0],e[0].concat(this)))):new(t.bind.apply(t,en([void 0],e.concat(this))))},t}(Array),eh=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return ee(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,en([void 0],e[0].concat(this)))):new(t.bind.apply(t,en([void 0],e.concat(this))))},t}(Array);function em(e){return o(e)?K(e,function(){}):e}function eg(e){var t,n=function(e){var t,n,r,i;return void 0===(t=e)&&(t={}),r=void 0===(n=t.thunk)||n,t.immutableCheck,t.serializableCheck,i=new ef,r&&("boolean"==typeof r?i.push(Q.Z):i.push(Q.Z.withExtraArgument(r.extraArgument))),i},r=e||{},i=r.reducer,o=void 0===i?void 0:i,a=r.middleware,s=void 0===a?n():a,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=r.enhancers,p=void 0===d?void 0:d;if("function"==typeof o)t=o;else if(function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(o))t=(0,J.UY)(o);else throw Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var f=s;"function"==typeof f&&(f=f(n));var h=J.md.apply(void 0,f),m=J.qC;c&&(m=ep(eu({trace:!1},"object"==typeof c&&c)));var g=new eh(h),y=g;Array.isArray(p)?y=en([h],p):"function"==typeof p&&(y=p(g));var v=m.apply(void 0,y);return(0,J.MT)(t,void 0===u?void 0:u,v)}function ey(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw Error("prepareAction did not return an object");return eu(eu({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function ev(e,t,n,r){void 0===n&&(n=[]);var a,s,l,c,u,d="function"==typeof t?(s={},l=[],t(c={addCase:function(e,t){var n="string"==typeof e?e:e.type;if(n in s)throw Error("addCase cannot be called with two reducers for the same action type");return s[n]=t,c},addMatcher:function(e,t){return l.push({matcher:e,reducer:t}),c},addDefaultCase:function(e){return a=e,c}}),[s,l,a]):[t,n,r],p=d[0],f=d[1],h=d[2];if("function"==typeof e)u=function(){return em(e())};else{var m=em(e);u=function(){return m}}function g(e,t){void 0===e&&(e=u());var n=en([p[t.type]],f.filter(function(e){return(0,e.matcher)(t)}).map(function(e){return e.reducer}));return 0===n.filter(function(e){return!!e}).length&&(n=[h]),n.reduce(function(e,n){if(n){if(i(e)){var r=n(e,t);return void 0===r?e:r}if(o(e))return K(e,function(e){return n(e,t)});var r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e},e)}return g.getInitialState=u,g}var eb=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},ex=["name","message","stack","code"],ew=function(e,t){this.payload=e,this.meta=t},e_=function(e,t){this.payload=e,this.meta=t},eC=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0;n<ex.length;n++){var r=ex[n];"string"==typeof e[r]&&(t[r]=e[r])}return t}return{message:String(e)}},eS=function(){function e(e,t,n){var r=ey(e+"/fulfilled",function(e,t,n,r){return{payload:e,meta:ed(eu({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}}),i=ey(e+"/pending",function(e,t,n){return{payload:void 0,meta:ed(eu({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),o=ey(e+"/rejected",function(e,t,r,i,o){return{payload:i,error:(n&&n.serializeError||eC)(e||"Rejected"),meta:ed(eu({},o||{}),{arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:(null==e?void 0:e.name)==="AbortError",condition:(null==e?void 0:e.name)==="ConditionError"})}}),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign(function(e){return function(s,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):eb(),p=new a;function f(e){u=e,p.abort()}var h=function(){var a,h;return a=this,h=function(){var a,h,m,g,y,v;return et(this,function(b){switch(b.label){case 0:var x;if(b.trys.push([0,4,,5]),!(null!==(x=g=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:c}))&&"object"==typeof x&&"function"==typeof x.then))return[3,2];return[4,g];case 1:g=b.sent(),b.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise(function(e,t){return p.signal.addEventListener("abort",function(){return t({name:"AbortError",message:u||"Aborted"})})}),s(i(d,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:d,signal:p.signal,abort:f,rejectWithValue:function(e,t){return new ew(e,t)},fulfillWithValue:function(e,t){return new e_(e,t)}})).then(function(t){if(t instanceof ew)throw t;return t instanceof e_?r(t.payload,d,e,t.meta):r(t,d,e)})])];case 3:return m=b.sent(),[3,5];case 4:return m=(v=b.sent())instanceof ew?o(null,d,e,v.payload,v.meta):o(v,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&o.match(m)&&m.meta.condition||s(m),[2,m]}})},new Promise(function(e,t){var n=function(e){try{i(h.next(e))}catch(e){t(e)}},r=function(e){try{i(h.throw(e))}catch(e){t(e)}},i=function(t){return t.done?e(t.value):Promise.resolve(t.value).then(n,r)};i((h=h.apply(a,null)).next())})}();return Object.assign(h,{abort:f,requestId:d,arg:e,unwrap:function(){return h.then(eE)}})}},{pending:i,rejected:o,fulfilled:r,typePrefix:e})}return e.withTypes=function(){return e},e}();function eE(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var eT="listenerMiddleware";ey(eT+"/add"),ey(eT+"/removeAll"),ey(eT+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==n.g?n.g:globalThis),"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function e(e,t){var n=s[e];return n?n.enumerable=t:s[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[$];return q.get(t,e)},set:function(t){var n=this[$];q.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][$];if(!i.P)switch(i.i){case 5:r(i)&&P(i);break;case 4:n(i)&&P(i)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==$){var a=t[o];if(void 0===a&&!l(t,o))return!0;var s=n[o],c=s&&s[$];if(c?c.t!==a:!u(s,a))return!0}}var d=!!t[$];return r.length!==Y(t).length+(d?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o,s={};o={J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=G(n);delete o[$];for(var a=Y(o),s=0;s<a.length;s++){var l=a[s];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:L,P:!1,I:!1,R:{},l:n,t:t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,$,{value:o,writable:!0}),i},S:function(e,n,o){o?i(n)&&n[$].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[$];if(n){var i=n.t,o=n.k,s=n.R,c=n.i;if(4===c)a(o,function(t){t!==$&&(void 0!==i[t]||l(i,t)?s[t]||e(o[t]):(s[t]=!0,P(n)))}),a(i,function(e){void 0!==o[e]||l(o,e)||(s[e]=!1,P(n))});else if(5===c){if(r(n)&&(P(n),s.length=!0),o.length<i.length)for(var u=o.length;u<i.length;u++)s[u]=!1;else for(var d=i.length;d<o.length;d++)s[d]=!0;for(var p=Math.min(o.length,i.length),f=0;f<p;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&e(o[f])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}},V.ES5||(V.ES5=o)}()},68518:function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:function(){return i},n:function(){return r}})},61422:function(e,t,n){"use strict";n.d(t,{KV:function(){return o},l$:function(){return a}});var r=n(68518);e=n.hmd(e);var i=n(83454);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(e,t){return e.require(t)}},21170:function(e,t,n){"use strict";n.d(t,{Z1:function(){return d},ph:function(){return u},yW:function(){return c}});var r=n(61422),i=n(71235);e=n.hmd(e);let o=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3},s=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){let{performance:e}=o;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=l.nowSeconds.bind(l),d=(()=>{let{performance:e}=o;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+t-n):36e5;return r<36e5||a<36e5?r<=a?e.timeOrigin:i:n})()},71235:function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return o},YO:function(){return a},n2:function(){return i}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(e,t,n){let r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}},76489:function(e,t){"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},r=(t||{}).decode||i,o=0;o<e.length;){var a=e.indexOf("=",o);if(-1===a)break;var s=e.indexOf(";",o);if(-1===s)s=e.length;else if(s<a){o=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(o,a).trim();if(void 0===n[l]){var c=e.slice(a+1,s).trim();
134===c.charCodeAt(0)&&(c=c.slice(1,-1)),n[l]=function(e,t){try{return t(e)}catch(t){return e}}(c,r)}o=s+1}return n},t.serialize=function(e,t,i){var a=i||{},s=a.encode||o;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!r.test(e))throw TypeError("argument name is invalid");var l=s(t);if(l&&!r.test(l))throw TypeError("argument val is invalid");var c=e+"="+l;if(null!=a.maxAge){var u=a.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(a.domain){if(!r.test(a.domain))throw TypeError("option domain is invalid");c+="; Domain="+a.domain}if(a.path){if(!r.test(a.path))throw TypeError("option path is invalid");c+="; Path="+a.path}if(a.expires){var d=a.expires;if("[object Date]"!==n.call(d)&&!(d instanceof Date)||isNaN(d.valueOf()))throw TypeError("option expires is invalid");c+="; Expires="+d.toUTCString()}if(a.httpOnly&&(c+="; HttpOnly"),a.secure&&(c+="; Secure"),a.partitioned&&(c+="; Partitioned"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;
1default:throw TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var n=Object.prototype.toString,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function o(e){return encodeURIComponent(e)}},47041:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var o=n(76489),a=function(){return"undefined"!=typeof window},s=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set},l=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&s(null==e?void 0:e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&s(null==e?void 0:e.res.cookies)||!!(null==e?void 0:e.cookies)&&s(e.cookies())},c=function(e){var t={};return e.getAll().forEach(function(e){var n=e.name,r=e.value;t[n]=r}),t},u=function(e){try{if("string"==typeof e)return e;return JSON.stringify(e)}catch(t){return e}};t.getCookies=function(e){if(l(e)){if(null==e?void 0:e.req)return c(e.req.cookies);if(null==e?void 0:e.cookies)return c(e.cookies())}if(e&&(t=e.req),!a())return t&&t.cookies?t.cookies:t&&t.headers.cookie?(0,o.parse)(t.headers.cookie):{};for(var t,n={},r=document.cookie?document.cookie.split("; "):[],i=0,s=r.length;i<s;i++){var u=r[i].split("="),d=u.slice(1).join("=");n[u[0]]=d}return n},t.getCookie=function(e,n){var r=(0,t.getCookies)(n)[e];if(void 0!==r)return r?r.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent):r},t.setCookie=function(e,t,n){if(l(n)){var s,c,d,p=n.req,f=n.res,h=n.cookies,m=i(n,["req","res","cookies"]),g=r({name:e,value:u(t)},m);p&&p.cookies.set(g),f&&f.cookies.set(g),h&&h().set(g);return}if(n){var p=n.req,f=n.res,y=i(n,["req","res"]);c=p,d=f,s=y}var v=(0,o.serialize)(e,u(t),r({path:"/"},s));if(a())document.cookie=v;else if(d&&c){var b=d.getHeader("Set-Cookie");if(Array.isArray(b)||(b=b?[String(b)]:[]),d.setHeader("Set-Cookie",b.concat(v)),c&&c.cookies){var x=c.cookies;""===t?delete x[e]:x[e]=u(t)}if(c&&c.headers&&c.headers.cookie){var x=(0,o.parse)(c.headers.cookie);""===t?delete x[e]:x[e]=u(t),c.headers.cookie=Object.entries(x).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.deleteCookie=function(e,n){return(0,t.setCookie)(e,"",r(r({},n),{maxAge:-1}))},t.hasCookie=function(e,n){return!!e&&(0,t.getCookies)(n).hasOwnProperty(e)}},27484:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",o="month",a="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},f="en",h={};h[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var m=function(e){return e instanceof b},g=function e(t,n,r){var i;if(!t)return f;if("string"==typeof t){var o=t.toLowerCase();h[o]&&(i=o),n&&(h[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;h[s]=t,i=s}return!r&&i&&(f=i),i||!r&&f},y=function(e,t){if(m(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new b(n)},v={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),a=n-i<0,s=t.clone().add(r+(a?-1:1),o);return+(-(r+(n-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:o,y:s,w:i,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:a})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=g,v.i=m,v.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var b=function(){function p(e){this.$L=g(e.locale,null,!0),this.parse(e)}var f=p.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return v},f.isValid=function(){return this.$d.toString()!==c},f.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},f.isAfter=function(e,t){return y(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<y(e)},f.$g=function(e,t,n){return v.u(e)?this[t]:this.set(n,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,a){var c=this,u=!!v.u(a)||a,d=v.p(e),p=function(e,t){var n=v.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf("day")},f=function(e,t){return v.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c
1)},h=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case s:return u?p(1,0):p(31,11);case o:return u?p(1,m):p(0,m+1);case i:var b=this.$locale().weekStart||0,x=(h<b?h+7:h)-b;return p(u?g-x:g+(6-x),m);case"day":case l:return f(y+"Hours",0);case r:return f(y+"Minutes",1);case n:return f(y+"Seconds",2);case t:return f(y+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(i,a){var c,u=v.p(i),d="set"+(this.$u?"UTC":""),p=((c={}).day=d+"Date",c[l]=d+"Date",c[o]=d+"Month",c[s]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],f="day"===u?this.$D+(a-this.$W):a;if(u===o||u===s){var h=this.clone().set(l,1);h.$d[p](f),h.init(),this.$d=h.set(l,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[v.p(e)]()},f.add=function(e,a){var l,c=this;e=Number(e);var u=v.p(a),d=function(t){var n=y(c);return v.w(n.date(n.date()+Math.round(t*e)),c)};if(u===o)return this.set(o,this.$M+e);if(u===s)return this.set(s,this.$y+e);if("day"===u)return d(1);if(u===i)return d(7);var p=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[u]||1,f=this.$d.getTime()+e*p;return v.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,p=function(e,n,i,o){return e&&(e[
1n]||e(t,r))||i[n].slice(0,o)},f=function(e){return v.s(o%12||12,e,"0")},h=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:v.s(this.$y,4,"0"),M:s+1,MM:v.s(s+1,2,"0"),MMM:p(n.monthsShort,s,u,3),MMMM:p(u,s),D:this.$D,DD:v.s(this.$D,2,"0"),d:String(this.$W),dd:p(n.weekdaysMin,this.$W,l,2),ddd:p(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:v.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,a,!0),A:h(o,a,!1),m:String(a),mm:v.s(a,2,"0"),s:String(this.$s),ss:v.s(this.$s,2,"0"),SSS:v.s(this.$ms,3,"0"),Z:i};return r.replace(d,function(e,t){return t||m[e]||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(e,l,c){var u,d=v.p(l),p=y(e),f=(p.utcOffset()-this.utcOffset())*6e4,h=this-p,m=v.m(this,p);return m=((u={})[s]=m/12,u[o]=m,u[a]=m/3,u[i]=(h-f)/6048e5,u.day=(h-f)/864e5,u[r]=h/36e5,u[n]=h/6e4,u[t]=h/1e3,u)[d]||h,c?m:v.a(m)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return h[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=g(e,t,!0);return r&&(n.$L=r),n},f.clone=function(){return v.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},p}(),x=b.prototype;return y.prototype=x,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",o],["$y",s],["$D",l]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,b,y),e.$i=!0),y},y.locale=g,y.isDayjs=m,y.unix=function(e){return y(1e3*e)},y.en=h[f],y.Ls=h,y.p={},y},e.exports=t()},70600:function(e,t,n){var r;r=function(e){"use strict";var t="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),n="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),r="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),i="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),o=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function a(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i=({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"})[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var s=function(e,r){return o.test(r)?t[e.month()]:n[e.month()]};s.s=n,s.f=t;var l=function(e,t){return o.test(t)?r[e.month()]:i[e.month()]};l.s=i,l.f=r;var c={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:l,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},ordinal:function(e){return e},meridiem:function(e){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(c,null,!0),c},e.exports=r(n(27484))},66607:function(e){var t;t=function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),a=n(t),s="("===(i=i||"()")[0],l=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}},e.exports=t()},29387:function(e){var t;t=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var o,a=function(e,n,r){void 0===r&&(r={});var i,o,a,s,l=new Date(e);return(void 0===(i=r)&&(i={}),(s=t[a=n+"|"+(o=i.timeZoneName||"short")])||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),t[a]=s),s).formatToParts(l)},s=function(t,n){for(var r=a(t,n),o=[],s=0;s<r.length;s+=1){var l=r[s],c=l.type,u=l.value,d=e[c];d>=0&&(o[d]=parseInt(u,10))}var p=o[3],f=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===p?0:p)+":"+o[4]+":"+o[5]+":000",h=+t;return(i.utc(f).valueOf()-(h-=h%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=o);
1var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),s=Math.round((r-new Date(a))/1e3/60),l=i(a).$set("millisecond",this.$ms).utcOffset(-(15*Math.round(r.getTimezoneOffset()/15))-s,!0);if(t){var c=l.utcOffset();l=l.add(n-c,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,a=n||t||o,l=s(+i(),a);if("string"!=typeof e)return i(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var o=s(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),l,a),u=c[0],d=c[1],p=i(u).utcOffset(d);return p.$x.$timezone=a,p},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}},e.exports=t()},70178:function(e){var t;t=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r)))return this;var a=16>=Math.abs(r)?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),i=o(e).local();return p.call(r,i,t,n)}}},e.exports=t()},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},8679:function(e,t,n){"use strict";var r=n(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!o[y]&&!(r&&r[y])&&!(m&&m[y])&&!(s&&s[y])){var v=p(n,y);try{c(t,y,v)}catch(e){}}}}return t}},96103:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},21296:function(e,t,n){"use strict";e.exports=n(96103)},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
1\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,d=1;function p(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:u,column:d};return function(t){return t.position=new h(e),y(r),t}}function h(e){this.start=e,this.end={line:u,column:d},this.source=l.source}h.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(v(n);e=function(){var e=f(),n=y(i);if(n){if(b(),!y(o))return g("property missing ':'");var r=y(a),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return y(s),l}}();)!1!==e&&(n.push(e),v(n));return n}()}},16284:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(97582),i=n(56096),o=n(95957),a=n(61092);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var l=function(){function e(t,n,i,l){void 0===n&&(n=e.defaultLocale);var c,u,d=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===a.du.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return(0,a.FK)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=d.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var p=l||{},f=(p.formatters,(0,r._T)(p,["formatters"]));this.ast=e.__parse(t,(0,r.pi)((0,r.pi)({},f),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(c=e.formats,i?Object.keys(c).reduce(function(e,t){var n,o;return e[t]=(n=c[t],(o=i[t])?(0,r.pi)((0,r.pi)((0,r.pi)({},n||{}),o||{}),Object.keys(n).reduce(function(e,t){return e[t]=(0,r.pi)((0,r.pi)({},n[t]),o[t]||{}),e},{})):n),e},(0,r.pi)({},c)):c),this.formatters=l&&l.formatters||(void 0===(u=this.formatterCache)&&(u={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.H)(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.ev)([void 0],t,!1)))},{cache:s(u.number),strategy:o.A.variadic}),getDateTimeFormat:(0,o.H)(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.ev)([void 0],t,!1)))},{cache:s(u.dateTime),strategy:o.A.variadic}),getPluralRules:(0,o.H)(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.ev)([void 0],t,!1)))},{cache:s(u.pluralRules),strategy:o.A.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=i.Qc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},11050:function(e,t,n){"use strict";n.d(t,{C8:function(){return s},HR:function(){return c},YR:function(){return l},jK:function(){return i},u_:function(){return a}});var r,i,o=n(97582);(r=i||(i={})).MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API";var a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return(0,o.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),s=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),i.INVALID_VALUE,o)||this}return(0,o.ZT)(t,e),t}(a),l=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),i.INVALID_VALUE,r)||this}return(0,o.ZT)(t,e),t}(a),c=function(e){function t(t,n){return e.call(this,'The intl str
1ing context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),i.MISSING_VALUE,n)||this}return(0,o.ZT)(t,e),t}(a)},61092:function(e,t,n){"use strict";n.d(t,{FK:function(){return function e(t,n,r,l,c,u,d){if(1===t.length&&(0,o.O4)(t[0]))return[{type:i.literal,value:t[0].value}];for(var p=[],f=0;f<t.length;f++){var h=t[f];if((0,o.O4)(h)){p.push({type:i.literal,value:h.value});continue}if((0,o.yx)(h)){"number"==typeof u&&p.push({type:i.literal,value:r.getNumberFormat(n).format(u)});continue}var m=h.value;if(!(c&&m in c))throw new a.HR(m,d);var g=c[m];if((0,o.VG)(h)){g&&"string"!=typeof g&&"number"!=typeof g||(g="string"==typeof g||"number"==typeof g?String(g):""),p.push({type:"string"==typeof g?i.literal:i.object,value:g});continue}if((0,o.rp)(h)){var y="string"==typeof h.style?l.date[h.style]:(0,o.Ii)(h.style)?h.style.parsedOptions:void 0;p.push({type:i.literal,value:r.getDateTimeFormat(n,y).format(g)});continue}if((0,o.pe)(h)){var y="string"==typeof h.style?l.time[h.style]:(0,o.Ii)(h.style)?h.style.parsedOptions:l.time.medium;p.push({type:i.literal,value:r.getDateTimeFormat(n,y).format(g)});continue}if((0,o.uf)(h)){var y="string"==typeof h.style?l.number[h.style]:(0,o.Wh)(h.style)?h.style.parsedOptions:void 0;y&&y.scale&&(g*=y.scale||1),p.push({type:i.literal,value:r.getNumberFormat(n,y).format(g)});continue}if((0,o.HI)(h)){var v=h.children,b=h.value,x=c[b];if(!s(x))throw new a.YR(b,"function",d);var w=x(e(v,n,r,l,c,u).map(function(e){return e.value}));Array.isArray(w)||(w=[w]),p.push.apply(p,w.map(function(e){return{type:"string"==typeof e?i.literal:i.object,value:e}}))}if((0,o.Wi)(h)){var _=h.options[g]||h.options.other;if(!_)throw new a.C8(h.value,g,Object.keys(h.options),d);p.push.apply(p,e(_.value,n,r,l,c));continue}if((0,o.Jo)(h)){var _=h.options["=".concat(g)];if(!_){if(!Intl.PluralRules)throw new a.u_('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',a.jK.MISSING_INTL_API,d);var C=r.getPluralRules(n,{type:h.pluralType}).select(g-(h.offset||0));_=h.options[C]||h.options.other}if(!_)throw new a.C8(h.value,g,Object.keys(h.options),d);p.push.apply(p,e(_.value,n,r,l,c,g-(h.offset||0)));continue}}return p.length<2?p:p.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===i.literal&&t.type===i.literal?n.value+=t.value:e.push(t),e},[])}},Gt:function(){return s},du:function(){return i}});var r,i,o=n(56096),a=n(11050);function s(e){return"function"==typeof e}(r=i||(i={}))[r.literal=0]="literal",r[r.object=1]="object"},48738:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},4867:function(e,t,n){"use strict";var r,i,o=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...s}=e;return o.createElement("svg",a({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},s),t?o.createElement("title",{id:n},t):null,r||(r=o.createElement("circle",{cx:16,cy:16,r:15.5,fill:"#fff",stroke:"#E5E5E5"})),i||(i=o.createElement("path",{d:"M10.89 10.89a.762.762 0 0 1 1.077 0L16 14.922l4.033-4.032a.762.762 0 1 1 1.077 1.077L17.078 16l4.032 4.033a.762.762 0 0 1-1.077 1.077L16 17.078l-4.033 4.032a.762.762 0 1 1-1.077-1.077L14.923 16l-4.033-4.033a.762.762 0 0 1 0-1.077Z",fill:"#212121"})))}},64779:function(e,t,n){"use strict";var r,i,o=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...s}=e;return o.createElement("svg",a({width:24,height:24,viewBox:"-2 -2 25 25",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},s),t?o.createElement("title",{id:n},t):null,r||(r=o.createElement("defs",null,o.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:0,id:"gradient-1"},o.createElement("stop",{stopColor:"#EC4C41",offset:"0%"}),o.createElement("stop",{stopColor:"#EC4C41",offset:"63.1%",stopOpacity:.631}),o.createElement("stop",{stopColor:"#EC4C41",offset:"100%",stopOpacity:.5})),o.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:0,id:"gradient-2"},o.createElement("stop",{stopColor:"#EC4C41",offset:"0%",stopOpacity:.5}),o.createElement("stop",{stopColor:"#EC4C41",offset:"63.1%",stopOpacity:.12}),o.createElement("stop",{stopColor:"#EC4C41",offset:"100%",stopOpacity:0})))),i||(i=o.createElement("g",{fill:"none"},o.createElement("g",{transform:"translate(1 1)"},o.createElement("path",{d:"M0 10.5a10.5 10.5 0 1 0 21 0",stroke:"url
1(#gradient-1)",strokeWidth:3}),o.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 10.5 10.5",to:"360 10.5 10.5",dur:"1s",repeatCount:"indefinite"})),o.createElement("g",{transform:"translate(1 1)"},o.createElement("path",{d:"M0 10.5a10.5 10.5 0 1 0 21 0",stroke:"url(#gradient-2)",strokeWidth:3}),o.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"-180 10.5 10.5",to:"180 10.5 10.5",dur:"1s",repeatCount:"indefinite"})))))}},5010:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return i.createElement("svg",o({width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{d:"M.89.89a.762.762 0 0 1 1.078 0L6 4.922 10.033.89a.762.762 0 0 1 1.078 1.077L7.077 6l4.032 4.033a.762.762 0 0 1-1.077 1.077L6 7.077 1.968 11.11A.762.762 0 1 1 .89 10.033L4.923 6 .89 1.967A.762.762 0 0 1 .89.89Z",fill:"#212121"})))}},15105:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return i.createElement("svg",o({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{d:"M9 0c.621 0 1.125.504 1.125 1.125v6.75h6.75a1.125 1.125 0 0 1 0 2.25h-6.75v6.75a1.125 1.125 0 0 1-2.25 0v-6.75h-6.75a1.125 1.125 0 0 1 0-2.25h6.75v-6.75C7.875.504 8.379 0 9 0Z",fill:"#212121"})))}},73761:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return i.createElement("svg",o({width:18,height:3,viewBox:"0 0 18 3",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{d:"M7.875 0h9a1.125 1.125 0 0 1 0 2.25H1.125a1.125 1.125 0 0 1 0-2.25h6.75Z",fill:"#212121"})))}},89997:function(e,t,n){"use strict";var r,i,o=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...s}=e;return o.createElement("svg",a({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},s),t?o.createElement("title",{id:n},t):null,r||(r=o.createElement("circle",{cx:8,cy:8,r:8,fill:"#C7C7C8"})),i||(i=o.createElement("path",{d:"M4.593 4.594a.508.508 0 0 1 .718 0L8 7.283l2.688-2.689a.508.508 0 0 1 .719.718L8.718 8.001l2.689 2.688a.508.508 0 0 1-.719.719L8 8.719 5.31 11.408a.508.508 0 0 1-.718-.719l2.689-2.688-2.689-2.689a.508.508 0 0 1 0-.718Z",fill:"#fff"})))}},91921:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return i.createElement("svg",o({width:14,height:2,viewBox:"0 0 14 2",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{d:"M6.125 0h7a.875.875 0 0 1 0 1.75H.875a.875.875 0 1 1 0-1.75h5.25Z",fill:"#212121"})))}},29048:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return i.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{d:"M4.347 4.347a1.184 1.184 0 0 1 1.674 0L12 10.326l5.98-5.98a1.184 1.184 0 0 1 1.673 1.675L13.674 12l5.98 5.98a1.184 1.184 0 0 1-1.675 1.673L12 13.674l-5.98 5.98a1.184 1.184 0 1 1-1.673-1.675L10.326 12l-5.98-5.98a1.184 1.184 0 0 1 0-1.673Z",fill:"#212121"})))}},49796:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return i.createElement("svg",o({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{d:"M7 0c.483 0 .875.392.875.875v5.25h5.25a.875.875 0 0 1 0 1.75h-5.25v5.25a.875.875 0 0 1-1.75 0v-5.25H.875a.875.875 0 1 1 0-1.75h5.25V.875C6.125.392 6.517 0 7 0Z",fill:"#fff"})))}},15340:function(e,t,n){"use strict";var r,i,o=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...s}=e;return o.createElement("svg",a({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},s),t?o.createElement("title",{id:n},t):null,r||(r=o.createElement("circle",{cx:12,cy:12,r:11,fill:"#C7C7C8"}
1)),i||(i=o.createElement("path",{d:"m8.465 8.464 7.07 7.072M15.536 8.464l-7.07 7.072",stroke:"#fff",strokeWidth:2,strokeLinecap:"round"})))}},53045:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return i.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{d:"M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12Zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10Z",fill:"#A0A1A4"})))}},56792:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return i.createElement("svg",o({width:18,height:17,viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},a),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.659 3.747a1 1 0 1 1-1.318 1.506L10 3.203V12a1 1 0 1 1-2 0V3.204L5.659 5.253a1 1 0 0 1-1.317-1.506l4-3.5a1 1 0 0 1 1.316 0l4 3.5ZM2 12a1 1 0 1 0-2 0v3a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3a1 1 0 1 0-2 0v3H2v-3Z",fill:"#212121"})))}},39927:function(e,t,n){"use strict";let r,i,o,a,s,l,c,u,d,p,f,h,m;var g,y,v=n(8307);let b=Object.prototype.toString;function x(e){switch(b.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return P(e,Error)}}function w(e,t){return b.call(e)===`[object ${t}]`}function _(e){return w(e,"ErrorEvent")}function C(e){return w(e,"DOMError")}function S(e){return w(e,"String")}function E(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function T(e){return w(e,"Object")}function k(e){return"undefined"!=typeof Event&&P(e,Event)}function j(e){return!!(e&&e.then&&"function"==typeof e.then)}function O(e){return"number"==typeof e&&e!=e}function P(e,t){try{return e instanceof t}catch(e){return!1}}function I(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}var N=n(71235);let D=(0,N.Rf)();function M(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<5&&(n=function(e,t){let n,r,i,o,a;let s=[];if(!e||!e.tagName)return"";s.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{s.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&s.push(`#${e.id}`),(n=e.className)&&S(n))for(a=0,r=n.split(/\s+/);a<r.length;a++)s.push(`.${r[a]}`);let c=["aria-label","type","name","title","alt"];for(a=0;a<c.length;a++)i=c[a],(o=e.getAttribute(i))&&s.push(`[${i}="${o}"]`);return s.join("")}(r,s),"html"!==n&&(!(o>1)||!(a+3*i.length+n.length>=l)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}let A=["debug","info","warn","error","log","assert","trace"],L={};function R(e){if(!("console"in N.n2))return e();let t=N.n2.console,n={},r=Object.keys(L);r.forEach(e=>{let r=L[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let Z=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?A.forEach(n=>{t[n]=(...t)=>{e&&R(()=>{N.n2.console[n](`Sentry Logger [${n}]:`,...t)})}}):A.forEach(e=>{t[e]=()=>void 0}),t}();function z(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function F(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{I(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function B(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!S(e)&&(w(t,"RegExp")?t.test(e):!!S(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function H(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&U(i,r),e[t]=i}function $(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function U(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,$(e,"__sentry_original__",t)}catch(e){}}function Y(e){return e.__sentry_original__}function G(e){if(x(e))return{message:e.message,name:e.name,stack:e.stack,...q(e)};if(!k(e))return e;{let t={type:e.type,target:V(e.target),currentTarget:V(e.currentTarget),...q(e)};return"undefined"!=typeof CustomEvent&&P(e,CustomEvent)&&(t.detail=e.detail),t}}function V(e){try{return"undefined"!=typeof Element&&P(e,Element)?M(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function q(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function W(e){return function e(t,n){if(T(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}function X(){let e=N.n2,t=e.crypto||e.msCrypto,n=()=>
116*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function K(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function J(e){let{message:t,event_id:n}=e;if(t)return t;let r=K(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Q(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function ee(e,t){let n=K(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function et(e){if(e&&e.__sentry_captured__)return!0;try{$(e,"__sentry_captured__",!0)}catch(e){}return!1}function en(e){return Array.isArray(e)?e:[e]}var er=n(21170);let ei="production";function eo(e){return new es(t=>{t(e)})}function ea(e){return new es((t,n)=>{n(e)})}(g=y||(y={}))[g.PENDING=0]="PENDING",g[g.RESOLVED=1]="RESOLVED",g[g.REJECTED=2]="REJECTED";class es{constructor(e){es.prototype.__init.call(this),es.prototype.__init2.call(this),es.prototype.__init3.call(this),es.prototype.__init4.call(this),this._state=y.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new es((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new es((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(y.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(y.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===y.PENDING){if(j(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===y.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===y.RESOLVED&&e[1](this._value),this._state===y.REJECTED&&e[2](this._value),e[0]=!0)})}}}function el(){return(0,N.YO)("globalEventProcessors",()=>[])}function ec(e){el().push(e)}function eu(e,t,n,r=0){return new es((i,o)=>{let a=e[r];if(null===t||"function"!=typeof a)i(t);else{let s=a({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===s&&Z.log(`Event processor "${a.id}" dropped event`),j(s)?s.then(t=>eu(e,t,n,r+1).then(i)).then(null,o):eu(e,s,n,r+1).then(i).then(null,o)}})}function ed(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,er.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:X()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class ep{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ef()}static clone(e){let t=new ep;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&ed(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof ep?t:this}return e instanceof ep?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):T(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=ef(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,er.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}
1,n){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};let n=t.name;n&&(e.tags={transaction:n,...e.tags})}}this._applyFingerprint(e);let r=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...r];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},eu([...n||[],...el(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?en(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function ef(){return{traceId:X(),spanId:X().substring(16)}}class eh{constructor(e,t=new ep,n=4){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=ep.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:X(),r=Error("Sentry syntheticException");return this._withClient((i,o)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:X(),i=Error(e);return this._withClient((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},a)}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:X();return e.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let a={timestamp:(0,er.yW)(),...e},s=i?R(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=eg(this);try{e(this)}finally{eg(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n&&(this.getClient()?console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
2Sentry.addTracingExtensions();
3Sentry.init({...});
4`):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();if(t){let e;e={},"ok"===t.status&&(e={status:"exited"}),ed(t,e)}this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=ei}=n&&n.getOptions()||{},{userAgent:o}=N.n2.navigator||{},a=function(e){let t=(0,er.ph)(),n={sid:X(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>W({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&ed(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&ed(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=em().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function em(){return N.n2.__SENTRY__=N.n2.__SENTRY__||{extensions:{},hub:void 0},N.n2}function eg(e){let t=em(),n=ev(t);return eb(t,e),n}function ey(){let e=em();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=em()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||ev(e).isOlderThan(4))&&eb(e,new eh),ev(e)}(e)}function ev(e){return(0,N.YO)("hub",()=>new eh,e)}function eb(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function ex(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=ey().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}let ew=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function e_(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function eC(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}class eS{static __initStatic(){this.id="RewriteFrames"}constructor(e={}){eS.prototype.__init.call(this),this.name=eS.id,e.root&&(this._root=e.root),this._prefix=e.prefix||"app:///",e.iteratee&&(this._iteratee=e.iteratee)}setupOnce(e,t){}processEvent(e){return this.process(e)}process(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=this._processExceptionsEvent(t)),t}__init(){this._iteratee=e=>{if(!e.filename)return e;let t=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),n=/^\//.test(e.filename);if(t||n){let n;let r=t?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,i=this._root?function(e,t){e=e_(e).slice(1),t=e_(t).slice(1);let n=eC(e.split("/")),r=eC(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let a=[];for(let e=o;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(o))).join("/")}(this._root,r):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=ew.exec(t);return n?n.slice(1):[]}(r)[2];e.filename=`${this._prefix}${i}`}return e}}_processExceptionsEvent(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:this._processStacktrace(e.stacktrace)}}))}}}catch(t){return e}}_processStacktrace(e){return{...e,frames:e&&e.frames&&e.frames.map(e=>this._iteratee(e))}}}eS.__initStatic();let eE="7.80.1",eT=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],ek=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];class ej{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=ej.id,this._options=e}setupOnce(e,t){}processEvent(e,t,n){var r,i;let o=n.getOptions();return((r=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:eT],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:ek],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,o)).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Event dropped due to being internal Sentry Error.
5Event: ${J(e)}`),0):(i=r.ignoreErrors,!e.type&&i&&i.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&0===n.length&&Z.error(`Could not extract message for event ${J(e)}`),n})(e).some(e=>B(e,i)))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
6Event: ${J(e)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&B(n,t)}(e,r.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=eO(e);return!!n&&B(n,t)}(e,r.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=eO(e);return!n||B(n,t)}(e,r.allowUrls)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Event dropped due to not being matched by \`allowUrls\` option.
7Event: ${J(e)}.
8Url: ${eO(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Event dropped due to being matched by \`denyUrls\` option.
9Event: ${J(e)}.
10Url: ${eO(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
11Event: ${J(e)}`),0))?e:null}}function eO(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.error(`Cannot extract url for event ${J(e)}`),null}}ej.__initStatic();class eP{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=eP.id}setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Y(this)||this;return r.apply(t,e)}}catch(e){}}}eP.__initStatic();let eI=[];
11function eN(e,t,n){if(n[t.name]=t,-1===eI.indexOf(t.name)&&(t.setupOnce(ec,ey),eI.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`Integration installed: ${t.name}`)}let eD=/\(error: (.*)\)/,eM=/captureMessage|captureException/;function eA(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let r=[],i=e.split("\n");for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let o=eD.test(n)?n.replace(eD,"$1"):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),eM.test(t[t.length-1].function||"")&&(t.pop(),eM.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(r)}}let eL="<anonymous>";function eR(e){try{if(!e||"function"!=typeof e)return eL;return e.name||eL}catch(e){return eL}}let eZ=(0,N.Rf)();function ez(){if(!("fetch"in eZ))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function eF(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let eB=(0,N.Rf)(),eH=(0,N.Rf)(),e$="__sentry_xhr_v2__",eU={},eY={};function eG(e,t){eU[e]=eU[e]||[],eU[e].push(t),function(e){if(!eY[e])switch(eY[e]=!0,e){case"console":"console"in N.n2&&A.forEach(function(e){e in N.n2.console&&H(N.n2.console,e,function(t){return L[e]=t,function(...t){eV("console",{args:t,level:e});let n=L[e];n&&n.apply(N.n2.console,t)}})});break;case"dom":(function(){if(!eH.document)return;let e=eV.bind(null,"dom"),t=eX(e,!0);eH.document.addEventListener("click",t,!1),eH.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=eH[t]&&eH[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(H(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=eX(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),H(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})})();break;case"xhr":(function(){if(!eH.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;H(e,"open",function(e){return function(...t){let n=Date.now(),r=t[1],i=this[e$]={method:S(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};S(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let e=this[e$];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}eV("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?H(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),H(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[e$];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),H(e,"send",function(e){return function(...t){let n=this[e$];return n&&void 0!==t[0]&&(n.body=t[0]),eV("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})})();break;case"fetch":!function(){if(!ez())return!1;if(eF(eZ.fetch))return!0;let e=!1,t=eZ.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");
11n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=eF(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||H(N.n2,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:eW(t),method:eq(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:eW(t),method:eq(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return eV("fetch",{...i}),e.apply(N.n2,t).then(e=>(eV("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw eV("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}});break;case"history":(function(){if(!function(){let e=eB.chrome,t=e&&e.app&&e.app.runtime,n="history"in eB&&!!eB.history.pushState&&!!eB.history.replaceState;return!t&&n}())return;let e=eH.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=i,t=String(n);i=t,eV("history",{from:e,to:t})}return e.apply(this,t)}}eH.onpopstate=function(...t){let n=eH.location.href,r=i;if(i=n,eV("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},H(eH.history,"pushState",t),H(eH.history,"replaceState",t)})();break;case"error":eK=eH.onerror,eH.onerror=function(e,t,n,r,i){return eV("error",{column:r,error:i,line:n,msg:e,url:t}),!!eK&&!eK.__SENTRY_LOADER__&&eK.apply(this,arguments)},eH.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":eJ=eH.onunhandledrejection,eH.onunhandledrejection=function(e){return eV("unhandledrejection",e),!eJ||!!eJ.__SENTRY_LOADER__||eJ.apply(this,arguments)},eH.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("unknown instrumentation type:",e);return}}(e)}function eV(e,t){if(e&&eU[e])for(let n of eU[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.error(`Error while triggering instrumentation handler.
12Type: ${e}
13Name: ${eR(n)}
14Error:`,t)}}function eq(e,t){return!!e&&"object"==typeof e&&!!e[t]}function eW(e){return"string"==typeof e?e:e?eq(e,"url")?e.url:e.toString?e.toString():"":""}function eX(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;$(n,"_sentryCaptured",!0),r&&!r._sentryId&&$(r,"_sentryId",X());let i="keypress"===n.type?"input":n.type;!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(n)&&(e({event:n,name:i,global:t}),a=n.type,s=r?r._sentryId:void 0),clearTimeout(o),o=eH.setTimeout(()=>{s=void 0,a=void 0},1e3)}}let eK=null,eJ=null,eQ=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function e0(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function e1(e){let t=eQ.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return}let[n,r,i="",o,a="",s]=t.slice(1),l="",c=s,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return e2({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function e2(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function e4(e,t=100,r=Infinity){try{return function e(t,r,i=Infinity,o=Infinity,a=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[s,l]=a;if(null==r||["number","boolean","string"].includes(typeof r)&&!O(r))return r;let c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(I(t))return"[VueViewModel]";if(T(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${eR(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!c.startsWith("[object "))return c;if(r.__sentry_skip_normalization__)return r;let u="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===u)return c.replace("object ","");if(s(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,u-1,o,a)}catch(e){}let d=Array.isArray(r)?[]:{},p=0,f=G(r);for(let t in f){if(!Object.prototype.hasOwnProperty.call(f,t))continue;if(p>=o){d[t]="[MaxProperties ~]";break}let n=f[t];d[t]=e(t,n,u-1,o,a),p++}return l(r),d}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function e3(e,t=[]){return[e,t]}function e6(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function e5(e,t){return(t||new TextEncoder).encode(e)}let e9={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function e7(e){if(!e||!e.sdk)return;
14let{name:t,version:n}=e.sdk;return{name:t,version:n}}class e8 extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function te(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=W({environment:r.environment||ei,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}let tt=new WeakMap,tn="Not capturing exception because it's already been captured.";class tr{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?e1(e):e2(e);if(t&&function(e){if(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__))return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Z.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(Z.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(Z.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Z.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t={}){var n;let r="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${Object.keys(n={sentry_key:e.publicKey,sentry_version:"7",...i&&{sentry_client:`${i.name}/${i.version}`}}).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&")}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(et(e)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(tn);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,o=E(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&et(t.originalException)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(tn);return}let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ed(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
14return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e)):eo(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&eN(e,t,n)}),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){eN(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let o=e7(n),a=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let s=function(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:e0(r)},...i&&{trace:W({...i})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,e3(s,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e,t){let n="string"==typeof e.data?e5(e.data,t):e.data;return[W({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=e7(n);return e3({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:e0(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&(ed(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new es(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),(function(e,t,n,r,i){let{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,s={...t,event_id:t.event_id||n.event_id||X(),timestamp:t.timestamp||(0,er.yW)()},l=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:ei),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=z(e.message,o));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=z(a.value,o));let s=e.request;s&&s.url&&(s.url=z(s.url,o))})(s,e),l.length>0&&(s.sdk=s.sdk||{},s.sdk.integrations=[...s.sdk.integrations||[],...l]),void 0===t.type&&function(e,t){let n;let r=N.n2._sentryDebugIds;if(!r)return;let i=tt.get(t);i?n=i:(n=new Map,tt.set(t,n));let o=Object.keys(r).reduce((e,i)=>{let o;let a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.filename){e[n.filename]=r[i];break}}return e},{});
14try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(s,e.stackParser);let c=r;n.captureContext&&(c=ep.clone(c).update(n.captureContext));let u=eo(s),d=i&&i.getEventProcessors?i.getEventProcessors():[];if(c){if(c.getAttachments){let e=[...n.attachments||[],...c.getAttachments()];e.length&&(n.attachments=e)}u=c.applyToEvent(s,n,d)}else u=eu([...d,...el()],s,n);return u.then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof o&&o>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:e4(e.data,t,n)}}))},...e.user&&{user:e4(e.user,t,n)},...e.contexts&&{contexts:e4(e.contexts,t,n)},...e.extra&&{extra:e4(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=e4(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>(e.data&&(e.data=e4(e.data,t,n)),e))),r}(e,o,a):e)})(r,e,t,n,this).then(e=>{if(null===e)return e;let{propagationContext:t}=e.sdkProcessingMetadata||{};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...e.contexts};let s=a||te(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&("log"===e.logLevel?Z.log(e.message):Z.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=to(e),a=ti(e),s=e.type||"error",l=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),ea(new e8(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new e8("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(j(e))return e.then(e=>{if(!T(e)&&null!==e)throw new e8(n);return e},e=>{throw new e8(`${t} rejected with ${e}`)});if(!T(e)&&null!==e)throw new e8(n);return e}(function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return ti(t)&&r?r(t,n):to(t)&&i?i(t,n):t}(r,n,t),l)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new e8(`${l} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);let a=r.transaction_info;return o&&a&&r.transaction!==e.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof e8)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new e8(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
15Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.error("Error while sending event:",e)});("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function ti(e){return void 0===e.type}function to(e){return"transaction"===e.type}var ta=n(68518);function ts(e,t){let n=tc(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tl(e,t){return{exception:{values:[ts(e,t)]}}}function tc(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(tu.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}let tu=/Minified React error #\d+;/i;function td(e,t,n,r,i){let o;if(_(t)&&t.error)return tl(e,t.error);if(C(t)||w(t,"DOMException")){if("stack"in t)o=tl(e,t);else{let i=t.name||(C(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;Q(o=tp(e,a,n,r),a)}
15return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return x(t)?tl(e,t):(T(t)||k(t)?ee(o=function(e,t,n,r){let i=ey().getClient(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:k(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(G(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return z(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return z(r,t)}}return""}(e),r=t?"promise rejection":"exception";if(_(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(k(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:{__serialized__:function e(t,n=3,r=102400){let i=e4(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,o)}};if(n){let t=tc(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),{synthetic:!0}):(Q(o=tp(e,t,n,r),`${t}`,void 0),ee(o,{synthetic:!0})),o)}function tp(e,t,n,r){let i={message:t};if(r&&n){let r=tc(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}let tf=N.n2,th=0;function tm(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(Y(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>tm(e,t));return e.apply(this,i)}catch(e){var i;throw th++,setTimeout(()=>{th--}),i=n=>{n.addEventProcessor(e=>(t.mechanism&&(Q(e,void 0,void 0),ee(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),ey().captureException(e,{captureContext:void 0})},ey().withScope(i),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}U(r,e),$(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class tg extends tr{constructor(e){let t=tf.SENTRY_SDK_SOURCE||(0,ta.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:eE}],version:eE},super(e),e.sendClientReports&&tf.document&&tf.document.addEventListener("visibilitychange",()=>{"hidden"===tf.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=td(e,t,n&&n.syntheticException||void 0,r);return ee(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),eo(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=tp(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),eo(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){return e3({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:e0(r)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("No outcomes to send");return}if(!this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("No dsn provided, will not send outcomes");return}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("Sending outcomes:",t);let n=e3((e=this._options.tunnel&&e0(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,er.yW)(),discarded_events:t}]]);this._sendEnvelope(n)}}class ty{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=ty.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:tv,onunhandledrejection:tb}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let t in e){let n=this._installFunc[t];n&&e[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`Global Handler attached: ${t}`),n(),this._installFunc[t]=void 0)}}}function tv(){eG("error",e=>{let[t,n,r]=t_();if(!t.getIntegration(ty))return;let{msg:i,url:o,line:a,column:s,error:l}=e;if(th>0||l&&l.__sentry_own_request__)return;let c=void 0===l&&S(i)?function(e,t,n,r){let i=_(e)?e.message:e,o="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(o=a[1],i=a[2]),tx({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):tx(td(n,l||i,void 0,r,!1),o,a,s);c.level="error",tw(t,l,c,"onerror")})}function tb(){eG("unhandledrejection",e=>{var t;let[n,r,i]=t_();if(!n.getIntegration(ty))return;let o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if(th>0||o&&o.__sentry_own_request__)return!0;let a=E(o)?(t=o,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):td(r,o,void 0,i,!0);a.level="error",tw(n,o,a,"onunhandledrejection")})}function tx(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=S(t)&&t.length>0?t:function(){try{return D.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function tw(e,t,n,r){ee(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function t_(){let e=ey(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}ty.__initStatic();let tC=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class tS{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=tS.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&H(tf,"setTimeout",tE),this._options.setInterval&&H(tf,"setInterval",tE),this._options.requestAnimationFrame&&H(tf,"requestAnimationFrame",tT),this._options.XMLHttpRequest&&"XMLHttpRequest"in tf&&H(XMLHttpRequest.prototype,"send",tk);let e=this._options.eventTarget;
15e&&(Array.isArray(e)?e:tC).forEach(tj)}}function tE(e){return function(...t){let n=t[0];return t[0]=tm(n,{mechanism:{data:{function:eR(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tT(e){return function(t){return e.apply(this,[tm(t,{mechanism:{data:{function:"requestAnimationFrame",handler:eR(e)},handled:!1,type:"instrument"}})])}}function tk(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&H(n,e,function(t){let n={mechanism:{data:{function:e,handler:eR(t)},handled:!1,type:"instrument"}},r=Y(t);return r&&(n.mechanism.data.handler=eR(r)),tm(t,n)})}),e.apply(this,t)}}function tj(e){let t=tf[e]&&tf[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(H(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=tm(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:eR(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,tm(r,{mechanism:{data:{function:"addEventListener",handler:eR(r),target:e},handled:!1,type:"instrument"}}),i])}}),H(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}tS.__initStatic();let tO=["fatal","error","warning","log","info","debug"];function tP(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}class tI{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=tI.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;if(this.options.console&&eG("console",tD),this.options.dom&&eG("dom",(e=this.options.dom,function(t){let n;let r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{let e=t.event;n=e&&e.target?M(e.target,{keyAttrs:r,maxStringLength:i}):M(e,{keyAttrs:r,maxStringLength:i})}catch(e){n="<unknown>"}0!==n.length&&ey().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&eG("xhr",tM),this.options.fetch&&eG("fetch",tA),this.options.history&&eG("history",tL),this.options.sentry){let e=ey().getClient();e&&e.on&&e.on("beforeSendEvent",tN)}}}function tN(e){ey().addBreadcrumb({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:J(e)},{event:e})}function tD(e){var t;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":tO.includes(t)?t:"log",message:F(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${F(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}ey().addBreadcrumb(n,{input:e.args,level:e.level})}function tM(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[e$];if(!t||!n||!r)return;let{method:i,url:o,status_code:a,body:s}=r,l={xhr:e.xhr,input:s,startTimestamp:t,endTimestamp:n};ey().addBreadcrumb({category:"xhr",data:{method:i,url:o,status_code:a},type:"http"},l)}function tA(e){let{startTimestamp:t,endTimestamp:n}=e;if(!(!n||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};ey().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};ey().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}}function tL(e){let t=e.from,n=e.to,r=tP(tf.location.href),i=tP(t),o=tP(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),ey().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function tR(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function tZ(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}tI.__initStatic();class tz{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=tz.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){let r=n.getOptions();!function(e,t,n=250,r,i,o,a){if(!o.exception||!o.exception.values||!a||!P(a.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=(function e(t,n,r,i,o,a,s,l){if(a.length>=r+1)return a;let c=[...a];if(P(i[o],Error)){tR(s,l);let a=t(n,i[o]),u=c.length;tZ(a,o,u,l),c=e(t,n,r,i[o],o,[a,...c],a,u)}
15return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if(P(i,Error)){tR(s,l);let u=t(n,i),d=c.length;tZ(u,`errors[${a}]`,d,l),c=e(t,n,r,i,o,[u,...c],u,d)}}),c})(e,t,i,a.originalException,r,o.exception.values,s,0).map(e=>(e.value&&(e.value=z(e.value,n)),e)))}(ts,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}}tz.__initStatic();class tF{static __initStatic(){this.id="HttpContext"}constructor(){this.name=tF.id}setupOnce(){}preprocessEvent(e){if(!tf.navigator&&!tf.location&&!tf.document)return;let t=e.request&&e.request.url||tf.location&&tf.location.href,{referrer:n}=tf.document||{},{userAgent:r}=tf.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}tF.__initStatic();class tB{static __initStatic(){this.id="Dedupe"}constructor(){this.name=tB.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{var t;if((t=this._previousEvent)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&t$(e,t)&&tH(e,t))}(e,t)||function(e,t){let n=tU(t),r=tU(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&t$(e,t)&&tH(e,t))}(e,t)))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return this._previousEvent=e}}function tH(e,t){let n=tY(e),r=tY(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function t$(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function tU(e){return e.exception&&e.exception.values&&e.exception.values[0]}function tY(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}function tG(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}tB.__initStatic();let tV=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tq=/\((\S*)(?::(\d+))(?::(\d+))\)/,tW=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tX=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tK=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tJ=eA([30,e=>{let t=tV.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=tq.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=tQ(t[1]||"?",t[2]);return tG(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=tW.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tX.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=tQ(n,e),tG(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=tK.exec(e);return t?tG(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),tQ=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function t0(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return ea(new e8("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new es((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{eo(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){let o=[];if(e6(i,(t,n)=>{let i=e9[n];if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,i)){let r=t1(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return eo();let a=e3(i[0],o),s=t=>{e6(a,(n,r)=>{let i=t1(n,r);e.recordDroppedEvent(t,e9[r],i)})};return n.add(()=>t({body:function(e,t){let[n,r]=e,i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[e5(i,t),e]:i.push("string"==typeof e?e5(e,t):e)}for(let e of r){let[t,n]=e;if(o(`
16${JSON.stringify(t)}
17`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(e4(n))}o(e)}}return"string"==typeof i?i:function(e){let t=new Uint8Array(e.reduce((e,t)=>
17e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(i)}(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n]=e.split(":",2),o=parseInt(t,10),a=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))i[e]=r+a;else i.all=r+a}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e instanceof e8)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.error("Skipped sending event because buffer is full."),s("queue_overflow"),eo();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function t1(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function t2(e,t=function(){if(f)return f;if(eF(tf.fetch))return f=tf.fetch.bind(tf);let e=tf.document,t=tf.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return f=t.bind(tf)}()){let n=0,r=0;return t0(e,function(i){let o=i.body.length;n+=o,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return f=void 0,n-=o,r--,ea(e)}})}function t4(e){return t0(e,function(t){return new es((n,r)=>{let i=new XMLHttpRequest;for(let t in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}let t3=[new ej,new eP,new tS,new tI,new ty,new tz,new tB,new tF];function t6(e){e.startSession({ignoreDuration:!0}),e.captureSession()}let t5="baggage",t9="sentry-",t7=/^sentry-/;function t8(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===r?i:`${e},${i}`;return o.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${t9}${t}`]=n),e),{}))}function ne(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}let nt=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function nn(e,t){let n=function(e){let t;if(!e)return;let n=e.match(nt);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=function(e){if(!S(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=ne(t);return{...e,...n}},{});else{if(!e)return;t=ne(e)}let n=Object.entries(t).reduce((e,[t,n])=>(t.match(t7)&&(e[t.slice(t9.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:o,parentSampled:a}=n||{},s={traceId:i||X(),spanId:X().substring(16),sampled:a};return o&&(s.parentSpanId=o),r&&(s.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:s}}function nr(e=X(),t=X().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}class ni{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class no{constructor(e={}){this.traceId=e.traceId||X(),this.spanId=e.spanId||X().substring(16),this.startTimestamp=e.startTimestamp||(0,er.ph)(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let t=new no({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){let n=e&&e.op||"< unknown op >",r=t.transaction.name||"< unknown name >",i=t.transaction.spanId,o=`[Tracing] Starting '${n}' span on transaction '${r}' (${i}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:o},Z.log(o)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let t=function(e){if(e<400&&e>=100)return"ok";if(e>
17=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&Z.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,er.ph)()}toTraceparent(){return nr(this.traceId,this.spanId,this.sampled)}toContext(){return W({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return W({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId,origin:this.origin})}toJSON(){return W({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}class na extends no{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||ey(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new ni(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){let t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){return W({...super.toContext(),name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||ey(),t=e.getClient();if(!t)return{};let n=e.getScope(),r=te(this.traceId,t,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);let o=this.metadata.source;return o&&"url"!==o&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&e.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((e,t)=>
17e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e).endTimestamp);let r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}}let ns={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class nl extends ni{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,er.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class nc extends na{constructor(e,t,n=ns.idleTimeout,r=ns.finalTimeout,i=ns.heartbeatInterval,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope(e=>e.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.finish())},this._finalTimeout)}finish(e=(0,er.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){for(let t of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanId===this.spanId)return!0;!t.endTimestamp&&(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let n=t.startTimestamp<e,r=(this._finalTimeout+this._idleTimeout)/1e3,i=t.endTimestamp-this.startTimestamp<r;if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){let e=JSON.stringify(t,void 0,2);n?i||Z.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):Z.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return n&&i}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] No active IdleTransaction");if(this._onScope){let e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){this.spanRecorder||(this.spanRecorder=new nl(e=>{this._finished||this._pushActivity(e)},e=>{this._finished||this._popActivity(e)},this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.finish(e))},this._idleTimeout)}
17_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=(0,er.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason="cancelled",this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function nu(e){return(e||ey()).getScope().getTransaction()}let nd=!1;function np(){let e=nu();if(e){let t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function nf(e,t,n){var r;let i;return ex(t)?void 0!==e.sampled?e.setMetadata({sampleRate:Number(e.sampled)}):("function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setMetadata({sampleRate:Number(i)})):(i=1,e.setMetadata({sampleRate:i})),O(r=i)||!("number"==typeof r||"boolean"==typeof r)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),1):(r<0||r>1)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),1))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1):i?(e.sampled=Math.random()<i,e.sampled)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] starting ${e.op} transaction - ${e.name}`):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1):e.sampled=!1,e}function nh(){let e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function nm(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter.
18The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new na(e,this);return(a=nf(a,r,{parentSampled:e.parentSampled,transactionContext:e,...t})).sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function ng(e,t,n,r,i,o,a){let s=e.getClient(),l=s&&s.getOptions()||{},c=new nc(t,e,n,r,a,i);return(c=nf(c,l,{parentSampled:t.parentSampled,transactionContext:t,...o}
18)).sampled&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),s&&s.emit&&s.emit("startTransaction",c),c}np.tag="sentry_tracingErrorCallback";let ny=N.n2,nv=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},nb=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,nx=()=>{let e=ny.performance.timing,t=ny.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n},nw=()=>ny.__WEB_VITALS_POLYFILL__?ny.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||nx()):ny.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],n_=()=>{let e=nw();return e&&e.activationStart||0},nC=(e,t)=>{let n=nw(),r="navigate";return n&&(r=ny.document.prerendering||n_()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:nb(),navigationType:r}},nS=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},nE=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===ny.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},nT=e=>{let t;let n=nC("CLS",0),r=0,i=[],o=e=>{e.forEach(e=>{if(!e.hadRecentInput){let o=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>n.value&&(n.value=r,n.entries=i,t&&t())}})},a=nS("layout-shift",o);if(a){t=nv(e,n);let r=()=>{o(a.takeRecords()),t(!0)};return nE(r),r}},nk=-1,nj=()=>"hidden"!==ny.document.visibilityState||ny.document.prerendering?1/0:0,nO=()=>{nE(({timeStamp:e})=>{nk=e},!0)},nP=()=>(nk<0&&(nk=nj(),nO()),{get firstHiddenTime(){return nk}}),nI=e=>{let t;let n=nP(),r=nC("FID"),i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))},o=e=>{e.forEach(i)},a=nS("first-input",o);t=nv(e,r),a&&nE(()=>{o(a.takeRecords()),a.disconnect()},!0)},nN={},nD=e=>{let t;let n=nP(),r=nC("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-n_(),0);e<n.firstHiddenTime&&(r.value=e,r.entries=[i],t())}},o=nS("largest-contentful-paint",i);if(o){t=nv(e,r);let n=()=>{nN[r.id]||(i(o.takeRecords()),o.disconnect(),nN[r.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{addEventListener(e,n,{once:!0,capture:!0})}),nE(n,!0),n}},nM={},nA={};function nL(e,t){return nH(e,t),nA[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),nS(e,t=>{nR(e,{entries:t})},t)}(e),nA[e]=!0),n$(e,t)}function nR(e,t){let n=nM[e];if(n&&n.length)for(let r of n)try{r(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.error(`Error while triggering instrumentation handler.
19Type: ${e}
20Name: ${eR(r)}
21Error:`,t)}}function nZ(){nT(e=>{nR("cls",{metric:e}),l=e})}function nz(){nI(e=>{nR("fid",{metric:e}),c=e})}function nF(){nD(e=>{nR("lcp",{metric:e}),u=e})}function nB(e,t,n,r){return nH(e,t),nA[e]||(n(),nA[e]=!0),r&&t({metric:r}),n$(e,t)}function nH(e,t){nM[e]=nM[e]||[],nM[e].push(t)}function n$(e,t){return()=>{let n=nM[e];if(!n)return;let r=n.indexOf(t);-1!==r&&n.splice(r,1)}}function nU(e){return"number"==typeof e&&isFinite(e)}function nY(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function nG(e){return e/1e3}function nV(){return ny&&ny.addEventListener&&ny.performance}let nq=0,nW={};function nX(e,t,n,r,i,o){let a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&nY(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+nG(s),endTimestamp:r+nG(a)})}let nK=["localhost",/^\/(?!\/)/],nJ={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:nK,tracePropagationTargets:nK};function nQ(e){let t=e.data.url;if(!t)return;let n=nL("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,ver
21sion:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),er.Z1)?[...r,["http.request.redirect_start",n0(e.redirectStart)],["http.request.fetch_start",n0(e.fetchStart)],["http.request.domain_lookup_start",n0(e.domainLookupStart)],["http.request.domain_lookup_end",n0(e.domainLookupEnd)],["http.request.connect_start",n0(e.connectStart)],["http.request.secure_connection_start",n0(e.secureConnectionStart)],["http.request.connection_end",n0(e.connectEnd)],["http.request.request_start",n0(e.requestStart)],["http.request.response_start",n0(e.responseStart)],["http.request.response_end",n0(e.responseEnd)]]:r})(r).forEach(t=>e.setData(...t)),setTimeout(n))})})}function n0(e=0){return((er.Z1||performance.timeOrigin)+e)/1e3}function n1(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(t5,n)}catch(e){}}let n2={...ns,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){let r;if(!ny||!ny.location){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Could not initialize routing instrumentation due to invalid location");return}let i=ny.location.href;t&&(r=e({name:ny.location.pathname,startTimestamp:er.Z1?er.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&eG("history",({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:ny.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...nJ};class n4{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,function(){let e=em();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=nm),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=nh),nd||(nd=!0,eG("error",np),eG("unhandledrejection",np)))}(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...n2,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=function(){let e=nV();if(e&&er.Z1){e.mark&&ny.performance.mark("sentry-tracing-init");let t=nB("fid",({metric:e})=>{let t=e.entries.pop();if(!t)return;let n=nG(er.Z1),r=nG(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding FID"),nW.fid={value:e.value,unit:"millisecond"},nW["mark.fid"]={value:n+r,unit:"second"}},nz,c),n=nB("cls",({metric:e})=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding CLS"),nW.cls={value:e.value,unit:""},p=t)},nZ,l),r=nB("lcp",({metric:e})=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding LCP"),nW.lcp={value:e.value,unit:"millisecond"},d=t)},nF,u);return()=>{t(),n(),r()}}return()=>void 0}(),this.options.enableLongTask&&nL("longtask",({entries:e})=>{for(let t of e){let e=nu();if(!e)return;let n=nG(er.Z1+t.startTime),r=nG(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}),this.options._experiments.enableInteractions&&nL("event",({entries:e})=>{for(let t of e){let e=nu();if(!e)return;if("click"===t.name){let n=nG(er.Z1+t.startTime),r=nG(t.duration);e.startChild({description:M(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}})}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:a,markBackgroun
21dTransactions:s,traceFetch:l,traceXHR:c,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:p}=this.options,f=r&&r.tracePropagationTargets,h=f||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&f&&Z.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},a,o),s&&(ny&&ny.document?ny.document.addEventListener("visibilitychange",()=>{let e=nu();if(ny.document.hidden&&e){let t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),function(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:nJ.traceFetch,traceXHR:nJ.traceXHR,...e},s="function"==typeof o?o:e=>!0,l=e=>B(e,r||i||nK),c={};t&&eG("fetch",e=>{let t=function(e,t,n,r){if(!ex()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let t=e.fetchData.__span;if(!t)return;let n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);let t=parseInt(e.response&&e.response.headers&&e.response.headers.get("content-length"));t>0&&n.setData("http.response_content_length",t)}else e.error&&n.setStatus("internal_error");n.finish(),delete r[t]}return}let o=ey(),a=o.getScope(),s=o.getClient(),l=a.getSpan(),{method:c,url:u}=e.fetchData,d=i&&l?l.startChild({data:{url:u,type:"fetch","http.method":c},description:`${c} ${u}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(e.fetchData.__span=d.spanId,r[d.spanId]=d),n(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let o=i||n.getSpan(),a=o&&o.transaction,{traceId:s,sampled:l,dsc:c}=n.getPropagationContext(),u=o?o.toTraceparent():nr(s,void 0,l),d=t8(a?a.getDynamicSamplingContext():c||te(s,t,n)),p="undefined"!=typeof Request&&P(e,Request)?e.headers:r.headers;if(!p)return{"sentry-trace":u,baggage:d};if("undefined"!=typeof Headers&&P(p,Headers)){let e=new Headers(p);return e.append("sentry-trace",u),d&&e.append(t5,d),e}if(Array.isArray(p)){let e=[...p,["sentry-trace",u]];return d&&e.push([t5,d]),e}{let e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...p,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}(t,s,a,n,d)}return d}(e,s,l,c);a&&t&&nQ(t)}),n&&eG("xhr",e=>{let t=function(e,t,n,r){let i=e.xhr,o=i&&i[e$];if(!ex()||i&&i.__sentry_own_request__||!i||!o)return;let a=t(o.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&(t.setHttpStatus(o.status_code),t.finish(),delete r[e]);return}let s=ey(),l=s.getScope(),c=l.getSpan(),u=a&&c?c.startChild({data:{...o.data,type:"xhr","http.method":o.method,url:o.url},description:`${o.method} ${o.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(u&&(i.__sentry_xhr_span_id__=u.spanId,r[i.__sentry_xhr_span_id__]=u),i.setRequestHeader&&n(o.url)){if(u){let e=u&&u.transaction,t=t8(e&&e.getDynamicSamplingContext());n1(i,u.toTraceparent(),t)}else{let e=s.getClient(),{traceId:t,sampled:n,dsc:r}=l.getPropagationContext();n1(i,nr(t,void 0,n),t8(r||(e?te(t,e,l):void 0)))}}return u}(e,s,l,c);a&&t&&nQ(t)})}({traceFetch:l,traceXHR:c,tracePropagationTargets:h,shouldCreateSpanForRequest:u,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`[Tracing] Did not create ${e.op}
21 transaction because _getCurrentHub is invalid.`);return}let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,a="pageload"===e.op,{traceparentData:s,dynamicSamplingContext:l,propagationContext:c}=nn(a?n3("sentry-trace"):"",a?n3("baggage"):""),u={...e,...s,metadata:{...e.metadata,dynamicSamplingContext:s&&!l?{}:l},trimEnd:!0},f="function"==typeof n?n(u):u,h=void 0===f?{...u,sampled:!1}:f;h.metadata=h.name!==u.name?{...h.metadata,source:"custom"}:h.metadata,this._latestRouteName=h.name,this._latestRouteSource=h.metadata&&h.metadata.source,!1===h.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] Will not send ${h.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Tracing] Starting ${h.op} transaction on scope`);let{location:m}=ny,g=ng(t,h,r,i,!0,{location:m},o),y=t.getScope();return a&&s?y.setPropagationContext(c):y.setPropagationContext({traceId:g.traceId,spanId:g.spanId,parentSpanId:g.parentSpanId,sampled:g.sampled}),g.registerBeforeFinishCallback(e=>{this._collectWebVitals(),function(e){let t,n;let r=nV();if(!r||!ny.performance.getEntries||!er.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Tracing] Adding & adjusting spans using Performance API");let i=nG(er.Z1),o=r.getEntries();if(o.slice(nq).forEach(r=>{let o=nG(r.startTime),a=nG(r.duration);if("navigation"!==e.op||!(i+o<e.startTimestamp))switch(r.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(t=>{nX(e,r,t,i)}),nX(e,r,"secureConnection",i,"TLS/SSL","connectEnd"),nX(e,r,"fetch",i,"cache","domainLookupStart"),nX(e,r,"domainLookup",i,"DNS"),nY(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:i+nG(r.requestStart),endTimestamp:i+nG(r.responseEnd)}),nY(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:i+nG(r.responseStart),endTimestamp:i+nG(r.responseEnd)}),t=i+nG(r.responseStart),n=i+nG(r.requestStart);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let o=i+n;nY(e,{description:t.name,endTimestamp:o+r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})})(e,r,o,a,i);let t=nP(),n=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding FP"),nW.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding FCP"),nW.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":{let t=r.name.replace(ny.location.origin,"");(function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a={};"transferSize"in t&&(a["http.response_transfer_size"]=t.transferSize),"encodedBodySize"in t&&(a["http.response_content_length"]=t.encodedBodySize),"decodedBodySize"in t&&(a["http.decoded_response_content_length"]=t.decodedBodySize),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus);let s=o+r;nY(e,{description:n,endTimestamp:s+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:s,data:a})})(e,r,t,o,a,i)}}}),nq=Math.max(o.length-1,0),function(e){let t=ny.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),nU(n.rtt)&&(nW["connection.rtt"]={value:n.rtt,unit:"millisecond"})),nU(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),nU(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding TTFB"),nW.ttfb={value:(t-e.startTimestamp)*1e3,unit:"millisecond"},"number"==typeof n&&n<=t&&(nW["ttfb.requestTime"]={value:(t-n)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(t=>{if(!nW[t]||i>=e.startTimestamp)return;let n=nW[t].value,r=Math.abs((i+nG(n)-e.startTimestamp)*1e3),o=r-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log(`[Measurements] Normalized ${t} from ${n} to ${r} (${o})`),nW[t].value=r});let r=nW["mark.fid"];r&&nW.fid&&(nY(e,{description:"first input delay",endTimestamp:r.value+nG(nW.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:r.value}),delete nW["mark.fid"]),"fcp"in nW||delete nW.cls,Object.keys(nW).forEach(t=>
21{e.setMeasurement(t,nW[t].value,nW[t].unit)}),d&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding LCP Data"),d.element&&e.setTag("lcp.element",M(d.element)),d.id&&e.setTag("lcp.id",d.id),d.url&&e.setTag("lcp.url",d.url.trim().slice(0,200)),e.setTag("lcp.size",d.size)),p&&p.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.log("[Measurements] Adding CLS Data"),p.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,M(t.node))))}d=void 0,p=void 0,nW={}}(e)}),g}_registerInteractionListener(){let e;let t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",o=nu();if(o&&o.op&&["navigation","pageload"].includes(o.op)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let a=this._getCurrentHub(),{location:s}=ny;e=ng(a,{name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}},t,n,!0,{location:s},r)};["click"].forEach(e=>{addEventListener(e,t,{once:!1,capture:!0})})}}function n3(e){var t;let n=(t=`meta[name=${e}]`,D.document&&D.document.querySelector?D.document.querySelector(t):null);return n?n.getAttribute("content"):void 0}function n6(e,t,n={}){return Array.isArray(t)?n5(e,t,n):r=>{let i=t(r);return e.allowExclusionByUser&&!i.find(t=>t.name===e.name)?i:n5(e,i,n)}}function n5(e,t,n){let r=t.find(t=>t.name===e.name);if(r){for(let[e,t]of Object.entries(n))!function e(t,n,r){let i=n.match(/([a-z_]+)\.(.*)/i);null===i?t[n]=r:e(t[i[1]],i[2],r)}(r,e,t);return t}return[...t,e]}var n9=n(83454);let n7={"routing.instrumentation":"next-app-router"};var n8=n(11163),re=n.n(n8);let rt={"routing.instrumentation":"next-pages-router"},rn=ey().getClient();function rr(e,t=!0,n=!0){tf.document.getElementById("__NEXT_DATA__")?function(e,t=!0,n=!0){let{route:r,params:i,sentryTrace:o,baggage:a}=function(){let e;let t=tf.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),{traceparentData:s,dynamicSamplingContext:l,propagationContext:c}=nn(o,a);ey().getScope().setPropagationContext(c),m=r||tf.location.pathname,t&&(h=e({name:m,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:rt,startTimestamp:er.Z1?er.Z1/1e3:void 0,...i&&rn&&rn.getOptions().sendDefaultPii&&{data:i},...s,metadata:{source:r?"route":"url",dynamicSamplingContext:s&&!l?{}:l}})),n&&re().events.on("routeChangeStart",t=>{let n,r;let i=t.split(/[\?#]/,1)[0],o=function(e){let t=(tf.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(i);o?(n=o,r="route"):(n=i,r="url");let a={...rt,from:m};m=n,h&&h.finish();let s=e({name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:a,metadata:{source:r}});if(s){let e=s.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),t=()=>{e.finish(),re().events.off("routeChangeComplete",t)};re().events.on("routeChangeComplete",t)}})}(e,t,n):function(e,t=!0,n=!0){let r;let i=tf.location.pathname;t&&(r=e({name:i,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:n7,startTimestamp:er.Z1?er.Z1/1e3:void 0,metadata:{source:"url"}})),n&&eG("fetch",t=>{if(void 0!==t.endTimestamp||"GET"!==t.fetchData.method)return;let n=function(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1])
21)return null;try{let t=e[0],n=e[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(e){return null}}(t.args);if(null===n)return;let o=n.targetPathname,a={...n7,from:i};i=o,r&&r.finish(),e({name:o,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:a,metadata:{source:"url"}})})}(e,t,n)}let ri=n.g,ro=n.g;var ra=n(83454);function rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach(function(t){(0,v.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rc=window;rc.__sentryRewritesTunnelPath__=void 0,rc.SENTRY_RELEASE={id:"v3-desktop-mub4w0kw"},rc.__sentryBasePath=void 0,rc.__rewriteFramesAssetPrefixPath__="";let ru=ra.env.SENTRY_DSN||"https://[email protected]/7",rd=XMLHttpRequest.prototype.send;function rp(){XMLHttpRequest.prototype.send=rd}!function(e){var t,n;let r={environment:function(e){let t=e?n9.env.NEXT_PUBLIC_VERCEL_ENV:n9.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",...e};(function(e){let t=ri.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=e1(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(r){let i=r[1],o=`${t}?o=${i}&p=${n.projectId}`;e.tunnel=o,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.info(`Tunneling events to "${o}"`)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(r),t=["nextjs","react"],r._metadata=r._metadata||{},r._metadata.sdk=r._metadata.sdk||{name:"sentry.javascript.nextjs",packages:t.map(e=>({name:`npm:@sentry/${e}`,version:eE})),version:eE},function(e){let t=e.integrations||[],n=ro.__rewriteFramesAssetPrefixPath__||"";t=n6(new eS({iteratee:e=>{try{let{origin:t}=new URL(e.filename);e.filename=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(t,"app://"),"access",e=>e.replace,"call",e=>e(n,"")])}catch(e){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e}}),t),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&ex(e)&&(t=n6(new n4({tracingOrigins:[...nJ.tracingOrigins,/^(api\/)/],routingInstrumentation:rr}),t,{"options.routingInstrumentation":rr})),e.integrations=t}(r),function(e){let t={_metadata:{},...e};t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:eE}],version:eE},function(e={}){var t;void 0===e.defaultIntegrations&&(e.defaultIntegrations=t3),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),tf.SENTRY_RELEASE&&tf.SENTRY_RELEASE.id&&(e.release=tf.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Z.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));let n=ey();n.getScope().update(t.initialScope);let r=new e(t);n.bindClient(r)}(tg,{...e,stackParser:Array.isArray(t=e.stackParser||tJ)?eA(...t):t,integrations:function(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r=function(e){let t={};
21return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(Array.isArray(n)?[...t,...n]:"function"==typeof n?en(n(t)):t),i=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(r,e=>"Debug"===e.name);if(-1!==i){let[e]=r.splice(i,1);r.push(e)}return r}(e),transport:e.transport||(ez()?t2:t4)}),e.autoSessionTracking&&function(){if(void 0===tf.document){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Z.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let e=ey();e.captureSession&&(t6(e),eG("history",({from:e,to:t})=>{void 0===e||e===t||t6(ey())}))}()}(t)}(r),n=e=>{e.setTag("runtime","browser");let t=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;t.id="NextClient404Filter",e.addEventProcessor(t)},ey().configureScope(n)}({dsn:ru,integrations:[new n4({shouldCreateSpanForRequest:()=>!1,enableHTTPTimings:!1,tracingOrigins:[]})],tracesSampleRate:1,environment:"production",beforeSend:e=>Object.assign(e,{tags:rl(rl({},e.tags),{},{platform:"desktop"})})}),setTimeout(rp,0),setTimeout(rp,100),setTimeout(rp,1e3),setTimeout(rp,3e3)},71227:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return f},usePathname:function(){return d},useRouter:function(){return p},useSearchParams:function(){return u},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(67294),i=n(80536),o=n(87159),a=n(14335),s=n(9522),l=n(73318),c=n(8704);function u(){let e=(0,r.useContext)(o.SearchParamsContext);return(0,r.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,r.useContext)(o.PathnameContext)}function p(){let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function f(){return(0,r.useContext)(o.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(i.LayoutRouterContext);return t?function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var l;let e=t[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return i;let c=o[0],u=(0,a.getSegmentValue)(c);return!u||u.startsWith(s.PAGE_SEGMENT_KEY)?i:(i.push(u),e(o,n,!1,i))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===s.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73318:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return a},RedirectType:function(){return r.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(55458),i=n(89697);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89697:function(e,t){"use strict";
21Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return i},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49056:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55458:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return f},isRedirectError:function(){return p},permanentRedirect:function(){return d},redirect:function(){return u}});let o=n(79316),a=n(2696),s=n(49056),l="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=s.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+t+";"+e+";"+n+";";let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function u(e,t){void 0===t&&(t="replace");let n=a.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=a.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function p(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(o)&&o in s.RedirectStatusCode}function f(e){return p(e)?e.digest.split(";",3)[2]:null}function h(e){if(!p(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!p(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14335:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13898:function(e,t){"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return f}});let a="refresh",s="navigate",l="restore",c="server-patch",u="prefetch",d="fast-refresh",p="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=r||(r={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
21dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});let r=n(49883);function i(e,t,i,o){{let a=n(9749).normalizeLocalePath,s=n(56876).detectDomainLocale,l=t||a(e,i).detectedLocale,c=s(o,void 0,l);if(c){let t="http"+(c.http?"":"s")+"://",n=l===c.defaultLocale?"":"/"+l;return""+t+c.domain+(0,r.normalizePathTrailingSlash)(""+n+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70535:function(e,t,n){"use strict";var r=n(47069),i=n(20968);let o=["src","srcSet","sizes","height","width","decoding","className","style","fetchPriority","placeholder","loading","unoptimized","fill","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","sizesInput","onLoad","onError"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return S}});let l=n(38754),c=n(61757),u=n(85893),d=c._(n(67294)),p=l._(n(73935)),f=l._(n(66484)),h=n(42703),m=n(18129),g=n(63180);n(51405);let y=n(25189),v=l._(n(13155)),b={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function x(e,t,n,r,i,o,a){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current(s(s({},t),{},{nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}}))}(null==r?void 0:r.current)&&r.current(e)}}))}function w(e){return d.use?{fetchPriority:e}:{fetchpriority:e}}let _=(0,d.forwardRef)((e,t)=>{let{src:n,srcSet:i,sizes:a,height:l,width:c,decoding:p,className:f,style:h,fetchPriority:m,placeholder:g,loading:y,unoptimized:v,fill:b,onLoadRef:_,onLoadingCompleteRef:C,setBlurComplete:S,setShowAltText:E,sizesInput:T,onLoad:k,onError:j}=e,O=r(e,o);return(0,u.jsx)("img",s(s(s({},O),w(m)),{},{loading:y,width:c,height:l,decoding:p,"data-nimg":b?"fill":"1",className:f,style:h,sizes:a,srcSet:i,src:n,ref:(0,d.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&x(e,g,_,C,S,v,T))},[n,g,_,C,S,j,v,T,t]),onLoad:e=>{x(e.currentTarget,g,_,C,S,v,T)},onError:e=>{E(!0),"empty"!==g&&S(!0),j&&j(e)}}))});function C(e){let{isAppRouter:t,imgAttributes:n}=e,r=s({as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy},w(n.fetchPriority));return t&&p.default.preload?(p.default.preload(n.src,r),null):(0,u.jsx)(f.default,{children:(0,u.jsx)("link",s({rel:"preload",href:n.srcSet?void 0:n.src},r),"__nimg-"+n.src+n.srcSet+n.sizes)})}let S=(0,d.forwardRef)((e,t)=>{let n=(0,d.useContext)(y.RouterContext),r=(0,d.useContext)(g.ImageConfigContext),i=(0,d.useMemo)(()=>{var e;let t=b||r||m.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>
21e-t);return s(s({},t),{},{allSizes:n,deviceSizes:i,qualities:o})},[r]),{onLoad:o,onLoadingComplete:a}=e,l=(0,d.useRef)(o);(0,d.useEffect)(()=>{l.current=o},[o]);let c=(0,d.useRef)(a);(0,d.useEffect)(()=>{c.current=a},[a]);let[p,f]=(0,d.useState)(!1),[x,w]=(0,d.useState)(!1),{props:S,meta:E}=(0,h.getImgProps)(e,{defaultLoader:v.default,imgConf:i,blurComplete:p,showAltText:x});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(_,s(s({},S),{},{unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:l,onLoadingCompleteRef:c,setBlurComplete:f,setShowAltText:w,sizesInput:e.sizes,ref:t})),E.priority?(0,u.jsx)(C,{isAppRouter:!n,imgAttributes:S}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72096:function(e,t,n){"use strict";var r=n(20968),i=n(47069);let o=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let l=n(38754),c=n(85893),u=l._(n(67294)),d=n(45621),p=n(83499),f=n(98963),h=n(9138),m=n(75502),g=n(25189),y=n(80536),v=n(86139),b=n(48060),x=n(46211),w=n(13898),_=new Set;function C(e,t,n,r,i,o){if(o||(0,p.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(_.has(i))return;_.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function S(e){return"string"==typeof e?e:(0,f.formatUrl)(e)}let E=u.default.forwardRef(function(e,t){let n,r;let{href:a,as:l,children:f,prefetch:_=null,passHref:E,replace:T,shallow:k,scroll:j,locale:O,onClick:P,onMouseEnter:I,onTouchStart:N,legacyBehavior:D=!1}=e,M=i(e,o);n=f,D&&("string"==typeof n||"number"==typeof n)&&(n=(0,c.jsx)("a",{children:n}));let A=u.default.useContext(g.RouterContext),L=u.default.useContext(y.AppRouterContext),R=null!=A?A:L,Z=!A,z=!1!==_,F=null===_?w.PrefetchKind.AUTO:w.PrefetchKind.FULL,{href:B,as:H}=u.default.useMemo(()=>{if(!A){let e=S(a);return{href:e,as:l?S(l):e}}let[e,t]=(0,d.resolveHref)(A,a,!0);return{href:e,as:l?(0,d.resolveHref)(A,l):t||e}},[A,a,l]),$=u.default.useRef(B),U=u.default.useRef(H);D&&(r=u.default.Children.only(n));let Y=D?r&&"object"==typeof r&&r.ref:t,[G,V,q]=(0,v.useIntersection)({rootMargin:"200px"}),W=u.default.useCallback(e=>{(U.current!==H||$.current!==B)&&(q(),U.current=H,$.current=B),G(e),Y&&("function"==typeof Y?Y(e):"object"==typeof Y&&(Y.current=e))},[H,Y,B,q,G]);u.default.useEffect(()=>{R&&V&&z&&C(R,B,H,{locale:O},{kind:F},Z)},[H,B,V,O,z,null==A?void 0:A.locale,R,Z,F]);let X={ref:W,onClick(e){D||"function"!=typeof P||P(e),D&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,n,r,i,o,a,s,l){let{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!l&&!(0,p.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:s,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};l?u.default.startTransition(d):d()}(e,R,B,H,T,k,j,O,Z)},onMouseEnter(e){D||"function"!=typeof I||I(e),D&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),R&&(z||!Z)&&C(R,B,H,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:F},Z)},onTouchStart:function(e){D||"function"!=typeof N||N(e),D&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),R&&(z||!Z)&&C(R,B,H,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:F},Z)}};if((0,h.isAbsoluteUrl)(H))X.href=H;else if(!D||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==O?O:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,b.getDomainLocale)(H,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);X.href=t||(0,x.addBasePath)((0,m.addLocale)(H,e,null==A?void 0:A.defaultLocale))}return D?u.default.cloneElement(r,X):(0,c.jsx)("a",s(s(s({},M),X),{},{children:n}))});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
21dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9749:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});let r=(e,t)=>n(18751).normalizeLocalePath(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(67294),i=n(87296),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,c=l||!o,[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{p.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(c||u)return;let e=p.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,n,t,u,p.current]),[f,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60244:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(38754)._(n(67294)).default.createContext({})},48576:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},42703:function(e,t,n){"use strict";var r=n(20968),i=n(47069);let o=["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","overrideSrc","onLoad","onLoadingComplete","placeholder","blurDataURL","fetchPriority","decoding","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"],a=["config"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return f}}),n(51405);let c=n(68415),u=n(18129);function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function f(e,t){var n,r;let s,f,h,{src:m,sizes:g,unoptimized:y=!1,priority:v=!1,loading:b,className:x,quality:w,width:_,height:C,fill:S=!1,style:E,overrideSrc:T,onLoad:k,onLoadingComplete:j,placeholder:O="empty",blurDataURL:P,fetchPriority:I,decoding:N="async",layout:D,objectFit:M,objectPosition:A,lazyBoundary:L,lazyRoot:R}=e,Z=i(e,o),{imgConf:z,showAltText:F,blurComplete:B,defaultLoader:H}=t,$=z||u.imageConfigDefault;if("allSizes"in $)s=$;else{let e=[...$.deviceSizes,...$.imageSizes].sort((e,t)=>
21e-t),t=$.deviceSizes.sort((e,t)=>e-t),r=null==(n=$.qualities)?void 0:n.sort((e,t)=>e-t);s=l(l({},$),{},{allSizes:e,deviceSizes:t,qualities:r})}if(void 0===H)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let U=Z.loader||H;delete Z.loader,delete Z.srcSet;let Y="__next_img_default"in U;if(Y){if("custom"===s.loader)throw Error('Image with src "'+m+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:n}=t;return e(i(t,a))}}if(D){"fill"===D&&(S=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[D];e&&(E=l(l({},E),e));let t={responsive:"100vw",fill:"100vw"}[D];t&&!g&&(g=t)}let G="",V=p(_),q=p(C);if("object"==typeof(r=m)&&(d(r)||void 0!==r.src)){let e=d(m)?m.default:m;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(f=e.blurWidth,h=e.blurHeight,P=P||e.blurDataURL,G=e.src,!S){if(V||q){if(V&&!q){let t=V/e.width;q=Math.round(e.height*t)}else if(!V&&q){let t=q/e.height;V=Math.round(e.width*t)}}else V=e.width,q=e.height}}let W=!v&&("lazy"===b||void 0===b);(!(m="string"==typeof m?m:G)||m.startsWith("data:")||m.startsWith("blob:"))&&(y=!0,W=!1),s.unoptimized&&(y=!0),Y&&m.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(y=!0),v&&(I="high");let X=p(w),K=Object.assign(S?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:A}:{},F?{}:{color:"transparent"},E),J=B||"empty"===O?null:"blur"===O?'url("data:image/svg+xml;charset=utf-8,'+(0,c.getImageBlurSvg)({widthInt:V,heightInt:q,blurWidth:f,blurHeight:h,blurDataURL:P||"",objectFit:K.objectFit})+'")':'url("'+O+'")',Q=J?{backgroundSize:K.objectFit||"cover",backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},ee=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),u=l.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:s({config:t,src:n,quality:o,width:l[u]})}}({config:s,src:m,unoptimized:y,width:V,quality:X,sizes:g,loader:U});return{props:l(l({},Z),{},{loading:W?"lazy":b,fetchPriority:I,width:V,height:q,decoding:N,className:x,style:l(l({},K),Q),sizes:ee.sizes,srcSet:ee.srcSet,src:T||ee.src}),meta:{unoptimized:y,priority:v,placeholder:O,fill:S}}}},66484:function(e,t,n){"use strict";var r=n(20968);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return y},defaultHead:function(){return f}});let o=n(38754),a=n(61757),s=n(85893),l=a._(n(67294)),c=o._(n(22350)),u=n(60244),d=n(83621),p=n(48576);function f(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>
21"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(51405);let m=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:n}=t;return e.reduce(h,[]).reverse().concat(f(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=m.length;e<t;e++){let t=m[e];if(i.props.hasOwnProperty(t)){if("charSet"===t)n.has(t)?o=!1:n.add(t);else{let e=i.props[t],n=r[t]||new Set;("name"!==t||!a)&&n.has(e)?o=!1:(n.add(e),r[t]=n)}}}}return o}}()).reverse().map((e,t)=>{let o=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.props||{});return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:o})})}let y=function(e){let{children:t}=e,n=(0,l.useContext)(u.AmpStateContext),r=(0,l.useContext)(d.HeadManagerContext);return(0,s.jsx)(c.default,{reduceComponentsToState:g,headManager:r,inAmpMode:(0,p.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68415:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,c=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},91381:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(38754),i=n(42703),o=n(70535),a=r._(n(13155));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=o.Image},13155:function(e,t){"use strict";function n(e){var t;let{config:n,src:r,width:i,quality:o}=e,a=o||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+a}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},8704:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let r=n(61757)._(n(67294)),i=r.default.createContext(null);function o(e){let t=(0,r.useContext)(i);t&&t(e)}},22350:function(e,t,n){"use strict";
21Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(67294),i=r.useLayoutEffect,o=r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}return i(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},51405:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},56323:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(8307),i=n(67294),o=n(87379);let a=o.ZP.div.withConfig({displayName:"styles__CategorySliderContainer",componentId:"sc-1tafvz8-0"})(["background:none;padding-bottom:15px;"]),s=o.ZP.div.withConfig({displayName:"styles__Categories",componentId:"sc-1tafvz8-1"})(["display:flex;flex-direction:column;"]),l=o.ZP.div.withConfig({displayName:"styles__CategoryItemWrapper",componentId:"sc-1tafvz8-2"})([""]),c=o.ZP.div.withConfig({displayName:"styles__CategoryItem",componentId:"sc-1tafvz8-3"})(["display:flex;align-items:center;height:42px;font-size:14px;color:#212121;line-height:18px;font-weight:400;font-family:'Suisse Intl';border-radius:14px;padding-left:16px;padding-right:16px;cursor:pointer;transition:all 0.2s ease-out;white-space:nowrap;user-select:none;"," &:hover,&:focus{background:#f5f5f5;}&:active{background:#dedede;}"],e=>e.isActive?(0,o.iv)(["background:#f5f5f5;"]):(0,o.iv)([""]));var u=n(27910),d=n(11163),p=n(57172),f=n(85893);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}let m=null,g=!1;{let e=/^#?cat(?:v)?-(\d+)$/.exec(window.location.hash||"");e&&(m=Number(e[1]))}var y=function(e){let{categories:t,isLoaded:n=!0}=e,{categorySlug:o}=(0,i.useContext)(u.Z),y=(0,d.useRouter)();console.log("categorySlug ",o);let v=(0,i.useMemo)(()=>t?.find(e=>e.slug===o)?.id??null,[o]);console.log("categoryId ",v);let b=(0,i.useRef)(null),x=(0,i.useRef)(null),{0:w,1:_}=(0,i.useState)(0),{0:C,1:S}=(0,i.useState)(!1),{0:E,1:T}=(0,i.useState)();(0,i.useEffect)(()=>{if(n){if(!v&&m&&!g){g=!0;let e=t?.find(e=>e.id===m)?.slug;if(e){let t=`${window.location.pathname}?category=${e.replace(" ","-")}`;window.history.replaceState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},window.history.state),"",t)}setTimeout(()=>k(m),500);return}v&&setTimeout(()=>k(v),500)}},[n,v]);let k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!document.getElementById("#cat-"+e)){t<80&&setTimeout(()=>k(e,t+1),150);return}T(e);let n=-1,r=0,i=0,o=()=>{let t=document.getElementById("#cat-"+e);if(!t)return;let a=t.offsetTop+100;Math.abs(window.scrollY-a)>2&&window.scrollTo({top:a,left:0,behavior:"auto"}),a===n?r++:(r=0,n=a),i++,r<5&&i<80&&setTimeout(o,100)};o()},j=e=>{let t=document.getElementById("#cat-"+e);window.scrollTo({top:t?.offsetTop+100,left:0,behavior:"smooth"}),S(!0),setTimeout(()=>{S(!1)},1e3);let n=document.getElementById("category-list-item-"+e);n?.parentElement?.offsetTop,console.log("link?.parentElement ",n?.parentElement?.offsetTop)},O=()=>{_(window.scrollY)};return(0,i.useEffect)(()=>{let e=!1,n=(0,p.ik)(y);n||y.query.category||m?t?.map((t,r)=>{let i=document.getElementById("#cat-"+t.id);if(i?.offsetTop+100<=w&&i?.offsetHeight+i?.offsetTop+99>w){if(t.id!==E&&(console.log("isActive ",t.id,t.slug),T(t.id),y.replace(`${y.query.slug?y.query.slug:y.pathname}?category=${t.slug.replace(" ","-")}${n?`&${n}`:""}`,void 0,{shallow:!0}),!C)){let e=document.getElementById("category-list-item-"+t.id);e?.parentElement?.offsetTop,console.log("link?.parentElement ",e?.parentElement?.offsetTop)}e=!0}}):(T(t[0]?.id),y.replace(`${y.query.slug?y.query.slug:y.pathname}?category=${t[0]?.slug.replace(" ","-")}`,void 0,{shallow:!0})),e||T(-1)},[w,C,t]),(0,i.useEffect)(()=>(window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[]),(0,f.jsx)(a,{ref:b,children:(0,f.jsx)(s,{ref:x,children:t?.map((e,t)=>e.isVisible&&f.jsx(l,{children:f.jsx(c,{id:`category-list-item-${e.id}`,isActive:e.id===E,onClick:t=>{j(e.id)},children:e.title??e.name})},e.id))})})}},45889:function(e,t,n){"use strict";n.d(t,{e:function(){return Y},Z:function(){return V}});var r,i,o,a,s=n(8307),l=n(67294),c=n(2489);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var d=e=>{let{title:t,titleId:n,...r}=e;return l.createElement("svg",u({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?l.createElement("title",{id:n},t):null,i||(i=l.createElement("path",{d:"M25 13a9 9 0 0 0-18 0c0 3.692 2.954 8.504 9 14.268 6.046-5.764 9-10.576 9-14.268Zm-9 17C8.666 23.334 5 17.666 5 13a11 11 0 1 1 22 0c0 4.666-3.666 10.334-11 17Z",fill:"#EC4C41"})),o||(o=l.createElement("path",{d:"M16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0 2a5 5 0 1 1 0-10 5 5 0 0 1 0 10Z",fill:"#EC4C41"})))};function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var f=e=>{let{title:t,titleId:n,...r}=e;return l.createElement("svg",p({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?l.createElement("title",{id:n},t):null,a||(a=l.createElement("path",{d:"M3.21 5.22a.69.69 0 0 1 1.01 0L8 9.19l3.78-3.97a.69.69 0 0 1 1.01 0 .777.777 0 0 1 0 1.06l-4.285 4.5a.69.69 0 0 1-1.01 0l-4.286-4.5a.777.777 0 0 1 0-1.06Z",fill:"#212121"})))},h=n(87379);let m=h.ZP.div.withConfig({displayName:"styles__DeliveryContainer",componentId:"sc-q77ckb-0"})(["position:relative;display:flex;justify-content:center;align-items:center;gap:8px;width:100%;height:50px;background-color:#ffffff;border:1px solid #dedede;border-radius:14px;padding:8px 16px;cursor:pointer;"]),g=h.ZP.div.withConfig({displayName:"styles__DeliveryData",componentId:"sc-q77ckb-1"})(["position:relative;flex:1;"]),y=h.ZP.div.withConfig({displayName:"styles__DeliveryPlug",componentId:"sc-q77ckb-2"})(["font-family:Suisse Intl;font-weight:400;font-size:16px;line-height:21px;letter-spacing:0%;"]),v=h.ZP.div.withConfig({displayName:"styles__DeliveryInfoWrapper",componentId:"sc-q77ckb-3"})(["display:flex;justify-content:center;align-items:center;gap:5px;"]),b=h.ZP.div.withConfig({displayName:"styles__DeliveryInfo",componentId:"sc-q77ckb-4"})(["flex:1;"]),x=h.ZP.div.withConfig({displayName:"styles__DeliveryTypeWrapper",componentId:"sc-q77ckb-5"})(["display:flex;align-items:center;white-space:nowrap;gap:4px;font-family:Suisse Intl;font-weight:400;font-size:12px;line-height:16px;letter-spacing:0%;color:#a8a8a8;"]),w=h.ZP.div.withConfig({displayName:"styles__DeliveryAddress",componentId:"sc-q77ckb-6"})(["font-family:Suisse Intl;font-weight:400;font-size:16px;line-height:21px;letter-spacing:0%;color:#212121;width:233px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;"]);var _=n(73935);
21let C=(0,h.F4)(["from{box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),S=h.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-1pbmi1w-0"})(["display:flex;flex-direction:column;justify-content:space-between;position:absolute;height:auto;min-height:208px;width:450px;top:60px;right:0;padding:20px;gap:14px;background-color:#fff;align-items:center;box-shadow:0px 6px 24px 0px #00000029;border-radius:20px;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;opacity:",";cursor:default;"],C,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,e=>e.isOpen?"1":"0"),E=h.ZP.div.withConfig({displayName:"styles__ModalTitle",componentId:"sc-1pbmi1w-1"})(["width:100%;font-family:Suisse Intl;font-weight:500;font-size:20px;line-height:28px;letter-spacing:0%;text-align:center;"]),T=h.ZP.div.withConfig({displayName:"styles__ModalSubTitle",componentId:"sc-1pbmi1w-2"})(["font-family:Suisse Intl;font-weight:400;font-size:17px;line-height:26px;letter-spacing:0%;text-align:center;white-space:pre-line;"]),k=h.ZP.div.withConfig({displayName:"styles__ButtonsWrapper",componentId:"sc-1pbmi1w-3"})(["display:flex;gap:8px;width:100%;margin-top:10px;button{height:50px;flex:1;font-family:Suisse Intl;font-weight:450;font-size:17px;line-height:24px;letter-spacing:1.5%;}"]);var j=n(64236),O=n(71816),P=n(33712),I=n(85893);let N=e=>e.stopPropagation();var D=function(e){let{resolve:t,destroy:n,deliveryData:r,ref:i,handleOk:o}=e,{0:a,1:s}=(0,l.useState)(!0),c=(0,l.useRef)(null);console.log("deliveryData ",r);let u={[Y.self]:"забрать",[Y.delivery]:"сделать"},d={[Y.self]:"из ресторана",[Y.delivery]:"на адрес"},p=(0,l.useMemo)(()=>r?"Адрес указан верно?":"Уточните адрес",[r]),f=(0,l.useMemo)(()=>r?`Хотите ${u[r.deliveryType]} заказ 
22    ${d[r?.deliveryType]} ${r.address}?`:"Для оформления заказа необходимо указать адрес и способ получения",[r]),h=(0,l.useCallback)(e=>{t({stageCode:e||"cancel"}),s(!1),setTimeout(n,300)},[t,n]);(0,O.Z)(c,h);let m=(0,l.useCallback)(()=>{h("ok"),o?.()},[h]);return(0,l.useEffect)(()=>{document.body.style.overflow="auto";let e=()=>{a&&window.scrollY>=P.N&&h({})},t=()=>window.requestAnimationFrame(e);return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t),document.body.style.overflow="unset"}},[]),i.current?_.createPortal((0,I.jsxs)(S,{isOpen:a,onClick:N,ref:c,children:[(0,I.jsx)(E,{children:p}),(0,I.jsx)(T,{children:f}),(0,I.jsx)(k,{children:r?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(j.Z,{variant:"white",onClick:m,children:"Изменить"}),(0,I.jsx)(j.Z,{onClick:h,children:"Да"})]}):(0,I.jsx)(j.Z,{onClick:m,children:"Указать адрес и способ получения"})})]}),i.current):null},M=n(24469),A=n(9473),L=n(82229),R=n(68697),Z=n(1595),z=n(18386),F=n(50555),B=n(47041),H=n(27910);function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){(0,s.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let Y=((r={}).self="Навынос",r.delivery="Доставка",r),G=(0,R.P1)([e=>e.cart?.items],e=>e.filter(e=>"default"===e.type)||[]);var V=function(){let{createModal:e}=(0,c.ZP)(),t=(0,l.useRef)(null),{profile:n,profile:{loading:r},restaurants:{loading:i}={}}=(0,A.v9)(e=>e),o=(0,l.useRef)(!1),a=(0,A.v9)(G);(0,A.v9)(e=>e.cart?.type);let s=(0,A.v9)(e=>e.restaurants?.restaurants),{deliverySettings:u}=(0,l.useContext)(H.Z),{0:p,1:h}=(0,l.useState)(!1),_=(0,l.useMemo)(()=>n.selfIsoTime?n.selfIsoTime:"null"!==(0,B.getCookie)("selfIsoTime")?(0,B.getCookie)("selfIsoTime"):null,[n]),C=(0,l.useMemo)(()=>n.deliveryIsoTime?n.deliveryIsoTime:"null"!==(0,B.getCookie)("deliveryIsoTime")?(0,B.getCookie)("deliveryIsoTime"):null,[n]),S=(0,l.useMemo)(()=>Y[n.deliveryType],[n]);(0,l.useMemo)(()=>"self"===S?_:C??null,[S,_,C]);let{0:E,1:T}=(0,l.useState)(null),k=(0,A.I0)(),j=(0,l.useMemo)(()=>
22{if("self"!==n.deliveryType||s?.length)return"self"!==n.deliveryType?"":s.find(e=>e?.id===n.selfRestaurantId)?.title??""},[n,s]),O=(0,l.useMemo)(()=>{if("delivery"!==n.deliveryType||n.user?.addresses?.length)return"delivery"!==n.deliveryType?"":n.user?.addresses?.find?.(e=>e.checked)?.title??""},[n]),P=(0,l.useMemo)(()=>!(S&&(j||O)),[S,j,O]),N=(0,l.useMemo)(()=>{if(void 0!==j&&void 0!==O)return S&&(j||O)?{address:j||O,deliveryType:S}:null},[S,j,O]),R=(0,l.useMemo)(()=>n.user?.addresses?.find?.(e=>e.checked)??null,[n]),$=(0,l.useMemo)(()=>JSON.stringify(R?{lat:R.lat,lng:R.lng}:null),[JSON.stringify(R)]);(0,l.useMemo)(()=>a.filter(e=>{let t={product:e.product,type:"default"};return(0,F._A)(t,n,"cart")}).filter(e=>e?.type==="default"),[a]),(0,l.useEffect)(()=>{k((0,z.Xw)())},[]);let V=(0,l.useMemo)(()=>$&&n.deliveryRestaurantId?JSON.stringify({coords:$,restaurantId:n.deliveryRestaurantId}):null,[$,n.deliveryRestaurantId]);(0,l.useEffect)(()=>{"delivery"===n.deliveryType?n.deliveryIsoTime?(T((0,L.Ec)(n.deliveryIsoTime)),o.current=!0):n.autoTime&&(T(n.autoTime),o.current=!0):"self"===n.deliveryType&&(n.selfIsoTime?(T((0,L.Ec)(n.selfIsoTime)),o.current=!0):n.autoTime&&(T(n.autoTime),o.current=!0))},[n.deliveryType,n.deliveryIsoTime,n.selfIsoTime,n.autoTime]),(0,l.useEffect)(()=>{(async()=>{if(!o.current){if("delivery"===n.deliveryType&&(n.deliveryIsoTime||n.autoTime)||"self"===n.deliveryType&&(n.selfIsoTime||n.autoTime)){o.current=!0;return}try{let e=await k((0,z.as)(!0,n.deliveryType));null!==e&&(T(e),o.current=!0)}catch(e){console.error("Error loading initial time:",e)}}})()},[n.deliveryType,n.deliveryIsoTime,n.selfIsoTime,n.autoTime]),(0,l.useEffect)(()=>{if("delivery"!==n.deliveryType||!V)return;let e=JSON.parse($);(async()=>{try{await k((0,z.Cx)({lat:e?.lat??0,lng:e?.lng??0,restaurantId:n.deliveryRestaurantId})),h(!0)}catch(e){console.error("forecastTimeApiRequest failed:",e)}})()},[V,n.deliveryType,n.deliveryRestaurantId]),(0,l.useEffect)(()=>{"delivery"!==n.deliveryType||!p||o.current&&E||(async()=>{try{let e=await k((0,z.as)());null!==e&&(T(e),o.current=!0)}catch(e){console.error("Error calculating delivery time:",e)}})()},[n.deliveryType,n.deliveryForecastTime,p]);let q=(0,l.useCallback)(async()=>{JSON.parse(sessionStorage.getItem("isDeliveryAlertShown")??"false")||(sessionStorage.setItem("isDeliveryAlertShown",JSON.stringify(!0)),await e(e=>D(U(U({},e),{},{deliveryData:N,ref:t,handleOk:W}))))},[e,N]);(0,l.useEffect)(()=>{void 0!==N&&q()},[N]);let W=(0,l.useCallback)(async()=>{let t=await e(Z.Z,{});k((0,z.Jp)(t?.formData))},[k,e]);return(0,I.jsxs)(m,{ref:t,onClick:W,style:{pointerEvents:`${r&&"delivery"===n.deliveryType||i?"none":"all"}`},children:[(0,I.jsx)(d,{}),(0,I.jsx)(g,{children:r&&"delivery"===n.deliveryType||i?(0,I.jsx)(M.Z,{}):P?(0,I.jsx)(y,{children:"Выберите способ получения"}):(0,I.jsxs)(v,{children:[(0,I.jsxs)(b,{children:[(0,I.jsxs)(x,{children:[(0,I.jsxs)("span",{children:[S,":"]}),(0,I.jsx)("span",{children:E??(0,I.jsx)(M.Z,{})})]}),(0,I.jsx)(w,{children:`${j||O}`})]}),(0,I.jsx)(f,{})]})})]})}},12267:function(e,t,n){"use strict";n.d(t,{Z:function(){return J}});var r,i,o,a=n(8307),s=n(67294),l=n(2489),c=n(11163),u=n(87379);let d=u.ZP.div.withConfig({displayName:"styles__FilterBarContainer",componentId:"sc-1m6fd19-0"})(["white-space:nowrap;display:flex;align-items:stretch;z-index:9;height:50px;margin-top:16px;margin-bottom:12px;border-bottom:0.5px solid #dedede;"]),p=u.ZP.div.withConfig({displayName:"styles__FiltersButton",componentId:"sc-1m6fd19-1"})(["display:flex;flex:1;align-items:center;flex-direction:row;line-height:1;padding:0 16px;cursor:pointer;span{margin:0 8px;font-size:14px;font-weight:500;font-family:'Suisse Intl';letter-spacing:1.5%;}svg{transition:transform 0.2s linear;}",""],e=>e.isOpen&&(0,u.iv)(["svg:last-child{transform:scaleY(-1);}"])),f=u.ZP.div.withConfig({displayName:"styles__ResetButton",componentId:"sc-1m6fd19-2"})(["font-family:Suisse Intl;font-weight:500;font-size:14px;line-height:15px;letter-spacing:1.5%;color:#a8a8a8;display:flex;align-items:center;cursor:pointer;"]),h=u.ZP.div.withConfig({displayName:"styles__CheckedCount",componentId:"sc-1m6fd19-3"})(["width:16px;height:16px;border-radius:100px;background:#ec4c41;color:#ffffff;font-size:11px;line-height:14px;font-weight:500;display:flex;justify-content:center;align-items:center;letter-spacing:0px;"]);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var g=e=>{let{title:t,titleId:n,...i}=e;return s.createElement("svg",m({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},i),t?s.createElement("title",{id:n},t):null,r||(r=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.67 11.775a.889.889 0 1 1-1.777 0 .889.889 0 0 1 1.777 0Zm1.228.667a2.22 2.22 0 0 1-4.233 0H2a.667.667 0 0 1 0-1.333h1.665a2.22 2.22 0 0 1 4.233 0H14a.667.667 0 1 1 0 1.333H7.898ZM9.33 4.226a.889.889 0 1 1 1.777 0 .889.889 0 0 1-1.777 0ZM8.102 3.56a2.22 2.22 0 0 1 4.233 0H14a.667.667 0 0 1 0 1.333h-1.665a2.22 2.22 0 0 1-4.233 0H2A.667.667 0 0 1 2 3.56h6.102Z",fill:"#212121"})))},y=n(89757),v=n(74832),b=n(27910),x=n(73935);let w="cubic-bezier(0.23, 1, 0.32, 1)",_=(0,u.F4)(["from{opacity:0;}to{opacity:1;}"]);u.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-1jq5odb-0"})(["position:fixed;inset:0;z-index:200;height:100%;background-color:transparent;bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],_,300,w,300,300,e=>e.isOpen?"1":"0");
22let C=(0,u.F4)(["from{box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),S=u.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-1jq5odb-1"})(["display:flex;flex-direction:column;position:absolute;inset:0;height:432px;width:576px;top:50px;left:0;padding:0;background-color:#fff;align-items:center;box-shadow:0px 6px 24px 0px #00000029;border-radius:20px;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;"],C,300,w,300),E=u.ZP.div.withConfig({displayName:"styles__MainBlock",componentId:"sc-1jq5odb-2"})(["width:100%;display:flex;justify-content:start;flex-direction:column;height:432px;overflow:hidden;border-radius:20px 20px 0 0;padding-bottom:16px;position:relative;> svg{position:absolute;top:16px;right:16px;cursor:pointer;z-index:1;}"]),T=u.ZP.div.withConfig({displayName:"styles__FiltersWrapper",componentId:"sc-1jq5odb-3"})(["padding:16px;height:calc(100% - 42px);font-family:'Suisse Intl';"]),k=u.ZP.div.withConfig({displayName:"styles__FiltersTitle",componentId:"sc-1jq5odb-4"})(["font-size:28px;line-height:120%;font-weight:500;color:#212121;width:100%;text-align:center;height:34px;"]),j=u.ZP.div.withConfig({displayName:"styles__FilterGroupWrapper",componentId:"sc-1jq5odb-5"})(["display:flex;margin-top:16px;flex-wrap:none;gap:24px;height:calc(100% - 34px - 16px);"]),O=u.ZP.div.withConfig({displayName:"styles__FilterGroup",componentId:"sc-1jq5odb-6"})(["flex:1;height:100%;display:flex;flex-direction:column;"]),P=u.ZP.div.withConfig({displayName:"styles__FilterGroupTitle",componentId:"sc-1jq5odb-7"})(["font-size:20px;line-height:28px;font-weight:500;color:#212121;"]),I=u.ZP.div.withConfig({displayName:"styles__FilterItems",componentId:"sc-1jq5odb-8"})(["display:flex;flex-direction:column;margin-top:14px;font-size:17px;line-height:26px;font-weight:400;color:#212121;overflow-y:auto;flex:1;"]),N=u.ZP.div.withConfig({displayName:"styles__FilterItem",componentId:"sc-1jq5odb-9"})(["display:flex;align-items:center;margin-bottom:18px;height:26px;width:50%;cursor:pointer;&:last-of-type{margin-bottom:0;}"]),D=u.ZP.div.withConfig({displayName:"styles__FilterItemCheckbox",componentId:"sc-1jq5odb-10"})(["position:relative;width:24px;min-width:24px;height:24px;background:",";border:1px solid ",";border-radius:4px;transition:all 0.2s;&::after{content:url('/static/svg/checkbox-icon-tick.svg');position:absolute;top:-1.5px;left:6px;opacity:",";transition:all 0.2s;}"],e=>e.isChecked?"#48907F":"none",e=>e.isChecked?"none":"#E5E5E5",e=>e.isChecked?"1":"0"),M=u.ZP.div.withConfig({displayName:"styles__FilterItemLabel",componentId:"sc-1jq5odb-11"})(["margin-left:10px;font-size:17px;line-height:26px;font-weight:400;color:#212121;"]),A=u.ZP.div.withConfig({displayName:"styles__FilterButtonsWrapper",componentId:"sc-1jq5odb-12"})(["display:flex;flex-direction:row;align-items:center;gap:10px;z-index:109;width:100%;padding-left:16px;padding-right:16px;background:#ffffff;-moz-user-select:none;-khtml-user-select:none;user-select:none;"]),L=u.ZP.div.withConfig({displayName:"styles__FilterButtonBase",componentId:"sc-1jq5odb-13"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:42px;border-radius:12px;font-family:'Suisse Intl';line-height:15px;font-weight:500;cursor:pointer;"]),R=(0,u.ZP)(L).withConfig({displayName:"styles__FilterButtonCancel",componentId:"sc-1jq5odb-14"})(["background:#ffffff;color:#212121;border:1px solid #d9d9d9;:active{background:#e7e7e7;}"]),Z=(0,u.ZP)(L).withConfig({displayName:"styles__FilterButtonApply",componentId:"sc-1jq5odb-15"})(["background:#ec4c41;border:none;color:#ffffff;:active{background:#e24641;}"]),z=u.ZP.div.withConfig({displayName:"styles__FilterButtonText",componentId:"sc-1jq5odb-16"})(["font-size:14px;text-align:center;"]);function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var B=e=>{let{title:t,titleId:n,...r}=e;return s.createElement("svg",F({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?s.createElement("title",{id:n},t):null,i||(i=s.createElement("circle",{cx:16,cy:16,r:15.5,fill:"#fff",stroke:"#DEDEDE"})),o||(o=s.createElement("path",{d:"M10.891 10.891a.762.762 0 0 1 1.078 0L16 14.924l4.033-4.033a.762.762 0 0 1 1.078 1.078L17.078 16l4.032 4.033a.762.762 0 0 1-1.077 1.078l-4.033-4.033-4.032 4.032a.762.762 0 0 1-1.078-1.077l4.033-4.033-4.033-4.032a.762.762 0 0 1 0-1.078Z",fill:"#212121"})))},H=n(57172),$=n(71816),U=n(85893);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
22t%2?Y(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let V=e=>{let{onReset:t,onApply:n}=e;return(0,U.jsxs)(A,{children:[(0,U.jsx)(R,{onClick:t,children:(0,U.jsx)(z,{children:"Сбросить"})}),(0,U.jsx)(Z,{onClick:n,children:(0,U.jsx)(z,{children:"Применить"})})]})},q=e=>e.stopPropagation();var W=function(e){let{resolve:t,destroy:n,ref:r}=e,{filtersData:i}=(0,s.useContext)(b.Z),o=(0,c.useRouter)(),a=(0,s.useRef)(null),{0:l,1:u}=(0,s.useState)(!0),d=(0,y.I0)(),{0:p,1:f}=(0,s.useState)([]);(0,s.useEffect)(()=>{ym(91020614,"reachGoal","open_filters")},[]);let h=e=>JSON.parse(JSON.stringify(e));(0,s.useEffect)(()=>{let e=h(i),t=(0,H.Nn)((0,H.ik)(o));t?(e.map(e=>{Object.entries(t).forEach(t=>{let[n,r]=t;console.log("group ",e,n),("method-of-preparation"===n&&4===e.id||"ingredients"===n&&3===e.id)&&r.forEach(t=>{console.log("v ",t),e.filters.find(e=>{if(e.id===t)return e.checked=!0,e})})})}),f([...e])):f(e)},[]);let m=e=>{p.map(t=>t.filters.map(t=>(t.id===e&&(t.checked=!t.checked),t))),f([...p])},g=e=>{console.log("filtersHandler - filterGroups ",p);let t=(0,H.uc)(e);console.log("url - ",t),o.push(`/${o.query.slug?o.query.slug:o.pathname}?${t}`,void 0,{shallow:!0})},w=(0,s.useCallback)(e=>{t({stageCode:e?.stageCode||"cancel"}),u(!1),d((0,v.Ah)()),setTimeout(n,300)},[t,n]);return(0,$.Z)(a,w),r.current?x.createPortal((0,U.jsx)(S,{isOpen:l,onClick:q,onScroll:q,ref:a,children:(0,U.jsxs)(E,{children:[(0,U.jsx)(B,{onClick:()=>{d((0,v.Ah)()),w()}}),(0,U.jsxs)(T,{children:[(0,U.jsx)(k,{children:"Фильтр"}),(0,U.jsx)(j,{children:p.map((e,t)=>(0,U.jsxs)(O,{children:[(0,U.jsx)(P,{children:e.title}),(0,U.jsx)(I,{children:e.filters&&e.filters.map((e,t)=>(0,U.jsxs)(N,{children:[(0,U.jsx)(D,{isChecked:e.checked,onClick:()=>m(e.id)}),(0,U.jsx)(M,{onClick:()=>m(e.id),children:e.title})]},e.title+t))})]},e.title+t))})]}),(0,U.jsx)(V,{onReset:()=>{f(h(i)),o.push(`/${o.pathname}`,void 0,{shallow:!0})},onApply:()=>{ym(91020614,"reachGoal","apply_filters");let e=p.reduce((e,t)=>{let n=t.filters.filter(e=>e.checked).map(e=>e.id),r={};if(n.length){let e="";4===t.id&&(e="method-of-preparation"),3===t.id&&(e="ingredients"),r[`${e}`]=n.join(",")}return n.length?G(G({},e),r):e},{});console.log("filterChecked - ",e),g(e),d((0,v.Ah)()),w();let t=()=>{let e=document.getElementById("content");window?.scrollTo({top:e?.parentElement?.offsetTop??0<=108?65:0,behavior:"smooth"})};window.requestAnimationFrame(()=>{t()})}},"filter-button")]})}),r.current):null};function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var J=(0,s.memo)(function(e){let{count:t}=e,{createModal:n}=(0,l.ZP)(),r=(0,c.useRouter)(),i=(0,s.useRef)(null),o=(0,s.useCallback)(async()=>{await n(e=>W(K(K({},e),{},{ref:i})))},[]),a=(0,s.useCallback)(async()=>{r.push(`/${r.query.slug?r.query.slug:r.pathname}`,void 0,{shallow:!0})},[]);return(0,U.jsxs)(d,{ref:i,children:[(0,U.jsxs)(p,{isOpen:!1,onClick:o,children:[(0,U.jsx)(g,{}),(0,U.jsx)("span",{children:"Фильтры"}),!!t&&(0,U.jsx)(h,{children:t})]}),(0,U.jsx)(f,{onClick:a,children:"Сбросить"})]})})},58249:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(67294),i=n(87379);let o=i.ZP.div.withConfig({displayName:"styles__StyledInputCheckboxWrapper",componentId:"sc-g8frbc-0"})(["position:relative;padding:0;display:flex;justify-content:flex-start;column-gap:8px;font-weight:700;width:100%;color:#1c1c1e;background-color:",";margin-bottom:",";",";border-radius:14px;"],e=>e.isDisabled?"#f0f0f0":"transparent",e=>e.isError?"24px":"0",e=>e.isDisabled&&(0,i.iv)(["pointer-events:none;"])),a=i.ZP.input.withConfig({displayName:"styles__StyledInputCheckbox",componentId:"sc-g8frbc-1"})(["width:24px;min-width:24px;height:24px;border-radius:4px;-moz-appearance:none;-webkit-appearance:none;-o-appearance:none;::before{background:none;content:'';border:",";position:absolute;top:0;left:0;width:20px;min-width:20px;height:20px;border-radius:4px;transition:all 0.2s;}:not(:checked)::before{opacity:1;}:checked::before{opacity:0;}::after{background:#376f62;content:url('/static/svg/checkbox-icon-tick.svg');position:absolute;top:0;left:0;width:24px;min-width:24px;height:24px;border-radius:6px;display:flex;justify-content:center;align-items:center;transition:all 0.2s;}:not(:checked)::after{opacity:0;}:checked::after{opacity:1;}:disabled{opacity:0.4;}"],e=>e.isError?"2px solid #EC4C41":"2px solid #E5E5E5"),s=i.ZP.label.withConfig({displayName:"styles__Label",componentId:"sc-g8frbc-2"})(["color:#212121;font-weight:400;font-size:14px;line-height:18px;padding-top:3px;
22cursor:pointer;user-select:text;-webkit-user-select:text;"]),l=i.ZP.div.withConfig({displayName:"styles__InputCheckboxError",componentId:"sc-g8frbc-3"})(["color:#ec4c41;font-family:'Suisse Intl';font-size:12px;font-style:normal;font-weight:400;line-height:16px;margin-top:4px;min-height:18px;height:18px;transform:translateY(-18px);transition:all 0.3s;overflow:hidden;position:absolute;top:77px;left:31px;"]);var c=n(85893);let u=(0,r.forwardRef)(e=>{let{name:t,label:n,onChange:r,disabled:i,isChecked:u,error:d,hideErrorText:p=!1}=e,f=String(t),h=f+"_id_field";return(0,c.jsxs)(o,{isDisabled:i||!1,isError:!p&&!!d,children:[(0,c.jsx)(a,{type:"checkbox",checked:u,name:f,id:h,disabled:i,onChange:r,isError:!!d}),(0,c.jsx)(s,{htmlFor:h,children:n}),!p&&d&&(0,c.jsx)(l,{children:d})]})})},24617:function(e,t,n){"use strict";n.d(t,{UP:function(){return x}});var r,i=n(8307),o=n(4730),a=n(67294),s=n(87379);let l=s.ZP.div.withConfig({displayName:"styles__StyledInputField",componentId:"sc-vyl1c0-0"})(["position:relative;box-sizing:border-box;font-weight:700;width:100%;height:55px;color:#1c1c1e;cursor:text;border:",";background-color:",";",";border-radius:14px;.loader-wrapper{display:flex;align-items:center;justify-content:center;height:100%;min-height:40px;padding:0 12px;}& > input{width:80%;color:#212121;height:40px;margin:11px 16px 0;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:16px;line-height:21px;border:none;transition:border-bottom-color 0.2s linear;background-color:transparent;outline:0;margin-top:16px;::placeholder{color:#cbcac7;}:disabled{}}label{display:none;}&.showLabel{> label{display:block;}}&.hideLabel{input[type='tel']{margin-top:7px;}}& > span{position:absolute;top:105%;left:0;color:#a22428;font-style:normal;font-weight:normal;font-size:12px;line-height:16px;& > svg{margin-right:4px;}}> svg{position:absolute;top:50%;transform:translateY(-50%);right:16px;cursor:pointer;}"],e=>e.isDisabled?"1px solid #f0f0f0":e.isError?"1px solid #ec4c41":e.isFocused?"1px solid #48907F":"1px solid #e5e5e5",e=>e.isDisabled?"#f0f0f0":"transparent",e=>e.isDisabled&&(0,s.iv)(["pointer-events:none;"])),c=s.ZP.label.withConfig({displayName:"styles__Label",componentId:"sc-vyl1c0-1"})(["position:absolute;left:16px;top:",";color:#979797;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:none;font-size:",";line-height:",";font-weight:400;transition:all 0.3s;"],e=>e.isMinimized?"8px":"16px",e=>e.isMinimized?"12px":"16px",e=>e.isMinimized?"16px":"21px");var u=n(89997),d=n(76627),p=n.n(d),f=n(24469),h=n(85893);let m=["name","label","onChange","onClear","onFocus","onBlur","disabled","variant","value","error","success","type","maxLength","placeholder","isPlaceholder","isCleanable","isLoading"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let v=((r={}).primary="primary",r.secondary="secondary",r),b=(e,t)=>{let{name:n,label:r,onChange:i,onClear:s,onFocus:d,onBlur:g,disabled:b,variant:x=v.primary,value:w,error:_,success:C,type:S="text",maxLength:E,placeholder:T,isPlaceholder:k,isCleanable:j,isLoading:O=!1}=e,P=(0,o.Z)(e,m),{0:I,1:N}=(0,a.useState)(!1),D=String(n)||String(Math.random()),M=D+"_id_field",A=e=>{N(!0),d&&d(e)},L=e=>{N(!1),g&&g(e)},R=!!w;return(0,h.jsxs)(l,{isDisabled:b||!1,isFocused:I,variant:x,isError:!!_,className:`${"phone"===D&&!1===k&&(I||R)?"hideLabel":"showLabel"}`,children:[O?(0,h.jsx)("div",{className:"loader-wrapper",children:(0,h.jsx)(f.Z,{})}):(0,h.jsxs)(h.Fragment,{children:["phone"===D?(0,h.jsx)(p(),y(y({},e),{},{mask:"+7 (999) 999-9999",maskChar:"_",alwaysShowMask:!1,onChange:i,name:"phone",type:S,value:w,id:M,disabled:b,onFocus:A,onBlur:L,maxLength:E,placeholder:!1===k?"":"+7 (___) ___-____","data-is-empty":!(I||w||"phone"===D)})):(0,h.jsx)("input",y(y({},P),{},{type:S,value:w,name:D,id:M,disabled:b,onChange:i,onFocus:A,onBlur:L,placeholder:T,maxLength:E,"data-is-empty":!(I||w||"phone"===D)})),(0,h.jsx)(c,{isMinimized:I||R||"phone"===D&&!1!==k,htmlFor:M,children:r})]}),j&&R&&!O&&(0,h.jsx)(u.Z,{onClick:()=>s?.(D)}),_&&"string"==typeof _&&(0,h.jsx)("span",{className:"error",children:_}),C&&"string"==typeof C&&(0,h.jsx)("span",{className:"success",children:C})]})};b.variant=v;let x=(0,a.forwardRef)(b)},33712:function(e,t,n){"use strict";n.d(t,{N:function(){return H},Z:function(){return Y}});var r,i=n(8307),o=n(11163),a=n(67294),s=n(89757),l=n(39332),c=n(87379);let u=(0,a.memo)(c.ZP.div.withConfig({displayName:"styles__ProductsListWrapper",componentId:"sc-ztkd1-0"})(["display:flex;flex-direction:column;width:calc(100% - 256px);position:relative;"])),d=c.ZP.div.withConfig({displayName:"styles__MainContentWrapper",componentId:"sc-ztkd1-1"})(["display:flex;gap:48px;&.preorder{max-width:calc(1204px + 40 * 2px);padding:0 40px;margin:0 auto;}"]),p=c.ZP.div.withConfig({displayName:"styles__Toolbar",componentId:"sc-ztkd1-2"})(["position:relative;background:#ffffff;min-width:256px;width:256px;"]),f=c.ZP.div.withConfig({displayName:"styles__ToolbarContent",componentId:"sc-ztkd1-3"})(["position:",";top:",";z-index:7;"],e=>e.isNavSticky?"sticky":"relative",e=>e.navTopPosY),h=(0,c.F4)(["0%{opacity:0;visibility:hidden}50%{opacity:0.5}100%{opacity:1;visibility:visibility}"]),m=c.ZP.div.withConfig({displayName:"styles__LoaderWrapper",componentId:"sc-ztkd1-4"})(["display:flex;justify-content:center;align-items:center;top:0;left:0;width:100%;height:500px;animation-name:",";animation-duration:0.2s;animation-timing-function:ease-in-out;animation-fill-mode:forwards;& > div{position:absolute;min-width:28px;max-width:28px;}"],h);var g=n(18386),y=n(56323),v=n(12267);let b=(0,c.F4)(["0%{opacity:0;visibility:hidden}50%{opacity:0.5}100%{opacity:1;visibility:visibility}"]),x=c.ZP.div.withConfig({displayName:"styles__CategoryBlocksWrapper",componentId:"sc-1uukfl5-0"})([""]),w=c.ZP.div.withConfig({displayName:"styles__EmptyPlaceholder",componentId:"sc-1uukfl5-1"})(["display:flex;align-items:center;height:82px;color:#a8a8a8;"]);c.ZP.div.withConfig({displayName:"styles__LoaderWrapper",componentId:"sc-1uukfl5-2"})(["display:flex;justify-content:center;align-items:center;top:0;left:0;width:100%;height:146px;animation-name:",";animation-duration:0.2s;animation-timing-function:ease-in-out;animation-fill-mode:forwards;padding-bottom:54px;& > div{position:absolute;min-width:28px;max-width:28px;}"],b);var _=n(27910);let C=c.ZP.div.withConfig({displayName:"styles__CategoryBlockWrapper",componentId:"sc-1jmzl6p-0"})(["display:flex;background:",";flex-direction:column;position:relative;"],e=>(e.primary,e.theme.colors.white)),S=c.ZP.div.withConfig({displayName:"styles__CategoryInfo",componentId:"sc-1jmzl6p-1"})(["position:relative;padding:0;z-index:6;background-color:white;padding-top:15px;padding-bottom:24px;"]),E=c.ZP.div.withConfig({displayName:"styles__CategoryInfoContent",componentId:"sc-1jmzl6p-2"})(["& > h2{font-size:28px;line-height:120%;font-weight:500;}& > div{margin-top:4px;font-size:13px;line-height:18px;font-weight:400;color:#a8a8a8;}"]),T=c.ZP.div.withConfig({displayName:"styles__ProductList",componentId:"sc-1jmzl6p-3"})(["margin:0 0 45px 0;padding:0;display:grid;grid-column-gap:21px;grid-row-gap:24px;grid-template-columns:repeat(auto-fit,minmax(286px,286px));"]);var k=n(88617),j=n(85893);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var P=(0,a.memo)(function(e){let{category:t,cartItems:n,isAuth:r,categoryIndex:o,setBlockNumber:l,section:c}=e,{preorderData:u}=(0,a.useContext)(_.Z),d=(0,s.v9)(e=>e.cart?.type);return((0,a.useEffect)(()=>
22{l(e=>e+1)},[]),t.products?.length)?(0,j.jsxs)(C,{id:"#cat-"+t.id,primary:!(o%2),mobile:!0,small:!0,className:"analytics-category-block",children:[(0,j.jsx)(S,{children:(0,j.jsxs)(E,{children:[(0,j.jsx)("h2",{children:t.title}),!!t["short-description"]&&(0,j.jsx)("div",{children:t["short-description"]})]})}),(0,j.jsx)(T,{children:t.products.map((e,o)=>{let a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);if("preorder"===d&&(a.isAvailable=!0),a.isVisible)return(0,j.jsx)(k.Z,{type:"storefront",product:a,position:o+1,cartItems:n,isAuth:r,section:c,categoryName:t.title,preorderPage:u,isSwipe:(a?.images?.length||0)>1},a.id+a.title)})})]},t.id+t.title):null}),I=(0,a.memo)(function(e){let{categories:t,cartItems:n,isAuth:r,onLoaded:i=()=>{},section:o}=e,{0:s,1:l}=(0,a.useState)(1),c=(0,a.useMemo)(()=>t?.length||0,[t]);(0,a.useEffect)(()=>{s>c&&i&&i?.()},[s]);let u=(0,a.useMemo)(()=>t?.reduce((e,t,i)=>(t.isVisible&&i<s&&e.push(j.jsx(P,{category:t,cartItems:n,isAuth:r,categoryIndex:i,setBlockNumber:l,section:o},t.id+t.title)),e),[]),[t,n,r,o,s]);return(0,j.jsx)(x,{children:u?.length?u:(0,j.jsx)(w,{children:"По вашим параметрам ничего не найдено"})})}),N=n(68697),D=n(50555),M=n(39540);let A=((r={}).up="up",r.down="down",r);var L=n(16931),R=n(57172),Z=n(9556),z=n(5292);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let H=124,$=(0,N.P1)(e=>e.cart?.items,(e,t)=>t,(e,t)=>e.filter(e=>e.type===t)||[]),U=(0,N.P1)(e=>e.profile,e=>e);var Y=(0,a.memo)(function(e){let{className:t=""}=e,r=(0,o.useRouter)(),i=(0,s.I0)(),c=(0,l.usePathname)(),h=(0,l.useSearchParams)(),b=h?.get("category"),x=h?.get("filter"),{categories:w,deliverySettings:C,favorites:S,cartType:E}=(0,a.useContext)(_.Z);console.log("pathname ",c),console.log("category ",b),console.log("filter ",x);let T=(0,s.v9)(e=>$(e,E)),k=(0,s.v9)(U);console.log("profile ",k);let{restaurants:O,categories:P}=(0,s.v9)(e=>e.restaurants),{isAuth:N,deliveryType:F,selfRestaurantId:Y,deliveryRestaurantId:G,loading:V}=k,{0:q,1:W}=(0,a.useState)(w),{0:X,1:K}=(0,a.useState)(q),{0:J,1:Q}=(0,a.useState)(V),{0:ee,1:et}=(0,a.useState)(0),{0:en,1:er}=(0,a.useState)(C),{0:ei,1:eo}=(0,a.useState)(0),{0:ea,1:es}=(0,a.useState)(!0),{scrollPosY:el,scrollDir:ec}=function(){let{0:e,1:t}=(0,a.useState)(),{0:n,1:r}=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=window.scrollY;r(window.scrollY);let n=t=>Math.abs(t-e)>0,i=t=>t>e,o=()=>{let o=window.scrollY;n(o)&&(t(i(o)?A.down:A.up),r(e=o>0?o:0))},a=()=>window.requestAnimationFrame(o);return window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)},[]),{scrollPosY:n,scrollDir:e}}(),eu=(0,a.useMemo)(()=>"self"===F?Y:G,[F,Y,G]),ed=(0,a.useMemo)(()=>"preorder"===E,[E]);(0,a.useEffect)(()=>{er(e=>B(B({},e),{},{deliveryType:F,selfRestaurantId:Y,deliveryRestaurantId:G}))},[F,Y,G]),(0,a.useEffect)(()=>{i((0,L.I2)(r.asPath.includes("menu")?"default":"preorder"))},[r]),(0,a.useEffect)(()=>{ed&&i((0,g.Xw)())},[ed]),(0,a.useEffect)(()=>{i((0,g.Q5)(S||[])),i((0,L.I2)(E))},[]),(0,a.useEffect)(()=>{(0,M.ZP)("me/cart").then(e=>{Array.isArray(e?.data?.items)&&i((0,L.o8)(e.data.items))})},[k.isAuth,k.deliveryIsoTime,k.selfIsoTime,k.deliveryType,k.deliveryRestaurantId,k.selfRestaurantId]);let ep=(0,a.useMemo)(()=>"self"===F?k.selfIsoTime:k.deliveryIsoTime??null,[k.deliveryType,k.selfIsoTime,k.deliveryIsoTime]);return(0,a.useEffect)(()=>{O?.length!==0&&Number.isFinite(eu)&&null!==eu&&(async()=>{let e=O.find(e=>e.id===eu)||null,t=(0,D.Nb)(w,k,!1,e),{payload:n}=await i((0,Z.FA)({categories:t}));i((0,Z.r4)(n)),W(n),K(n)})()},[i,w]),(0,a.useEffect)(()=>{O?.length!==0&&Number.isFinite(eu)&&null!==eu&&!ed&&(async()=>{console.log("FetchAppData restaurantId changed",eu);let{payload:e}=await i((0,Z.wI)({restaurantId:eu}));W(e),K(e)})()},[i,eu,O,ep,ed]),(0,a.useEffect)(()=>
22{if(P&&P.length&&JSON.stringify(P)!==JSON.stringify(X)){K(P);let e=(0,R.Nn)((0,R.ik)(r));if(e){let{category:t,count:n}=(0,D.RB)(P,e);W(t),et(n)}else W(P),et(0)}},[P,X,r]),(0,a.useEffect)(()=>{console.log("window.location.search ",window.location.search),console.log("router ",r),console.log("router ",r.query);let e=(0,R.Nn)((0,R.ik)(r));if(console.log("filters ",e),e){let{category:t,count:n}=(0,D.RB)(X,e);W(t),et(n)}else W(X),et(0)},[n.g?.window&&window.location.search,r]),(0,a.useEffect)(()=>{let e=()=>{let e=document.getElementById("navigation"),{top:t,bottom:n,height:r}=e?.getBoundingClientRect()??{},i=n<=window.innerHeight,o=t>=H,a=t<H,s=n>window.innerHeight,l=e instanceof Element&&"relative"===window.getComputedStyle(e).getPropertyValue("position");console.log("scrollDir ",ec),console.log("scrollPosY ",el),console.log("navigation ",e),console.log("navigation?.clientHeight ",e?.clientHeight),console.log("isRelativeNavigation ",l),console.log("isTopHiddenNavigation ",a),console.log("navigation?.getBoundingClientRect() ",e?.getBoundingClientRect()),console.log("window.innerHeight) ",window.innerHeight),console.log("isBottomNavigation ",i),console.log("isTopNavigation ",o);let c=document.getElementById("content"),{top:u,bottom:d}=c?.getBoundingClientRect()??{},p=d<=window.innerHeight,f=u>=H;console.log("content?.getBoundingClientRect() ",c?.getBoundingClientRect()),console.log("isBottomContent ",p),console.log("isTopContent ",f),ec===A.down&&(i||p||!s||(o&&f?(es(!0),eo(window.innerHeight-r)):l||(es(!1),eo(e?.offsetTop))),i&&!p&&!s&&r>=window.innerHeight-H&&(es(!0),eo(window.innerHeight-r)),i&&p&&r>=window.innerHeight-H&&(es(!0),eo(window.innerHeight-r))),ec===A.up&&(o||f||!a||(i&&p?(es(!0),eo(window.innerHeight-r)):l||(es(!1),eo(e?.offsetTop))),!o||f||a||(es(!0),eo(H)),o&&f&&(es(!0),eo(H)))};return window.requestAnimationFrame(()=>{e()}),()=>{}},[el,ec]),(0,j.jsx)(d,{className:t??"",children:V?(0,j.jsx)(m,{children:(0,j.jsx)(z.Z,{})}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(p,{children:(0,j.jsxs)(f,{id:"navigation",navTopPosY:`${ei}px`,isNavSticky:ea,children:[(0,j.jsx)(v.Z,{count:ee}),(0,j.jsx)(y.Z,{categories:q,isLoaded:J})]})}),(0,j.jsx)(u,{id:"content",children:(0,j.jsx)(I,{categories:q,cartItems:T,isAuth:N,onLoaded:()=>Q(!0),section:"default"===E?"Меню доставки":"Меню предзаказа"})})]})})})},38580:function(e,t,n){"use strict";n.d(t,{Z:function(){return eC}});var r,i,o,a=n(67294),s=n(15566),l=n(73935),c=n(49970),u=n.n(c),d=n(85893);function p(e){let{onClick:t}=e;return(0,d.jsxs)("svg",{onClick:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M5 5L15 15",stroke:"#212121",strokeWidth:"1.5",strokeLinecap:"round"}),(0,d.jsx)("path",{d:"M5 15L15 5",stroke:"#212121",strokeWidth:"1.5",strokeLinecap:"round"})]})}function f(){return(0,d.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("rect",{width:"36",height:"36",rx:"8",fill:"#EC4C41"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.99 8C12.47 8 8 12.48 8 18C8 23.52 12.47 28 17.99 28C23.52 28 28 23.52 28 18C28 12.48 23.52 8 17.99 8ZM19 19V13H17V19H19ZM19 23V21H17V23H19ZM10 18C10 22.42 13.58 26 18 26C22.42 26 26 22.42 26 18C26 13.58 22.42 10 18 10C13.58 10 10 13.58 10 18Z",fill:"white"})]})}var h=function(e){let{onClose:t}=e,{0:n,1:r}=(0,a.useState)(!0),i=(0,a.useCallback)(()=>{r(!1),t()},[t]);return n?(0,d.jsxs)("div",{className:u()["wrapper-alert"],children:[(0,d.jsx)("div",{className:"left-alert",children:(0,d.jsx)(f,{})}),(0,d.jsx)("div",{className:"body-alert",children:(0,d.jsx)("span",{className:"add-order-sum",children:`Превышено количество попыток авторизации. Пожалуйста, попробуйте позже или войдите с помощью звонка.`})}),(0,d.jsx)("div",{className:"right-alert",children:(0,d.jsx)(p,{onClick:i})})]}):null},m=n(87379);let g="cubic-bezier(0.23, 1, 0.32, 1)",y=(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]),v=m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-dhpdw7-0"})(["position:fixed;inset:0;z-index:1001;height:100%;background-color:#00000020;bottom:0;display:flex;justify-content:center;align-items:center;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],y,300,g,300,300,e=>e.isOpen?"1":"0"),b=(0,m.F4)(["from{transform:translateY(100%);
22box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),x=m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-dhpdw7-1"})(["display:flex;flex-direction:column;position:absolute;z-index:501;height:fit-content;width:486px;padding:32px 48px 8px 48px;background-color:#00000073;background:#ffffff;align-items:center;box-shadow:0px 0px 18px 0px #00000026;border-radius:30px;border:1px solid #f5f5f5;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transform:",";& > form{width:100%;}& > .timer{margin-top:24px;}& > .input-auth-code{margin-top:20px;}& > span.help{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;text-align:center;min-height:40px;display:flex;flex-direction:column;justify-content:center;padding:2px 0;margin-top:10px;}&.input-response-sms,&.input-response-phone{width:594px;height:580px;}"],b,300,g,300,e=>e.isOpen?"unset":"translateY(100%)"),w=m.ZP.div.withConfig({displayName:"styles__ModalHeader",componentId:"sc-dhpdw7-2"})(["display:flex;flex-direction:column;gap:24px;"]),_=m.ZP.div.withConfig({displayName:"styles__ModalTextWrapper",componentId:"sc-dhpdw7-3"})(["display:flex;flex-direction:column;gap:8px;&.input-response-sms,&.input-response-phone{gap:24px;}"]),C=m.ZP.div.withConfig({displayName:"styles__ModalFormWrapper",componentId:"sc-dhpdw7-4"})(["display:flex;flex-direction:column;gap:16px;margin-top:20px;width:100%;& > form > div:first-of-type{margin-top:0;height:55px;font-weight:400;font-style:Regular;font-size:16px;line-height:21px;letter-spacing:0%;}"]),S=m.ZP.div.withConfig({displayName:"styles__CloseSvgWrapper",componentId:"sc-dhpdw7-5"})(["position:absolute;top:20px;right:20px;z-index:5;"]),E=m.ZP.div.withConfig({displayName:"styles__ModalLogoWrapper",componentId:"sc-dhpdw7-6"})(["display:flex;flex-direction:row;width:100%;justify-content:center;align-items:center;height:min-content;"]),T=m.ZP.div.withConfig({displayName:"styles__ModalTitleWrapper",componentId:"sc-dhpdw7-7"})(["display:flex;flex-direction:row;width:100%;justify-content:center;align-items:center;height:min-content;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:28px;line-height:120%;color:#212121;"]),k=m.ZP.span.withConfig({displayName:"styles__ModalSubTitleWrapper",componentId:"sc-dhpdw7-8"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:17px;line-height:26px;text-align:center;color:#212121;&.input-response-sms{margin-top:16px;}& > marker{white-space:nowrap;}"]),j=m.ZP.div.withConfig({displayName:"styles__InputAuthCodeWrapper",componentId:"sc-dhpdw7-9"})(["width:335px;margin-top:50px;"]),O=m.ZP.button.withConfig({displayName:"styles__TextButton",componentId:"sc-dhpdw7-10"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:17px;line-height:26px;text-align:center;background:inherit;border:none;padding:0;cursor:pointer;outline:inherit;user-select:none;&:disabled,&.disabled{color:#376f62;}&.set-phone{margin-top:32px;}&.resend-code{margin-top:24px;}&.call-me,&.sms-me{margin-top:24px;}&.help-sms{height:40px;}&:focus{background:inherit;}"]),P=m.ZP.div.withConfig({displayName:"styles__ButtonsWrapper",componentId:"sc-dhpdw7-11"})(["display:flex;flex-direction:column;width:100%;justify-content:center;row-gap:16px;& > button{height:62px;font-size:17px;line-height:24px;font-weight:400;&:last-of-type{margin-bottom:20px;}&:disabled,&.disabled{background-color:#f0f0f0;font-size:17px;line-height:24px;font-weight:400;color:#77787b;}&.transparent{background-color:transparent;border:none;&:hover,&:focus,&:active{background-color:transparent;border:none;}}}"]);m.ZP.div.withConfig({displayName:"styles__DividerLine",componentId:"sc-dhpdw7-12"})(["width:100%;text-align:center;border-bottom:1px solid #d9d9d9;line-height:1px;margin-top:29px;& > span{background:#fff;padding:0 10px;font-family:'Suisse Intl';font-size:14px;font-style:normal;font-weight:400;color:#212121;}"]);
22let I=m.ZP.div.withConfig({displayName:"styles__AgreementsCheckboxWrapper",componentId:"sc-dhpdw7-13"})(["display:flex;flex-direction:column;row-gap:8px;width:100%;& input{cursor:pointer;}& > div > label{padding:0;}& > a{color:#376f62;text-align:center;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:12px;line-height:14px;margin-top:5px;}"]),N=m.ZP.div.withConfig({displayName:"styles__CheckboxLabel",componentId:"sc-dhpdw7-14"})(["display:flex;flex-direction:column;row-gap:8px;padding:0;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:12px;line-height:14px;color:#80818B;& > a{color:#376F62;text-align:center;}"]),D=m.ZP.div.withConfig({displayName:"styles__AgreementNotifyWrapper",componentId:"sc-dhpdw7-15"})(["width:320px;font-family:'Suisse Intl';font-weight:400;font-size:14px;line-height:18px;color:#212121;& > a{color:#376F62;border-bottom:none;}"]),M=(0,m.F4)(["0%{opacity:1}50%{opacity:0}100%{opacity:1}"]),A=m.ZP.div.withConfig({displayName:"styles__MaskedPhoneWrapper",componentId:"sc-1qhcs4u-0"})(["display:flex;justify-content:flex-start;align-items:center;padding:0 16px;margin-top:20px;height:54px;width:100%;border:",";border-radius:14px;font-weight:400;font-family:Suisse Intl;font-size:18px;line-height:18px;color:",";transition:all 0.2s;& > span{position:relative;","}"],e=>e.isError?"1px solid #EC4C41":e.isFocused?"1.5px solid #48907F":"1px solid #d9d9d9",e=>e.isFocused?"#212121":"#77787B",e=>e.isFocused&&(0,m.iv)(["&::before{content:'';width:1px;height:18px;background-color:#212121;display:block;position:absolute;top:0;right:0;animation:"," 1s infinite steps(1);}"],M)),L=m.ZP.input.withConfig({displayName:"styles__InputPhoneHidden",componentId:"sc-1qhcs4u-1"})(["position:absolute;top:0;left:0;opacity:0;font-size:1px;width:100%;color:transparent;caret-color:white;border:none;z-index:5;"]),R=m.ZP.div.withConfig({displayName:"styles__EraseIconWrapper",componentId:"sc-1qhcs4u-2"})(["position:absolute;width:16px;height:16px;top:18px;right:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s;opacity:",";"],e=>e.isShow?1:0);function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var z=e=>{let{title:t,titleId:n,...o}=e;return a.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none","aria-labelledby":n},o),t?a.createElement("title",{id:n},t):null,r||(r=a.createElement("circle",{cx:8,cy:8,r:8,fill:"#D9D9D9"})),i||(i=a.createElement("path",{d:"M4.593 4.594a.508.508 0 0 1 .718 0L8 7.283l2.688-2.689a.508.508 0 0 1 .719.718L8.718 8.001l2.689 2.688a.508.508 0 0 1-.719.719L8 8.719 5.31 11.408a.508.508 0 0 1-.718-.719l2.689-2.688-2.689-2.689a.508.508 0 0 1 0-.718Z",fill:"#fff"})))},F=function(e){let{id:t,onChange:n,onErrorChange:r,onSubmit:i,isError:o,isFocused:s,onFocus:l,onBlur:c}=e,u=(0,a.useRef)(),{0:p,1:f}=(0,a.useState)(""),{0:h,1:m}=(0,a.useState)("+7"),{0:g,1:y}=(0,a.useState)(!1),v=e=>{let t=e.target.value.replace(/\D/g,"");t!==e.target.value&&r(e.target.value),["7","8"].includes((t=t.slice(1))[0])&&"9"===t[1]&&(t=t.slice(1));let n=t.length;n>
2210&&(t=t.slice(0,10));let i="+7";for(let e=0;e<10&&!(n<=e);e++)0===e&&(i+=" ("),i+=t[e],2===e&&(i+=") "),(5===e||7===e)&&(i+="-");y(t.length>=10),m(i),f(t)};return(0,a.useEffect)(()=>{s&&u.current?.focus()},[s]),(0,a.useEffect)(()=>{n(`7${p}`)},[p]),(0,d.jsxs)(A,{isFocused:s,isError:o,onClick:()=>u.current.focus(),children:[(0,d.jsx)(L,{id:t,ref:u,type:"text",maxLength:20,inputMode:"numeric",pattern:"[0-9]+",onInput:v,autoFocus:!0,onFocus:()=>l(),onBlur:()=>c(),value:`7${p}`,onKeyDown:e=>{"Enter"===e.key&&i(),"ArrowLeft"===e.key&&e.preventDefault()}}),(0,d.jsx)("span",{children:h}),(0,d.jsx)(R,{onClick:()=>v({target:{value:""}}),isShow:!!p.length,children:(0,d.jsx)(z,{})})]})};let B=m.ZP.div.withConfig({displayName:"styles__InputPhoneErrorWrapper",componentId:"sc-144pd5t-0"})(['color:#EC4C41;font-family:"Suisse Intl";font-size:14px;font-style:normal;font-weight:400;line-height:18px;margin-top:4px;min-height:',";height:",";opacity:",";transform:translateY(",");transition:all 0.3s;overflow:hidden;"],e=>e.isShow?"18px":"0",e=>e.isShow?"18px":"0",e=>e.isShow?"1":"0",e=>e.isShow?"0":"-18px");var H=function(e){let{text:t,onClick:n}=e,{0:r,1:i}=(0,a.useState)(null),{0:o,1:s}=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t||null===r||(s(!1),i("")),t&&(i(t),s(!0))},[t]),(0,d.jsx)(B,{isShow:o,onClick:n,children:r})},$=n(77088);let U=m.ZP.span.withConfig({displayName:"styles__ErrorMessage",componentId:"sc-18zf8g7-0"})(["display:block;margin-top:4px;width:100%;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:12px;line-height:14px;text-align:center;color:#EC4C41;"]);(0,m.F4)(["0%{opacity:1}50%{opacity:0}100%{opacity:1}"]);let Y=(0,m.F4)(["0%,100%{transform:translateX(0);}25%,75%{transform:translateX(10px);}50%{transform:translateX(-10px);}"]),G=m.ZP.div.withConfig({displayName:"styles__FormCode",componentId:"sc-18zf8g7-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:54px;border:",";border-radius:14px;transition:all .2s linear;"],e=>e.isError?"1.5px solid #EC4C41":e.isFocused?"1.5px solid #48907F":"1px solid #DEDEDE"),V=m.ZP.div.withConfig({displayName:"styles__InputCodeHiddenWrapper",componentId:"sc-18zf8g7-2"})(["opacity:0;height:0;"]),q=m.ZP.input.withConfig({displayName:"styles__InputCodeHidden",componentId:"sc-18zf8g7-3"})(["font-size:1px;width:100%;color:transparent;caret-color:white;border:none;z-index:5;"]),W=m.ZP.div.withConfig({displayName:"styles__CodeDigitsWrapper",componentId:"sc-18zf8g7-4"})(["display:flex;justify-content:center;column-gap:8px;position:relative;top:-2px;",""],e=>e.isShaking&&(0,m.iv)(["animation-name:",";animation-duration:300ms;animation-timing-function:cubic-bezier(0.25,0.01,0.25,1);animation-delay:100ms;animation-iteration-count:1;"],Y)),X=m.ZP.div.withConfig({displayName:"styles__CodeDigit",componentId:"sc-18zf8g7-5"})(["display:flex;justify-content:center;align-items:center;padding:6px 0 4px;text-align:center;appearance:textfield;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:18px;line-height:18px;width:13px;height:18px;color:#212121;border-bottom:",""],e=>e.isError?"1.5px solid #EC4C41;":e.isEmpty?"1.5px solid #A0A1A4;":"none;");var K=(0,a.forwardRef)(function(e,t){let{onSuccess:n,className:r}=e,i=(0,a.useRef)(),{0:o,1:s}=(0,a.useState)(""),{0:l,1:c}=(0,a.useState)(!1),{0:u,1:p}=(0,a.useState)(!1),{0:f,1:h}=(0,a.useState)("");return(0,$.useReadOTP)(h),(0,a.useEffect)(()=>{i.current.focus()},[]),(0,a.useEffect)(()=>{/^\d{4}$/.test(f)&&n(f).then(e=>{if(!0===e){s("");return}if(h(""),c(!0),"limit"===e){setTimeout(()=>s("Все попытки ввода кода исчерпаны. Пожалуйста, нажмите кнопку 'Изменить номер' и введите свой номер заново."),100);return}setTimeout(()=>s("Неверный код"),100),setTimeout(()=>{c(!1)},1500)})},[f]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(G,{isFocused:u,isError:!!o,onClick:()=>i.current.focus(),children:[(0,d.jsx)("form",{onSubmit:e=>e.preventDefault(),action:"",method:"POST",children:(0,d.jsx)(V,{children:(0,d.jsx)(q,{ref:i,type:"text",maxLength:4,inputMode:"numeric",autoComplete:"one-time-code",pattern:"[0-9]+",onInput:e=>{s("");let t=e.target.value.replace(/\D/g,"");t!==e.target.value&&(c(!0),setTimeout(()=>s("Только цифры"),100),setTimeout(()=>{c(!1)},1500)),h(t)},autoFocus:!1,onFocus:()=>p(!0),onBlur:()=>p(!1),value:f})})}),(0,d.jsx)(W,{isShaking:l,children:[0,1,2,3].map(e=>(0,d.jsx)(X,{onClick:()=>i.current.focus(),isEmpty:!f[e],isError:!!o,isFocused:u&&f.length===e,children:f[e]},`codedigit-${e}`))})]}),o&&(0,d.jsx)(U,{children:o})]})});let J=m.ZP.span.withConfig({displayName:"styles__TimerWrapper",componentId:"sc-kl2pbx-0"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:16px;line-height:21px;color:#A8A8A8;& > mark{background:inherit;color:inherit;}"]);function Q(e){let t=new Date(e).valueOf()-Date.now(),n=t<=0?0:t,r=new Date(n).getMinutes().toString(),i=("0"+new Date(n).getSeconds()).substr(-2);return`${r}:${i}`}var ee=function(e){let{text:t,dateEnd:n,onTimerEnd:r,className:i}=e,o=(0,a.useRef)();(0,a.useEffect)(()=>{let e=setInterval(()=>{let t=Q(n);Object.assign(o.current||{},{innerHTML:t}),function(e){let t=Q(e);return!/[1-9]/.test(t)}(n)&&(clearInterval(e),r?.(n))},200);return()=>clearInterval(e)},[n,r]);let s=(0,a.useMemo)(()=>Q(n),[n]);return(0,d.jsxs)(J,{className:i,children:[`${t} `,(0,d.jsx)("mark",{ref:o,children:s})]})},et=n(89757),en=n(18386),er=n(2489),ei=n(18533),eo=n(4867),ea=n(47041),es=n(64236),el=n(41664),ec=n.n(el),eu=n(39540),ed=n(11163);function ep(){return(ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var ef=e=>{let{title:t,titleId:n,...r}=e;return a.createElement("svg",ep({width:266,height:23,viewBox:"0 0 266 23",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?a.createElement("title",{id:n},t):null,o||(o=a.createElement("path",{d:"M13.995 22.657 5.36 12.995h-.112v9.662H0V.247h5.248v9.278h.077L13.687.313h6.097L9.751 11.023 20.4 22.657h-6.405ZM24.209 11.706a10.547 10.547 0 0 0 1.03 4.742 10.87 10.87 0 0 0 3.06 3.83c2.23 1.764 5.317 2.721 9.056 2.721 3.507.103 6.923-1.086 9.562-3.329a10.936 10.936 0 0 0 2.68-3.748c.611-1.418.908-2.945.87-4.482a10.655 10.655 0 0 0-.766-4.293 10.913 10.913 0 0 0-2.432-3.663C44.953 1.295 41.48.005 37.313.005c-3.467-.096-6.84 1.095-9.434 3.33a11.214 11.214 0 0 0-2.743 3.805 10.924 10.924 0 0 0-.919 4.558l-.008.008Zm20.633-.183c0 4.902-3.199 7.723-7.521 7.723s-7.59-2.821-7.59
22-7.723c0-4.902 3.2-7.714 7.59-7.714s7.52 2.887 7.52 7.714ZM72.894 11.398h-1.157V4.166h1.157c3.088 0 4.588 1.564 4.588 3.562 0 2.321-1.423 3.711-4.553 3.711l-.035-.041Zm-7.546.041c-3.122 0-4.545-1.39-4.545-3.711-.043-2.04 1.458-3.562 4.545-3.562h1.106v7.273h-1.106ZM73.392.246h-8.576c-5.643 0-9.347 2.48-9.347 7.249 0 2.896 2.47 7.414 10.033 7.414h.952v7.723h5.283v-7.698h.96c7.564 0 10.025-4.518 10.025-7.414 0-4.794-3.739-7.274-9.33-7.274ZM91.246 22.657V.247h15.702l-1.389 3.802h-9.03v5.243h9.064v3.845h-9.064v5.709h10.376v3.811H91.246ZM137.1 22.556V10.28c0-.832 0-1.615.078-2.389h-.078c-.457.81-.976 1.587-1.552 2.322l-4.648 6.308h-2.401l-5.145-6.474a15.088 15.088 0 0 1-1.604-2.156h-.077v14.664h-5.146V.336h4.794l6.586 8.322c.729.94 1.304 1.664 1.835 2.497a20.37 20.37 0 0 1 1.716-2.622l6.003-8.197h4.802v22.22H137.1ZM173.147 22.558 162.942.238h-3.962l-9.871 22.32h5.146l2.324-5.426h8.533l2.435 5.426h5.6Zm-9.639-9.154h-5.446l2.779-7.049c.154.716 2.624 7.049 2.624 7.049M197.412 22.556v-9.304h-11.611v9.304h-5.223V.336h5.223v8.938h11.611V.336h5.223v22.22h-5.223ZM213.535 22.556V.336h5.188v11.318c0 .949 0 2.397-.085 3.445h.085a41.078 41.078 0 0 1 2.359-2.904L231.613.335h5.257v22.22h-5.146V10.382c0-1.007 0-2.356.086-3.104h-.086c-.763.981-1.441 1.855-2.401 2.937l-10.925 12.342h-4.863ZM252.595 22.556c3.807-5.767 5.325-8.264 6.243-8.564h1.938v8.564h5.222V.336h-7.306c-6.706 0-9.142 2.93-9.142 6.375 0 2.896 2.256 4.851 4.571 5.758-1.252.633-3.688 4.378-7.461 10.045l5.935.042Zm6.002-18.375h2.204v6.441h-2.204a3.704 3.704 0 0 1-1.448-.17 3.62 3.62 0 0 1-1.26-.714 3.511 3.511 0 0 1-.866-1.14 3.409 3.409 0 0 1-.327-1.38c0-1.722 1.397-3.054 3.876-3.054",fill:"#EC4C41"})))},eh=n(58249),em=n(74832),eg=n(68179),ey=n(83454);async function ev(){let e=ea.getCookie("authToken")?.valueOf()??"",t=ey.env.API_URL??"https://coffeemania.ru/api/v1"??"";return fetch(`${t}/me/profile`,{headers:{Authorization:e}}).then(e=>e.json()).then(e=>e?.data?.["phone-hash"]).then(e=>(function(e){if(!e)return;let t=86400*Number(ey.env.NEXT_PUBLIC_COOKIE_MAX_AGE_DAYS??30);return(0,ea.setCookie)("user-hash",e,{maxAge:t}),window?.dataLayer?.push?.({event:"auth_user","input-phone-hash":e})})(e))}var eb=n(83454);let ex=["sms","call","sber"],ew=e=>e.stopPropagation();async function e_(){let e=null;try{let t=await (0,eu.ZP)("settings");t?.data&&Array.isArray(t.data)&&(e=t.data)}catch(e){console.error("Failed to call API (Settings)",{err:e})}return e}var eC=function(e){let{resolve:t,destroy:n,phone:r,initStageCode:i,product:o,variantId:c,isLoyaltyRegister:u=!1,type:p=null,isClosable:f=!0,referer:m}=e,g=(0,et.I0)(),{userId:y}=(0,et.v9)(e=>e.profile.user),b=(0,ed.useRouter)(),{createModal:M}=(0,er.ZP)(),A=(0,a.useRef)(),L=(0,a.useRef)("true"===eb.env.NEXT_PUBLIC_DISABLED_CAPTCHA),R=(0,a.useRef)(),{0:Z,1:z}=(0,a.useState)(!0),{0:B,1:$}=(0,a.useState)("sms"),U=(0,a.useRef)("sms"),{0:Y,1:G}=(0,a.useState)("sms"),{0:V,1:q}=(0,a.useState)(r?"input-response-sms":i??"select-auth-type"),{0:W,1:X}=(0,a.useState)(r||""),{0:J,1:Q}=(0,a.useState)(""),{0:el,1:eu}=(0,a.useState)(!0),{0:ep,1:ey}=(0,a.useState)(0),{0:eC,1:eS}=(0,a.useState)(Number(window.localStorage.getItem("attempt-count"))||0),{0:eE,1:eT}=(0,a.useState)(!0),{0:ek,1:ej}=(0,a.useState)(""),{0:eO,1:eP}=(0,a.useState)(!1),{0:eI,1:eN}=(0,a.useState)(!1),{0:eD,1:eM}=(0,a.useState)(!1),{0:eA,1:eL}=(0,a.useState)(""),{0:eR,1:eZ}=(0,a.useState)(!1),{0:ez,1:eF}=(0,a.useState)(!1),eB=(0,a.useRef)(),eH=(0,a.useCallback)(()=>eP(!1),[]),e$=(0,a.useMemo)(()=>!!(eC>=0&&eC<=3||eC-Date.now()<0),[eC]);(0,a.useEffect)(()=>{r&&eW(r),e_().then(e=>{let t=e?.find(e=>"auth_type"===e.key)?.value||"sms";G(ex.includes(t)&&t||"sms")})},[]);let eU=()=>1===W.length?"Обязательно для заполнения":"9"!==W[1]?"Номер должен начинаться на +7 (9..)":W.length<11?"Номер телефона должен состоять из 11 цифр":"",eY=e=>e?"":"Подтвердите согласие, чтобы продолжить";(0,a.useEffect)(()=>{if(1===W.length||"9"===W[1]){Q("");return}if(W.length>1&&"9"!==W[1]){Q("Номер должен начинаться на +7 (9..)");return}},[W]);let eG=(0,a.useCallback)(e=>{t({stageCode:e?.stageCode||"cancel"}),(0,en.Nn)(),z(!1),setTimeout(n,300)},[t,n]),eV=async()=>{let e=U.current,t=g((0,en.SS)({type:e,phone:W,token:ek})),{formData:n}=await M(ei.Z,{cb:t});n.payload?.statusCode===429&&g((0,em.$m)({isOpen:!0,mode:"warning",content:"Превышено количество попыток авторизации. Пожалуйста, попробуйте позже или войдите с помощью звонка."})),n.payload?.status===!0?("input-call-authorization-exceeded"===V&&q("input-response-phone"),"input-response-phone"===V&&q("input-response-phone"),ey(Date.now()+1e3*(n.payload.codeSeconds||0)),"call"===e?q("input-response-phone"):q("input-response-sms")):(n.payload?.statusCode!==429&&g((0,em.$m)({isOpen:!0,mode:"warning",content:n.payload?.errorMessage||"Не удалось отправить код. Пожалуйста, попробуйте ещё раз."})),$("sms"))};(0,a.useEffect)(()=>{ek&&eV()},[ek]);let eq=()=>{eT(!1),setTimeout(()=>{eT(!0)},500)},eW=(0,a.useCallback)(async e=>{eq(),eP(!0),X(e)},[eq]),eX=(0,a.useCallback)(async e=>{let t=g((0,en.LK)({phone:W,code:e})),{formData:n}=await M(ei.Z,{cb:t});if(!0===n.payload.status){let e=n.payload.token,t=86400*Number(eb.env.NEXT_PUBLIC_COOKIE_MAX_AGE_DAYS??30);return(0,ea.setCookie)("authToken",e,{maxAge:t}),(0,ea.setCookie)("advanced-frontend",e,{maxAge:t}),await g((0,en.GS)()),(0,eg.Xs)({loginType:"input-response-phone"===V?"Телефон":"СМС",user_id:y}),eG({stageCode:"success"}),window.localStorage.setItem("attempt-count",String(0)),ev().catch(e=>console.error("dataLayerPushHash error:",e)),b.pathname,!0}return"limit"===n.payload.errorCode&&(window.localStorage.setItem("attempt-count",String(0)),ey(0),eZ(!0),"limit")},[g,M,eG,W,V,y,b]),eK=(0,a.useCallback)(()=>{"input-response-sms"===V&&q("select-auth-type"),"input-response-phone"===V&&q("select-auth-type"),$("sms"),
22X(""),eL(""),eZ(!1)},[V]),{title:eJ,subtitle:eQ,textTimeCode:e0}=(0,a.useMemo)(()=>{let e;let t=(e=(""+(r||W)).replace(/\D/g,"").match(/^(\d{1})(\d{3})(\d{3})(\d{2})(\d{2})$/))?"+7 ("+e?.[2]+") "+e?.[3]+"-"+e?.[4]+"-"+e?.[5]:"";return"select-auth-type"===V&&!u||"select-auth-type"===V&&u?{title:"Рады вас видеть!",subtitle:"Введите ваш номер телефона",textTimeCode:"",callMe:"",resendCode:""}:"input-call-authorization-exceeded"===V?{title:"Вход с SMS-кодом",subtitle:"Введите ваш номер телефона. Мы пришлем SMS-код для входа и покажем актуальное меню.",textTimeCode:"Повторный запрос кода через:",callMe:"",resendCode:""}:"input-response-sms"===V?{title:"Вход с SMS-кодом",subtitle:`Мы отправили код подтверждения на номер<br /><marker>${t}</marker>`,textTimeCode:"Повторный запрос кода через:",callMe:"",resendCode:""}:"input-response-phone"===V?{title:"Вход по звонку",subtitle:`Сейчас мы позвоним вам на номер <marker><br />${t}</marker> и сообщим код. Укажите его в поле:`,textTimeCode:"Повторный запрос звонка через:",callMe:"",resendCode:""}:{title:"",subtitle:"",textTimeCode:""}},[V,W]),e1=(0,a.useCallback)(async()=>{eF(!0);let e=eU();if(e){Q(e),eF(!1);return}let t=eY(eD);if(eL(t),t){eF(!1);return}eL(""),U.current="call"===Y?"call":"sms",$(Y),eW(W),L.current&&eV(),eF(!1)},[B,W,eD,o]),e2=(0,a.useCallback)(async()=>{let e=eU();if(e){Q(e);return}let t=eY(eD);if(eL(t),!t&&window.SberidSDK){let e=(crypto.randomUUID()+Date.now()).replace(/-/g,"");new window.SberidSDK({oidc:{client_id:"92a74362-c9de-4769-a7ef-88575f16468a",client_type:"PRIVATE",nonce:e,redirect_uri:"https://coffeemania.ru/auth/sber/callback",state:new URLSearchParams({nonce:e,sourceUrl:b.asPath}).toString(),scope:"openid profile email mobile name birthdate gender",response_type:"code",name:"Кофемания",login_hint:W},notification:{enable:!1},personalization:!1}).init().then(e=>window.location.href=e.getLink())}},[eU,eD,b,W]),e4=(0,a.useCallback)(async()=>{let e=new URL(String(location)).searchParams.get("return-url")??"/";Object.assign(location,{href:e})},[]),e3=(0,a.useCallback)(async()=>{let e=eU();if(e){Q(e);return}let t=eY(eD);eL(t),t||(eL(""),U.current="call",$("call"),eW(W),eV())},[B,W,eD,o]),e6=(0,a.useCallback)(async()=>{if(eB.current?.reset?.(),eq(),"input-response-sms"===V){U.current="call",await eW(W),$("call"),q("input-response-phone"),L.current&&eV();return}"input-response-phone"===V&&(U.current="sms",await eW(W),$("sms"),q("input-response-sms"),L.current&&eV())},[V,eW,W]),e5=(0,a.useCallback)(async()=>{eB.current?.reset?.(),U.current="input-response-phone"===V?"call":"sms",eq(),L.current&&eV()},[V,eW,W]),e9=(0,a.useCallback)(()=>{ey(0)},[]),e7=(0,a.useCallback)(()=>{window.open("https://help.coffeemania.ru/hc/ru/articles/4405448959249-%D0%9D%D0%B5-%D0%BF%D1%80%D0%B8%D1%85%D0%BE%D0%B4%D0%B8%D1%82-SMS-%D0%A7%D1%82%D0%BE-%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C-","_blank")},[]),e8=(0,a.useMemo)(()=>({__html:eQ}),[eQ]),te=(0,a.useCallback)(()=>{f&&eG({})},[eG]);return(0,d.jsx)(v,{onClick:te,isOpen:Z,children:(0,d.jsxs)(x,{isOpen:Z,onClick:ew,ref:A,className:V,children:[f&&(0,d.jsx)(S,{onClick:eG,children:(0,d.jsx)(eo.Z,{})}),(0,d.jsxs)(w,{children:[["select-auth-type"].includes(V)&&(0,d.jsx)(E,{children:(0,d.jsx)(ef,{})}),(0,d.jsxs)(_,{className:V,children:[(0,d.jsx)(T,{children:eJ}),(0,d.jsx)(k,{className:V,dangerouslySetInnerHTML:e8})]})]}),["select-auth-type"].includes(V)&&(0,d.jsxs)(C,{children:[(0,d.jsxs)("form",{id:`login-form-${B}`,onSubmit:e=>e.preventDefault(),children:[(0,d.jsx)(F,{onChange:X,onErrorChange:()=>Q("Номер должен состоять только из цифр"),onSubmit:e1,id:`input-phone-${B}`,isSend:!!ep&&(e$||["input-response-phone"].includes(V)),isError:!!J,isFocused:el,onFocus:()=>eu(!0),onBlur:()=>eu(!1)}),(0,d.jsx)(H,{text:J,onClick:()=>Q("")}),(0,d.jsx)("button",{style:{display:"none"},ref:R,type:"submit"})]}),(0,d.jsx)(I,{children:(0,d.jsx)(eh.o,{name:"personalAgree",error:eA,label:(0,d.jsx)(N,{children:(0,d.jsxs)(D,{children:[(0,d.jsx)("span",{children:"Я даю свое согласие на обработку персональных данных в соответствии с "}),(0,d.jsx)(ec(),{target:"_blank",href:"https://coffeemania.ru/rules/policy",children:"политикой обработки персональных"}),(0,d.jsx)("span",{children:" данных и "}),(0,d.jsx)(ec(),{target:"_blank",href:"https://coffeemania.ru/rules/offer",children:"договором-офертой"})]})}),onChange:e=>{eu(!0),eM(e=>!e),e.target.checked&&eL("")},isChecked:eD})}),(0,d.jsxs)(P,{children:["sms"===Y&&(0,d.jsx)(es.Z,{onClick:e1,className:`${J.length||W.length<11||!eD?"disabled":""} analytics-button-sms`,children:!ez&&"Продолжить"}),"sber"===Y&&(0,d.jsx)(es.Z,{onClick:e2,className:`${J.length||W.length<11||!eD?"disabled":""} analytics-button-sms`,children:"Продолжить"}),!f&&(0,d.jsx)(O,{onClick:e4,className:"transparent",children:"Вернуться на сайт"})]})]}),["select-auth-type","input-call-authorization-exceeded"].includes(V)||(0,d.jsx)(O,{onClick:eK,className:"set-phone",children:"Изменить номер"}),["input-call-authorization-exceeded"].includes(V)&&(0,d.jsxs)("form",{onSubmit:e=>e.preventDefault(),children:[(0,l.createPortal)((0,d.jsx)(h,{onClose:en.Nn}),document.getElementById("__next")),(0,d.jsx)(F,{onChange:eW,onErrorChange:()=>Q("Номер должен состоять только из цифр"),onSubmit:e3,isSend:!!ep&&(e$||["input-response-phone"].includes(V)),textSubmitButton:"Позвоните мне для авторизации",isError:!!J,isFocused:el,onF
22ocus:()=>eu(!0),onBlur:()=>eu(!1)})]}),["select-auth-type","input-call-authorization-exceeded"].includes(V)||(0,d.jsx)(j,{children:(0,d.jsx)(K,{onSuccess:eX,className:"input-auth-code",ref:eB})}),["input-response-sms"].includes(V)&&!e$&&(0,d.jsx)("span",{className:"help",children:"Если SMS-код не приходит, попробуйте войти с помощью звонка"}),["input-response-sms","input-response-phone","input-call-authorization-exceeded"].includes(V)&&!!ep&&(e$||["input-response-phone"].includes(V))&&(0,d.jsx)(ee,{text:e0,dateEnd:ep,onTimerEnd:e9,className:"timer"}),["input-response-sms"].includes(V)&&(0,d.jsxs)(d.Fragment,{children:[!ep&&e$&&!eR&&(0,d.jsx)(O,{className:"resend-code",onClick:e5,children:"Отправить код повторно"}),(0,d.jsx)(O,{className:"call-me",onClick:e6,children:"Позвоните мне для авторизации"})]}),["input-response-phone"].includes(V)&&(0,d.jsxs)(d.Fragment,{children:[!ep&&(0,d.jsx)(O,{className:"resend-code",onClick:e5,children:"Позвоните мне еще раз"}),(0,d.jsx)(O,{className:"sms-me",onClick:e1,children:"Войти с SMS-кодом"})]}),["input-response-sms"].includes(V)&&!e$&&(0,d.jsx)(O,{className:"help-sms",onClick:e7,children:"Не приходит SMS?"}),eE&&(0,l.createPortal)((0,d.jsx)(s.s1,{sitekey:"ysc1_CPcEA4rlhgHZSBUxTf5mNwZc2a9bRyzReozAaLPF5cb2e00e",onSuccess:ej,onChallengeHidden:eH,visible:eO&&!L.current,test:!1,hideShield:!1}),document.getElementById("__next"))]})})}},73525:function(e,t,n){"use strict";async function r(e){let[t,n]=e;return fetch("https://suggestions.dadata.ru/suggestions/api/4_1/rs/geolocate/address",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Token 6d258bc7aefaf57d422fd4b4c38c725897cfc3c0"},body:JSON.stringify({lat:t,lon:n,count:3,radius_meters:50,from_bound:{value:"street-house"},to_bound:{value:"street-house"}})}).then(e=>e.json()).then(e=>{let t=e?.suggestions?.[0],n=t?.data,r=[n?.city,n?.area_with_type].filter(e=>e).filter(e=>e!==n?.area).join(" "),i=[n?.street_with_type,n?.settlement_with_type].filter(e=>e).join(" "),o=[n?.house,n?.block_type,n?.block].filter(e=>e).join(" ");return{lat:n?.geo_lat,lng:n?.geo_lon,country_code:n?.country_iso_code??null,postal_code:n?.postal_code??null,value:t?.value??"",country:n?.country??null,locality:n?.locality??null,street:i??null,house:o??null,city:r??null}}).catch(e=>(console.warn("error",e),!1))}function i(e,t,n){if("number"!=typeof e||"number"!=typeof t)return!1;if(!n||!Array.isArray(n))return console.log("Invalid polygon. Array with locations expected"),!1;if(0===n.length)return console.log("Invalid polygon. Non-empty Array expected"),!1;let r=!1;for(let i=0,o=n.length-1;i<n.length;o=i++){let a=n[i][0],s=n[i][1],l=n[o][0],c=n[o][1];s>t!=c>t&&e<(l-a)*(t-s)/(c-s)+a&&(r=!r)}return r}n.d(t,{Kn:function(){return r},c9:function(){return i}})},18533:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(67294),i=n(87379);let o=(0,i.F4)(["from{opacity:0;}to{opacity:0.5;}"]),a=(0,i.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]);i.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-109x1iy-0"})(["position:fixed;inset:0;z-index:502;height:100%;background:#FFFFFF;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;opacity:",";display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;& > svg{animation:"," 2s linear infinite;}padding-bottom:30%;"],o,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,e=>e.isOpen?"0.5":"0",a);let s=i.ZP.div.withConfig({displayName:"styles__LoadingModal",componentId:"sc-109x1iy-1"})(["position:fixed;top:calc(100vh / 2 - 32px);left:calc(100vw / 2 - 32px);background:transparent;opacity:",";transition:all linear .2s;display:flex;align-items:center;justify-content:center;width:64px;height:64px;z-index:502;"],e=>e.isOpen?"1":"0"),l=i.ZP.div.withConfig({displayName:"styles__LoadingIconWrapper",componentId:"sc-109x1iy-2"})(["position:fixed;display:flex;align-items:center;justify-content:center;position:fixed;width:64px;
22height:64px;border-radius:14px;background:#FFF;box-shadow:0px 4px 12px 0px rgba(0,0,0,0.12);background:#FFFFFF;z-index:2;& > svg{animation:"," 2s linear infinite;}"],a);var c=n(64779),u=n(85893),d=function(e){let{resolve:t,destroy:n,cb:i}=e,{0:o,1:a}=(0,r.useState)(!1),d=(0,r.useCallback)(e=>{t({stageCode:"cancel",formData:e}),a(!1),setTimeout(n,300)},[t,n]);return(0,r.useEffect)(()=>{a(!0),i.then(d)},[]),(0,u.jsx)(s,{isOpen:o,children:(0,u.jsx)(l,{children:(0,u.jsx)(c.Z,{})})})}},66435:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(67294),i=n(87379);let o="cubic-bezier(0.23, 1, 0.32, 1)",a=(0,i.F4)(["from{opacity:0;}to{opacity:1;}"]),s=i.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-pm0p7b-0"})(["display:flex;align-items:center;justify-content:center;position:fixed;inset:0;z-index:500;height:100%;background-color:rgba(33,33,33,0.8);bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],a,300,o,300,300,e=>e.isOpen?"1":"0"),l=(0,i.F4)(["from{transform:translateY(100%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),c=i.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-pm0p7b-1"})(["display:flex;flex-direction:column;z-index:501;width:450px;height:fit-content;min-height:fit-content;padding:20px 20px;background-color:#00000073;background:#ffffff;align-items:center;box-shadow:0px -4px 24px rgba(0,0,0,0.08);border-radius:20px;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transform:",";"],l,300,o,300,e=>e.isOpen?"unset":"translateY(100%)"),u=i.ZP.div.withConfig({displayName:"styles__Title",componentId:"sc-pm0p7b-2"})(["width:100%;font-weight:500;font-size:20px;line-height:28px;color:#181818;text-align:center;font-family:Suisse Intl;"]),d=i.ZP.div.withConfig({displayName:"styles__Description",componentId:"sc-pm0p7b-3"})(["margin-top:14px;font-weight:400;font-size:17px;line-height:26px;color:#393939;letter-spacing:-0.8px;text-align:center;font-family:Suisse Intl;"]),p=i.ZP.div.withConfig({displayName:"styles__ButtonsWrapper",componentId:"sc-pm0p7b-4"})(["display:flex;flex-direction:column;row-gap:10px;margin-top:24px;width:100%;button{font-family:Suisse Intl;font-weight:450;font-size:17px;line-height:24px;letter-spacing:1.5%;}"]),f=i.ZP.button.withConfig({displayName:"styles__TransparentButton",componentId:"sc-pm0p7b-5"})(["height:50px;width:100%;display:flex;align-items:center;justify-content:center;font-weight:500;font-size:15px;line-height:15px;cursor:pointer;user-select:none;color:#393939;background:transparent;border-radius:14px;border:none;transition:all 0.2s ease-out;:active{background:#E7E7E7;}"]);var h=n(64236),m=n(85893);let g=e=>e.stopPropagation();var y=function(e){let{resolve:t,destroy:n}=e,{0:i,1:o}=(0,r.useState)(!0),a=(0,r.useCallback)(e=>{t({stageCode:e?.stageCode||"cancel"}),o(!1),setTimeout(n,300)},[t,n]);return(0,m.jsx)(s,{onClick:()=>a({}),isOpen:i,children:(0,m.jsxs)(c,{isOpen:i,onClick:g,children:[(0,m.jsx)(u,{children:"Обратите внимание!"}),(0,m.jsxs)(d,{children:["В вашей корзине уже есть блюда из другой категории. ",(0,m.jsx)("br",{}),"Вы можете оформить заказы из разных категорий по очереди."]}),(0,m.jsxs)(p,{children:[(0,m.jsx)(h.Z,{onClick:()=>a({stageCode:"cart"}),children:"Оформить текущий заказ"}),(0,m.jsx)(h.Z,{variant:"white",onClick:()=>a({stageCode:"clear"}),children:"Очистить корзину"}),(0,m.jsx)(f,{onClick:()=>a({stageCode:"cancel"}),children:"Отмена"})]})]})})}},62609:function(e,t,n){"use strict";n.d(t,{x:function(){return tH}});var r,i,o,a,s,l,c,u,d,p=n(8307),f=n(67294),h=n(89757),m=n(11163),g=n(72890),y=n(87379),v=n(39142);let b="cubic-bezier(0.23, 1, 0.32, 1)",x=(0,y.F4)(["from{opacity:0;}to{opacity:0.5;}"]),w=(0,y.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]);y.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-oqmghc-0"})(["position:fixed;inset:0;z-index:502;height:100%;background:#ffffff;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;opacity:0.5;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;& > svg{animation:"," 2s linear infinite;}padding-bottom:30%;"],x,300,b,300,w);let _=y.ZP.div.withConfig({displayName:"styles__MainBlock",componentId:"sc-oqmghc-1"})(["position:relative;width:100%;display:grid;grid-template-columns:674px minmax(530px,1fr);grid-template-rows:auto 94px;height:100%;@media ","{grid-template-columns:minmax(510px,1fr) minmax(515px,530px);}@media ","{grid-template-columns:1fr;}&:after{content:'';display:",";position:absolute;
22left:0;bottom:0;width:34px;height:34px;background-color:#515356;}"],v.Z.exactMedia.widescreen,v.Z.exactMedia.desktop,e=>{let{isLabel:t}=e;return t?"block":"none"}),C=y.ZP.div.withConfig({displayName:"styles__ProductAllWrapper",componentId:"sc-oqmghc-2"})(["overflow-y:auto;height:100%;grid-column:1;grid-row:1;width:calc(100% - 4px);margin-right:4px;&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{background:#f0f0f0;border-radius:16px;margin-top:60px;}&::-webkit-scrollbar-thumb{width:5px;background:#d9d9d9;border-radius:16px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}"]),S=y.ZP.div.withConfig({displayName:"styles__ProductSliderWrapper",componentId:"sc-oqmghc-3"})(["grid-row:1 / span 2;@media ","{grid-row:unset;}"],v.Z.exactMedia.desktop),E=y.ZP.button.withConfig({displayName:"styles__BackButton",componentId:"sc-oqmghc-4"})(["position:fixed;top:0;right:0;width:68px;height:68px;z-index:601;transition:all 0.2s ease-out;appearance:none;background:transparent;border:none;outline:none;cursor:pointer;::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:75%;height:75%;background-color:white;border-radius:50%;filter:blur(10px);z-index:-1;}"]),T=y.ZP.div.withConfig({displayName:"styles__ProductButtonsWrapper",componentId:"sc-oqmghc-5"})(["position:absolute;top:17px;right:0;display:inline-flex;justify-content:space-between;gap:10px;z-index:101;@media ","{top:10px;right:30px;}"],v.Z.exactMedia.desktop),k=y.ZP.button.withConfig({displayName:"styles__ProductButton",componentId:"sc-oqmghc-6"})(["display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:white;border:1px solid #dedede;border-radius:100%;z-index:101;transition:all 0.2s ease-out;cursor:pointer;position:relative;:active{background:#e7e7e7;}"]),j=y.ZP.div.withConfig({displayName:"styles__WrapperSocialsModal",componentId:"sc-oqmghc-7"})(["position:absolute;top:calc(100% + 15px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:stretch;width:239px;background-color:white;font-size:16px;line-height:21px;font-weight:400;color:#212121;font-family:'Suisse Intl';text-align:center;border-radius:14px;padding-bottom:10px;border:1px solid #dedede;-webkit-filter:drop-shadow(0px 4px 16px #0000001a);filter:drop-shadow(0px 4px 16px #0000001a);z-index:0;& > .title{display:flex;padding:14px 16px;border-bottom:0.5px solid #dedede;background-color:white;border-radius:14px 14px 0 0;}:before{bottom:calc(100% - 5px);left:50%;transform:translateX(-50%);border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#dedede;border-width:16px;z-index:-1;}:after{bottom:calc(100% - 5px);left:50%;transform:translateX(-50%);border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-bottom-color:#fff;border-width:15px;}@media ","{left:unset;transform:none;right:0;margin-right:0;:before{left:unset;transform:none;right:3px;}:after{left:unset;transform:none;right:4px;}}"],v.Z.exactMedia.desktop),O=y.ZP.div.withConfig({displayName:"styles__Socials",componentId:"sc-oqmghc-8"})(["display:flex;flex-direction:column;padding-top:8px;cursor:pointer;white-space:nowrap;& > button,& > .link{display:flex;align-items:center;gap:6px;:hover{background-color:#f0f0f0;}:active{background-color:#dedddd;}}& > .link{padding:7px 16px;}& > button{padding:7px 16px !important;:hover{background-color:#f0f0f0 !important;}:active{background-color:#dedddd !important;}}svg{width:24px;height:24px;}"]),P=y.ZP.div.withConfig({displayName:"styles__ProductSectionTitle",componentId:"sc-oqmghc-9"})(["font-size:14px;line-height:18px;font-weight:400;color:#a0a1a4;"]),I=y.ZP.div.withConfig({displayName:"styles__ProductSectionDividerWrapper",componentId:"sc-oqmghc-10"})(["margin-top:16px;padding:0 20px;"]),N=y.ZP.div.withConfig({displayName:"styles__ProductSectionDivider",componentId:"sc-oqmghc-11"})(["border-bottom:1px solid #d9d9d9;"]);y.ZP.div.withConfig({displayName:"styles__ProductPicture",componentId:"sc-oqmghc-12"})(["width:100%;& > div{background-image:url(",");width:100%;height:66vw;background-position:center;background-repeat:no-repeat;background-size:cover;}"],e=>e.urlPicture);let D=y.ZP.div.withConfig({displayName:"styles__ProductTitleDescriptionWrapper",componentId:"sc-oqmghc-13"})(["width:100%;height:auto;padding:0 24px 20px;display:flex;flex-direction:column;justify-content:space-between;font-family:'Suisse Intl';position:relative;@media ","{padding:0 20px 20px;}padding-right:34px;"],v.Z.exactMedia.desktop),M=y.ZP.div.withConfig({displayName:"styles__ProductWrapper",componentId:"sc-oqmghc-14"})(["width:100%;width:calc(100% - 4px);overflow-y:auto;margin:0;grid-column:2;grid-row:1;font-family:Suisse Intl;margin-right:4px;@media ","{height:auto;display:flex;flex-direction:column;justify-content:space-between;}&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{background:#f0f0f0;border-radius:16px;margin-top:60px;}&::-webkit-scrollbar-thumb{width:5px;background:#d9d9d9;border-radius:16px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}"],v.Z.exactMedia.desktop),A=y.ZP.div.withConfig({displayName:"styles__ProductTitleWrapper",componentId:"sc-oqmghc-15"})(["display:flex;justify-content:space-between;position:sticky;top:0;z-index:102;padding:20px 24px 0;@media ","{padding:20px 20px 0;}&:before{content:'';position:absolute;width:100%;background:white;height:calc(100% + 12px);top:0;left:0;}"],v.Z.exactMedia.desktop),L=y.ZP.div.withConfig({displayName:"styles__ProductTitle",componentId:"sc-oqmghc-16"})(["font-size:28px;line-height:33px;font-weight:500;color:#000000;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;"]),R=y.ZP.div.withConfig({displayName:"styles__ProductPriceWeightWrapper",componentId:"sc-oqmghc-17"})(["display:inline-flex;gap:24px;width:fit-content;"]),Z=y.ZP.div.withConfig({displayName:"styles__ProductPrice",componentId:"sc-oqmghc-18"})(["font-size:28px;line-height:33px;font-family:'Suisse Intl';font-weight:450;color:#000000;white-space:nowrap;letter-spacing:0.015em;"," &{position:relative;font-size:20px;line-height:28px;:after{content:'';display:block;height:24px;width:1px;position:absolute;
22left:calc(100% + 12px);top:50%;transform:translateY(-50%);background-color:#dedede;}}"],R),z=y.ZP.div.withConfig({displayName:"styles__ProductDescriptionWrapper",componentId:"sc-oqmghc-19"})(["margin-top:8px;"]),F=y.ZP.div.withConfig({displayName:"styles__ProductDescription",componentId:"sc-oqmghc-20"})(["font-size:16px;line-height:21px;font-weight:400;padding-bottom:24px;border-bottom:1px solid #e5e5e5;color:#212121;& > ul{padding-left:16px;list-style-type:disc;}& > ol{padding-left:16px;}@media ","{padding-bottom:8px;border-bottom:none;}"],v.Z.exactMedia.desktop),B=y.ZP.div.withConfig({displayName:"styles__VideoRecipeWrapper",componentId:"sc-oqmghc-21"})(["display:flex;justify-content:center;align-items:center;margin-top:16px;& > a{display:flex;justify-content:center;align-items:center;column-gap:6px;padding:6px 16px;border-radius:12px;background:#ffffff;box-shadow:0px 2px 12px 0px rgba(0,0,0,0.1);font-family:Suisse Intl;font-size:12px;font-style:normal;font-weight:500;line-height:18px;}"]),H=y.ZP.div.withConfig({displayName:"styles__ProductExtrasWrapper",componentId:"sc-oqmghc-22"})(["margin-top:4px;padding:0 24px;@media ","{margin-top:16px;padding:0 20px;}padding-right:34px;"],v.Z.exactMedia.desktop),$=y.ZP.div.withConfig({displayName:"styles__ProductExtras",componentId:"sc-oqmghc-23"})(["margin-top:16px;"]),U=y.ZP.div.withConfig({displayName:"styles__ProductExtra",componentId:"sc-oqmghc-24"})(["display:flex;justify-content:flex-start;margin-top:10px;@media ","{margin-top:16px;}"],v.Z.exactMedia.desktop),Y=y.ZP.div.withConfig({displayName:"styles__ProductExtraInput",componentId:"sc-oqmghc-25"})(["position:relative;width:24px;min-width:24px;height:24px;background:",";border:1px solid ",";border-radius:4px;transition:all 0.2s;cursor:pointer;&::after{content:url('/static/svg/checkbox-icon-tick.svg');position:absolute;top:2px;left:6px;opacity:",";transition:all 0.2s;}"],e=>e.isChecked?"#376F62":"none",e=>e.isChecked?"none":"#DEDEDE",e=>e.isChecked?"1":"0"),G=y.ZP.div.withConfig({displayName:"styles__ProductExtraLabel",componentId:"sc-oqmghc-26"})(["margin-left:10px;padding-top:3px;font-size:16px;line-height:21px;font-weight:400;color:#212121;cursor:pointer;user-select:text;-webkit-user-select:text;"]),V=y.ZP.span.withConfig({displayName:"styles__ProductExtraPrice",componentId:"sc-oqmghc-27"})(["color:#a0a1a4;white-space:nowrap;"]),q=y.ZP.div.withConfig({displayName:"styles__ProductVariantsWrapper",componentId:"sc-oqmghc-28"})(["margin-top:24px;padding:0 24px;@media ","{padding:0 20px;}padding-right:34px;"],v.Z.exactMedia.desktop),W=y.ZP.div.withConfig({displayName:"styles__ProductVariants",componentId:"sc-oqmghc-29"})(["margin-top:16px;"]),X=y.ZP.div.withConfig({displayName:"styles__ProductVariant",componentId:"sc-oqmghc-30"})(["display:flex;justify-content:flex-start;margin-top:10px;@media ","{margin-top:16px;}"],v.Z.exactMedia.desktop),K=y.ZP.div.withConfig({displayName:"styles__ProductVariantInput",componentId:"sc-oqmghc-31"})(["position:relative;width:24px;min-width:24px;height:24px;background:'none';border:1px solid #dedede;border-radius:100px;transition:all 0.2s;cursor:pointer;&::after{content:url('/static/svg/checkbox-icon-circle.svg');position:absolute;top:3px;left:3px;opacity:",";transition:all 0.2s;}"],e=>e.isChecked?"1":"0"),J=y.ZP.div.withConfig({displayName:"styles__ProductVariantLabel",componentId:"sc-oqmghc-32"})(["margin-left:10px;padding-top:3px;font-size:16px;line-height:21px;font-weight:400;color:#212121;cursor:pointer;user-select:text;-webkit-user-select:text;"]),Q=y.ZP.span.withConfig({displayName:"styles__ProductVariantPrice",componentId:"sc-oqmghc-33"})(["color:#a0a1a4;white-space:nowrap;"]),ee=y.ZP.div.withConfig({displayName:"styles__ProductompositionWrapper",componentId:"sc-oqmghc-34"})(["margin-top:24px;padding:0 24px;@media ","{margin-top:16px;padding:0 20px;}padding-right:34px;"],v.Z.exactMedia.desktop),et=y.ZP.div.withConfig({displayName:"styles__ProductComposition",componentId:"sc-oqmghc-35"})(["margin-top:8px;font-size:16px;line-height:21px;font-weight:400;color:#212121;p{margin-bottom:7px;@media ","{margin-bottom:0;}}ul{list-style-type:disc;}li{margin-left:30px;}"],v.Z.exactMedia.desktop),en=y.ZP.div.withConfig({displayName:"styles__ProductAllergensWrapper",componentId:"sc-oqmghc-36"})(["margin-top:16px;padding:0 24px;@media ","{padding:0 20px;}padding-right:34px;"],v.Z.exactMedia.desktop),er=y.ZP.div.withConfig({displayName:"styles__ProductAllergens",componentId:"sc-oqmghc-37"})(["margin-top:8px;font-size:16px;line-height:21px;font-weight:400;color:#212121;"," &{margin-top:0;}"],ee),ei=y.ZP.div.withConfig({displayName:"styles__ProductParam
22sWrapper",componentId:"sc-oqmghc-38"})(["margin-top:16px;padding:0 24px;@media ","{padding:0 20px;}padding-right:34px;"],v.Z.exactMedia.desktop),eo=y.ZP.div.withConfig({displayName:"styles__ProductParams",componentId:"sc-oqmghc-39"})(["display:flex;margin-top:8px;"]),ea=y.ZP.div.withConfig({displayName:"styles__ProductParam",componentId:"sc-oqmghc-40"})(["padding:0 15px;color:#212121;text-align:center;"," &{width:fit-content;min-width:unset;padding:0;}"],R),es=y.ZP.div.withConfig({displayName:"styles__ProductParamValue",componentId:"sc-oqmghc-41"})(["font-size:16px;line-height:21px;"," &{font-size:20px;color:#a0a1a4;line-height:28px;}"],R),el=y.ZP.div.withConfig({displayName:"styles__ProductParamName",componentId:"sc-oqmghc-42"})(["font-size:14px;line-height:18px;opacity:0.7;@media ","{font-size:17px;line-height:21px;}"],v.Z.exactMedia.desktop),ec=y.ZP.div.withConfig({displayName:"styles__ProductCommentWrapper",componentId:"sc-oqmghc-43"})(["margin-top:24px;padding:0 24px;line-height:0;@media ","{margin-top:30px;padding:0 20px;}padding-right:34px;"],v.Z.exactMedia.desktop),eu=y.ZP.div.withConfig({displayName:"styles__ProductAbout",componentId:"sc-oqmghc-44"})(["height:fit-content;transition:all 1s;overflow:hidden;"]),ed=(0,y.F4)(["from{transform:translateY(100%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),ep=y.ZP.div.withConfig({displayName:"styles__CheckoutWrapper",componentId:"sc-oqmghc-45"})(["display:flex;flex-direction:row;align-items:center;z-index:109;bottom:0;padding:16px;background-color:#00000073;background:#ffffff;border-radius:32px 32px 0 0;box-shadow:0px -4px 20px rgba(255,255,255,0.8);animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transform:",";column-gap:20px;grid-column:2;grid-row:2;@media ","{grid-column:1;grid-row:2;}"],ed,300,b,300,e=>e.isOpen?"unset":"translateY(100%)",v.Z.exactMedia.desktop),ef=y.ZP.div.withConfig({displayName:"styles__CheckoutButtonWrapper",componentId:"sc-oqmghc-46"})(["flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;column-gap:",";"],e=>e.inCart?"8px":"0"),eh=y.ZP.button.withConfig({displayName:"styles__CheckoutButton",componentId:"sc-oqmghc-47"})(["flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-width:192px;height:62px;background:#ec4c41;color:#ffffff;border:none;border-radius:14px;transition:all 0.3s;-moz-user-select:none;-khtml-user-select:none;user-select:none;font-family:'Suisse Intl';line-height:24px;letter-spacing:0.015em;font-weight:400;transition:all 0.2s ease-out;cursor:pointer;:active{background:#e24641;}"]),em=y.ZP.div.withConfig({displayName:"styles__CheckoutButtonText",componentId:"sc-oqmghc-48"})(["font-size:17px;"]),eg=y.ZP.div.withConfig({displayName:"styles__CheckoutUnavailableText",componentId:"sc-oqmghc-49"})(["padding:19px 8px;font-size:16px;text-align:center;color:#212121;line-height:21px;font-weight:400;"]),ey=y.ZP.div.withConfig({displayName:"styles__CartActionWrapper",componentId:"sc-oqmghc-50"})(["display:flex;justify-content:space-between;max-width:200px;min-width:140px;height:62px;background-color:#f6f6f6;border-radius:14px;transition:all 0.3s;& > .del-from-cart,& > .add-to-cart{height:100%;padding:19px 16px;}& > .count{color:#212121;}@media ","{flex:1;}"],v.Z.exactMedia.desktop),ev=y.ZP.div.withConfig({displayName:"styles__CartAction",componentId:"sc-oqmghc-51"})(["display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer;transition:all 0.3s;"]),eb=(0,y.ZP)(ev).withConfig({displayName:"styles__CartActionMinus",componentId:"sc-oqmghc-52"})([""]),ex=(0,y.ZP)(ev).withConfig({displayName:"styles__CartActionPlus",componentId:"sc-oqmghc-53"})(["cursor:",";:active{pointer-events:",";background:",";}svg > path{fill:",";}&[data-tooltip]{position:relative;}&[data-tooltip]::after{position:absolute;content:attr(data-tooltip);top:-10px;right:0;width:fit-content;height:fit-content;padding:8px 12px;font-size:14px;text-align:center;color:#212121;white-space:nowrap;background-color:#fff;border-radius:6px;transform:translate(0,0) scale(0);transform-origin:right;transition:0.14s;box-shadow:0 4px 14px 0 rgba(0,0,0,0.2),0 0 0 1px rgba(0,0,0,0.05);}&[data-tooltip]:hover:after{display:block;transform:translate(0,-100%) scale(1);}"],e=>e.disabled?"not-allowed":"pointer",e=>e.disabled?"none":"auto",e=>e.disabled?"transparent":"#e7e7e7",e=>e.disabled?"#ADADAD":"#212121"),ew=y.ZP.div.withConfig({displayName:"styles__CartActionCount",componentId:"sc-oqmghc-54"})(["display:flex;justify-content:center;align-items:center;font-size:20px;line-height:28px;font-weight:500;transition:all 0.3s;overflow:hidden;"]);var e_=n(38168),eC=n(12834),eS=n(56792);function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eT=e=>{let{title:t,titleId:n,...i}=e;return f.createElement("svg",eE({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},i),t?f.createElement("title",{id:n},t):null,r||(r=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.034 20.062h-.004a7.96 7.96 0 0 1-3.807-.97L4 20.2l1.13-4.128a7.952 7.952 0 0 1-1.063-3.983c.002-4.392 3.575-7.966 7.966-7.966 2.132.001 4.132.83 5.636 2.336A7.918 7.918 0 0 1 20 12.095c-.002 4.392-3.574 7.965-7.966 7.967ZM8.418 17.65l.242.143a6.612 6.612 0 0 0 3.37.923h.003c3.65 0 6.62-2.97 6.621-6.621 0-1.77-.687-3.433-1.937-4.685a6.576 6.576 0 0 0-4.682-1.941 6.631 6.631 0 0 0-6.624 6.62c0 1.252.35 2.47 1.013 3.524l.157.25-.669 2.444 2.506-.657Zm7.355-3.84c.14.068.233.113.273.18.05.083.05.481-.116.946-.166.465-.961.89-1.344.947a2.73 2.73 0 0 1-1.253-.079c-.29-.092-.66-.214-1.
22135-.42-1.866-.805-3.128-2.614-3.366-2.956a2.297 2.297 0 0 0-.035-.049l-.001-.002c-.106-.14-.812-1.083-.812-2.057 0-.917.45-1.398.658-1.619l.04-.042c.182-.2.397-.249.53-.249a7.913 7.913 0 0 1 .426.008c.116-.001.26-.002.403.34l.22.534c.171.417.36.878.394.945.05.1.083.216.017.349l-.028.056c-.05.102-.087.177-.171.276-.034.039-.068.08-.102.122-.069.084-.137.167-.197.226-.1.1-.203.207-.087.407.116.199.515.85 1.107 1.379.636.567 1.19.807 1.47.928.054.024.098.043.13.06.2.1.316.083.432-.05.116-.133.498-.582.63-.78.133-.2.266-.167.448-.1.183.066 1.161.548 1.36.647l.11.054Z",fill:"#212121"})))};function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var ej=e=>{let{title:t,titleId:n,...r}=e;return f.createElement("svg",ek({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?f.createElement("title",{id:n},t):null,i||(i=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.495 6.209c.221-1.372-1.168-2.443-2.439-1.878l-7.32 3.253-6.247 2.94c-1.429.673-1.306 2.744.192 3.244l5.035 1.678 6.122 4.082a1.75 1.75 0 0 0 2.699-1.178L20.495 6.21Zm-1.83-.507a.25.25 0 0 1 .35.268l-1.96 12.141a.25.25 0 0 1-.385.168l-5.177-3.451a.633.633 0 0 1 .069-.622l.038-.053 3.815-4.318c.268-.326-.038-.56-.325-.355-.427.274-.998.657-1.626 1.079-1.461.98-3.229 2.167-4.21 2.661l-.503.218a1.297 1.297 0 0 1-.208.036l-3.388-1.13a.25.25 0 0 1-.027-.463l6.233-2.933 7.305-3.246Z",fill:"#000"})))};function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eP=e=>{let{title:t,titleId:n,...r}=e;return f.createElement("svg",eO({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?f.createElement("title",{id:n},t):null,o||(o=f.createElement("path",{d:"m9.001 15 6-6m-4-3 .463-.536a5 5 0 0 1 7.071 7.072l-.534.464m-5 5-.397.534a5.07 5.07 0 0 1-7.127 0 4.97 4.97 0 0 1 0-7.071L6.001 11",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eN=e=>{let{title:t,titleId:n,...r}=e;return f.createElement("svg",eI({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?f.createElement("title",{id:n},t):null,a||(a=f.createElement("path",{d:"M10.972 20.216a2 2 0 0 0 2.081-.016l.004-.002.006-.004.02-.013.03-.018.04-.026.243-.158a33.846 33.846 0 0 0 3.484-2.643c.982-.855 2.038-1.886 2.932-3.028.881-1.126 1.69-2.467 2.039-3.94.761-3.213-1.515-6.868-5.46-6.868-1.823 0-3.34.859-4.28 1.545a9.824 9.824 0 0 0-.112.082 9.824 9.824 0 0 0-.112-.082c-.94-.686-2.456-1.545-4.28-1.545-1.765 0-3.387.665-4.452 2-1.058 1.327-1.36 3.055-1.025 4.787.295 1.518 1.094 2.888 1.974 4.026.892 1.154 1.961 2.19 2.959 3.045a32.586 32.586 0 0 0 3.877 2.839l.02.012.007.004.005.003Z",fill:"#EC4C41"})))};function eD(){return(eD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eM=e=>{let{title:t,titleId:n,...r}=e;return f.createElement("svg",eD({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?f.createElement("title",{id:n},t):null,s||(s=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.973 20.216 12 18.5l1.054 1.7a2 2 0 0 1-2.082.016Zm-.48-13.709C9.72 5.982 8.71 5.5 7.607 5.5c-2.525 0-4.007 1.857-3.513 4.406C4.94 14.271 12 18.5 12 18.5l-1.027 1.716-.005-.003-.006-.004-.02-.012a30.292 30.292 0 0 1-1.191-.778 32.588 32.588 0 0 1-2.687-2.06c-.998-.855-2.067-1.892-2.96-3.046-.879-1.138-1.678-2.508-1.973-4.02
226-.335-1.732-.033-3.46 1.025-4.787 1.065-1.335 2.687-2 4.452-2 1.824 0 3.34.859 4.28 1.545l.112.082.112-.082c.94-.686 2.457-1.545 4.28-1.545 3.945 0 6.221 3.655 5.46 6.867-.35 1.473-1.158 2.815-2.04 3.941-.893 1.142-1.949 2.174-2.931 3.028a33.864 33.864 0 0 1-3.767 2.827 3.296 3.296 0 0 1-.03.018l-.02.013-.006.004-.004.002L12 18.5s6.88-4.264 7.906-8.594C20.4 7.821 18.918 5.5 16.392 5.5c-1.1 0-2.11.482-2.884 1.007C12.586 7.134 12 7.821 12 7.821s-.585-.687-1.508-1.314Z",fill:"#212121"})))};function eA(){return(eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eL=e=>{let{title:t,titleId:n,...r}=e;return f.createElement("svg",eA({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?f.createElement("title",{id:n},t):null,l||(l=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-9a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9Z",fill:"#EC4C41"})),c||(c=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 7.67a1 1 0 0 1 1 0l3 1.732 3 1.732a1 1 0 0 1 0 1.732l-6 3.464a1 1 0 0 1-1.5-.866V8.536a1 1 0 0 1 .5-.866Zm1.5 2.598v3.464L14 12l-3-1.732Z",fill:"#EC4C41"})))},eR=n(66129);function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var ez=e=>{let{title:t,titleId:n,...r}=e;return f.createElement("svg",eZ({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?f.createElement("title",{id:n},t):null,u||(u=f.createElement("path",{d:"M12 4c.483 0 .875.392.875.875v6.25h6.25a.875.875 0 0 1 0 1.75h-6.25v6.25a.875.875 0 0 1-1.75 0v-6.25h-6.25a.875.875 0 1 1 0-1.75h6.25v-6.25c0-.483.392-.875.875-.875Z"})))};function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eB=e=>{let{title:t,titleId:n,...r}=e;return f.createElement("svg",eF({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?f.createElement("title",{id:n},t):null,d||(d=f.createElement("path",{d:"M11.125 11h8c.483 0 .875.448.875 1s-.392 1-.875 1H4.875C4.392 13 4 12.552 4 12s.392-1 .875-1h6.25Z",fill:"#212121"})))},eH=n(29048),e$=n(16931),eU=n(18386),eY=n(74832),eG=n(78768),eV=n(50555),eq=n(39540),eW=n(2489),eX=n(45835),eK=n(41664),eJ=n.n(eK),eQ=n(13174),e0=n(68179);function e1(e){let{0:t,1:n}=(0,f.useState)(!1);return(0,f.useEffect)(()=>{let r=window.matchMedia(e);r.matches!==t&&n(r.matches);let i=()=>n(r.matches);return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[e,t]),t}var e2=n(71816),e4=n(68697),e3=n(27484),e6=n.n(e3),e5=n(83194),e9=n(66435);(0,y.F4)(["0%{opacity:0.3;transform:translateY(15px) scale(0.92);}33%{opacity:0.5;transform:translateY(10px) scale(0.97);}66%{opacity:0.8;transform:translateY(5px) scale(1.01);}100%{opacity:1;transform:translateY(0) scale(1);}"]);let e7=(0,y.iv)(["background:#f0f0f0;"]),e8=y.ZP.div.withConfig({displayName:"styles__MainBlock",componentId:"sc-mduq03-0"})(["position:relative;width:100%;display:grid;grid-template-columns:674px minmax(530px,1fr);grid-template-rows:auto 94px;height:100%;@media ","{grid-template-columns:minmax(510px,1fr) minmax(515px,530px);}@media ","{grid-template-columns:1fr;}animation:fadeIn 1.5s ease-out infinite;"],v.Z.exactMedia.widescreen,v.Z.exactMedia.desktop),te=y.ZP.div.withConfig({displayName:"styles__SkeletonProductAllWrapper",componentId:"sc-mduq03-1"})(["overflow-y:auto;height:100%;grid-column:1;grid-row:1;width:calc(100% - 4px);margin-right:4px;&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{background:#f0f0f0;border-radius:16px;margin-top:60px;}&::-webkit-scrollbar-thumb{width:5px;background:#d9d9d9;border-radius:16px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}"]),tt=y.ZP.div.withConfig({displayName:"styles__SkeletonProductSliderWrapper",componentId:"sc-mduq03-2"})(["display:flex;justify-content:center;align-items:center;grid-row:1 / span 2;@media ","{grid-row:unset;margin-bottom:8px;}"],v.Z.exactMedia.desktop),tn=y.ZP.button.withConfig({displayName:"styles__BackButton",componentId:"sc-mduq03-3"})(["position:fixed;top:0;right:0;width:68px;height:68px;z-index:601;transition:all 0.2s ease-out;appearance:none;background:transparent;border:none;outline:none;cursor:pointer;::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:75%;height:75%;background-color:white;border-radius:50%;filter:blur(10px);z-index:-1;}"]),tr=y.ZP.div.withConfig({displayName:"styles__SkeletonProductButtonsWrapper",componentId:"sc-mduq03-4"})(["position:absolute;top:17px;right:0;display:inline-flex;justify-content:space-between;gap:10px;z-index:101;@media ","{top:10px;right:30px;}"],v.Z.exactMedia.desktop),ti=y.ZP.div.withConfig({displayName:"styles__SkeletonProductButton",componentId:"sc-mduq03-5"})(["display:flex;align-items:center;justify-content:center;width:40px;height:40px;"," border-radius:100%;z-index:101;transition:all 0.2s ease-out;position:relative;@media ","{background:white;}"],e7,v.Z.exactMedia.desktop),to=y.ZP.div.withConfig({displayName:"styles__SkeletonProductSectionTitle",componentId:"sc-mduq03-6"}
22)(["height:13px;width:30%;border-radius:10px;",""],e7),ta=y.ZP.div.withConfig({displayName:"styles__SkeletonProductSectionDividerWrapper",componentId:"sc-mduq03-7"})(["margin-top:16px;padding:0 24px;@media ","{padding:0 20px;padding-right:16px;}"],v.Z.exactMedia.desktop),ts=y.ZP.div.withConfig({displayName:"styles__SkeletonProductSectionDivider",componentId:"sc-mduq03-8"})(["border-bottom:1px solid #d9d9d9;"]),tl=y.ZP.div.withConfig({displayName:"styles__SkeletonProductTitleDescriptionWrapper",componentId:"sc-mduq03-9"})(["width:100%;height:auto;padding:0 24px 20px;display:flex;flex-direction:column;justify-content:space-between;font-family:'Suisse Intl';position:relative;padding-bottom:10px;@media ","{padding:0 20px 20px;}padding-right:34px;"],v.Z.exactMedia.desktop),tc=y.ZP.div.withConfig({displayName:"styles__SkeletonProductWrapper",componentId:"sc-mduq03-10"})(["width:100%;width:calc(100% - 4px);overflow-y:auto;margin:0;grid-column:2;grid-row:1;font-family:Suisse Intl;margin-right:4px;@media ","{height:auto;display:flex;flex-direction:column;justify-content:space-between;}&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{background:#f0f0f0;border-radius:16px;margin-top:60px;}&::-webkit-scrollbar-thumb{width:5px;background:#d9d9d9;border-radius:16px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}"],v.Z.exactMedia.desktop),tu=y.ZP.div.withConfig({displayName:"styles__SkeletonProductTitleWrapper",componentId:"sc-mduq03-11"})(["display:flex;flex-direction:column;gap:6px;position:sticky;top:0;z-index:102;padding:20px 24px 0;@media ","{padding:20px 20px 0;}&:before{content:'';position:absolute;width:100%;background:white;height:calc(100% + 12px);top:0;left:0;}"],v.Z.exactMedia.desktop),td=y.ZP.div.withConfig({displayName:"styles__SkeletonProductTitle",componentId:"sc-mduq03-12"})(["height:30px;width:80%;border-radius:10px;",""],e7),tp=y.ZP.div.withConfig({displayName:"styles__SkeletonProductPriceWeightWrapper",componentId:"sc-mduq03-13"})(["display:inline-flex;gap:24px;width:fit-content;"]),tf=y.ZP.div.withConfig({displayName:"styles__SkeletonProductPrice",componentId:"sc-mduq03-14"})(["width:70px;height:40px;border-radius:10px;"," "," &{position:relative;font-size:20px;line-height:28px;}"],e7,tp),th=y.ZP.div.withConfig({displayName:"styles__SkeletonProductDescriptionWrapper",componentId:"sc-mduq03-15"})(["margin-top:20px;display:flex;flex-direction:column;gap:6px;"]),tm=y.ZP.div.withConfig({displayName:"styles__SkeletonProductDescription",componentId:"sc-mduq03-16"})(["height:13px;width:80%;border-radius:10px;"," &:nth-child(1){width:60%;}&:nth-child(2){width:70%;}&:nth-child(3){width:80%;}&:nth-child(4){width:50%;}@media ","{padding-bottom:8px;border-bottom:none;}"],e7,v.Z.exactMedia.desktop),tg=y.ZP.div.withConfig({displayName:"styles__SkeletonProductExtrasWrapper",componentId:"sc-mduq03-17"})(["margin-top:24px;padding:0 24px;display:flex;flex-direction:column;gap:6px;@media ","{margin-top:16px;margin-bottom:8px;padding:0 20px;}"],v.Z.exactMedia.desktop),ty=y.ZP.div.withConfig({displayName:"styles__SkeletonProductExtras",componentId:"sc-mduq03-18"})(["display:flex;flex-direction:column;justify-content:center;gap:14px;"]),tv=y.ZP.div.withConfig({displayName:"styles__SkeletonProductExtra",componentId:"sc-mduq03-19"})(["height:20px;width:80%;border-radius:10px;"," position:relative;margin-left:35px;&::before{content:'';position:relative;top:-2px;left:-35px;width:22px;height:22px;border:1px solid #DEDEDE;display:inline-block;border-radius:4px;}&:nth-child(1){width:60%;}&:nth-child(2){width:70%;}&:nth-child(3){width:80%;}&:nth-child(4){width:50%;}"],e7),tb=y.ZP.div.withConfig({displayName:"styles__SkeletonProductParamsWrapper",componentId:"sc-mduq03-20"})(["margin-top:16px;@media ","{margin-top:24px;}"],v.Z.exactMedia.desktop),tx=y.ZP.div.withConfig({displayName:"styles__SkeletonProductParams",componentId:"sc-mduq03-21"})(["display:flex;gap:40px;margin-top:8px;"]),tw=y.ZP.div.withConfig({displayName:"styles__SkeletonProductParam",componentId:"sc-mduq03-22"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;"]),t_=y.ZP.div.withConfig({displayName:"styles__SkeletonProductParamValue",componentId:"sc-mduq03-23"})(["height:21px;width:31px;border-radius:10px;",""],e7),tC=y.ZP.div.withConfig({displayName:"styles__SkeletonProductParamName",componentId:"sc-mduq03-24"})(["height:10px;width:18px;border-radius:5px;",""],e7),tS=y.ZP.div.withConfig({displayName:"styles__SkeletonProductCommentWrapper",componentId:"sc-mduq03-25"})(["margin-top:24px;width:100%;height:49px;padding:16px 43px 16px 16px;border:1px solid #DEDEDE;border-radius:14px;@media ","{margin-top:16px;}"],v.Z.exactMedia.desktop),tE=y.ZP.div.withConfig({displayName:"styles__SkeletonProductAbout",componentId:"sc-mduq03-26"})(["margin-left:20px;margin-right:20px;@media ","{margin-right:12px;}"],v.Z.exactMedia.desktop),tT=(0,y.F4)(["from{transform:translateY(100%);
22box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),tk=y.ZP.div.withConfig({displayName:"styles__SkeletonProductCheckoutWrapper",componentId:"sc-mduq03-27"})(["display:flex;flex-direction:row;align-items:center;z-index:109;bottom:0;padding:16px;background-color:#00000073;background:#ffffff;border-radius:32px 32px 0 0;box-shadow:0px -4px 20px rgba(255,255,255,0.8);animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transform:unset;column-gap:20px;grid-column:2;grid-row:2;@media ","{grid-column:1;grid-row:2;}"],tT,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,v.Z.exactMedia.desktop),tj=y.ZP.div.withConfig({displayName:"styles__SkeletonProductCheckoutButtonWrapper",componentId:"sc-mduq03-28"})(["flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;column-gap:8px;"]),tO=y.ZP.div.withConfig({displayName:"styles__SkeletonSkeletonProductImg",componentId:"sc-mduq03-29"})(["flex:1;height:459px;max-height:459px;margin-left:16px;padding-bottom:0;border-radius:16px;"," @media ","{height:0;padding-bottom:calc(100% * 459 / (674 - 16));}@media ","{margin-left:20px;margin-right:20px;padding-bottom:calc(100% * 459 / (674 - 16));}"],e7,v.Z.exactMedia.widescreen,v.Z.exactMedia.desktop),tP=y.ZP.button.withConfig({displayName:"styles__SkeletonProductCheckoutButton",componentId:"sc-mduq03-30"})(["flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-width:192px;height:62px;"," color:#ffffff;border:none;border-radius:14px;transition:all 0.3s;-moz-user-select:none;-khtml-user-select:none;user-select:none;font-family:'Suisse Intl';line-height:24px;letter-spacing:0.015em;font-weight:400;"],e7);var tI=n(85893);let tN=e=>{let{condition:t,children:n}=e;return t?(0,tI.jsx)(te,{children:n}):n},tD=()=>(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(tu,{children:(0,tI.jsx)(td,{})}),(0,tI.jsx)(tl,{children:(0,tI.jsxs)(th,{children:[[void 0,void 0,void 0].map((e,t)=>(0,tI.jsx)(tm,{},t)),(0,tI.jsx)(tm,{})]})})]});function tM(e){let{onClose:t}=e,n=e1("(max-width: 1024px)");return(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(tn,{onClick:t,children:(0,tI.jsx)(eH.Z,{})}),(0,tI.jsxs)(e8,{children:[(0,tI.jsxs)(tN,{condition:n,children:[n&&(0,tI.jsx)(tD,{}),(0,tI.jsxs)(tt,{children:[(0,tI.jsxs)(tr,{children:[(0,tI.jsx)(ti,{}),(0,tI.jsx)(ti,{})]}),(0,tI.jsx)(tO,{})]}),(0,tI.jsxs)(tc,{children:[!n&&(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(tD,{}),(0,tI.jsx)(ta,{children:(0,tI.jsx)(ts,{})})]}),(0,tI.jsx)(tg,{children:(0,tI.jsx)(ty,{children:[void 0,void 0,void 0].map((e,t)=>(0,tI.jsx)(tv,{},t))})}),n&&(0,tI.jsx)(ta,{children:(0,tI.jsx)(ts,{})}),(0,tI.jsxs)(tE,{children:[!n&&(0,tI.jsx)(tS,{}),(0,tI.jsxs)(tb,{children:[(0,tI.jsx)(to,{}),(0,tI.jsx)(tx,{children:[void 0,void 0,void 0,void 0].map((e,t)=>(0,tI.jsxs)(tw,{children:[(0,tI.jsx)(t_,{}),(0,tI.jsx)(tC,{})]},t))})]}),n&&(0,tI.jsx)(tS,{})]})]})]}),(0,tI.jsxs)(tk,{children:[(0,tI.jsx)(tf,{}),(0,tI.jsx)(tj,{children:(0,tI.jsx)(tP,{})})]})]})]})}function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(t){(0,p.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let tR=e=>{let{condition:t,children:n}=e;return t?(0,tI.jsx)(C,{children:n}):n},tZ=e=>{let{isTablet:t,title:n,isCompliment:r,price:i,weight:o,description:a,video:s}=e;return(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(A,{children:(0,tI.jsx)(L,{children:n})}),(0,tI.jsxs)(D,{children:[(0,tI.jsx)(z,{children:(0,tI.jsxs)(F,{children:[(0,tI.jsx)(g.D,{children:a}),s&&(0,tI.jsx)(B,{children:(0,tI.jsxs)(eJ(),{target:"_blank",href:s,children:[(0,tI.jsx)("span",{children:"Видеорецепт"}),(0,tI.jsx)(eL,{})]})})]})}),t&&(0,tI.jsxs)(R,{children:[(0,tI.jsx)(Z,{children:i}),(0,tI.jsx)(ea,{children:(0,tI.jsx)(es,{children:o})})]})]})]})};async function tz(e){return"clipboard"in navigator?await navigator.clipboard.writeText(e):document.execCommand("copy",!0,e)}let tF=e=>{let{isOpen:t,setIsOpen:n}=e,r=()=>{ym(23457298,"reachGoal","share_from_card"),n(!1)};return t?(0,tI.jsxs)(j,{isOpen:t,children:[(0,tI.jsx)("div",{className:"title",children:"Поделиться"}),(0,tI.jsxs)(O,{children:[(0,tI.jsxs)("div",{className:"link",onClick:()=>{tz(window.location.href).then(()=>{}).catch(e=>{console.log(e)}).finally(()=>{r()})},children:[(0,tI.jsx)(eP,{}),"Скопировать ссылку"]}),(0,tI.jsxs)(eC.Z,{url:window.location.href,onShareWindowClose:r,children:[(0,tI.jsx)(eT,{})," Whatsapp"]}),(0,tI.jsxs)(e_.Z,{url:window.location.href,onShareWindowClose:r,children:[(0,tI.jsx)(ej,{})," Telegram"]})]})]}):null},tB=(0,e4.P1)(e=>e.restaurants,e=>e.restaurants);function tH(e){let{type:t="page",productId:n,preorderPages:r,preorderPage:i,complimentType:o,complimentId:a=null,productData:s,cartItem:l,cartType:c="default",onClose:u,closeSearchModal:d,restaurant:p,section:y="",categoryName:v=""}=e,b=(0,h.v9)(e=>e.cart),x=(0,h.v9)(e=>e.profile),w=(0,h.v9)(tB),C=(0,m.useRouter)(),j=(0,h.I0)(),{createModal:O}=(0,eW.ZP)(),{0:D,1:A}=(0,f.useState)("page"===t?s:null),{0:L,1:R}=(0,f.useState)("page"!==t),{0:z,1:F}=(0,f.useState)(l?.comment??""),{0:B,1:ed}=(0,f.useState)([]),{0:ev,1:e_}=(0,f.useState)([]),{0:eC,1:eE}=(0,f.useState)(!1),eT=e1("(max-width: 1024px)"),ek=(0,f.useRef)(null),ej=(0,f.useRef)(null),eO=(0,f.useMemo)(()=>"self"===x.deliveryType?x.selfRestaurantId:x.deliveryRestaurantId,[x.deliveryType,x.deliveryRestaurantId,x.selfRestaurantId]),eP=(0,f.useMemo)(()=>p??(w.find(e=>e.id===eO)||null),[eO,w]),eI=(0,f.useMemo)(()=>"preorder"===c,[c]),eD=(0,f.useCallback)(()=>{eE(!0)},[]);(0,e2.Z)(ek,()=>eE(!1)),(0,f.useEffect)(()=>{j((0,eY.Ah)())},[]),(0,f.useEffect)(()=>{"search"===t&&ym(23457298,"reachGoal","search_open"),ym(23457298,"reachGoal","open_card")},[]),(0,f.useEffect)(()=>
22{if(!D||!x?.user?.phone)return;let{title:e,sku:t,price:n}=D;(0,e0.Iy)({title:e,sku:String(t),price:n/100,qty:1,section:y,category:v},x.user.userId)},[D,x.user.phone]),(0,f.useEffect)(()=>(["storefront","search","recommendation","favorite"].includes(t)&&(0,eq.ZP)("products/"+n).then(e=>{eI?A(tL(tL({},e?.data),{},{"preorder-pages":r})):A(e?.data||{}),clearTimeout(ej.current),ej.current=setTimeout(()=>{R(!1)},500)}),()=>{clearTimeout(ej.current)}),[]),(0,f.useEffect)(()=>{if(!D)return;let{deliveryType:e,deliveryIsoTime:t,selfIsoTime:n}=x,r="self"===e?n:t;null===r&&(r=new Date(new Date).toISOString());let i=e6()().utc().format("YYYY-MM-DD"),o=0===e6()(r).diff(i,"d");e_(D?.variants?.filter(e=>{if(eI)return!0;let t=e?.restaurants?.find(e=>e.id===eP?.id);return!(!t||t?.["in-stop-list"]&&!eI&&o)&&("self"!==x.deliveryType||t?.["display-in-pickup"]!==!1)&&("self"===x.deliveryType||t?.["available-for-delivery"]!==!1)})?.map((e,t)=>{let n=!1;return l?.variant?.id===e?.id&&(n=!0),l||0!==t||(n=!0),tL(tL({},e),{},{isChecked:n})})),ed(D?.extras?.filter(e=>{let t=e?.restaurants?.find(e=>e.id===eP?.id);return!!eI||!(!t||t?.["in-stop-list"]&&!eI&&o)&&("self"!==x.deliveryType||t?.["display-in-pickup"]!==!1)&&("self"===x.deliveryType||t?.["available-for-delivery"]!==!1)})?.map((e,t)=>(l?.extras?.find(t=>t.id===e.id)&&(e=tL(tL({},e),{},{isChecked:!0})),e))||[])},[D,eP]);let eA=(0,f.useMemo)(()=>eI?[]:D&&(0,eV.g7)(D,x,"productcard",eP),[D,x,eI]),eL=(0,f.useMemo)(()=>!!l,[l]),eZ=(0,f.useMemo)(()=>!!(a??!!l?.["compliment-id"]),[a,l]),eF=(0,f.useMemo)(()=>!!eI||(eZ&&eP?(0,eV._A)(D,{deliveryType:"self",deliveryRestaurantId:eP?.id,selfRestaurantId:eP?.id,deliveryIsoTime:null,selfIsoTime:null,autoTime:x.autoTime},"productcard",!1,c):D&&(0,eV._A)(D,x,"productcard",!1,c)),[D,x,eI]),eK=(0,f.useMemo)(()=>{if(!eF){if(!D?.["available-for-delivery"]&&!D?.["available-for-pickup"]&&!ev&&!B)return"Нет в продаже";if(D?.["in-stop-list"]||D?.restaurants?.find(e=>e.id===eP?.id)?.["in-stop-list"]){let e,t,n;let r=new Date,i=e6()(r).tz().format("YYYY-MM-DD"),o="self"===x.deliveryType?x.selfIsoTime:x.deliveryIsoTime;null===o&&(o=new Date(r).toISOString());let a=e6()().tz().format("YYYY-MM-DD"),s=e6()(o).tz().format("YYYY-MM-DD"),l=D?.schedules?.find(e=>e.date===(s??a));if(!l||l["is-closed"]||l?.is24||(e=parseInt(l.from)),t="self"===x.deliveryType?eP?.schedule?.pickup?.filter(e=>e.date===i):eP?.schedule?.delivery?.filter(e=>e.date===i)){let e=t?.[t.length-1]||null;n=parseInt(e?.["time-start"])||0}return e&&n>e&&(e=n),`Будет доступно завтра с ${e||n}`}return eA?.[0]?.replace("Готовим","Доступно")}},[eA,ev,B,D?.id,eF]),eJ=e=>{ed(B.map(t=>t.id===e?tL(tL({},t),{},{isChecked:!t.isChecked}):t))},e4=e=>{e_(ev.map(t=>tL(tL({},t),{},{isChecked:t.id===e})))},e3=e=>{"Escape"===e.key&&(window.history.replaceState(null,"Кофемания",C.pathname),setTimeout(()=>{j((0,eY.Mr)())},300))},e7=(0,f.useMemo)(()=>D&&-1!==x.wishlist.findIndex(e=>e.product.id===D.id),[x.wishlist,D]),{0:e8,1:te}=(0,f.useState)(()=>e7);(0,f.useEffect)(()=>{te(e7)},[e7]);let tt=async()=>{if(e7){let e=x.wishlist.find(e=>e.product.id===D.id);te(!1),D&&j((0,eU.$f)(e))}else te(!0),D&&!await j((0,eU.Mp)(D,y,v))&&te(!1),ym(23457298,"reachGoal","add_to_favourites_card")};(0,f.useEffect)(()=>(window.addEventListener("keydown",e3),()=>{window.removeEventListener("keydown",e3)}),[]);let tn=(0,f.useMemo)(()=>ev?.filter(e=>e?.isChecked||!1)?.[0]||null,[ev]),tr=(0,f.useMemo)(()=>B?.filter(e=>e?.isChecked||!1)||null,[B]),ti=(0,f.useMemo)(()=>tr?.reduce((e,t)=>e+t?.price,D?.price??0)??0,[tr,D?.id]),to=async()=>{if(!x?.isAuth){let{payload:{stageCode:e}={}}=await j((0,eU.sB)({createModal:O,product:D,variantId:tn?.id||null}))||{};if("success"!==e)return}if(eI){for(let e of tf){let t=e.changes;if(t){for(let n of t)if("success"!==n.status&&!e?.id)return}}let e=(0,eQ.$7)(D,tf);e||O(e9.Z,{name:"PreorderAddProductModal"}).then(e=>{if("cart"===e.stageCode){setTimeout(()=>{location.href="/cart"},500);return}"clear"===e.stageCode&&(j((0,e$.UY)(c)),setTimeout(()=>{j((0,e$.dA)(D,null,[],"","menu",null,void 0,c,t,i,y,v,"Меню"))},500))}),e&&j((0,e$.dA)(D,null,[],"","menu",null,void 0,c,t,i,y,v,"Меню"));return}if(D){let e=j((0,e$.dA)(D,tn,tr,z,null,null,a,c,t,null,y,v,"Карточка товара"));await e,"search"===t&&ym(23457298,"reachGoal","add_from_cart")}ym(23457298,"reachGoal","add_to_cart_from_the_card")},ta=()=>
22{if(!x?.isAuth&&D&&j((0,eU.sB)({createModal:O})),x?.isAuth){if(!eI&&th){j((0,e$.di)(th));return}D&&j((0,e$.nt)(D,O))}},ts=()=>new Promise((e,t)=>{let n=setInterval(()=>{(tf?.map(e=>!!e?.changes?.find(e=>"pending"===e.status))).find(e=>e)||(clearInterval(n),e("success"))},500)}),tl=async()=>{if(tg){if(!x?.isAuth){D&&j((0,eU.sB)({createModal:O}));return}u({}),d&&d(),await ts(),C.push("/cart")}else await to()},tc=async()=>{if(!x?.isAuth){D&&j((0,eU.sB)({createModal:O}));return}l&&(R(!0),await (0,e$.JA)(tL(tL({},l),{},{variant:tn,extras:tr,comment:z}))),u({})},tu=async()=>{if(!x?.isAuth){D&&j((0,eU.sB)({createModal:O}));return}l&&(R(!0),await (0,e$.JA)(tL(tL({},l),{},{variant:tn,extras:tr,comment:z}))),u({}),C.push("/cart")},td=async()=>{if(!x?.isAuth){D&&j((0,eU.sB)({createModal:O}));return}l&&j((0,e$.B8)(l,y)),await ts(),u({})},tp=async()=>{"compliment-to-cart"===o&&(await to(),await ts(),u({})),"compliment-on-table"===o&&u({stageCode:"ok",item:{product:D,checkedVariant:tn,checkedExtras:tr,comment:z}})},tf=(0,f.useMemo)(()=>b?.items.filter(e=>e.type===c),[b?.items]),th=(0,f.useMemo)(()=>(0,eQ.wg)(tf,{product:D,variant:tn,extras:tr,comment:z,"compliment-id":a,type:c}),[tf,D,tn,tr,z,a,c]),tm=(0,f.useMemo)(()=>eI?tf.filter(e=>e?.product?.["preorder-pages"]?.map(e=>e.id)?.includes(i?.id))?.length||0:tf?.length||0,[tf,eI]),tg=(0,f.useMemo)(()=>eI?!!tf.find(e=>e.product.id===D?.id&&e?.product?.["preorder-pages"]?.map(e=>e.id)?.includes(i?.id))?.amount:!!th?.amount,[tf,th,D?.id,eI]),ty=(0,f.useMemo)(()=>eI?tf.filter(e=>e.product.id===D?.id&&e.type===c)?.reduce((e,t)=>e+t?.amount,0)||0:th?.amount||0,[tf,th,D?.id,eI]);(0,f.useMemo)(()=>(0,eG.X7)(tm||1),[tm]),(0,f.useMemo)(()=>!!(tf?.map(e=>!!e?.changes?.find(e=>"pending"===e.status))).find(e=>e),[tf]);let tv=(0,f.useRef)();(0,f.useEffect)(()=>L?()=>null:(0,eX.Z)({modal:tv.current?.parentNode,content:tv.current,onClose:()=>{Object.assign(tv.current?.parentNode.style,{transform:"translateY(100%)","transition-duration":"300ms"}),u({})}}),[u,L]);let tb=(0,f.useMemo)(()=>{let e=D?.images?.map(e=>{let t=[...e?.thumbnails??[]];return t.pop()?.url??""});return e?.length?e:["/static/images/cabinet/no-photo-image.jpg"]},[D?.images]),tx=(0,f.useMemo)(()=>new Intl.NumberFormat("ru",{style:"currency",currency:"RUB",minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:!0}).format(D?.price/100),[D?.price]);return(0,tI.jsx)(tI.Fragment,{children:L?(0,tI.jsx)(tM,{onClose:u}):(0,tI.jsx)(tI.Fragment,{children:(0,tI.jsxs)(_,{ref:tv,isLabel:!!eA?.length,className:`analytics-product-${D.id}`,children:[(0,tI.jsxs)(tR,{condition:eT,children:[eT&&(0,tI.jsx)(tZ,{isTablet:eT,title:D?.title,isCompliment:eZ,price:tx,weight:D?.weight.replace("г"," г"),description:D?.description,video:D?.video}),(0,tI.jsxs)(S,tL(tL({},eT&&{style:{marginBottom:22}}),{},{children:[(0,tI.jsx)(E,{onClick:u,children:(0,tI.jsx)(eH.Z,{})}),(0,tI.jsxs)(T,{children:[x?.isAuth&&!eI&&(0,tI.jsx)(k,{onClick:tt,children:e8?(0,tI.jsx)(eN,{}):(0,tI.jsx)(eM,{})}),(0,tI.jsxs)("div",{ref:ek,children:[(0,tI.jsx)(k,{children:(0,tI.jsx)(eS.Z,{onClick:eD})}),(0,tI.jsx)(tF,{isOpen:eC,setIsOpen:eE})]})]}),(0,tI.jsx)(eR.O,{images:tb,labels:eA||[],title:D.title})]})),(0,tI.jsxs)(M,{children:[!eT&&(0,tI.jsx)(tZ,{isTablet:eT,title:D?.title,description:D?.description,video:D?.video}),!!B?.length&&(0,tI.jsxs)(H,{children:[(0,tI.jsx)(P,{children:"Дополнительно"}),(0,tI.jsx)($,{children:B?.map((e,t)=>tI.jsxs(U,{children:[tI.jsx(Y,{isChecked:!!e.isChecked,id:`${t}`,onClick:()=>eJ(e.id)}),tI.jsxs(G,{onClick:()=>eJ(e.id),children:[e.title,tI.jsx(V,{children:0===e.price||eZ?"":` +${e.price/100} ₽`})]})]},t))})]}),!!ev?.length&&(0,tI.jsxs)(q,{children:[(0,tI.jsx)(P,{children:"Варианты приготовления"}),(0,tI.jsx)(W,{children:ev?.map((e,t)=>tI.jsxs(X,{children:[tI.jsx(K,{isChecked:!!e?.isChecked,id:`${t}`,onClick:()=>e4(e.id)}),tI.jsxs(J,{onClick:()=>e4(e.id),children:[e.title,tI.jsx(Q,{children:0===e.price||eZ?"":` +${e.price/100} ₽`})]})]},t))})]}),(0,tI.jsxs)(eu,{children:[!eT&&!eI&&(0,tI.jsx)(ec,{children:(0,tI.jsx)(e5.Z,{placeholder:"Комментарий к блюду",content:z,onChange:F,isCleanable:!0})}),eT&&(!!B?.length||!!ev?.length)&&(0,tI.jsx)(I,{children:(0,tI.jsx)(N,{})}),!!D?.composition?.length&&(0,tI.jsxs)(ee,{children:[(0,tI.jsxs)(P,{children:["Состав",eT&&D?.allergens?.length?" и аллерÐ
22³ÐµÐ½Ñ‹":""]}),(0,tI.jsx)(et,{children:(0,tI.jsx)(g.D,{children:D?.composition||""})})]}),!eT&&!!D?.allergens?.length&&(0,tI.jsxs)(en,{children:[(0,tI.jsx)(P,{children:"Аллергены"}),(0,tI.jsx)(er,{children:D?.allergens?.map(e=>e.name).join(", ")})]}),eT&&(0,tI.jsx)(I,{children:(0,tI.jsx)(N,{})}),(0,tI.jsxs)(ei,{children:[(0,tI.jsx)(P,{children:"Пищевая ценность"}),(0,tI.jsxs)(eo,{children:[(0,tI.jsxs)(ea,{children:[(0,tI.jsx)(es,{children:D?.calories}),(0,tI.jsx)(el,{children:"ккал"})]}),(0,tI.jsxs)(ea,{children:[(0,tI.jsxs)(es,{children:[D?.belok," г"]}),(0,tI.jsx)(el,{children:"белки"})]}),(0,tI.jsxs)(ea,{children:[(0,tI.jsxs)(es,{children:[D?.uglevod," г"]}),(0,tI.jsx)(el,{children:"углеводы"})]}),(0,tI.jsxs)(ea,{children:[(0,tI.jsxs)(es,{children:[D?.jir," г"]}),(0,tI.jsx)(el,{children:"жиры"})]}),(0,tI.jsxs)(ea,{children:[(0,tI.jsx)(es,{children:D?.weight?.replace("г"," г")}),(0,tI.jsx)(el,{children:"вес"})]})]})]}),eT&&(0,tI.jsx)(I,{children:(0,tI.jsx)(N,{})}),eT&&!eI&&(0,tI.jsx)(ec,{children:(0,tI.jsx)(e5.Z,{placeholder:"Комментарий к блюду",content:z,onChange:F,isCleanable:!0})})]})]})]}),(0,tI.jsxs)(ep,{isOpen:!0,inCart:tg,children:[(0,tI.jsxs)(Z,{children:[eZ||!ti?"0":(ti/100).toLocaleString("ru-RU")," ₽"]}),(0,tI.jsxs)(ef,{inCart:tg,children:[eF&&eL&&!eZ&&(0,tI.jsx)(eh,{onClick:tc,children:(0,tI.jsx)(em,{children:"Сохранить"})}),eF&&eL&&eZ&&(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(eh,{onClick:tu,children:(0,tI.jsx)(em,{children:"Перейти в корзину"})}),(0,tI.jsx)(eh,{onClick:td,children:(0,tI.jsx)(em,{children:"Отменить"})})]}),!eF&&eL&&(0,tI.jsx)(eg,{children:eK}),!eL&&eZ&&(0,tI.jsx)(eh,{onClick:()=>tp(),children:(0,tI.jsx)(em,{children:"Продолжить"})}),!eL&&!eZ&&(0,tI.jsxs)(tI.Fragment,{children:[tg&&(0,tI.jsx)(ey,{children:(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(eb,{className:"del-from-cart",onClick:()=>ta(),children:(0,tI.jsx)(eB,{})}),(0,tI.jsx)(ew,{className:"count",children:ty??"1"}),(0,tI.jsx)(ex,tL(tL(tL({className:"add-to-cart"},!eF&&{"data-tooltip":`${eK}`}),!eF&&{disabled:!0}),{},{onClick:()=>to(),children:(0,tI.jsx)(ez,{})}))]})}),(eF||tg)&&(0,tI.jsx)(eh,{onClick:()=>tl(),children:(0,tI.jsx)(em,{className:"add-to-cart analytics-cart-add-fix",children:tg?"Перейти в корзину":"Добавить в корзину"})}),!eF&&!tg&&(0,tI.jsx)(eg,{children:eK})]})]})]})]})})})}},86071:function(e,t,n){"use strict";n.d(t,{Z:function(){return ep}});var r,i,o,a=n(67294),s=n(87379);let l=s.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-wjg2u2-0"})(["position:fixed;inset:0;z-index:1000;height:100%;width:100%;background-color:",";bottom:0;transition:all 0.2s;opacity:",";overscroll-behavior:contain;"],e=>e.isOpen?"rgba(0, 0, 0, 0.2)":"transparent",e=>e.isOpen?"1":"0"),c=s.ZP.div.withConfig({displayName:"styles__ModalContainer",componentId:"sc-wjg2u2-1"})(["display:flex;justify-content:center;position:fixed;z-index:501;height:auto;width:calc(100% - ","px);top:","px;left:0;margin:0 auto;padding:0 40px;align-items:start;opacity:",";background-color:transparent;"],e=>e.scrollbarWidth,e=>e.top||63,e=>e.isOpen?"1":"0"),u=s.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-wjg2u2-2"})(["display:flex;flex-direction:column;z-index:501;max-height:748px;max-width:1204px;width:100%;padding:0;align-items:start;transition:all 0.2s;opacity:",";background-color:transparent;height:auto;min-height:min-content;max-height:min(748px,calc(100vh - 100px));& > .input-call{margin-top:20px;}& > .timer{height:40px;margin-top:10px;}& > .input-auth-code{margin-top:20px;}& > .set-phone{margin-top:6px;}& > .resend-code,& > .call-me,& > .help-sms{height:40px;}& > span.help{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;text-align:center;min-height:40px;display:flex;flex-direction:column;justify-content:center;padding-top:2px;padding-bottom:2px;}"],e=>e.isOpen?"1":"0");s.ZP.div.withConfig({displayName:"styles__ModalTitleWrapper",componentId:"sc-wjg2u2-3"})(["display:flex;flex-direction:row;width:100%;justify-content:space-between;
22height:min-content;margin-bottom:20px;& > div > span{display:flex;flex-direction:row;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;display:flex;align-items:center;justify-content:center;text-align:center;}& > div{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:center;}"]),s.ZP.span.withConfig({displayName:"styles__ModalSubTitleWrapper",componentId:"sc-wjg2u2-4"})(["text-indent:1em;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;text-align:center;"]),s.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-wjg2u2-5"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;text-align:center;color:#376F62;background:inherit;border:none;padding:0;cursor:pointer;outline:inherit;user-select:none;&:focus{background:inherit;}"]);var d=n(89757),p=n(8307),f=n(9473),h=n(11163);(0,s.F4)(["from{opacity:0;}to{opacity:1;}"]);let m=s.ZP.div.withConfig({displayName:"styles__MainBlock",componentId:"sc-1bixyv-0"})(["width:100%;display:flex;justify-content:start;flex-direction:column;height:100%;overflow:hidden;border-radius:12px;background-color:transparent;"]),g=s.ZP.div.withConfig({displayName:"styles__SpinnerWrapper",componentId:"sc-1bixyv-1"})(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;background:#ffffff;z-index:10;opacity:",";visibility:",";transition:all 0.2s;flex:1;"],e=>e.isDataLoading?1:0,e=>e.isDataLoading?"visible":"hidden"),y=(0,s.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]);s.ZP.div.withConfig({displayName:"styles__Spinner",componentId:"sc-1bixyv-2"})(["content:url('/static/images/search/circle.png');width:48px;height:48px;animation:"," 1s linear infinite;"],y);let v=s.ZP.div.withConfig({displayName:"styles__SearchHeader",componentId:"sc-1bixyv-3"})(["position:sticky;top:0;width:100%;background-color:transparent;z-index:1;padding:0;transition:all 0.1s linear;"]),b=s.ZP.div.withConfig({displayName:"styles__SearchWrapper",componentId:"sc-1bixyv-4"})(["margin-top:8px;width:100%;padding:16px;background:#ffffff;border-radius:24px;box-shadow:0px 2px 16px 0px #00000024;max-height:648px;padding-right:5px;@-moz-document url-prefix(){padding-right:3px;}"]),x=s.ZP.div.withConfig({displayName:"styles__SearchInputWrapper",componentId:"sc-1bixyv-5"})(["display:flex;justify-content:space-between;align-items:center;gap:8px;position:relative;width:100%;height:50px;"]),w=s.ZP.input.withConfig({displayName:"styles__SearchInput",componentId:"sc-1bixyv-6"})(["width:100%;height:100%;padding:0 53px 0 16px;border:1px solid #f5f5f5;background:#f5f5f5;border-radius:14px;font-family:'Suisse Intl';font-size:17px;line-height:26px;font-weight:400;color:#212121;transition:all 0.2s ease-out;&:focus{border:1px solid #376f62;background:#ffffff;}&::placeholder{color:#a0a1a4;}"]),_=s.ZP.div.withConfig({displayName:"styles__SearchInputIconWrapper",componentId:"sc-1bixyv-7"})(["position:absolute;display:flex;align-items:center;right:16px;width:24px;height:24px;opacity:",";visibility:",";transform:scaleX(",");transition:transform 0.2s,opacity 0.2s ease-out;& > svg{position:absolute;top:0;left:0;width:24px;height:24px;}"],e=>e.isVisible?"1":"0",e=>e.isVisible?"visible":"hidden",e=>e.isVisible?"1":"0"),C=s.ZP.div.withConfig({displayName:"styles__DeleteIconWrapper",componentId:"sc-1bixyv-8"})(["position:absolute;display:flex;align-items:center;right:16px;min-width:22px;min-height:22px;opacity:",";visibility:",";transform:scaleX(",");transition:transform 0.2s,opacity 0.2s ease-out;cursor:pointer;& > svg{position:absolute;top:0;left:0;min-width:22px;min-height:22px;}"],e=>e.isVisible?"1":"0",e=>e.isVisible?"visible":"hidden",e=>e.isVisible?"1":"0"),S=s.ZP.div.withConfig({displayName:"styles__LoadingSpinnerWrapper",componentId:"sc-1bixyv-9"})(["position:absolute;display:flex;align-items:center;justify-content:center;right:16px;min-width:24px;min-height:24px;opacity:",";visibility:",";transform:scaleX(",");transition:transform 0.2s,opacity 0.2s ease-out;& > svg{position:absolute;top:0;left:0;min-width:24px;min-height:24px;}"],e=>e.isVisible?"1":"0",e=>e.isVisible?"visible":"hidden",e=>e.isVisible?"1":"0"),E=s.ZP.div.withConfig({displayName:"styles__SearchResultsWrapper",componentId:"sc-1bixyv-10"})(["display:flex;flex-direction:column;width:100%;min-height:128px;overflow-y:auto;overscroll-behavior:contain;max-height:calc(648px - 32px);padding-right:9px;&::-webkit-scrollbar{width:5px;margin-top:20px;}&::-webkit-scrollbar-track{background:#f0f0f0;border-radius:16px;}&::-webkit-scrollbar-thumb{width:5px;background:#d9d9d9;border-radius:16px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}"]),T=s.ZP.div.withConfig({displayName:"styles__SearchResultsEmpty",componentId:"sc-1bixyv-11"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;height:128px;"]),k=(0,s.iv)(["text-align:center;font-size:16px;line-height:24px;color:#212121;font-weight:400;"]),j=s.ZP.div.withConfig({displayName:"styles__SearchResultsNotFoundTitle",componentId:"sc-1bixyv-12"})([""," font-size:18px;line-height:22px;font-weight:500;"],k),O=s.ZP.div.withConfig({displayName:"styles__SearchResultsNotFoundDescription",componentId:"sc-1bixyv-13"})([""," margin-top:4px;"],k),P=s.ZP.div.withConfig({displayName:"styles__EmptySearchInputDescription",componentId:"sc-1bixyv-14"})(["",""],k),I=s.ZP.div.withConfig({displayName:"styles__TipResultsBlock",componentId:"sc-1bixyv-15"})(["display:flex;justify-content:start;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:24px;& + ","{margin-top:-24px;}"],g),N=s.ZP.div.withConfig({displayName:"styles__TipsItem",componentId:"sc-1bixyv-16"})(["display:flex;justify-content:center;align-items:center;height:34px;font-size:14px;line-height:18px;color:#212121;font-weight:400;padding:0 12px;border-radius:10px;background:#f0f0f0;cursor:pointer;"]),D=s.ZP.div.withConfig({displayName:"styles__SearchResultsBlock",componentId:"sc-1bixyv-17"})(["display:flex;flex-direction:column;flex:1;> .has-divider{position:relative;:before{content:'';display:block;width:100%;height:0.5px;margin-top:24px;margin-bottom:24px;background-color:#d9d9d9;}}"]),M=s.ZP.div.withConfig({displayName:"styles__SearchResultsBlockTitle",componentId:"sc-1bixyv-18"})(["font-size:20px;line-height:28px;color:#212121;font-weight:500;.has-divider &{margin-top:0;}"]),A=s.ZP.div.withConfig({displayName:"styles__SearchResultsProductList",componentId:"sc-1bixyv-19"})(["padding:0;display:grid;grid-column-gap:10px;grid-row-gap:24px;grid-template-columns:1fr 1fr 1fr 1fr;margin-top:16px;"]),L=s.ZP.div.withConfig({displayName:"styles__SearchResultsEvaluationWrapper",componentId:"sc-1bixyv-20"})(["display:flex;align-items:center;justify-content:center;flex-direction:column;font-family:'Suisse Intl';text-align:center;padding:12px;margin-top:24px;margin-bottom:24px;border-radius:18px;border:1px solid #dedede;height:85px;.close-icon{position:absolute;top:12px;right:12px;cursor:pointer;}"]),R=s.ZP.div.withConfig({displayName:"styles__EvaluationQuestion",componentId:"sc-1bixyv-21"})(["font-size:14px;line-height:18px;font-weight:400;color:#212121;margin-bottom:9px;"]),Z=s.ZP.div.withConfig({displayName:"styles__EvaluationButtonWrapper",componentId:"sc-1bixyv-22"})(["padding:0;display:flex;gap:6px;align-self:stretch;"]),z=s.ZP.button.withConfig({displayName:"styles__EvaluationButton",componentId:"sc-1bixyv-23"})(["display:flex;justify-content:center;align-items:center;flex:1;height:34px;width:133px;font-size:14px;line-height:15px;font-weight:500;background:",";border-radius:9px;border:none;color:",";cursor:pointer;transition:all 0.2s;> svg{margin-right:6px;}&:active{background:",";}"],e=>"yes"===e["data-type"]?"#EBF1EF":"#FDEDEC",e=>"yes"===e["data-type"]?"#48907F":"#EC4C41",e=>"yes"===e["data-type"]?"#C1D2CE":"#F9C8C4"),F=s.ZP.div.withConfig({displayName:"styles__Gratitude",componentId:"sc-1bixyv-24"})(["text-align:center;> span:first-of-type{display:block;font-size:20px;line-height:28px;font-weight:500;margin-bottom:6px;}> span:last-of-type{display:block;font-size:16px;line-height:21px;font-weight:400;}"]);var B=n(53045),H=n(15340);function $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var U=e=>{let{title:t,titleId:n,...i}=e;return a.createElement("svg",$({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},i),t?a.createElement("title",{id:n},t):null,r||(r=a.createElement("path",{d:"M13.583 5.332H9.842l.748-2.245a1.338 1.338 0 0 0-.183-1.201 1.34 1.34 0 0 0-1.083-.554H8.25a.669.669 0 0 0-.513.24l-3.133 3.76H2.916c-.735 0-1.333.598-1.333 1.333v6c0 .736.598 1.334 1.333 1.334h8.872a1.34 1.34 0 0 0 1.248-.866l1.838-4.9a.665.665 0 0 0 .042-.234V6.665c0-.735-.598-1.333-1.333-1.333ZM2.916 6.665H4.25v6H2.916v-6Zm10.667 1.213-1.795 4.787H5.583V6.24l2.979-3.575h.764L8.284 5.787a.665.665 0 0 0 .632.878h4.667v1.213Z",fill:"#48907F"})))};function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var G=e=>{let{title:t,titleId:n,...r}=e;return a.createElement("svg",Y({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?a.createElement("title",{id:n},t):null,i||(i=a.createElement("path",{d:"M14.083 10h-3.741l.748 2.245c.135.405.067.854-.183 1.201-.25.347-.655.554-1.083.554H8.75a.669.669 0 0 1-.513-.24L5.104 10H3.416a1.335 1.335 0 0 1-1.333-1.333v-6c0-.736.598-1.334 1.333-1.334h8.872a1.34 1.34 0 0 1 1.248.866l1.838 4.9a.665.665 0 0 1 .042.234v1.334c0 .735-.598 1.333-1.333 1.333ZM3.416 8.667H4.75v-6H3.416v6Zm10.667-1.213-1.795-4.787H6.083v6.425l2.979 3.575h.764L8.784 9.545a.665.665 0 0 1 .632-.878h4.667V7.454Z",fill:"#EC4C41"})))};function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var q=e=>{let{title:t,titleId:n,...r}=e;return a.createElement("svg",V({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?a.createElement("title",{id:n},t):null,o||(o=a.createElement("path",{d:"M12.759 3.226a.842.842 0 0 1 0 1.192L9.185 7.992l3.574 3.574a.842.842 0 0 1-1.192 1.191L7.993 9.183 4.42 12.757a.842.842 0 1 1-1.191-1.191l3.574-3.574-3.574-3.574a.842.842 0 1 1 1.191-1.192l3.574 3.575 3.574-3.575a.842.842 0 0 1 1.192 0Z",fill:"#A0A1A4"})))}
22,W=n(88617),X=n(50555),K=n(68697),J=n(68179),Q=n(5292),ee=n(47041),et=n(85893),en=n(83454);function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach(function(t){(0,p.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let eo=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>e.apply(this,i),n)}},ea=(0,K.P1)(e=>e.cart?.items,e=>e.filter(e=>"default"===e.type)||[]),es=(0,K.P1)(e=>e.profile,e=>e),el=(0,K.P1)(e=>e.restaurants,e=>e.restaurants),ec=(0,K.P1)(e=>e.restaurants,e=>e.categories);function eu(e){let{onClose:t,onClick:n}=e;(0,h.useRouter)();let r=(0,f.v9)(ea),i=(0,f.v9)(es),o=(0,f.v9)(el),s=(0,f.v9)(ec),{isAuth:l,user:{userId:c}}=i,u=(0,a.useRef)(null),{0:d,1:p}=(0,a.useState)(!1),{0:y,1:k}=(0,a.useState)(""),{0:$,1:Y}=(0,a.useState)(""),{0:V,1:K}=(0,a.useState)([]),{0:er,1:eu}=(0,a.useState)([]),{0:ed,1:ep}=(0,a.useState)(!1),{0:ef,1:eh}=(0,a.useState)([]),{0:em,1:eg}=(0,a.useState)(!1),{0:ey,1:ev}=(0,a.useState)(!0),{0:eb,1:ex}=(0,a.useState)(!1),{0:ew,1:e_}=(0,a.useState)(null),eC=(0,a.useMemo)(()=>i.deliveryType,[i.deliveryType]),eS=(0,a.useMemo)(()=>"self"===i.deliveryType?i.selfRestaurantId:i.deliveryRestaurantId,[i.deliveryType,i.deliveryRestaurantId,i.selfRestaurantId]),eE=(0,a.useMemo)(()=>o.find(e=>e.id===eS)?.["inner-id"],[o,eS]),eT=(0,a.useMemo)(()=>o.find(e=>e.id===eS)||null,[o,eS]);(0,a.useEffect)(()=>{ym(23457298,"reachGoal","open_search"),u?.current?.focus()},[]),(0,a.useEffect)(()=>{setTimeout(()=>{eg(y.length>2&&$===y)},800)},[y,$]),(0,a.useEffect)(()=>{em&&(0,J.Nu)({text:y,user_id:c})},[y,em]);let ek=eo((0,a.useCallback)(async(e,t,n)=>{let r=en.env.API_URL??"https://coffeemania.ru/api/v1"??"",o=(0,ee.getCookie)("searchbooster_v2_user_id"),{pathname:a}=window.location,l=new URLSearchParams({client:`coffeemania${a}`}).toString(),u=`${r}/search/completions?query=${e}&params[${"self"===eC?"pickup":"delivery"}][restaurant-id]=${t}${c?`&userId=${c}`:""}&${l}`,d=new URLSearchParams(ei({limit:1e3,active:!0,size:10,skip:0},o&&{userId:o})).toString(),f=`${r}/search?query=${e}&params[${"self"===eC?"pickup":"delivery"}][restaurant-id]=${t}&${d}&${l}`,h=[];try{ex(!1),e_(null),p(!0);let e=await fetch(u,{signal:n,method:"GET"}),t=await e.json();if(t?.data?.tips?.length){let e=t?.data?.tips??[];eh(e)}else eh([]);ym(23457298,"reachGoal","search_made")}catch(e){n?.aborted||(console.error(e),p(!1))}try{p(!0);let e=await fetch(f,{signal:n,method:"GET"}),t=await e.json();if(t?.data?.offers?.length>0){let e=t?.data?.offers??[],n=t?.data?.params??[],r=n.find(e=>"category"===e.id)?.options,o=[];r.forEach(t=>{let n=e.filter(e=>e.category.id===t.id),r=ei(ei({},t),{},{products:n});o.push(r)});let a=[];console.log("Search modal",{categories:s,categoryList:o}),o.forEach((e,t,n)=>{let r=!1,o=s.find(t=>Number(t.id)===Number(e.id));if(o){let t=[],n=e?.products?.reduce((e,n)=>{let a=ei({},o.products?.find(e=>Number(e.sku)===Number(n.id)));return a?(r=!1,a.isAvailable=X._A(a,i,"storefront"),a.labels=X.g7(a,i,"storefront",eT),a.product=n,a.isAvailable)?(r=!0,[...e,a]):(t.push(a),e):e},[]),s=ei(ei({},e),{},{products:(n??[]).concat(t??[])});(n.length||t.length)&&(r?r&&h.push(s):a.push(s))}}),h=h.concat(a),K(h);let l=!1;h?.forEach(e=>{e.products?.forEach(e=>{e.slug&&(l=!0)})}),ep(l)}else K([]);p(!1)}catch(e){n?.aborted||(console.error(e),p(!1))}return h},[]));(0,a.useEffect)(()=>{let e=new AbortController,{signal:t,abort:n}=e;if(!eN){K([]),eh([]),p(!1);return}if(eD)return ek(y,eE,t),()=>{e.abort()}},[$]),(0,a.useEffect)(()=>{!eN&&d&&K([])},[d]),(0,a.useEffect)(()=>{eu(V)},[V]);let ej=e=>{let{target:{value:t}}=e;setTimeout(()=>{Y(t)},800),k(t)},eO=()=>{ex(!0),e_(!0),ym(23457298,"reachGoal","search_ok")},eP=()=>{ex(!0),e_(!1),ym(23457298,"reachGoal","search_notgood")},eI=()=>{ev(!1)},eN=(0,a.useMemo)(()=>!!y.length,[y]),eD=(0,a.useMemo)(()=>y.length>2&&$===y,[y,$]),eM=(0,a.useMemo)(()=>er?.length,[er]);return(0,et.jsxs)(m,{onClick:n,children:[(0,et.jsx)(v,{children:(0,et.jsxs)(x,{children:[(0,et.jsx)(w,{onChange:ej,value:y,onKeyDown:e=>{"Enter"===e.key&&e.target.blur()},onFocus:e=>{},onBlur:e=>{ym(23457298,"reachGoal","made_search")},ref:u,placeholder:"Введите название блюда"}),(0,et.jsx)(_,{isVisible:!d&&!eN,children:(0,et.jsx)(B.Z,{})}),(0,et.jsx)(C,{isVisible:!d&&eN,onClick:()=>{setTimeout(()=>{k(""),Y("")},100),u?.current?.focus()},children:(0,et.jsx)(H.Z,{})}),(0,et.jsx)(S,{isVisible:d,children:(0,et.jsx)(Q.Z,{size:"small"})})]})}),(0,et.jsx)(b,{children:(0,et.jsxs)(E,{children:[!d&&!V.length&&!ef.length&&(0,et.jsx)(D,{children:(0,et.jsx)(T,{children:eN&&em?(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(j,{children:"Ничего не найдено"}),(0,et.jsx)(O,{children:"Попробуйте изменить ваш запрос"})]}):(0,et.jsx)(P,{children:"Введите название блюд или категорию"})})}),(0,et.jsxs)(et.Fragment,{children:[!!ef.length&&(0,et.jsx)(I,{children:ef.map((e,t)=>(0,et.jsx)(N,{onClick:()=>ej({target:{value:e.query}}),children:e.label},`search-category-${e.query}-${t}`))}),d&&!V.length?(0,et.jsx)(g,{isDataLoading:d,children:(0,et.jsx)(Q.Z,{variant:"gray"})}):ed&&(0,et.jsx)(D,{children:!!er.length&&ed&&er.map((e,n)=>(0,et.jsxs)("div",{className:`${eM>1&&n>0&&(1===n&&!ey||ey&&1!==n)?"has-divider":""}`,children:[(0,et.jsx)(M,{children:e.name}),(0,et.jsx)(A,{children:e.products?.map((e,n)=>{let i=e?.product.pictures?.[0]??"",o=ei(ei({},e),{},{price:100*e.product.price,images:[{thumbnails:[{url:i}],url:i}]});if(e.slug)return et.jsx(W.Z,{product:o,position:n+1,cardType:"default",cartItems:r,isAuth:l,closeSearchModal:t,type:"search",section:"Поиск"},`product-results-${o.name}${o.id}`)})}),0===n&&ey&&(0,et.jsx)(L,{children:eb?(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(q,{className:"close-icon",onClick:eI}),ew?(0,et.jsxs)(F,{children:[(0,et.jsx)("span",{children:"Спасибо!"}),(0,et.jsx)("span",{children:"Ваше мнение — наш главный ориентир."})]}):(0,et.jsxs)(F,{children:[(0,et.jsx)("span",{children:"Спасибо за отзыв!"}),(0,et.jsx)("span",{children:"Мы постараемся это улучшить."})]})]}):(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(R,{children:"Результаты соответствуют вашему запросу?"}),(0,et.jsxs)(Z,{children:[(0,et.jsxs)(z,{onClick:eO,"data-type":"yes",children:[(0,et.jsx)(U,{}),(0,et.jsx)("span",{children:"Да"})]}),(0,et.jsxs)(z,{onClick:eP,"data-type":"no",children:[(0,et.jsx)(G,{}),(0,et.jsx)("span",{children:"Нет"})]})]})]})})]},`search-category-${e.name}-${n}`))})]})]})})]})}let ed=e=>e.stopPropagation();var ep=function(e){let{resolve:t,destroy:n,scrollbarWidth:r,categories:i,searchRef:o}=e;(0,d.I0)();
22let s=(0,h.useRouter)(),{0:p,1:f}=(0,a.useState)(!1),{0:m}=(0,a.useState)(s.asPath.includes("#search")),g=(0,a.useRef)(0),y=(0,a.useMemo)(()=>{let e=o.current?.getBoundingClientRect();return e?.top},[o]);(0,a.useEffect)(()=>{let e=document.querySelector("[class*='WeatherAlertContainer']");if(e){let t=parseFloat(window.getComputedStyle(e).opacity);g.current=(t&&e.getBoundingClientRect()?.height)??0}f(!0);let r=()=>{t({stageCode:"cancel"}),f(!1),setTimeout(n,300)};return()=>{window.removeEventListener("popstate",r)}},[]),(0,a.useEffect)(()=>{ym(23457298,"reachGoal","search_main"),m&&s.asPath.includes("#search")},[s]);let v=(0,a.useCallback)(e=>{t({stageCode:e?.stageCode||"cancel"}),f(!1),setTimeout(n,300)},[t,n,m]);return(0,et.jsx)(l,{onClick:v,isOpen:p,children:(0,et.jsx)(c,{onClick:v,isOpen:p,scrollbarWidth:r,top:y,children:(0,et.jsx)(u,{onClick:v,isOpen:p,children:(0,et.jsx)(eu,{onClose:()=>v({}),onClick:ed})})})})}},52604:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(67294),i=n(9473),o=n(8307),a=n(33368),s=n(74744),l=n(10893),c=n(73935),u=n(87379);let d=u.ZP.div.withConfig({displayName:"styles__ExtraWrapper",componentId:"sc-1uhaosd-0"})(["position:fixed;z-index:1000;left:","px;top:","px;visibility:",";opacity:",";height:30px;transition:opacity .2s ease-out .1s,visibility .3s ease-out .1s;"],e=>e.left,e=>e.extraTop+52,e=>e.isOpen?"visible":"hidden",e=>e.isOpen?"1":"0"),p=u.ZP.ul.withConfig({displayName:"styles__ExtraListWrapper",componentId:"sc-1uhaosd-1"})(["word-wrap:break-word;position:absolute;left:0;top:0;padding:8px 0;width:286px;height:auto;max-height:80vh;overflow-y:auto;box-sizing:border-box;background-color:#fff;border-radius:15px;box-shadow:0px 2px 16px 0px rgba(0,0,0,0.14);"]),f=u.ZP.li.withConfig({displayName:"styles__ExtraListItem",componentId:"sc-1uhaosd-2"})(['padding:0 20px;display:flex;align-items:center;color:#212121;font-family:"Suisse Intl";font-size:16px;font-style:normal;font-weight:400;line-height:24px;height:50px;cursor:pointer;transition:color 0.2s ease;& > a{white-space:normal;}']);var h=n(85893),m=function(e){let{item:t,submenu:n,idx:i,openSubmenu:o,closeSubmenu:s,buttonRef:l}=e,{0:u,1:m}=(0,r.useState)(!1);return(0,r.useEffect)(()=>{n.index===i?m(!0):m(!1)},[n,i]),c.createPortal((0,h.jsx)(d,{left:n?.left??0,extraTop:l?.current?.getBoundingClientRect()?.top??0,isOpen:u,onMouseEnter:()=>o(i),onMouseLeave:()=>s(),children:(0,h.jsx)(p,{children:t.children.map((e,n)=>{let{title:r,url:o,external:s}=e;return o&&r&&(0,h.jsx)(a.Z,{href:o,locale:"ru",legacyBehavior:!0,children:(0,h.jsx)(f,{children:(0,h.jsx)("a",{className:`analytics-navbar-item-${i}-${n}`,href:o,target:s?"_blank":"_self",rel:"noreferrer",children:r})})},`${t.title}-${n}`)})})}),document.getElementById("__next"))};let g=u.ZP.div.withConfig({displayName:"styles__CartIconWrapper",componentId:"sc-yzo2q8-0"})(["position:relative;display:flex;flex-direction:row;align-items:center;font-weight:400;font-size:14px;white-space:nowrap;cursor:pointer;"]),y=u.ZP.span.withConfig({displayName:"styles__CartItems",componentId:"sc-yzo2q8-1"})(['position:absolute;top:-4px;right:-4px;width:20px;height:20px;display:flex;justify-content:center;align-items:center;background-color:#EC4C41;border-radius:50%;color:#FFFFFF;font-family:"Suisse Intl";font-size:12px;font-style:normal;font-weight:400;line-height:14px;']);var v=function(e){let{onChange:t,quantity:n}=e;return(0,h.jsxs)(g,{onClick:t,className:"analytics-button-cart",children:[(0,h.jsx)(l.w7,{}),n?(0,h.jsx)(y,{children:n}):null]})};function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e){let{menuItems:t,favoriteCount:n,cartCount:i,isAuth:o,children:c,pathname:u}=e,{0:d,1:p}=(0,r.useState)(()=>u??""),{0:f,1:g}=(0,r.useState)({}),{0:y,1:b}=(0,r.useState)([]),{0:w,1:_}=(0,r.useState)(!1),C=(0,r.useRef)(null),S=(0,r.useRef)(null);(0,r.useEffect)(()=>{p(location.pathname)},[]);let E=(0,r.useMemo)(()=>{let e=t?.filter?.(e=>"header"===e.type).sort((e,t)=>
22e?.["sort-order"]-t?.["sort-order"]).map(e=>x(x({},e),{},{icon:"",children:[]}));return e?.unshift?.({icon:"/static/svg/header/cutlery.svg",title:"Заказать еду",color:"#8A724B",children:[],url:"/menu",type:"header"}),e?.map(e=>x(x({},e),{},{children:[]}))??[]},[t]),T=()=>{let e=768;window.innerWidth>768&&(e=window.innerWidth);let t=(e>1204?1204:e)-600,n=E?.length??0;for(let e=n;e>0&&!(t>(E?.slice(0,e).reduce((e,t)=>e+t.title.length,0)??0)*8+16*e);e--)n--;let r=E.slice(0,n),i=[];E.slice(n).forEach((e,t)=>{e?.children?.length?i.push(...e.children):i.push(e)}),b(r),i.length&&r.push({title:"Еще",children:i,url:"/",type:"header"}),b(r)};(0,r.useEffect)(()=>(T(),window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)),[]);let k=e=>{_((window?.scrollY??0)>0)};(0,r.useEffect)(()=>(window.addEventListener("scroll",k),()=>{window.removeEventListener("scroll",k)}),[]);let j=e=>{let t=C.current.childNodes?.[e]?.getBoundingClientRect()?.left??0;g({index:e,left:t})},O=()=>{g(e=>x(x({},e),{},{index:null}))},P=e=>{o?window.location.href=e:Object.assign(window.location,{href:"/cabinet/login"})};return(0,h.jsxs)(s.JA,{isScrolled:w,children:[(0,h.jsxs)(s.im,{children:[(0,h.jsx)(s.K7,{className:"analytics-button-logo",children:(0,h.jsx)("a",{href:"/",children:(0,h.jsx)(l.K7,{})})}),(0,h.jsx)(s.br,{children:(0,h.jsx)(s.Ml,{ref:C,children:y.map((e,t)=>{let n=e?.children?.length?"/"!==d&&e?.children.find(e=>e.url.includes(d)):d===e.url;return e.url&&e.title&&(0,h.jsx)(s.NR,{children:e?.children?.length?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(s.CQ,{ref:S,className:`analytics-navbar-item-${t}`,isActive:n,color:e?.color,isOpen:f?.index===t,onMouseEnter:()=>j(t),onMouseLeave:()=>O(),children:[e?.icon&&(0,h.jsx)("img",{src:e.icon,alt:`Пункт меню ${e.title}`}),e.title,(0,h.jsx)(l.DV,{})]}),(0,h.jsx)(m,{item:e,submenu:f,idx:t,openSubmenu:j,closeSubmenu:O,buttonRef:S})]}):(0,h.jsxs)(s.LY,{isActive:n,color:e?.color,className:`analytics-navbar-item-${t}`,children:[e?.icon&&(0,h.jsx)("img",{src:e.icon,alt:`Пункт меню ${e.title}`}),(0,h.jsx)(a.Z,{href:e?.url||"",locale:"ru",legacyBehavior:!0,children:(0,h.jsx)("a",{href:e?.url||"",target:e?.external?"_blank":"_self",rel:"noreferrer",children:e.title})})]},t+e.title)},`${e.title}-${t}`)})})}),(0,h.jsxs)(s.Mf,{children:[(0,h.jsx)("div",{}),(0,h.jsx)("div",{children:o&&(0,h.jsxs)(s.Wv,{onClick:()=>P("/cabinet/favorite"),className:"analytics-button-favorite",children:[(0,h.jsx)(l.h_,{}),!!n&&(0,h.jsx)(s.yB,{children:n})]})}),(0,h.jsx)(v,{onChange:()=>P("/cart"),quantity:i}),(0,h.jsx)("div",{onClick:()=>P("/cabinet"),style:{cursor:"pointer"},className:"analytics-button-profile",children:(0,h.jsx)(l.m2,{})})]})]}),c&&(0,h.jsx)(s.qJ,{children:(0,h.jsx)(s.CU,{children:c})})]})}var _=n(89757),C=n(2489),S=n(53045),E=n(15340);let T=u.ZP.div.withConfig({displayName:"styles__SearchInputContainer",componentId:"sc-oqolru-0"})(["position:relative;display:flex;justify-content:center;align-items:center;min-width:100%;background-color:#FFFFFF;"]),k=u.ZP.div.withConfig({displayName:"styles__SearchInputWrapper",componentId:"sc-oqolru-1"})(["position:relative;min-width:100%;height:50px;margin:8px 0;"]),j=u.ZP.input.withConfig({displayName:"styles__SearchInput",componentId:"sc-oqolru-2"})(["width:100%;height:100%;padding:0 53px 0 16px;border-radius:14px;font-family:'Suisse Intl';font-size:17px;line-height:26px;font-weight:400;color:#a0a1a4;background:#f5f5f5;border:1px solid #f5f5f5;:focus::-webkit-input-placeholder{color:transparent;}:focus::-moz-placeholder{color:transparent;}:focus:-moz-placeholder{color:transparent;}:focus:-ms-input-placeholder{color:transparent;}"]),O=u.ZP.div.withConfig({displayName:"styles__SearchInputIconWrapper",componentId:"sc-oqolru-3"})(["position:absolute;top:12px;right:16px;width:24px;height:24px;opacity:",";visibility:",";transform:scaleX(",");transition:transform 0.2s,opacity 0.2s ease-out;pointer-events:none;& > svg{position:absolute;top:0;left:0;width:24px;height:24px;}"],e=>e.isVisible?"1":"0",e=>e.isVisible?"visible":"hidden",e=>e.isVisible?"1":"0");var P=n(11163),I=n(86071);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
22t%2?N(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var M=function(e){let{categories:t}=e;(0,_.I0)();let n=(0,r.createRef)(),i=(0,P.useRouter)(),{createModal:o}=(0,C.ZP)();(0,r.useEffect)(()=>{i.asPath.includes("#search")&&a()},[i]);let a=(0,r.useCallback)(()=>{let e=(0,C.np)();o(r=>(0,h.jsx)(I.Z,D(D({},r),{},{categories:t,scrollbarWidth:e,searchRef:n})))},[o,n]);return(0,h.jsx)(T,{children:(0,h.jsxs)(k,{children:[(0,h.jsx)(j,{ref:n,onClick:a,value:"Введите название блюда",onKeyDown:()=>{},onFocus:()=>{},onBlur:()=>{},onChange:()=>{}}),(0,h.jsx)(O,{isVisible:!0,children:(0,h.jsx)(S.Z,{})}),(0,h.jsx)(O,{isVisible:!1,onClick:()=>{},children:(0,h.jsx)(E.Z,{})})]})})};let A=u.ZP.div.withConfig({displayName:"styles__ToolbarContainer",componentId:"sc-1x8gktt-0"})(["display:flex;z-index:9;top:0;max-width:1204px;width:100%;height:66px;"]),L=u.ZP.div.withConfig({displayName:"styles__SearchInputBarContainer",componentId:"sc-1x8gktt-1"})(["display:flex;z-index:9;top:0;flex:1;& input{caret-color:transparent;}"]),R=u.ZP.div.withConfig({displayName:"styles__DeliveryBarContainer",componentId:"sc-1x8gktt-2"})(["display:flex;justify-content:center;align-items:center;z-index:9;top:0;width:328px;margin-left:12px;"]);var Z=n(45889);function z(e){let{menuItems:t,hasToolbar:n=null,hasDeliveryBar:o=!1,categories:a}=e,s=(0,i.v9)(e=>e.profile),l=(0,i.v9)(e=>e.cart),c=(0,i.v9)(e=>e.cart?.type),u=(0,r.useMemo)(()=>{let e=s?.wishlist?.length??0;return e>99?99:e},[s]),d=(0,r.useMemo)(()=>l?.items??[],[l]),p=(0,r.useMemo)(()=>{let e=d.filter(e=>e.type===c)?.reduce((e,t)=>e+t?.amount,0)||0;return e>99?99:e},[d,c]),f=(0,r.useMemo)(()=>"preorder"===c,[c]);return(0,h.jsx)(w,{menuItems:t,isAuth:s?.isAuth,favoriteCount:u,cartCount:p,children:n&&(0,h.jsxs)(A,{children:[(0,h.jsx)(L,{children:(0,h.jsx)(M,{categories:a})}),o&&!f&&(0,h.jsx)(R,{children:(0,h.jsx)(Z.Z,{})})]})})}},22022:function(e,t,n){"use strict";n.d(t,{s:function(){return v}});var r=n(67294),i=n(41664),o=n.n(i),a=n(9473),s=n(68697),l=n(87379);let c=`
23  font-family: 'Suisse Intl';
24  font-weight: 400;
25  font-size: 16px;
26  line-height: 22px;
27  letter-spacing: 0;
28`,u=l.ZP.div.withConfig({displayName:"styles__NotificationContainer",componentId:"sc-1ivwl44-0"})(["display:flex;justify-content:center;align-items:center;position:fixed;bottom:0;width:100%;padding:12px 0;z-index:1001;background:#FFFFFF;box-shadow:0px 0px 16px 0px #0000001A;"]),d=l.ZP.div.withConfig({displayName:"styles__NotificationWrapper",componentId:"sc-1ivwl44-1"})(["display:flex;flex-direction:row;align-items:center;max-width:1204px;padding:0 40px;z-index:99;"]),p=l.ZP.div.withConfig({displayName:"styles__Title",componentId:"sc-1ivwl44-2"})(["display:inline;width:100%;color:#77787B;",""],c),f=l.ZP.div.withConfig({displayName:"styles__Actions",componentId:"sc-1ivwl44-3"})(["display:flex;justify-content:flex-start;align-items:center;padding-left:24px;"]),h=l.ZP.button.withConfig({displayName:"styles__ContinueButton",componentId:"sc-1ivwl44-4"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;width:116px;height:40px;min-width:116px;min-height:40px;background:#212121;border-radius:12px;color:#FFFFFF;-moz-user-select:none;-khtml-user-select:none;user-select:none;border:none;cursor:pointer;transition:all 0.2s;"," font-weight:500;font-size:14px;line-height:15px;letter-spacing:1.5%;&:hover{background:#212121;}&:active{background:#212121;}"],c),m=l.ZP.div.withConfig({displayName:"styles__MoreLink",componentId:"sc-1ivwl44-5"})(["display:inline;color:#376F62;cursor:pointer;width:max-content;text-decoration:underline;text-decoration-style:solid;text-decoration-offset:0;text-decoration-thickness:0;",""],c);var g=n(85893);let y=(0,s.P1)([e=>e.cart?.items],e=>!!e.filter(e=>"default"===e.type).length);function v(){let{0:e,1:t}=(0,r.useState)(!0);return(0,a.v9)(y),(0,r.useEffect)(()=>{t(!!localStorage.getItem("cookieDate"))},[]),e?null:(0,g.jsx)(u,{children:(0,g.jsxs)(d,{children:[(0,g.jsxs)(p,{children:["Мы используем файлы cookie и сервисы веб-аналитики, чтобы сделать наши сервисы лучше и полезнее. Оставаясь на нашем сайте, вы даете своё согласие на обработку персональных данных согласно"," ",(0,g.jsx)(m,{children:(0,g.jsx)(o(),{target:"_blank",rel:"noopener noreferrer",href:"https://coffeemania.ru/rules/policy",children:"политике обработки персональных данных"})})]}),(0,g.jsx)(f,{children:(0,g.jsx)(h,{onClick:e=>{localStorage.setItem("cookieDate",String(Date.now())),t(!0)},children:"OK"})})]})})}},74791:function(e,t,n){"use strict";n.d(t,{Rz:function(){return d},TY:function(){return a},Vb:function(){return l},W:function(){return p},ZG:function(){return i},cc:function(){return h},jF:function(){return f},jy:function(){return s},o3:function(){return o},tc:function(){return u},ww:function(){return c}});var r=n(87379);(0,r.F4)(["from{opacity:0;}to{opacity:1;}"]);let i=r.ZP.div.withConfig({displayName:"styles__ProductWrapper",componentId:"sc-c2boy9-0"})(["min-height:214px;display:flex;flex-direction:column;justify-content:space-between;width:100%;padding:6px;border-radius:18px;background:white;box-shadow:0 2px 16px rgba(0,0,0,0.1);"]);r.ZP.div.withConfig({displayName:"styles__PictureOverlay",componentId:"sc-c2boy9-1"})(["display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;background:rgba(0,0,0,0.5);opacity:0;cursor:pointer;&:hover{opacity:1;}"]);let o=r.ZP.div.withConfig({displayName:"styles__PictureWrapper",componentId:"sc-c2boy9-2"})(["display:flex;position:relative;border-radius:14px;overflow:hidden;& img{border-radius:14px;object-fit:cover;}"]),a=r.ZP.div.withConfig({displayName:"styles__ProductLabelsWrapper",componentId:"sc-c2boy9-3"})(["display:flex;flex-wrap:wrap;justify-content:start;column-gap:6px;row-gap:4px;margin-top:6px;"]),s=r.ZP.div.withConfig({displayName:"styles__ProductLabel",componentId:"sc-c2boy9-4"})(["width:fit-content;padding:0;color:#376f62;font-size:12px;line-height:14px;font-weight:500;white-space:nowrap;"]),l=r.ZP.div.withConfig({displayName:"styles__ProductLabelMain",componentId:"sc-c2boy9-5"})(["position:absolute;bottom:0;left:0;padding:8px;color:#ffffff;background:rgba(0,0,0,0.25);font-size:12px;line-height:14px;font-weight:500;border-radius:0 14px;backdrop-filter:blur(20px);height:26px;
28display:flex;align-items:center;justify-content:center;"]);r.ZP.div.withConfig({displayName:"styles__Counter",componentId:"sc-c2boy9-6"})(["font-weight:500;"]),r.ZP.div.withConfig({displayName:"styles__CounterControls",componentId:"sc-c2boy9-7"})(["display:flex;align-items:center;justify-content:space-around;font-size:18px;line-height:43px;height:auto;white-space:nowrap;transition:all 0.7s;& > span{display:flex;align-items:center;justify-content:space-around;width:10px;}& > span:first-child{width:40px;cursor:pointer;}& > span:last-child{width:40px;cursor:pointer;}"]),r.ZP.div.withConfig({displayName:"styles__CounderDesc",componentId:"sc-c2boy9-8"})(["font-size:20px;text-align:center;"]);let c=r.ZP.div.withConfig({displayName:"styles__ProductInfo",componentId:"sc-c2boy9-9"})(["display:block;"]),u=r.ZP.h3.withConfig({displayName:"styles__ProductTitle",componentId:"sc-c2boy9-10"})(["margin-top:6px;font-family:'Suisse Intl';font-style:normal;font-size:14px;line-height:17px;font-weight:400;color:#212121;cursor:pointer;"]),d=r.ZP.div.withConfig({displayName:"styles__ProductValuesWrapper",componentId:"sc-c2boy9-11"})(["display:flex;align-items:center;justify-content:space-between;margin-top:6px;font-family:'Suisse Intl';font-style:normal;"]),p=r.ZP.span.withConfig({displayName:"styles__ProductWeight",componentId:"sc-c2boy9-12"})(["font-size:14px;line-height:13px;font-weight:500;color:#a8a8a8;"]),f=r.ZP.span.withConfig({displayName:"styles__ProductPrice",componentId:"sc-c2boy9-13"})(["font-size:14px;line-height:13px;font-weight:500;color:#a8a8a8;"]),h=r.ZP.div.withConfig({displayName:"styles__ProductBonus",componentId:"sc-c2boy9-14"})(["display:flex;align-items:end;text-align:right;justify-content:end;height:15px;position:relative;padding-right:12px;font-size:11px;line-height:13px;font-weight:500;color:#376f62;&::before{content:'+';}&::after{position:absolute;top:2.5px;right:0;content:url('/static/svg/gift-bonus.svg');height:15px;width:10px;}"]);r.ZP.span.withConfig({displayName:"styles__ProductBonusSymbol",componentId:"sc-c2boy9-15"})(["font-size:14px;line-height:13px;font-weight:500;color:#a8a8a8;"]),r.ZP.div.withConfig({displayName:"styles__CartActionWrapper",componentId:"sc-c2boy9-16"})(["display:flex;justify-content:end;& > .add-to-cart{width:",";background:",";border:",";border-radius:",";:active{background:",";}svg > path{fill:",";}}& > .del-from-cart{opacity:",";visibility:",";width:",";background:",";border:",";border-radius:",";:active{background:#e7e7e7;}svg > path{fill:",";}}& > .count{opacity:",";visibility:",";width:",";margin:",";color:",";}"],e=>e.inCart?"32px":"60px",e=>e.inCart?"#FFFFFF":"#EC4C41",e=>e.inCart?"1px solid #E5E5E5":"none",e=>e.inCart?"10px":"12px",e=>e.inCart?"#E7E7E7":"#e24641",e=>e.inCart?"#212121":"#FFFFFF",e=>e.inCart?"1":"0",e=>e.inCart?"visible":"hidden",e=>e.inCart?"32px":"0",e=>(e.inCart,"#FFFFFF"),e=>e.inCart?"1px solid #E5E5E5":"none",e=>e.inCart?"10px":"12px",e=>e.inCart?"#212121":"#FFFFFF",e=>e.inCart?"1":"0",e=>e.inCart?"visible":"hidden",e=>e.inCart?"auto":"0",e=>e.inCart?"0 9px":"0",e=>e.inCart?"#212121":"#FFFFFF"),r.ZP.div.withConfig({displayName:"styles__ControlsWrapper",componentId:"sc-c2boy9-17"})(["display:flex;justify-content:space-between;align-items:center;margin-top:24px;"]),r.ZP.div.withConfig({displayName:"styles__FavoriteButtonWrapper",componentId:"sc-c2boy9-18"})(["display:flex;justify-content:center;align-items:center;height:32px;margin:0 0 0px 4px;"]),r.ZP.div.withConfig({displayName:"styles__FavoriteButton",componentId:"sc-c2boy9-19"})(["position:relative;width:24px;height:24px;background:#ffffff;::before{content:url('/static/svg/cart/favorite-disabled.svg');opacity:",";position:absolute;top:1px;left:1px;transition:opacity 0.3s;}::after{content:url('/static/svg/cart/favorite-enabled.svg');opacity:",";position:absolute;top:1px;left:1px;transition:opacity 0.3s;}"],e=>e.isFavorite?"0":"1",e=>e.isFavorite?"1":"0"),r.ZP.div.withConfig({displayName:"styles__CartActionMinus",componentId:"sc-c2boy9-20"})(["display:flex;justify-content:center;align-items:center;height:32px;
28cursor:pointer;transition:all 0.3s;"]),r.ZP.div.withConfig({displayName:"styles__CartActionPlus",componentId:"sc-c2boy9-21"})(["display:flex;justify-content:center;align-items:center;height:32px;cursor:pointer;transition:all 0.3s;"]),r.ZP.div.withConfig({displayName:"styles__CartActionCount",componentId:"sc-c2boy9-22"})(["display:flex;justify-content:center;align-items:center;font-size:12px;line-height:14px;font-weight:500;transition:all 0.3s;"])},66129:function(e,t,n){"use strict";n.d(t,{O:function(){return E}});var r,i=n(67294),o=n(25675),a=n.n(o),s=n(87379),l=n(39142);let c=s.ZP.div.withConfig({displayName:"styles__SliderWrapper",componentId:"sc-1ipusez-0"})(["position:relative;display:flex;align-items:center;width:100%;height:100%;& .swiper-wrapper{align-items:center;}& .swiper-slide{display:flex;justify-content:center !important;}"]),u=s.ZP.div.withConfig({displayName:"styles__ControlsWrapper",componentId:"sc-1ipusez-1"})(["display:flex;position:absolute;left:16px;right:0;align-items:center;justify-content:flex-start;z-index:5;@media ","{left:20px;right:20px;}"],l.Z.exactMedia.desktop),d=s.ZP.div.withConfig({displayName:"styles__ImageWrapper",componentId:"sc-1ipusez-2"})(["width:100%;overflow:hidden;height:459px;margin-left:16px;margin-right:0;padding-bottom:0;border-radius:16px;img{object-fit:cover;}@media ","{height:0;padding-bottom:calc(100% * 459 / (674 - 16));}@media ","{margin-left:20px;margin-right:20px;padding-bottom:calc(100% * 459 / (674 - 16));}"],l.Z.exactMedia.widescreen,l.Z.exactMedia.desktop),p=s.ZP.div.withConfig({displayName:"styles__Arrow",componentId:"sc-1ipusez-3"})(["position:absolute;display:flex;justify-content:center;align-items:center;width:40px;height:40px;background-color:white;border:1px solid #dedede;border-radius:10px;box-shadow:0px 3px 12px 0px #0000001a;cursor:pointer;"]),f=(0,s.ZP)(p).withConfig({displayName:"styles__ArrowPrev",componentId:"sc-1ipusez-4"})(["left:10px;> svg{transform:scaleX(-1);}"]),h=(0,s.ZP)(p).withConfig({displayName:"styles__ArrowNext",componentId:"sc-1ipusez-5"})(["right:10px;"]),m=s.ZP.div.withConfig({displayName:"styles__PaginationWrapper",componentId:"sc-1ipusez-6"})(["position:absolute;display:flex;justify-content:center;align-items:center;left:16px;right:0;margin-top:calc(459px + 28px);height:16px;z-index:5;@media ","{margin-top:calc(100% * 459 / (674 - 16) + 28px);}@media ","{left:20px;right:20px;margin-top:calc(100% * 459 / (674 - 16) + 28px);}& .swiper-pagination{position:absolute;display:flex;align-items:center;top:0;}& .swiper-pagination-bullet{width:10px;height:10px;margin:3px;border-radius:10px;background:#212121;opacity:0.2;cursor:pointer;transition:all 0.25s ease 0s;&-active{opacity:1;}:after{content:'';position:absolute;width:16px;height:16px;top:-3px;right:-3px;left:-3px;bottom:-3px;}}"],l.Z.exactMedia.widescreen,l.Z.exactMedia.desktop),g=s.ZP.div.withConfig({displayName:"styles__SwiperWrapper",componentId:"sc-1ipusez-7"})(["position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;"]),y=s.ZP.div.withConfig({displayName:"styles__LoaderWrapper",componentId:"sc-1ipusez-8"})(["position:absolute;width:100%;height:100%;background:white;display:flex;justify-content:center;align-items:center;z-index:2;"]),v=s.ZP.span.withConfig({displayName:"styles__Loader",componentId:"sc-1ipusez-9"})(["width:28px;height:28px;border-radius:100%;display:inline-block;border-top:2px solid #ec4c41;border-right:1px solid #ec4c41;border-bottom:0px solid transparent;box-sizing:border-box;animation:rotation 1s linear infinite;margin:0 auto;display:flex;@keyframes rotation{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"]),b=s.ZP.span.withConfig({displayName:"styles__LabelEvent",componentId:"sc-1ipusez-10"})(["position:absolute;left:0;bottom:0;padding:4px 16px 4px 24px;font-size:17px;color:#ffffff;font-style:normal;font-weight:400;line-height:26px;letter-spacing:0.025em;border-top-right-radius:20px;background-color:#515356;backdrop-filter:blur(5px);z-index:2;@media ","{left:20px;border-bottom-left-radius:16px;}"],l.Z.exactMedia.desktop);function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var w=e=>{let{title:t,titleId:n,...o}=e;return i.createElement("svg",x({width:8,height:12,viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},o),t?i.createElement("title",{id:n},t):null,r||(r=i.createElement("path",{d:"M1.064 11.366a.739.739 0 0 1 0-1.132L5.028 6 1.064 1.766a.739.739 0 0 1 0-1.132.981.981 0 0 1 1.273 0l4.6 4.8a.739.739 0 0 1 0 1.132l-4.6 4.8a.981.981 0 0 1-1.273 0Z",fill:"#212121"})))},_=n(94135),C=n(2261);n(15663);var S=n(85893);function E(e){let{images:t,labels:n,title:r=""}=e,o=(0,i.useRef)(null),s=(0,i.useRef)(null),l=(0,i.useRef)(null),p=(0,i.useRef)(null),x=(0,i.useRef)(null);return(0,i.useEffect)(()=>{p.current&&setTimeout(e=>{e&&(e.style.display="none")},1e3,p.current)},[]),(0,S.jsxs)(c,{children:[!!n?.[0]&&(0,S.jsx)(b,{children:n[0]}),t&&t?.length>1&&(0,S.jsxs)(u,{children:[(0,S.jsx)(f,{ref:o,children:(0,S.jsx)(w,{})}),(0,S.jsx)(h,{ref:s,children:(0,S.jsx)(w,{})})]}),t&&t?.length>1&&(0,S.jsx)(m,{children:(0,S.jsx)("div",{ref:l,className:"swiper-pagination"})}),(0,S.jsxs)(g,{children:[(0,S.jsx)(y,{ref:p,children:(0,S.jsx)(v,{})}),(0,S.jsx)(C.tq,{modules:[_.lI,_.W_,_.tl,_.pt,_.LW,_.s5],ref:x,onInit:e=>{e.params.navigation.prevEl=o.current,e.params.navigation.nextEl=s.current,e.params.navigation&&(e.params.navigation.el=l.current),e.navigation.destroy(),e.navigation.init(),e.navigation.update(),e.pagination.destroy(),e.pagination.init(),e.pagination.update()},loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1}
28,initialSlide:0,grabCursor:!0,centeredSlides:!0,centeredSlidesBounds:!0,watchOverflow:!0,runCallbacksOnInit:!1,autoHeight:!1,freeMode:!1,navigation:{prevEl:o.current,nextEl:s.current},pagination:{el:".swiper-pagination",clickable:!0,type:"bullets"},spaceBetween:32,children:t?.map((e,t)=>S.jsx(C.o5,{style:{zIndex:101},children:S.jsxs(d,{children:[S.jsx(a(),{src:e,alt:r,fill:!0,sizes:"(max-width: 900px) 50vw, (max-width: 1200px) 33vw",className:"controlled-zoom-image 3",style:{objectFit:"cover",zIndex:1}}),S.jsx("div",{className:"swiper-lazy-preloader"})]})},t))})]})]})}},88617:function(e,t,n){"use strict";n.d(t,{Z:function(){return ee}});var r=n(67294),i=n(89757),o=n(8307),a=n(4730),s=n(25675),l=n.n(s);new Date().getTime().toString();let c={600:"300x200",700:"584x396",1200:"694x470",1400:"1158x783"};var u=e=>{if(!e)return e;let{src:t,width:n}=e,r=t.includes("http")?new URL(t):null;if(r&&"https://imgs.coffeemania.ru"===r.origin){let e=Math.min(n||600,1400),t=r.pathname.split("/").filter(Boolean),i=t.pop(),o=t.join("/");if(o&&i&&/^\d{2,5}[xх]\d{2,5}\.\w{2,5}$/.test(i)){let n=t.pop()?.split("."),i=Object.keys(c).reduce((t,n)=>Math.abs(parseInt(n)-e)<Math.abs(parseInt(t)-e)?n:t);r.pathname=`/${o}/${c[i]}.${n?.[1]||"jpg"}`}return r.toString()}return t},d=n(85893);let p=["fill","style","alt"],f=["height","width"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=function(e){let{fill:t,style:n,alt:r=""}=e,i=(0,a.Z)(e,p),o=n||{},{height:s,width:c}=o,h=(0,a.Z)(o,f),g=!Number.isFinite(i.height)&&!Number.isFinite(i.width);return(0,d.jsx)(l(),m(m(m({alt:r,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 33vw"},g?{fill:t}:{}),{},{loader:u},i),{},{style:t||g?h:n}))},y=n(2489),v=n(16931),b=n(87379);let x=b.ZP.div.withConfig({displayName:"styles__ProductWrapper",componentId:"sc-1towvhh-0"})(["min-height:100px;display:flex;flex-direction:column;justify-content:space-between;width:100%;border-radius:18px;background:white;cursor:pointer;"]),w=b.ZP.div.withConfig({displayName:"styles__PictureWrapper",componentId:"sc-1towvhh-1"})(["display:flex;position:relative;border-radius:20px;overflow:hidden;aspect-ratio:286 / 210;& img{border-radius:20px;object-fit:cover;}"]);b.ZP.div.withConfig({displayName:"styles__ProductLabelsWrapper",componentId:"sc-1towvhh-2"})(["display:flex;flex-wrap:wrap;justify-content:start;column-gap:6px;row-gap:4px;margin-top:6px;"]),b.ZP.div.withConfig({displayName:"styles__ProductLabel",componentId:"sc-1towvhh-3"})(["width:fit-content;padding:0;color:#376f62;font-size:12px;line-height:14px;font-weight:500;white-space:nowrap;"]),b.ZP.div.withConfig({displayName:"styles__ProductLabelMain",componentId:"sc-1towvhh-4"})(["position:absolute;bottom:0;left:0;padding:8px 10px;color:#ffffff;background:rgba(0,0,0,0.25);font-size:14px;line-height:13px;font-weight:500;border-radius:0 20px;height:30px;display:flex;align-items:center;justify-content:center;.recommendation-products &{border-radius:0 14px;}"]);let _=b.ZP.div.withConfig({displayName:"styles__ProductInfo",componentId:"sc-1towvhh-5"})(["margin-top:6px;"]),C=b.ZP.h3.withConfig({displayName:"styles__ProductTitle",componentId:"sc-1towvhh-6"})(["font-family:'Suisse Intl';font-style:normal;font-size:17px;line-height:26px;font-weight:400;color:#212121;cursor:pointer;text-align:left;"]),S=b.ZP.div.withConfig({displayName:"styles__ProductValuesWrapper",componentId:"sc-1towvhh-7"})(["display:inline-flex;align-items:center;justify-content:space-between;font-family:'Suisse Intl';margin-top:4px;font-size:16px;font-style:normal;font-weight:400;line-height:21px;text-align:left;color:#a0a1a4;"]),E=b.ZP.span.withConfig({displayName:"styles__LabelEvent",componentId:"sc-1towvhh-8"})(["position:absolute;
28left:0;bottom:0;padding:4px 16px 4px 24px;font-size:17px;color:#ffffff;font-style:normal;font-weight:400;line-height:26px;letter-spacing:0.025em;border-top-right-radius:20px;border-bottom-left-radius:16px;z-index:2;background-color:rgba(0,0,0,0.2);"]),T=b.ZP.div.withConfig({displayName:"styles__ProductBonus",componentId:"sc-1towvhh-9"})(["display:flex;align-items:end;text-align:right;justify-content:end;height:15px;position:relative;padding-right:12px;font-size:11px;line-height:13px;font-weight:500;color:#376f62;&::before{content:'+';}&::after{position:absolute;top:0;right:0;content:url('/static/svg/bonus-symbol.svg');height:15px;width:10px;}"]),k=b.ZP.div.withConfig({displayName:"styles__FavoriteButtonWrapper",componentId:"sc-1towvhh-10"})(["display:flex;justify-content:center;align-items:center;height:28px;position:absolute;top:12px;right:12px;z-index:5;"]),j=b.ZP.button.withConfig({displayName:"styles__FavoriteButton",componentId:"sc-1towvhh-11"})(["position:relative;display:flex;justify-content:center;align-items:center;width:28px;height:28px;border:none;background:transparent;cursor:pointer;::before{content:url('/static/svg/preview-product-card/favorite-disabled.svg');opacity:",";position:absolute;transition:opacity 0.3s;width:28px;height:28px;}::after{content:url('/static/svg/preview-product-card/favorite-enabled.svg');opacity:",";position:absolute;transition:opacity 0.3s;width:28px;height:28px;}"],e=>e.isFavorite?"0":"1",e=>e.isFavorite?"1":"0"),O=b.ZP.div.withConfig({displayName:"styles__ControlsWrapper",componentId:"sc-1towvhh-12"})(["display:flex;justify-content:space-between;align-items:center;position:absolute;bottom:10px;right:10px;opacity:",";transition:opacity 0.2s;z-index:1;",";"],e=>e.isInCart?"1":"0",e=>e.isHovered&&(0,b.iv)(["opacity:1;"])),P=b.ZP.div.withConfig({displayName:"styles__CartActionWrapper",componentId:"sc-1towvhh-13"})(["display:flex;justify-content:end;overflow:hidden;border-radius:12px;background-color:white;box-shadow:0px 3px 12px 0px #0000001a;"]),I=b.ZP.button.withConfig({displayName:"styles__CartActionMinus",componentId:"sc-1towvhh-14"})(["display:flex;justify-content:center;align-items:center;height:40px;transition:all 0.3s;border:none;opacity:",";visibility:",";width:",";cursor:pointer;background:transparent;z-index:1;&:hover,&:active{z-index:0;position:relative;&::before{content:'';position:absolute;top:0;left:0;width:108px;height:100%;background:linear-gradient(-90deg,transparent 50%,#e0e0e0 100%);}}"],e=>e.isInCart?"1":"0",e=>e.isInCart?"visible":"hidden",e=>e.isInCart?"40px":"0"),N=b.ZP.button.withConfig({displayName:"styles__CartActionPlus",componentId:"sc-1towvhh-15"})(["display:flex;justify-content:center;align-items:center;height:40px;width:40px;cursor:pointer;transition:all 0.3s;border:none;background:transparent;svg > path{fill:#212121;}&:hover,&:active{position:relative;z-index:0;&::before{content:'';position:absolute;top:0;right:0;width:108px;height:100%;background:",";}svg > path{fill:",";}}"],e=>e.isInCart?"linear-gradient(90deg, transparent 50%, #e0e0e0 100%)":"#053D35",e=>e.isInCart?"#212121":"#ffffff"),D=b.ZP.div.withConfig({displayName:"styles__CartActionCount",componentId:"sc-1towvhh-16"})(["display:flex;justify-content:center;align-items:center;font-size:16px;line-height:24px;font-weight:450;transition:all 0.3s;opacity:",";visibility:",";width:",";min-width:",";margin:",";color:",";"],e=>e.isInCart?"1":"0",e=>e.isInCart?"visible":"hidden",e=>e.isInCart?"auto":"0",e=>e.isInCart?"16px":"0",e=>e.isInCart?"0 6px":"0",e=>e.isInCart?"#212121":"#FFFFFF");var M=n(49796),A=n(91921),L=n(68697),R=n(18386);let Z=b.ZP.div.withConfig({displayName:"styles__SliderWrapper",componentId:"sc-1d4ckte-0"})(["position:relative;display:flex;align-items:center;width:100%;height:100%;flex-direction:column;"]),z=b.ZP.div.withConfig({displayName:"styles__ImageWrapper",componentId:"sc-1d4ckte-1"})(["display:flex;flex-direction:coloumn;width:100%;overflow:hidden;min-height:209px;width:284px;margin-left:0px;margin-right:0;padding-bottom:0;border-radius:16px;"]),F=b.ZP.div.withConfig({displayName:"styles__SwiperWrapper",componentId:"sc-1d4ckte-2"})(["position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;"]),B=(e,t)=>e.clientX>=Math.floor(t.left)-1&&e.clientX<=t.right&&e.clientY>
28=Math.floor(t.top)-1&&e.clientY<=t.bottom;function H(){let e=document.querySelector(".popular-dishes-slider > .swiper > .swiper-wrapper");return e?e?.style?.transform??"":null}var $=(0,r.forwardRef)(function(e,t){let{images:n,title:i="",onClick:o,onSetImageIndex:a,iconFavoritesRef:s,iconsCartRef:l}=e,c=(0,r.useRef)("translate3d(0px, 0px, 0px)"),{0:u,1:p}=(0,r.useState)(0),f=()=>Object.assign(c,{current:H()});return(0,r.useImperativeHandle)(t,()=>({slideTo:e=>{p(e)}})),(0,d.jsx)(Z,{onMouseDown:f,onClick:()=>{if(c.current!==H()){f();return}o()},onMouseEnter:f,children:(0,d.jsx)(F,{children:(0,d.jsx)(z,{style:{zIndex:1},onMouseMove:e=>{let t=e.currentTarget.getBoundingClientRect(),r=t.width/n.length,i=Math.floor((e.clientX-t.left)/r);i>=0&&i<n.length&&(p(i),a(i))},onMouseLeave:e=>{let t=s.current?.getBoundingClientRect(),n=l.current?.getBoundingClientRect(),r=t&&B(e,t),i=n&&B(e,n);if(r||i){e.stopPropagation();return}p(0),a(0)},children:(0,d.jsx)(g,{src:n[u],alt:i,loading:"lazy",fill:!0,style:{objectFit:"fill",zIndex:1,width:"100%",height:"100%"}})})})})});let U=b.ZP.div.withConfig({displayName:"styles__PaginationStyled",componentId:"sc-1nppfnl-0"})(["display:flex;justify-content:space-between;flex-direction:row;gap:12px;padding-top:0px;padding-bottom:0px;padding-left:5px;padding-right:5px;margin:0 10px;button{background:none;border:none;cursor:pointer;}.pagination-line{margin-top:4px;margin-bottom:4px;height:2px;background-color:#ccc;transition:all 0.3s ease;border-radius:1px;}button:hover .pagination-line{background-color:#515356;}button.active .pagination-line{background-color:#515356;}"]);var Y=function(e){let{length:t,activeIndex:n,onClick:r}=e;return(0,d.jsx)(U,{children:Array.from({length:t}).map((e,i)=>1!==t?(0,d.jsx)("button",{style:{width:80,flex:"1"},onClick:()=>r(i),className:`${i===n?"active":""}`,children:(0,d.jsx)("div",{className:"pagination-line"})},i):(0,d.jsx)("div",{style:{height:10,background:"transparent"}},i))})},G=n(13174),V=n(66435),q=n(389),W=n(74791),X=n(2947),K=n(71705);let J={"favorites-add-error":{description:`Не удалось добавить блюдо в Избранное.
29Пожалуйста, попробуйте позже.`}},Q=(0,L.P1)(e=>e.profile,e=>e);var ee=e=>{let{product:t,isAuth:n,cartItems:o,preorderPage:a,cardType:s="default",closeSearchModal:l,position:c,restaurant:u,type:p="storefront",section:f,categoryName:h,isSwipe:m}=e,b=(0,r.useRef)(null),L=(0,r.useRef)(null),Z=(0,r.useRef)(null),z=(0,i.I0)(),{createModal:F}=(0,y.ZP)(),B=(0,i.v9)(Q),H=(0,i.v9)(e=>e.cart?.type),U=(0,i.v9)(e=>e.cart?.items),{0:ee,1:et}=(0,r.useState)(!1),{0:en,1:er}=(0,r.useState)(0),ei=(0,r.useMemo)(()=>"default"!=s||-1!==B.wishlist.findIndex(e=>e.product.id===t.id),[B.wishlist]),eo=(0,r.useMemo)(()=>{if(!t?.weight?.length)return null;let[e,n]=(0,q.UU)(t?.weight);return e>0?`${e} ${n}`:null},[t?.weight]),{0:ea,1:es}=(0,r.useState)(()=>ei);(0,r.useEffect)(()=>{es(ei)},[ei]);let el=async()=>{if(ei){let e=B.wishlist.find(e=>e.product.id===t.id);es(!1),t&&z((0,R.$f)(e))}else es(!0),t&&!await z((0,R.Mp)(t,f,h))&&(es(!1),X.Am.error(K.l6,{data:{text:J["favorites-add-error"].description}})),"storefront"===p&&ym(23457298,"reachGoal","add_to_favourites"),"search"===p&&ym(23457298,"reachGoal","add_to_favourites_search")},ec=(0,r.useMemo)(()=>"preorder"===H,[H]),eu=(0,r.useMemo)(()=>ec?U.filter(e=>e.product.id===t.id&&e.type===H&&e?.product?.["preorder-pages"]?.map(e=>e.id)?.includes(a?.id))?.reduce((e,t)=>e+t?.amount,0)||0:U.filter(e=>e.product.id===t.id&&e.type===H)?.reduce((e,t)=>e+t?.amount,0)||0,[U,H,t]),ed=(0,r.useCallback)(async()=>{l&&l(),z((0,v.Or)({createModal:F,product:t,preorderPage:a,closeSearchModal:l,restaurant:u,cartType:H,type:p,section:f,categoryName:h}))},[t,u,H,p,a,f,h]),ep=(0,r.useMemo)(()=>!!eu,[eu]),ef=(0,r.useMemo)(()=>new Intl.NumberFormat("ru",{style:"currency",currency:"RUB",minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:!0}).format(t?.price/100),[t?.price]),eh=(0,r.useCallback)(async()=>{let e;if(!n){let{payload:{stageCode:e}}=await z((0,R.sB)({createModal:F}));if("success"!==e)return}if(ec){for(let e of o){let t=e.changes;if(t){for(let n of t)if("success"!==n.status&&!e?.id)return}}let e=(0,G.$7)(t,o);e||F(V.Z,{name:"PreorderAddProductModal"}).then(e=>{if("cart"===e.stageCode){setTimeout(()=>{location.href="/cart"},500);return}"clear"===e.stageCode&&(z((0,v.UY)(H)),setTimeout(()=>{z((0,v.dA)(t,null,[],"","menu",c,void 0,H,p,a,f,h,"Меню"))},500))}),e&&z((0,v.dA)(t,null,[],"","menu",c,void 0,H,p,a,f,h,"Меню"));return}if(t?.variants.length){ed();return}ec||(e=t?.variants?.filter(e=>{let t=e?.restaurants?.find(e=>e.id===u?.id);return!(!t||t?.["in-stop-list"])&&("self"!==B.deliveryType||t?.["display-in-pickup"]!==!1)&&("self"===B.deliveryType||t?.["available-for-delivery"]!==!1)})),z((0,v.dA)(t,e?.[0]??null,[],"","menu",c,void 0,H,p,null,f,h,"Меню")),"storefront"===p&&ym(23457298,"reachGoal","add_to_cart"),"search"===p&&ym(23457298,"reachGoal","cart_add_search")},[n,t,c,H,o,a,ec]),em=(0,r.useCallback)(async()=>{n||z((0,R.sB)({createModal:F})),n&&z((0,v.nt)(t,F))},[n,t]),eg=(0,r.useMemo)(()=>{let e=t?.images?.map(e=>e?.thumbnails?.[e?.thumbnails.length-1]?.url??"");return e?.length?e:["/static/images/cabinet/no-photo-image.jpg"]},[t?.images]),ey=(0,r.useCallback)(e=>{er(e),b.current?.slideTo?.(e)},[]);return(0,d.jsx)(x,{onMouseEnter:()=>et(!0),onMouseLeave:()=>et(!1),children:(0,d.jsxs)("div",{children:[(0,d.jsxs)(w,{className:"product-picture-wrapper",children:[!!t.labels?.[0]&&(0,d.jsx)(E,{children:t.labels[0]}),m?(0,d.jsx)($,{images:eg,title:t.title,onClick:ed,ref:b,onSetImageIndex:er,iconFavoritesRef:L,iconsCartRef:Z}):(0,d.jsx)(g,{onClick:ed,fill:!0,src:t?.images?.[0]?.thumbnails?.[1]?.url||t?.images?.[0]?.thumbnails?.[0]?.url||"/static/images/cabinet/login-sketch.jpg",alt:t.title,placeholder:"blur",blurDataURL:"/static/images/background-product.jpg"}),(0,d.jsx)(k,{className:"product-favorites-button",children:n&&(0,d.jsx)(j,{onClick:el,isFavorite:ea})}),(0,d.jsx)(O,{isInCart:ep,isHovered:ee,ref:Z,children:t.isAvailable&&(0,d.jsxs)(P,{isInCart:ep,children:[(0,d.jsx)(I,{isInCart:ep,onClick:em,children:(0,d.jsx)(A.Z,{})}),(0,d.jsx)(D,{isInCart:ep,children:eu||1}),(0,d.jsx)(N,{isInCart:ep,onClick:eh,children:(0,d.jsx)(M.Z,{})})]})})]}),m&&(0,d.jsx)(Y,{length:eg.length,onClick:ey,activeIndex:en}),(0,d.jsxs)(_,{children:[(0,d.jsx)(C,{onClick:ed,className:"product-title",children:(t.title||t.name||t.product?.title||t.product?.name||"").replace(/\\u([\d\w]{4})/gi,(e,t)=>
29String.fromCodePoint(parseInt(t,16)))}),(0,d.jsxs)(S,{className:"product-values",children:[(0,d.jsxs)("div",{children:[eo&&(0,d.jsxs)(W.W,{children:[eo," / "]}),(0,d.jsx)(W.jF,{children:ef})]}),(0,d.jsx)("div",{children:t["loyalty-extra-bonus-percent"]&&(0,d.jsx)(T,{children:t["loyalty-extra-bonus-percent"]})})]})]})]})})}},10893:function(e,t,n){"use strict";n.d(t,{m3:function(){return i},b1:function(){return o},w7:function(){return a},DV:function(){return s},pq:function(){return l},h_:function(){return c},K7:function(){return u},m2:function(){return d},Oh:function(){return p},cO:function(){return g},V9:function(){return f},cU:function(){return h},J1:function(){return m}});var r=n(85893);function i(){return(0,r.jsxs)("svg",{width:"112",height:"34",viewBox:"0 0 112 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M105.092 0H6.84138C0.971034 0 0 1.84 0 6.22V27.83C0 32.2 2.00828 34 6.83034 34H105.092C109.926 34 112 32.19 112 27.82V6.22C112 1.84 109.926 0 105.092 0Z",fill:"#212121"}),(0,r.jsx)("path",{d:"M54.2615 19.4896C52.429 19.4896 50.9708 20.8896 50.9708 22.8296C50.9708 24.6896 52.4191 26.1696 54.2615 26.1696C56.1039 26.1696 57.5521 24.7696 57.5521 22.8296C57.5423 20.8096 56.094 19.4896 54.2615 19.4896ZM54.2615 24.7696C53.2664 24.7696 52.429 23.9196 52.429 22.7496C52.429 21.5896 53.2664 20.7296 54.2615 20.7296C55.2566 20.7296 56.094 21.5096 56.094 22.7496C56.094 23.9096 55.2467 24.7696 54.2615 24.7696ZM47.1482 19.4896C45.3157 19.4896 43.8575 20.8896 43.8575 22.8296C43.8575 24.6896 45.3058 26.1696 47.1482 26.1696C48.9906 26.1696 50.4388 24.7696 50.4388 22.8296C50.4388 20.8096 48.9807 19.4896 47.1482 19.4896ZM47.1482 24.7696C46.1531 24.7696 45.3157 23.9196 45.3157 22.7496C45.3157 21.5896 46.1531 20.7296 47.1482 20.7296C48.1433 20.7296 48.9807 21.5096 48.9807 22.7496C48.9807 23.9096 48.1433 24.7696 47.1482 24.7696ZM38.6654 20.4996V21.8996H41.9561C41.8773 22.6796 41.5718 23.2996 41.1876 23.6796C40.7245 24.1496 39.9659 24.6896 38.6654 24.6896C36.6063 24.6896 35.0694 23.0596 35.0694 20.9696C35.0694 18.8796 36.6753 17.2496 38.6654 17.2496C39.7393 17.2496 40.5768 17.7196 41.1876 18.2596L42.1827 17.2496C41.3452 16.4696 40.2713 15.8496 38.7442 15.8496C35.9955 15.8496 33.6211 18.1796 33.6211 20.9696C33.6211 23.7596 35.9856 26.0896 38.7442 26.0896C40.2713 26.0896 41.3452 25.6196 42.2615 24.6196C43.1777 23.6896 43.4832 22.3696 43.4832 21.3596C43.4832 21.0496 43.4832 20.7396 43.4043 20.5096L38.6654 20.4996ZM73.3649 21.5796C73.0595 20.7996 72.291 19.4896 70.6162 19.4896C68.9314 19.4896 67.562 20.8096 67.562 22.8296C67.562 24.6896 68.9413 26.1696 70.7738 26.1696C72.2221 26.1696 73.1383 25.2396 73.4536 24.6996L72.3797 23.9196C71.9955 24.4596 71.5423 24.8496 70.7738 24.8496C70.0053 24.8496 69.5521 24.5396 69.1679 23.8396L73.5226 21.9796L73.3649 21.5796ZM68.9314 22.6696C68.9314 21.4296 69.9265 20.7296 70.6162 20.7296C71.1482 20.7296 71.6901 21.0396 71.8378 21.4296L68.9314 22.6696ZM65.3354 25.8496H66.7935V16.1496H65.3452V25.8496H65.3354ZM63.0497 20.1896C62.6654 19.7996 62.0546 19.4096 61.296 19.4096C59.6901 19.4096 58.163 20.8796 58.163 22.7496C58.163 24.6196 59.6112 26.0096 61.296 26.0096C62.0644 26.0096 62.6753 25.6196 62.9807 25.2296H63.0595V25.6996C63.0595 26.9396 62.3699 27.6396 61.3058 27.6396C60.4684 27.6396 59.8575 27.0196 59.6999 26.4796L58.4782 27.0196C58.8625 27.8696 59.7787 28.9596 61.3846 28.9596C63.0694 28.9596 64.4388 27.9496 64.4388 25.5496V19.6496H63.0595L63.0497 20.1896ZM61.3649 24.7696C60.3699 24.7696 59.5324 23.9196 59.5324 22.7496C59.5324 21.5896 60.3699 20.7296 61.3649 20.7296C62.36 20.7296 63.1186 21.5796 63.1186 22.7496C63.1186 23.9096 62.36 24.7696 61.3649 24.7696ZM80.0152 16.1496H76.5768V25.8496H78.025V22.1996H80.0152C81.6211 22.1996 83.1482 21.0396 83.1482 19.1696C83.1482 17.2996 81.6211 16.1496 80.0152 16.1496ZM80.094 20.8096H78.025V17.4696H80.094C81.1679 17.4696 81.7787 18.3996 81.7787 19.0996C81.6901 19.9596 81.0792 20.8096 80.094 20.8096ZM88.8822 19.4096C87.8083 19.4096 86.7442 19.8796 86.36 20.8796L87.6605 21.4196C87.9659 20.8796 88.429 20.7196 88.961 20.7196C89.7295 20.7196 90.4093 21.1896 90.4881 21.9596V22.0396C90.2615 21.8796 89.6507 21.6496 89.0398 21.6496C87.6605 21.6496 86.291 22.4296 86.291 23.8196C86.291 25.1396 87.4339 25.9896 88.6556 25.9896C89.6507 25.9896 90.1039 25.5196 90.4881 25.0596H90.5669V25.8396H91.9462V22.1196C91.7787 20.4196 90.4881 19.4096 88.8822 19.4096ZM88.7245 24.7696C88.2615 24.7696 87.5817 24.5396 87.5817 23.9196C87.5817 23.1396 88.4191 22.9096 89.1088 22.9096C89.7196 22.9096 90.025 23.0696 90.4093 23.2196C90.2516 24.1396 89.493 24.7696 88.7245 24.7696ZM96.7541 19.6496L95.1482 23.8396H95.0694L93.3846 19.6496H91.8575L94.3797 25.5496L92.9314 28.7996H94.3797L98.2812 19.6496H96.7541ZM83.9068 25.8496H85.3551V16.1496H83.9068V25.8496Z",fill:"white"}),(0,r.jsx)("path",{d:"M37.6895 11.8195C37.2954 12.2795 36.8323 12.4995 36.2708 12.4995C35.7683 12.4995 35.3447 12.3295 34.9998 11.9795C34.655 11.6395 34.4875 11.1795 34.4875 10.6295C34.4875 10.0695 34.6649 9.61947 34.9998 9.27947C35.3447 8.93947 35.7683 8.75947 36.2708 8.75947C36.8126 8.75947 37.2264 8.94947 37.5417 9.34947L37.6107 9.43947L38.1919 8.86947L38.123 8.79947C37.6501 8.23947 37.0195 7.95947 36.2609 7.95947C35.522 7.95947 34.8915 8.21947 34.389 8.72947C33.8865 9.23947 33.6304 9.87947 33.6304 10.6395C33.6304 11.3995 33.8865 12.0395 34.389 12.5495C34.89
2915 13.0595 35.522 13.3195 36.2609 13.3195C36.6649 13.3195 37.0491 13.2395 37.3939 13.0695C37.7387 12.9095 38.0343 12.6795 38.2609 12.3995L38.32 12.3295L37.7486 11.7495L37.6895 11.8195Z",fill:"white"}),(0,r.jsx)("path",{d:"M44.5076 8.09961L42.6948 12.9796L40.8721 10.3296L42.6553 8.23961V8.09961H41.6701L39.6012 10.4696V8.09961H38.813V13.1996H39.6012V11.7096L40.2613 10.9596L41.8278 13.1996H42.5962H42.744H43.5026L43.9755 11.8996H45.877L46.3499 13.1996H47.2563L45.3549 8.09961H44.5076ZM45.5913 11.0996H44.2613L44.9312 9.22961L45.5913 11.0996Z",fill:"white"}),(0,r.jsx)("path",{d:"M50.0449 10.0596C49.8478 10.3496 49.4931 10.4996 49.0793 10.4996C48.7936 10.4996 48.5572 10.4196 48.4094 10.2696C48.2518 10.1196 48.1729 9.89961 48.1729 9.60961V8.09961H47.3848V9.72961C47.3848 10.2096 47.5326 10.5896 47.8478 10.8796C48.1631 11.1596 48.5473 11.2996 49.0104 11.2996C49.434 11.2996 49.7887 11.1796 50.0744 10.9296L50.0547 11.0896V13.1996H50.9414V8.09961H50.0547V10.0596H50.0449Z",fill:"white"}),(0,r.jsx)("path",{d:"M52.3106 11.6996V11.0596V8.09961H51.5225V13.1996H52.3303L54.6752 9.39961V10.0296V13.1996H55.4634V8.09961H54.5569L52.3106 11.6996Z",fill:"white"}),(0,r.jsx)("path",{d:"M59.0495 10.5396C59.1973 10.4496 59.3155 10.3296 59.4042 10.1896C59.5322 9.98961 59.6012 9.76961 59.6012 9.50961C59.6012 9.09961 59.4534 8.75961 59.148 8.48961C58.8524 8.21961 58.4978 8.09961 58.0938 8.09961H56.2515V13.1996H58.2022C58.6258 13.1996 58.9904 13.0596 59.3056 12.7796C59.6209 12.4996 59.7785 12.1296 59.7785 11.6996C59.7785 11.4096 59.6899 11.1596 59.5224 10.9396C59.3943 10.7696 59.2367 10.6296 59.0495 10.5396ZM58.5963 9.98961C58.4682 10.1296 58.3106 10.1996 58.1037 10.1996H57.0396V8.89961H58.1332C58.3303 8.89961 58.4879 8.94961 58.6061 9.08961C58.7244 9.22961 58.7835 9.36961 58.7835 9.53961C58.7835 9.69961 58.7244 9.84961 58.5963 9.98961ZM58.7342 12.1796C58.6061 12.3296 58.4386 12.3996 58.2219 12.3996H57.0396V10.9996H58.2022C58.4288 10.9996 58.5963 11.0596 58.7342 11.2096C58.8721 11.3596 58.9411 11.5096 58.9411 11.6896C58.9313 11.8696 58.8721 12.0196 58.7342 12.1796Z",fill:"white"}),(0,r.jsx)("path",{d:"M61.7286 8.09961L59.8271 13.1996H60.7336L61.2065 11.8996H63.1079L63.5808 13.1996H64.4872L62.5858 8.09961H61.7286ZM62.8222 11.0996H61.4922L62.1621 9.22961L62.8222 11.0996Z",fill:"white"}),(0,r.jsx)("path",{d:"M66.7633 7.8998C67.0194 7.8998 67.2263 7.8098 67.4135 7.6198C67.6007 7.4298 67.6795 7.1998 67.6795 6.9298V6.7998H66.9899V6.9298C66.9899 7.0098 66.98 7.0798 66.9308 7.1398
29C66.8815 7.1998 66.8322 7.2198 66.7534 7.2198C66.6648 7.2198 66.6155 7.1898 66.5662 7.1398C66.517 7.0798 66.4973 7.0098 66.4973 6.9298V6.7998H65.8076V6.9298C65.8076 7.1998 65.8963 7.4298 66.0933 7.6198C66.2904 7.8098 66.5071 7.8998 66.7633 7.8998Z",fill:"white"}),(0,r.jsx)("path",{d:"M65.6006 11.6996L65.6104 11.0596V8.09961H64.8223V13.1996H65.6104L67.975 9.39961V10.0296V13.1996H68.7632V8.09961H67.837L65.6006 11.6996Z",fill:"white"}),(0,r.jsx)("path",{d:"M69.1572 8.89961H70.5365V13.1996H71.4232V8.89961H72.704V8.09961H69.1572V8.89961Z",fill:"white"}),(0,r.jsx)("path",{d:"M73.1968 13.1996H76.251V12.3996H74.0835V10.9996H76.0539V10.1996H74.0835V8.89961H76.251V8.09961H73.1968V13.1996Z",fill:"white"}),(0,r.jsx)("path",{d:"M81.6795 10.9296C81.5515 10.7596 81.3938 10.6296 81.2165 10.5396C81.3643 10.4496 81.4825 10.3296 81.5712 10.1896C81.6993 9.98961 81.7682 9.76961 81.7682 9.50961C81.7682 9.09961 81.6204 8.75961 81.315 8.48961C81.0195 8.21961 80.6648 8.09961 80.2608 8.09961H78.4185V13.1996H80.3593C80.783 13.1996 81.1475 13.0596 81.4628 12.7796C81.7781 12.4996 81.9357 12.1296 81.9357 11.6996C81.9259 11.4096 81.8372 11.1496 81.6795 10.9296ZM80.7534 9.98961C80.6254 10.1296 80.4677 10.1996 80.2608 10.1996H79.2066V8.89961H80.2904C80.4874 8.89961 80.6451 8.94961 80.7633 9.08961C80.8815 9.22961 80.9406 9.36961 80.9406 9.53961C80.9406 9.69961 80.8815 9.84961 80.7534 9.98961ZM80.8914 12.1796C80.7633 12.3296 80.5958 12.3996 80.3791 12.3996H79.2066V10.9996H80.3593C80.586 10.9996 80.7534 11.0596 80.8914 11.2096C81.0293 11.3596 81.0983 11.5096 81.0983 11.6896C81.0884 11.8696 81.0293 12.0196 80.8914 12.1796Z",fill:"white"}),(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.1726 14.01L14.2021 7.02002L23.6603 16.56L26.1726 14.01Z",fill:"white"}),(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0985 7.08984C13.0493 7.16984 13 7.26984 13 7.37984V27.1599C13 27.2199 13.0296 27.2799 13.0493 27.3398L23.0591 17.1598L13.0985 7.08984Z",fill:"white"}),(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.6605 17.7402L13.8477 27.7202C13.8772 27.7102 13.9068 27.7002 13.9363 27.6802L26.3403 20.4402L23.6605 17.7402Z",fill:"white"}),(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.8727 16.7504L26.9121 14.4404L24.2422 17.1504L27.0698 20.0104L30.8727 17.7904C31.2668 17.5604 31.2668 16.9804 30.8727 16.7504Z",fill:"white"})]})}function o(){return(0,r.jsxs)("svg",{width:"112",height:"34",viewBox:"0 0 112 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M105.092 0H6.84138C0.971034 0 0 1.84 0 6.22V27.83C0 32.2 2.00828 34 6.83034 34H105.092C109.926 34 112 32.19 112 27.82V6.22C112 1.84 109.926 0 105.092 0Z",fill:"#212121"}),(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M32.431 21.16C31.9285 22.29 31.6822 22.8 31.0418 23.8C30.1354 25.2 28.8645 26.94 27.2782 26.95C25.8694 26.96 25.5147 26.02 23.6034 26.03C21.7019 26.04 21.2979 26.96 19.8989 26.95C18.3226 26.94 17.1107 25.36 16.2043 23.96C13.6723 20.05 13.4063 15.46 14.9728 13.02C16.0861 11.29 17.83 10.27 19.4753 10.27C21.1502 10.27 22.2044 11.2 23.5837 11.2C24.9236 11.2 25.7413 10.27 27.6822 10.27C29.1502 10.27 30.697 11.08 31.8004 12.48C28.1847 14.51 28.7758 19.76 32.431 21.16Z",fill:"white"}),(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.2238 8.72971C26.9233 7.80971 27.4651 6.51971 27.2681 5.19971C26.1154 5.27971 24.7755 6.01971 23.9873 6.98971C23.2779 7.86971 22.6868 9.16971 22.9134 10.4397C24.1646 10.4697 25.4651 9.70971 26.2238 8.72971Z",fill:"white"}),(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M97.437 22.9997H92.3533C92.373 23.6997 92.6193 24.3097 93.0922 24.7197C93.5159 25.0797 94.0774 25.2497 94.7572 25.2497C95.5159 25.2497 96.1957 25.1197 96.8163 24.8697L97.0824 26.0597C96.3631 26.3797 95.506 26.5297 94.5208 26.5297C93.3385 26.5297 92.4124 26.1797 91.7326 25.4697C91.0627 24.7597 90.7178 23.8197 90.7178 22.6297C90.7178 21.4597 91.0331 20.4897 91.6636 19.7097C92.3237 18.8797 93.2203 18.4697 94.3336 18.4697C95.437 18.4697 96.2646 18.8797 96.8262 19.7097C97.2794 20.3697 97.506 21.2197 97.506 22.1797C97.4962 22.4897 97.4765 22.7997 97.437 22.9997ZM90.2055 20.1597C90.107 20.1297 89.841 20.1197 89.6538 20.1197C89.0528 20.1197 88.5897 20.3497 88.2646 20.7997C87.9789 21.1997 87.8311 21.7097 87.8311 22.3297V26.2997H86.1563V21.0797C86.1563 20.1897 86.1168 19.3997 86.0873 18.5997H87.5651L87.6242 20.1997H87.6735C87.8508 19.6997 88.1366 19.2497 88.5208 18.9397C88.8952 18.6597 89.3188 18.5097 89.7622 18.5097C89.9198 18.5097 90.0971 18.4997 90.1957 18.5197V20.1597H90.2055ZM84.0774 25.3897C83.3779 26.1697 82.442 26.5697 81.2794 26.5697C80.1563 26.5697 79.2597 26.1897 78.5996 25.4397C77.9395 24.6897 77.6045 23.7297 77.6045 22.5897C77.6045 21.3897 77.9494 20.4097 78.6292 19.6397C79.3188 18.8697 80.2351 18.4897 81.3976 18.4897C82.5208 18.4897 83.4173 18.8597 84.0971 19.6197C84.7474 20.3497 85.0725 21.2997 85.0725 22.4497C85.0824 23.6497 84.7474 24.6197 84.0774 25.3897ZM77.1021 19.9997H75.3287V23.6997C75.3287 24.6597 75.6242 25.1297 76.2843 25.1297C76.5897 25.1297 76.8163 25.1097 77.0134 25.0497L77.0528 26.3497C76.7178 26.4797 76.2745 26.5397 75.7326 26.5397C75.0627 26.5397 74.5208 26.3397 74.1464 25.9197C73.7622 25.5097 73.5651 24.8097 73.5651 23.8297V19.9997H72.4814V18.5997H73.5651V17.2297L75.3385 16.7197V18.5997H77.1119V19.9997H77.1021ZM71.1415 25.6097C70.4518 26.2397 69.4863 26.5497 68.2548 26.5497C67.1119 26.5497 66.2055 26.3297 65.5159 25.8797L65.9099 24.4497C66.6489 24.8897 67.4666 25.1197 68.3533 25.1197C68.9937 25.1197 69.4863 24.9697 69.8508 24.6797C70.2055 24.3897 70.3829 23.9997 70.3829 23.4997C70.3829 23.0697 70.2351 22.6997 69.9494 22.3997C69.6538 22.0997 69.171 21.8297 68.4912 21.5697C66.639 20.8697 65.7129 19.8497 65.7129 18.4997C65.7129 17.6197 66.038 16.8897 66.6883 16.3297C67.3385 15.7697 68.2055 15.4897 69.2893 15.4897C70.2548 15.4897 71.0528 15.6597 71.6932 15.9997L71.2696 17.3997C70.6686 17.0697 69.9986 16.9097 69.24 16.9097C68.639 16.9097 68.176 17.0597 67.841 17.3497C67.5553 17.6197 67.4173 17.9397 67.4173 18.3197C67.4173 18.7397 67.575 19.0897 67.9001 19.3697C68.1858 19.6197 68.6981 19.8997 69.437 20.1997C70.3533 20.5697 71.0134 21.0097 71.4469 21.5097C71.8705 22.0097 72.0873 22.6297 72.0873 23.3697C72.0774 24.2897 71.7622 25.0397 71.1415 25.6097ZM61.3484 25.5497C60.7178 26.2297 59.9297 26.5697 58.9937 26.5697C57.9888 26.5697 57.309 26.1997 56.8163 25.4697V29.5997H55.1415V21.1897C55.1415 20.3597 5
295.1119 19.5997 55.0725 18.5997H56.5602L56.6587 19.8997H56.6883C57.2597 18.9997 58.1168 18.4997 59.2597 18.4997C60.1563 18.4997 60.9149 18.8497 61.5159 19.5797C62.1168 20.2997 62.4223 21.2497 62.4223 22.4297C62.4026 23.7497 62.0577 24.7797 61.3484 25.5497ZM52.9641 25.5497C52.3336 26.2297 51.5454 26.5697 50.6095 26.5697C49.5947 26.5697 48.9247 26.1997 48.4321 25.4697V29.5997H46.7572V21.1897C46.7572 20.3597 46.7178 19.5997 46.6784 18.5997H48.1661L48.2646 19.8997H48.2942C48.8656 18.9997 49.7228 18.4997 50.8755 18.4997C51.772 18.4997 52.5208 18.8497 53.1316 19.5797C53.7326 20.2997 54.038 21.2497 54.038 22.4297C54.0282 23.7497 53.6735 24.7797 52.9641 25.5497ZM43.9001 26.2997L42.9149 23.1997H39.4666L38.5208 26.2997H36.7671L40.1661 15.5997H42.2745L45.703 26.2997H43.9001ZM94.1957 19.6597C93.6439 19.6597 93.1907 19.9497 92.8459 20.4097C92.5602 20.7797 92.3927 21.1897 92.3434 21.7897H95.8705C95.8804 21.1897 95.772 20.7897 95.5454 20.4197C95.2597 19.9497 94.8065 19.6597 94.1957 19.6597ZM41.1809 17.0997H41.1513C41.043 17.5997 40.8755 18.2697 40.6489 19.1597L39.772 21.9997H42.6095L41.7228 19.1597C41.6242 18.8697 41.437 18.0997 41.1809 17.0997ZM58.6981 19.8597C58.2745 19.8597 57.9001 19.9997 57.5651 20.2797C57.2203 20.5697 56.9937 20.9297 56.8952 21.3897C56.8459 21.5997 56.8163 21.7797 56.8163 21.9197V23.1997C56.8163 23.7597 56.9937 24.2397 57.3287 24.6297C57.6636 25.0097 58.1168 25.2097 58.6587 25.2097C59.2991 25.2097 59.8016 24.9597 60.1563 24.4597C60.5109 23.9597 60.6883 23.2997 60.6883 22.4797C60.6883 21.7297 60.5208 21.1097 60.1858 20.6197C59.8114 20.1197 59.3188 19.8597 58.6981 19.8597ZM81.3385 19.7497C80.6587 19.7497 80.1464 20.0597 79.7917 20.6697C79.4863 21.1797 79.3385 21.7897 79.3385 22.5297C79.3385 23.2397 79.4863 23.8497 79.7917 24.3597C80.1562 24.9697 80.6686 25.2797 81.3287 25.2797C81.9691 25.2797 82.4814 24.9697 82.8459 24.3397C83.1612 23.8297 83.3188 23.2097 83.3188 22.4997C83.3188 21.7897 83.171 21.1797 82.8656 20.6697C82.5109 20.0497 81.9986 19.7497 81.3385 19.7497ZM50.3139 19.8597C49.9001 19.8597 49.5159 19.9997 49.1809 20.2797C48.8361 20.5697 48.6193 20.9297 48.5109 21.3897C48.4617 21.5997 48.4321 21.7797 48.4321 21.9197V23.1997C48.4321 23.7597 48.5996 24.2397 48.9444 24.6297C49.2794 25.0097 49.7228 25.2097 50.2745 25.2097C50.9149 25.2097 51.4173 24.9597 51.772 24.4597C52.1267 23.9597 52.304 23.2997 52.304 22.4797C52.304 21.7297 52.1365 21.1097 51.8016 20.6197C51.4272 20.1197 50.9346 19.8597 50.3139 19.8597Z",fill:"white"}),(0,r.jsx)("path",{d:"M41.9685 7.40967V12.1497L42.4907 12.1697L42.4316 14.3197H41.673L41.6139 12.9497H38.3035L38.2444 14.3197H37.4858L37.4365 12.1697L37.87 12.1497C38.0769 11.7597 38.274 11.3597 38.3922 10.9197C38.5597 10.3297 38.6286 9.64967 38.6286 8.85967V7.40967H41.9685ZM39.5547 9.10967C39.5547 9.86966 39.4759 10.5497 39.2986 11.1297C39.1902 11.4897 39.0424 11.8497 38.8947 12.1197H40.9735V8.23967H39.5547V9.10967Z",fill:"white"}),(0,r.jsx)("path",{d:"M46.9439 10.9196C46.9439 12.3896 45.9193 13.0496 44.9144 13.0496C43.8011 13.0496 42.9341 12.2696 42.9341 10.9896C42.9341 9.6696 43.7814 8.8696 44.9735 8.8696C46.1558 8.8596 46.9439 9.6996 46.9439 10.9196ZM43.9686 10.9596C43.9686 11.7296 44.3429 12.3196 44.9538 12.3196C45.5252 12.3196 45.9193 11.7496 45.9193 10.9496C45.9193 10.3196 45.6434 9.6096 44.9636 9.6096C44.2543 9.5996 43.9686 10.2896 43.9686 10.9596Z",fill:"white"}),(0,r.jsx)("path",{d:"M50.6683 12.8299C50.4614 12.9299 50.0476 13.0399 49.5452 13.0399C48.3137 13.0399 47.5156 12.2399 47.5156 10.9999C47.5156 9.79986 48.3235 8.85986 49.7127 8.85986C50.0772 8.85986 50.4516 8.93986 50.6782 9.04986L50.5008 9.80986C50.3432 9.73986 50.1068 9.64986 49.7521 9.64986C48.9935 9.64986 48.5403 10.2199 48.5403 10.9499C48.5403 11.7699 49.0624 12.2399 49.7521 12.2399C50.0969 12.2399 50.3432 12.1699 50.5403 12.0799L50.6683 12.8299Z",fill:"white"}),(0,r.jsx)("path",{d:"M54.4514 8.94971V9.72971H53.2691V12.9497H52.2741V9.72971H51.0918V8.94971H54.4514Z",fill:"white"}),(0,r.jsx)("path",{d:"M55.8104 8.94945L56.5198 11.0995C56.5986 11.3495 56.6774 11.6495 56.7365 11.8795H56.7562C56.8252 11.6495 56.8941 11.3495 56.9631 11.0895L57.5838 8.94945H58.6577L57.6725 11.6795C57.1306 13.1795 56.7661 13.8395 56.2932 14.2495C55.9089 14.5995 55.4951 14.7395 55.2488 14.7695L55.0222 13.9095C55.1897 13.8695 55.4065 13.7795 55.6035 13.6295C55.7907 13.5095 56.0074 13.2695 56.1454 12.9995C56.1848 12.9295 56.2143 12.8695 56.2143 12.8195C56.2143 12.7795 56.2045 12.7195 56.1552 12.6195L54.7168 8.93945H55.8104V8.94945Z",fill:"white"}),(0,r.jsx)("path",{d:"M62.7172 8.94971V12.9597H61.7122V9.72971H60.2246V12.9497H59.2295V8.94971H62.7172Z",fill:"white"}),(0,r.jsx)("path",{d:"M64.7666 8.94971V10.4797H66.2936V8.94971H67.2887V12.9597H66.2936V11.2697H64.7666V12.9597H63.7715V8.94971H64.7666Z",fill:"white"}),(0,r.jsx)("path",{d:"M72.0963 10.9196C72.0963 12.3896 71.0717 13.0496 70.0667 13.0496C68.9534 13.0496 68.0864 12.2696 68.0864 10.9896C68.0864 9.6696 68.9337 8.8696 70.1258 8.8696C71.3081 8.8596 72.0963 9.6996 72.0963 10.9196ZM69.1209 10.9596C69.1209 11.729
296 69.4953 12.3196 70.1061 12.3196C70.6776 12.3196 71.0717 11.7496 71.0717 10.9496C71.0717 10.3196 70.7958 9.6096 70.116 9.6096C69.4066 9.5996 69.1209 10.2896 69.1209 10.9596Z",fill:"white"}),(0,r.jsx)("path",{d:"M74.5889 8.9999C74.8844 8.9499 75.4756 8.8999 76.0273 8.8999C76.6874 8.8999 77.8894 8.9899 77.8894 9.9099C77.8894 10.4199 77.5051 10.7099 77.0815 10.7999V10.8199C77.6628 10.9099 78.0667 11.2399 78.0667 11.7999C78.0667 12.8999 76.6381 13.0099 75.85 13.0099C75.3573 13.0099 74.8253 12.9799 74.5987 12.9499V8.9999H74.5889ZM75.5544 12.3499C75.712 12.3699 75.8401 12.3699 76.0371 12.3699C76.4903 12.3699 77.0421 12.2499 77.0421 11.7799C77.0421 11.3299 76.6086 11.1799 75.978 11.1799H75.5445V12.3499H75.5544ZM75.5544 10.5699H75.9682C76.4805 10.5699 76.9041 10.4199 76.9041 10.0399C76.9041 9.7199 76.6283 9.5499 76.0371 9.5499C75.8401 9.5499 75.712 9.5699 75.5544 9.5799V10.5699Z",fill:"white"})]})}function a(){return(0,r.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M10.1421 10.0001L12.0091 22.1357C12.0227 22.2359 12.0511 22.3313 12.0921 22.4198C12.2154 22.6861 12.4524 22.889 12.7408 22.9661C12.829 22.9898 12.9213 23.0016 13.0157 23H23.9999C24.4415 23 24.8308 22.7104 24.9577 22.2874L27.9577 12.2875C28.0485 11.9847 27.9909 11.6568 27.8022 11.4032C27.6135 11.1496 27.316 11.0001 26.9999 11.0001H12.3194L11.9906 8.86232C11.9782 8.77294 11.9541 8.68733 11.9198 8.60711C11.8575 8.46104 11.7621 8.33451 11.6443 8.23533C11.5349 8.14314 11.4056 8.07396 11.2636 8.03526C11.1743 8.0108 11.0806 7.99855 10.9847 8.00014H8.99999C8.44771 8.00014 8 8.44785 8 9.00013C8 9.55241 8.44771 10.0001 8.99999 10.0001H10.1421ZM13.8579 21L12.6271 13.0001H25.6558L23.2559 21H13.8579Z",fill:"#212121"}),(0,r.jsx)("path",{d:"M15.9999 26C15.9999 27.1046 15.1045 28 14 28C12.8954 28 12 27.1046 12 26C12 24.8955 12.8954 24 14 24C15.1045 24 15.9999 24.8955 15.9999 26Z",fill:"#212121"}),(0,r.jsx)("path",{d:"M24.9999 26C24.9999 27.1046 24.1045 28 22.9999 28C21.8953 28 20.9999 27.1046 20.9999 26C20.9999 24.8955 21.8953 24 22.9999 24C24.1045 24 24.9999 24.8955 24.9999 26Z",fill:"#212121"})]})}function s(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,r.jsx)("path",{d:"M3.20921 5.21967C3.48816 4.92678 3.94042 4.92678 4.21936 5.21967L8 9.18934L11.7806 5.21967C12.0596 4.92678 12.5118 4.92678 12.7908 5.21967C13.0697 5.51256 13.0697 5.98744 12.7908 6.28033L8.50508 10.7803C8.22613 11.0732 7.77387 11.0732 7.49492 10.7803L3.20921 6.28033C2.93026 5.98744 2.93026 5.51256 3.20921 5.21967Z",fill:"#212121"})})}function l(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"184",height:"81",viewBox:"0 0 184 81",fill:"none",children:[(0,r.jsxs)("g",{"clip-path":"url(#clip0_30028_1006)",children:[(0,r.jsx)("path",{d:"M4.91577 52.3324C4.91577 52.3324 18.7475 63.8284 41.7661 68.7288C44.1907 69.3744 46.5484 70.2459 48.8079 71.3319C50.8598 72.3323 52.5386 73.0641 57.1088 74.852C65.5869 78.1498 75.1842 79.3633 82.4125 79.9099C92.2609 80.6916 102.168 80.2997 111.923 78.7427C120.904 77.1493 126.584 75.2503 129.401 74.0368C138.551 70.0813 138.355 69.6181 142.767 68.0526C152.784 64.4861 168.938 60.9753 177.033 53.4719C184.346 46.6817 16.6116 43.6248 16.6116 43.6248C16.6116 43.6248 1.98714 47.8211 4.91577 52.3324Z",fill:"white"}),(0,r.jsx)("path",{d:"M92.1116 81.0034C88.8286 81.0034 85.5362 80.883 82.3557 80.6422C71.9936 79.8548 63.7021 78.1873 56.8561 75.538C52.1927 73.6853 50.5512 72.9905 48.462 71.99C46.2564 70.9185 43.9552 70.0533 41.5881 69.4055C18.7 64.5237 4.60716 52.9814 4.46726 52.8609L4.32735 52.7034C4.06501 52.3226 3.89991 51.8841 3.84629 51.4258C3.79266 50.9675 3.85214 50.503 4.01957 50.0726C5.48388 46.1912 15.2118 43.2825 16.359 42.9583L16.4616 42.9583L16.5642 42.9583C16.9559 42.9583 56.5763 43.6993 95.9823 45.2C176.193 48.2477 177.35 51.351 177.863 52.6664C177.949 52.9003 177.959 53.1555 177.89 53.3953C177.822 53.635 177.678 53.8469 177.48 54.0003C171.147 59.8827 160.3 63.2638 150.722 66.2189C147.923 67.0897 145.284 67.9141 142.971 68.7293C141.26 69.3319 139.593 70.05 137.981 70.8784C136.34 71.6751 134.092 72.7311 129.652 74.7043C127.731 75.5287 122.191 77.65 112.015 79.4564C105.437 8
290.5337 98.7784 81.0513 92.1116 81.0034ZM5.44658 51.879C6.64974 52.8053 20.2669 63.4491 41.9145 68.0531C44.3954 68.7265 46.8063 69.6322 49.1149 70.758C51.1295 71.7399 52.715 72.444 57.3598 74.2503C64.0378 76.8534 72.2828 78.493 82.4677 79.2712C92.2464 80.0243 102.081 79.6201 111.763 78.0669C121.78 76.2883 127.218 74.2133 129.093 73.4351C133.504 71.5269 135.733 70.4338 137.365 69.6371C139.026 68.7875 140.743 68.0509 142.505 67.4324C144.836 66.5987 147.494 65.7742 150.302 64.9035C159.694 61.9855 170.327 58.6877 176.417 53.074C174.999 51.8975 163.714 49.1648 95.1615 46.5895C57.024 45.1444 18.9145 44.4219 16.6201 44.3848C13.7195 45.2278 6.36061 47.9142 5.29735 50.6192C5.2248 50.8267 5.20053 51.0479 5.22638 51.2661C5.25223 51.4843 5.32751 51.6938 5.44658 51.879Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M183.3 45.1907C183.3 59.0859 141.488 70.3411 91.0673 70.3411C40.6463 70.3411 0.699463 59.0767 0.699463 45.1907C0.699463 31.3047 41.579 20.0403 92 20.0403C142.421 20.0403 183.3 31.3047 183.3 45.1907Z",fill:"white"}),(0,r.jsx)("path",{d:"M91.0673 71.0358C40.0028 71.0358 1.88492e-09 59.6787 1.20768e-09 45.1906C5.30445e-10 30.7025 40.4132 19.3547 92 19.3547C143.587 19.3547 184 30.7025 184 45.1906C184 52.2309 174.151 58.7894 156.281 63.6435C138.727 68.4049 115.569 71.0358 91.0673 71.0358ZM92 20.7443C67.6756 20.7443 44.8155 23.3473 27.6448 28.0809C10.959 32.6664 1.39903 38.91 1.39903 45.1906C1.39903 58.6783 41.6257 69.6462 91.0673 69.6462C140.686 69.6462 182.601 58.4467 182.601 45.1906C182.601 38.91 173.041 32.6664 156.374 28.0809C139.185 23.3473 116.324 20.7443 92 20.7443Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M126.202 27.0898C126.202 27.0898 171.241 31.1658 175.718 43.9679C178.684 52.4626 159.209 57.6779 159.209 57.6779",fill:"white"}),(0,r.jsx)("path",{d:"M159.209 58.3635C159.036 58.3678 158.867 58.3082 158.736 58.1963C158.604 58.0843 158.52 57.9279 158.498 57.7574C158.475 57.5868 158.518 57.4142 158.617 57.2729C158.715 57.1316 158.863 57.0317 159.032 56.9925C159.153 56.9925 171.763 53.5279 174.729 47.9605C175.053 47.3924 175.25 46.7615 175.307 46.1108C175.363 45.4602 175.277 44.8051 175.055 44.1903C170.774 31.9625 126.584 27.7939 126.136 27.7939C125.953 27.7751 125.784 27.6863 125.666 27.5463C125.548 27.4062 125.489 27.226 125.502 27.0436C125.509 26.9517 125.534 26.8622 125.577 26.7804C125.619 26.6985 125.678 26.6261 125.749 26.5673C125.821 26.5085 125.903 26.4646 125.992 26.4382C126.081 26.4118 126.174 26.4034 126.267 26.4137C128.132 26.5804 171.8 30.6749 176.37 43.7549C176.657 44.5505 176.769 45.3979 176.698 46.2401C176.628 47.0822 176.376 47.8995 175.96 48.6368C172.714 54.7229 159.937 58.1967 159.396 58.3635C159.334 58.3724 159.271 58.3724 159.209 58.3635Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M55.0934 27.0898C55.0934 27.0898 12.1247 31.1658 7.83432 43.9679C5.03627 52.4626 23.5874 57.6779 23.5874 57.6779",fill:"white"}),(0,r.jsx)("path",{d:"M23.5875 58.3634C23.5225 58.3724 23.4566 58.3724 23.3916 58.3634C22.8879 58.2152 10.847 54.7877 7.63855 48.7665C7.20988 48.0142 6.94667 47.1803 6.86628 46.3196C6.7859 45.459 6.89017 44.5911 7.17221 43.7734C11.5372 30.6749 53.2562 26.5711 55.0283 26.4044C55.1201 26.3959 55.2128 26.4054 55.3009 26.4325C55.3891 26.4595 55.471 26.5035 55.542 26.562C55.613 26.6205 55.6718 26.6923 55.7148 26.7734C55.7579 26.8544 55.7845 26.9431 55.7931 27.0343C55.8016 27.1255 55.792 27.2176 55.7648 27.3051C55.7376 27.3927 55.6932 27.474 55.6343 27.5446C55.5754 27.6151 55.5031 27.6734 55.4216 27.7162C55.34 27.759 55.2507 27.7854 55.1588 27.7939C54.7391 27.7939 12.5818 31.9717 8.52461 44.1996C8.30395 44.8401 8.22309 45.52 8.28742 46.194C8.35174 46.8681 8.55977 47.5208 8.89768 48.1088C11.8356 53.602 23.6901 56.9832 23.8206 57.011C23.9991 57.0627 24.1499 57.182 24.2406 57.3432C24.3313 57.5043 24.3547 57.6944 24.3056 57.8725C24.2596 58.023 24.1634 58.1535 24.033 58.2427C23.9025 58.3319 23.7455 58.3744 23.5875 58.3634Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M38.5386 60.7441C50.2629 63.035 62.1392 64.4777 74.0739 65.0609L38.5386 60.7441Z",fill:"white"}),(0,r.jsx)("path",{d:"M74.0737 65.774C62.0894 65.1722 50.1639 63.7172 38.3892 61.4202C38.2991 61.4015 38.2137 61.3653 38.1377 61.3136C38.0617 61.262 37.9967 61.1961 37.9465 61.1195C37.8962 61.0429 37.8617 60.95
2972 37.8448 60.8673C37.828 60.7774 37.8292 60.6851 37.8483 60.5957C37.8886 60.4162 37.998 60.2595 38.1531 60.1591C38.3082 60.0587 38.4968 60.0226 38.6784 60.0584C50.3725 62.3403 62.2173 63.7799 74.1204 64.366C74.2123 64.3707 74.3024 64.3934 74.3854 64.4328C74.4685 64.4721 74.5429 64.5274 74.6044 64.5954C74.6659 64.6634 74.7133 64.7427 74.7439 64.8289C74.7745 64.9152 74.7876 65.0065 74.7826 65.0978C74.7754 65.2796 74.6975 65.4517 74.5653 65.5777C74.4332 65.7038 74.257 65.7742 74.0737 65.774Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M130.576 25.7557C130.576 25.7557 125.53 22.1986 120.41 22.8655C115.289 23.5325 105.487 25.8576 105.487 25.8576C105.487 25.8576 101.346 27.2935 102.073 30.6839C102.801 34.0744 104.806 39.4379 107.128 40.2068C108.995 40.7327 110.917 41.0436 112.855 41.1331L114.907 35.0841L130.576 25.7557Z",fill:"#48907F"}),(0,r.jsx)("path",{d:"M112.855 41.8002C110.854 41.7227 108.869 41.4118 106.942 40.8738C104.06 39.9475 102.073 33.8984 101.42 30.8415C100.767 27.7845 103.649 25.7743 105.281 25.2093C105.449 25.1629 115.243 22.8471 120.344 22.1801C125.67 21.4946 130.8 25.0425 131.014 25.2C131.108 25.2671 131.184 25.3563 131.234 25.4595C131.285 25.5627 131.309 25.6767 131.304 25.7914C131.3 25.9061 131.266 26.0179 131.208 26.1168C131.149 26.2156 131.066 26.2985 130.968 26.3579L115.513 35.5288L113.545 41.337C113.495 41.4775 113.401 41.5984 113.277 41.6818C113.153 41.7652 113.005 41.8067 112.855 41.8002ZM121.715 23.477C121.307 23.474 120.899 23.4987 120.494 23.5511C115.466 24.2088 105.748 26.5062 105.645 26.5339C105.543 26.5617 102.204 27.7938 102.782 30.5728C103.612 34.445 105.58 38.9841 107.38 39.5769C109.014 40.0368 110.693 40.3164 112.389 40.4107L114.254 34.8526C114.305 34.695 114.411 34.5606 114.552 34.4728L129.242 25.7558C126.969 24.3953 124.394 23.6126 121.743 23.477L121.715 23.477Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M109.618 32.4996C109.591 31.8843 109.77 31.2774 110.128 30.7744C110.486 30.2714 111.002 29.9007 111.595 29.7206C116.968 28.433 129.12 24.6442 130.603 25.7929C132.469 27.2287 124.242 37.8354 124.242 37.8354C122.077 39.6439 119.403 40.7468 116.585 40.9943C112.239 41.2536 112.127 41.1054 110.504 40.0123C109.45 39.2805 109.599 37.187 109.618 32.4996Z",fill:"#48907F"}),(0,r.jsx)("path",{d:"M113.936 41.8001C112.59 41.9244 111.249 41.5148 110.205 40.6607L110.103 40.5866C108.816 39.7251 108.834 37.9279 108.862 33.9724L108.862 32.4903C108.816 31.7108 109.04 30.939 109.499 30.3047C109.957 29.6704 110.622 29.2122 111.381 29.0072C112.686 28.6922 114.431 28.2198 116.277 27.7196C125.66 25.1906 129.773 24.2736 130.976 25.2092C133.075 26.8303 127.973 34.0465 124.737 38.1781L124.653 38.2614C122.412 40.1965 119.623 41.394 116.669 41.6889C115.503 41.763 114.626 41.8001 113.936 41.8001ZM129.549 26.1911C127.33 26.1911 120.549 28.0438 116.697 29.0628C114.832 29.563 113.087 30.0355 111.763 30.3597C111.312 30.4979 110.922 30.7858 110.659 31.1753C110.396 31.5649 110.275 32.0323 110.317 32.4995L110.317 33.9817C110.317 37.1128 110.317 38.9932 110.942 39.4379L111.045 39.5027C112.463 40.4291 112.584 40.5403 116.641 40.2994C119.272 40.0357 121.762 38.9897 123.785 37.298C127.675 32.2772 130.678 27.1082 130.212 26.2837C130.002 26.1998 129.774 26.168 129.549 26.1911Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M122.629 20.5127C122.429 20.753 122.306 21.0468 122.274 21.3568C122.243 21.6668 122.305 21.9791 122.452 22.2543C123.636 24.5053 126.322 29.4242 130.398 32.3144C131.947 33.4075 132.721 34.0282 134.381 33.6206C137.32 32.7297 140.139 31.4854 142.775 29.9152C142.937 29.822 143.077 29.6951 143.185 29.5432C143.292 29.3912 143.366 29.2179 143.4 29.0351L144.277 24.5516C144.324 24.3008 144.319 24.0429 144.261 23.7942C144.203 23.5456 144.094 23.3114 143.941 23.1065L139.138 16.8814C138.996 16.6977 138.814 16.5487 138.605 16.4459C138.397 16.3431 138.167 16.2893 137.934 16.2886C136.004 16.2886 130.809 16.3349 128.3 16.5202C126.005 16.724 123.702 19.1788 122.629 20.5127Z",fill:"white"}),(0,r.jsx)("path",{d:"M133.43 34.445C132.199 34.445 131.341 33.8336 130.175 33.0092L129.988 32.8795C125.623 29.7762 122.769 24.3571 121.827 22.5692C121.621 22.1745 121.535 21.7286 121.58 21.286C121.624 20.8435 121.798 20.4235 122.079 20.0774C123.301 18.5767 125.717 16.0477 128.226 15.8625C130.735 15.6772 135.846 15.6401 137.907 15.6309C138.247 15.6294 138.584 15.7075 138.888 15.8587C139.193 16.01 139.457 16.2302 139.66 16.5016L144.464 22.7175C144.68 22.9993 144.834 23.323 144.916 23.6677C144.997 24.0124 145.006 24.3704 144.939 24.7184L144.063 29.2112C144.01 29.4874 143.9 29.7496 143.74 29.981C143.579 30.2123 143.371 30.4077 143.13 30.5544C140.437 32.1291 137.562 33.3733 134.568 34.2598C134.198 34.369 133.816 34.4312 133.43 34.445ZM137.916 17.0204C136.312 17.0204 130.884 17.0204 128.328 17.252C126.267 17.4002 124.038 19.8828 123.171 20.9574C123.062 21.0948 122.995 21.2599 122.977 21.4337C122.958 21.6074 122.99 21.7827 123.068 21.9393C124.001 23.6438 126.705 28.8499 130.8 31.7494L130.996 3
291.8883C132.367 32.861 132.936 33.2686 134.223 32.9629C137.085 32.0845 139.834 30.875 142.412 29.3594C142.486 29.315 142.55 29.2558 142.599 29.1857C142.649 29.1155 142.684 29.0359 142.701 28.9518L143.578 24.459C143.606 24.3056 143.602 24.1479 143.565 23.9963C143.528 23.8447 143.459 23.7025 143.363 23.579L138.56 17.3539C138.486 17.2525 138.389 17.1696 138.278 17.1117C138.166 17.0538 138.042 17.0226 137.916 17.0204Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M125.913 18.5303C127.652 21.6217 129.853 24.4328 132.442 26.8674L125.913 18.5303Z",fill:"white"}),(0,r.jsx)("path",{d:"M132.441 27.553C132.269 27.555 132.102 27.4921 131.975 27.377C129.338 24.8841 127.099 22.0073 125.334 18.8453C125.29 18.7644 125.263 18.6758 125.254 18.5845C125.245 18.4932 125.255 18.4011 125.281 18.3134C125.308 18.2256 125.352 18.144 125.411 18.0731C125.469 18.0023 125.542 17.9436 125.623 17.9004C125.704 17.8572 125.794 17.8304 125.886 17.8214C125.977 17.8125 126.07 17.8216 126.159 17.8483C126.247 17.875 126.329 17.9186 126.4 17.9769C126.472 18.0351 126.531 18.1067 126.574 18.1876C128.263 21.2093 130.401 23.9606 132.917 26.3487C133.02 26.4437 133.092 26.5673 133.123 26.7034C133.154 26.8396 133.144 26.9819 133.092 27.1119C133.041 27.2419 132.951 27.3536 132.835 27.4322C132.719 27.5109 132.581 27.553 132.441 27.553Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M137.226 26.9323C137.226 26.9323 139.576 26.5618 144.184 23.4863L137.226 26.9323Z",fill:"white"}),(0,r.jsx)("path",{d:"M137.226 27.627C137.051 27.6265 136.882 27.5605 136.753 27.4422C136.624 27.3238 136.545 27.1617 136.531 26.988C136.517 26.8143 136.569 26.6416 136.677 26.5043C136.785 26.367 136.941 26.2751 137.114 26.2467C137.114 26.2467 139.427 25.8298 143.792 22.9118C143.949 22.8099 144.141 22.7741 144.324 22.8123C144.508 22.8505 144.669 22.9596 144.772 23.1156C144.874 23.2717 144.91 23.4618 144.872 23.6442C144.833 23.8266 144.723 23.9864 144.566 24.0883C139.903 27.2194 137.431 27.627 137.329 27.6455L137.226 27.627Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M152.708 43.1898C152.899 43.1136 153.071 42.9962 153.21 42.8462C153.35 42.6961 153.454 42.5172 153.516 42.3222C153.577 42.1272 153.595 41.9211 153.566 41.7187C153.538 41.5163 153.465 41.3227 153.352 41.1518C151.141 37.8911 145.769 30.1931 136.377 30.1931C133.125 30.2197 129.931 31.0499 127.083 32.6089C124.235 34.1679 121.823 36.4067 120.064 39.1231C119.956 39.3053 119.895 39.5109 119.887 39.722C119.878 39.933 119.921 40.143 120.014 40.3334C120.106 40.5238 120.244 40.6887 120.415 40.8137C120.587 40.9386 120.786 41.0198 120.997 41.0499L126.248 41.9763C126.632 42.0449 127.028 41.9998 127.386 41.8466L131.844 39.9939C131.844 39.9939 136.619 38.2616 139.529 40.8091C140.614 41.6874 141.557 42.7244 142.327 43.8846C142.477 44.1197 142.678 44.3184 142.915 44.4659C143.152 44.6135 143.42 44.7061 143.698 44.7368L147.905 44.7368C148.544 44.7381 149.178 44.6153 149.77 44.3755L152.708 43.1898Z",fill:"#48907F"}),(0,r.jsx)("path",{d:"M143.634 45.4689C143.234 45.4376 142.846 45.3131 142.502 45.1055C142.159 44.8979 
29141.869 44.6131 141.657 44.2739C140.92 43.1798 140.024 42.1997 138.999 41.3652C136.425 39.1234 132.05 40.6704 132.013 40.6889L127.583 42.5416C127.097 42.7462 126.561 42.801 126.044 42.6991L120.793 41.7727C120.477 41.7161 120.179 41.5842 119.925 41.3882C119.672 41.1922 119.47 40.938 119.337 40.6474C119.204 40.3568 119.144 40.0385 119.162 39.7198C119.18 39.4012 119.275 39.0916 119.44 38.8177C121.263 36.0001 123.763 33.6777 126.715 32.0604C129.667 30.4431 132.979 29.5817 136.35 29.5542C146.283 29.5542 151.823 37.7339 153.903 40.8093C154.078 41.064 154.192 41.3547 154.237 41.6596C154.283 41.9644 154.258 42.2755 154.164 42.5694C154.068 42.8547 153.91 43.1158 153.703 43.3349C153.495 43.554 153.242 43.7258 152.961 43.8385L149.939 45.0335C149.275 45.2983 148.566 45.4366 147.85 45.4411L143.634 45.4689ZM135.24 38.7621C136.934 38.6943 138.594 39.2483 139.904 40.3184C141.051 41.2434 142.056 42.3293 142.888 43.5421C142.977 43.6881 143.099 43.8111 143.245 43.9013C143.391 43.9914 143.556 44.0461 143.728 44.0608L147.85 44.0608C148.39 44.0579 148.925 43.9542 149.426 43.7551L152.448 42.5509C152.545 42.515 152.632 42.4568 152.701 42.3811C152.771 42.3054 152.822 42.2144 152.849 42.1155C152.881 42.0214 152.89 41.9212 152.875 41.823C152.861 41.7248 152.823 41.6314 152.765 41.5504C150.797 38.6417 145.565 30.9067 136.378 30.9067C133.247 30.9312 130.171 31.7289 127.428 33.228C124.684 34.727 122.359 36.8803 120.662 39.4939C120.619 39.5769 120.596 39.6691 120.596 39.7626C120.596 39.8561 120.619 39.9482 120.662 40.0312C120.703 40.1186 120.764 40.1952 120.84 40.2547C120.916 40.3143 121.006 40.3552 121.101 40.374L126.352 41.3003C126.603 41.3474 126.863 41.3183 127.098 41.2169L131.556 39.3642C132.763 38.9692 134.025 38.766 135.296 38.7621L135.24 38.7621Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M142.197 38.1875C142.197 38.1875 144.939 39.7252 146.944 44.7461L142.197 38.1875Z",fill:"white"}),(0,r.jsx)("path",{d:"M146.944 45.4411C146.804 45.4407 146.667 45.3991 146.551 45.3216C146.435 45.2441 146.344 45.1342 146.291 45.0057C144.426 40.3091 141.879 38.7992 141.851 38.7899C141.698 38.6973 141.585 38.5494 141.539 38.3769C141.492 38.2043 141.514 38.0205 141.6 37.8636C141.643 37.7853 141.702 37.7165 141.773 37.661C141.844 37.6055 141.925 37.5646 142.011 37.5404C142.098 37.5163 142.189 37.5095 142.278 37.5205C142.368 37.5314 142.454 37.5599 142.532 37.6042C142.653 37.669 145.517 39.3179 147.578 44.5055C147.616 44.5916 147.636 44.6844 147.636 44.7783C147.637 44.8722 147.618 44.9653 147.582 45.0519C147.545 45.1385 147.491 45.2168 147.423 45.2821C147.355 45.3474 147.275 45.3983 147.186 45.4319C147.106 45.4471 147.025 45.4503 146.944 45.4411Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M42.3439 23.6716C42.3439 23.6716 38.2401 9.81343 42.0175 7.41418C45.7949 5.01494 59.2628 1.06869 59.2628 1.06869C59.2628 1.06869 62.1262 0.494353 68.086 3.03255C74.0459 5.57075 101.084 18.6601 106.177 23.4122C111.269 28.1644 117.266 34.0004 124.924 37.1871C132.581 40.3737 131.863 41.3093 130.035 43.7734C128.207 46.2375 126.882 54.0929 122.48 53.5186C118.078 52.9443 94.0147 48.1736 89.3699 46.1078C84.7251 44.042 75.9486 43.2176 71.8727 41.4112C67.7969 39.6048 61.6878 35.8068 58.8151 35.2603C55.9425 34.7137 42.1481 32.9166 42.3439 23.6716Z",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M122.956 54.1948C122.766 54.2083 122.576 54.2083 122.387 54.1948C118.432 53.676 93.9307 48.8868 89.0807 46.784C86.1273 45.6963 83.0805 44.8777 79.9777 44.3384C77.117 43.8499 74.3073 43.1026 71.5836 42.1059C70.026 41.4204 68.1606 40.4292 66.3512 39.4751C63.4226 37.8632 60.382 36.2606 58.7592 35.9457L58.0969 35.8253C54.0025 35.1027 41.5884 32.9258 41.6817 23.7827C41.1314 21.93 37.6245 9.38725 41.6817 6.80273C45.4964 4.32938 58.5167 0.559136 59.0669 0.401656C59.2535 0.401656 62.266 -0.191207 68.3938 2.39331C74.5215 4.97782 101.532 18.0857 106.68 22.8564L107.818 23.9031C112.706 28.4422 118.236 33.5928 125.222 36.5015C129.783 38.4005 131.527 39.5399 131.9 40.8831C132.208 42.004 131.49 42.9859 130.65 44.1161C130.031 45.1046 129.515 46.1538 129.112 47.2471C127.778 50.3411 126.211 54.1948 122.956 54.1948ZM60.0836 1.71707C59.8569 1.70108 59.6294 1.70108 59.4027 1.71707C59.3281 1.71707 46.084 5.57069 42.3999 7.92361C39.9469 9.48914 41.4672 18.2709 43.0154 23.44L43.0154 23.5419L43.0154 23.653C42.8476 31.7123 54.4595 33.7502 58.2742 34.4172L58.955 34.5376C60.8204 34.8989 63.8236 36.483 66.9854 38.1504C68.7762 39.0767 70.6229 40.0772 72.1338 40.7442C74.766 41.6978 77.4784 42.417 80.2389 42.8933C83.4384 43.4468 86.5794 44.2934 89.6217 45.4222C94.1732 47.4139 117.901 52.129 122.536 52.7404C125.11 53.0831 126.537 49.6557 127.796 46.6358C128.22 45.4608 128.774 44.3361 129.447 43.2824C130.203 42.2541 130.622 41.6613 130.492 41.2166C130.203 40.1884 127.209 38.8174 124.625 37.7428C117.416 34.7414 111.782 29.5076 106.811 24.8851L105.673 23.8383C100.655 19.2065 73.7474 6.19134 67.8155 3.70872C65.3964 2.54291 62.7682 1.86593 60.0836 1.71707Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M41.8496 10.5823C41.4793 10.4758 41.1455 10.2705 40.8846 9.98868C40.6236 9.70688 40.4454 9.35939 40.3695 8.98402C40.2935 8.60865 40.3226 8.21977 40.4537 7.85969C40.5847 7.49962 40.8127 7.18214 41.1128 6.94178C41.7887 6.43138 42.5495 6.04261 43.3605 5.79311C47.026 4.5518 53.9279 1.85612 57.0057 1.10578C60.0836 0.355437 63.4879 0.587024 68.3845 2.45825C73.2811 4.32948 79.6793 5.84869 83.8204 8.9427C87.9615 12.0367 99.4335 18.3544 102.036 19.6513C104.638 20.9482 111.633 26.3395 114.403 28.7203C117.173 31.101 123.534 34.8249 126.528 36.4738C129.522 38.1227 132.404 39.7531 131.555 41.7818C130.706 43.8105 127.05 52.4904 125.67 53.1574C124.29 53.8243 123.581 53.3612 121.669 51.388C119.757 49.4149 112.566 46.358 107.986 44.9777C103.407 43.5974 98.5382 42.1986 90.6756 35.0194C82.8131 27.8402 61.921 14.825 55.7 13.1854C51.1298 11.9719 45.0767 11.5179 41.8496 10.5823Z",fill:"white"}),(0,r.jsx)("path",{d:"M124.626 54.1671C123.451 54.1671 122.5 53.2407 121.185 51.8975C119.506 50.156 112.613 47.1176 107.801 45.6725L107.651 45.6725C103.184 44.32 98.1101 42.7915 90.2289 35.603C82.3477 28.4146 61.6981 15.492 55.5237 13.8987C53.0134 13.2924 50.4731 12.8163 47.913 12.4721C45.8054 12.2024 43.7157 11.8095 41.6547 11.2956C41.1617 11.1512 40.7182 10.8746 40.373 10.4963C40.0279 10.118 39.7943 9.65257 39.6979 9.15108C39.6016 8.6496 39.6462 8.13143 39.8268 7.65346C40.0075 7.17549 40.3172 6.75618 40.722 6.44155C41.4615 5.88918 42.2869 5.46051 43.1656 5.17245C44.4248 4.75559 46.0476 4.16273 47.7731 3.54207C51.0375 2.30077 54.7682 0.929768 56.8295 0.429539C60.2524 -0.431966 63.8899 0.00341843 68.6372 1.85612C69.9523 2.31003 71.3234 2.78247 72.7504 3.26417C
2976.8822 4.63517 81.1445 6.06174 84.2411 8.41467C88.2702 11.4438 99.5184 17.6782 102.354 19.0584C105.04 20.4016 112.082 25.83 114.861 28.22C117.417 30.4155 123.451 34.0097 126.893 35.8902C129.915 37.5484 133.338 39.4196 132.218 42.0782L132.218 42.1709C128.161 51.7956 126.781 53.4445 126.044 53.8058C125.608 54.0387 125.121 54.1627 124.626 54.1671ZM60.327 1.39294C59.2638 1.38922 58.2045 1.51996 57.1745 1.78201C55.1879 2.28224 51.4852 3.63471 48.2208 4.80191C46.4767 5.43183 44.8445 6.02469 43.5574 6.45081C42.824 6.67662 42.136 7.02772 41.5241 7.48832C41.3252 7.64505 41.1744 7.85388 41.0887 8.09123C41.003 8.32858 40.9858 8.58499 41.0391 8.83153C41.0841 9.08645 41.2008 9.32351 41.3758 9.51531C41.5507 9.7071 41.7768 9.8458 42.0278 9.91536C44.0288 10.4069 46.0559 10.7873 48.0995 11.0548C50.7106 11.4009 53.301 11.8864 55.8595 12.5091C62.1737 14.1858 83.2804 27.3307 91.1522 34.5377C98.8003 41.5131 103.501 42.9305 108.043 44.2922L108.192 44.2922C112.585 45.6169 120.093 48.7294 122.183 50.8971C124.272 53.0647 124.505 52.9258 125.363 52.5182C125.634 52.3607 126.846 51.1009 130.866 41.5872L130.866 41.4946C131.454 40.0958 129.178 38.7156 126.147 37.0574C123.115 35.3992 116.726 31.666 113.882 29.2297C111.037 26.7934 104.154 21.504 101.654 20.2534C98.8655 18.8732 87.4868 12.6018 83.4016 9.51703C80.4543 7.30305 76.3319 5.92279 72.34 4.57959C70.857 4.07936 69.458 3.65324 68.1336 3.10669C65.6592 2.06491 63.013 1.484 60.327 1.39294Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M44.2844 27.3306C44.1526 27.3317 44.023 27.2958 43.9108 27.2269C43.7986 27.1581 43.7083 27.0592 43.6502 26.9415C43.5732 26.7742 43.5652 26.5835 43.628 26.4104C43.6907 26.2372 43.8192 26.0954 43.986 26.0152C43.986 26.0152 45.1332 25.3204 46.9706 21.6984C47.9826 19.6123 49.4904 17.8021 51.3639 16.4239C53.2374 15.0457 55.4203 14.1408 57.7244 13.7874C57.8992 13.79 58.0666 13.8575 58.1937 13.9766C58.3208 14.0957 58.3984 14.2578 58.4113 14.4309C58.4242 14.604 58.3713 14.7756 58.2632 14.9119C58.1551 15.0483 57.9995 15.1395 57.827 15.1676C55.765 15.505 53.8152 16.3312 52.1429 17.5761C50.4706 18.821 49.1251 20.4479 48.2204 22.319C46.1685 26.3672 44.8347 27.1453 44.5829 27.2657C44.4899 27.3102 44.3877 27.3324 44.2844 27.3306Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M43.0054 27.7936C42.8199 27.7936 42.642 27.7204 42.5108 27.5901C42.3796 27.4598 42.3059 27.2831 42.3059 27.0989C42.3059 26.9146 42.3796 26.7379 42.5108 26.6076C42.642 26.4773 42.8199 26.4041 43.0054 26.4041C45.0853 26.2837 46.6709 25.2832 48.6761 24.0234C50.3956 22.8809 52.2082 21.8831 54.095 21.0405C60.2228 18.4653 69.2791 19.475 69.6615 19.5121C69.8448 19.5353 70.0117 19.6286 70.1266 19.7722C70.2416 19.9159 70.2956 20.0984 70.2771 20.2809C70.256 20.4639 70.1627 20.6312 70.0175 20.7458C69.8723 20.8605 69.6873 20.9132 69.503 20.8923C69.4097 20.8923 60.428 19.8919 54.636 22.3282C52.8038 23.1285 51.044 24.083 49.3757 25.1813C47.2864 26.4967 45.477 27.6269 43.0427 27.7751L43.0054 27.7936Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M86.3756 32.3422C86.2785 32.3428 86.1826 32.3205 86.0958 32.2773C85.9559 32.2217 71.863 26.0708 61.6688 26.7192C59.3612 26.947 57.0867 27.4317 54.8882 28.1643C51.3906 29.174 47.7624 30.2301 43.8358 29.1833C43.6565 29.1342 43.5042 29.0163 43.4123 28.8556C43.3205 28.6949 43.2967 28.5046 43.3462 28.3264C43.3957 28.1483 43.5143 27.997 43.6761 27.9058C43.8379 27.8146 44.0296 27.791 44.2089 27.8401C47.7158 28.7664 50.9895 27.8401 54.4684 26.8211C56.7668 26.0573 59.1447 25.5539 61.5568 25.3204C72.1055 24.6627 86.0585 30.7488 86.6461 31.0082C86.7957 31.0714 86.9185 31.1844 86.9933 31.3278C87.0681 31.4711 87.0904 31.6359 87.0562 31.7938C87.0219 31.9517 86.9334 32.0928 86.8058 32.1928C86.6782 32.2929 86.5195 32.3457 86.3569 32.3422L86.3756 32.3422Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M69.0187 34.9081C68.8861 34.9073 68.7563 34.8696 68.6442 34.7991C68.5321 34.7287 68.4421 34.6285 68.3845 34.5098C68.3285 34.3894 67.0694 31.9438 62.0982 31.3509C60.2693 31.1782 58.4304 31.1349 56.5954 31.2212C52.8646 31.2953 49.1339 31.3787 45.2446 29.4241C45.0891 29.3345 44.9742 29.1888 44.924 29.0173C44.8737 28.8459 44.8919 28.6618 44.9747 28.5032C45.0575 28.3447 45.1986 28.2239 45.3687 28.166C45.5388 28.1081 45.7248 28.1174 45.8881 28.1921C49.4137 29.9799 52.8833 29.9058 56.5581 29.8317C58.4585 29.7443 60.3629 29.7907 62.2568 29.9707C68.086 30.6654 69.5877 33.7872 69.6529 33.9262C69.692 34.0094 69.7141 34.0996 69.7179 34.1913C69.7217 34.2831 69.7071 34.3747 69.675 34.4609C69.6429 34.547 69.5939 34.626 69.5309 34.6932C69.4679 34.7604 69.3921 34.8146 69.3078 34.8525C69.217 34.8927 69.1181 34.9117 69.0187 34.9081Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M101.056 49.9427L100.888 49.9427C100.534 49.8593 92.1396 47.7565 87.8306 44.4494C83.7268 41.2999 72.4693 37.6408 72.3574 37.6037C72.178 37.5521 72.0267 37.4319 71.9366 37.2695C71.8465 37.107 71.8251 36.9157 71.877 36.7376C71.929 36.5595 72.05 36.4091 72.2136 36.3197C72.3771 36.2302 72.5698 36.2089 72.7491 36.2605C73.2248 36.4087 84.3517 40.0308 88.6047 43.3193C92.6899 46.4504 101.065 48.5532 101.149 48.5717C101.317 48.6109 101.464 48.7101 101.563 48.8504C101.661 48.9906 101.704 49.1621 101.683 49.3319C101.663 49.5016 101.58 49.6578 101.45 49.7706C101.32 49.8833 101.154 49.9446 100.981 49.9427L101.056 49.9427Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M26.0403 21.0685C26.0403 21.0685 17.7208 41.0683 37.475 51.2304C54.8883 60.216 66.0245 44.0512 66.0245 44.0512C66.0245 44.0512 61.1746 18.2709 26.0403 21.0685Z",fill:"white"}),(0,r.jsx)("path",{d:"M47.8285 54.6581C44.0946 54.6047 40.4297 53.651 37.1493 51.879C17.0499 41.541 25.3042 21.0316 25.3881 20.8278L25.556 20.3831L25.985 20.3831C61.3244 17.6041 66.6687 43.6716 66.7153 43.9402L66.7713 44.2181L66.6034 44.459C66.5102 44.5794 59.4124 54.6581 47.8285 54.6581ZM26.5353 21.7264C25.4627 24.598 20.1091 41.5224 37.7928 50.6192C53.5085 58.6877 63.796 45.9041 65.2883 43.9032C64.6261 41.0037 58.6476 19.3734 26.5353 21.7264Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M66.1181 44.0512C63.1428 49.1831 51.7454 48.1734 40.6744 41.8464C29.6035 35.5195 23.056 26.2004 26.0406 21.0684C29.0252 15.9365 41.1594 16.7424 52.2304 23.0879C63.3014 29.4334 69.1027 38.9099 66.1181 44.0512Z",fill:"white"}),(0,r.jsx)("path",{d:"M58.2928 48.0345C57.6773 48.0345 57.0337 48.0345 56.3715 47.9511C50.6924 47.2646 45.2247 45.3891 40.3293 42.4486C28.7454 35.8159 22.2073 26.2653 25.4064 20.7164C28.6055 15.1676 41.0941 15.9179 52.5475 22.4858C63.6931 28.859 70.0447 38.6876 66.7243 44.3939C65.3439 46.7746 62.3873 48.0345 58.2928 48.0345ZM34.3042 18.3913C30.6387 18.3913 27.7754 19.364 26.6468 21.3834C23.9047 26.1263 30.4895 35.2045 41.0382 41.2443C45.7569 44.0816 51.0272 45.8938 56.5021 46.5616C61.0349 46.9506 64.2247 45.9409 65.5211 43.6992C68.0953 39.2897 63.2267 30.193 51.8853 23.69C45.8601 20.2347 39.3034 18.4191 34.3042 18.4191L34.3042 18.3913Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M63.5526 43.7089C63.4157 43.709 63.2821 43.6669 63.1702 43.5884C63.0239 43.4887 62.9219 43.3367 62.8855 43.1642C62.849 42.9917 62.8808 42.8119 62.9743 42.6621C63.6179 41.7357 64.9796 37.8914 55.5875 29.6932C47.3612 22.514 33.3243 18.7252 29.2391 22.5788C29.1767 22.6585 29.0974 22.7237 29.007 22.7698C28.9166 22.816 28.8171 22.842 28.7155 22.8461C28.6139 22.8501 28.5126 22.8322 28.4187 22.7934C28.3248 22.7546 28.2406 22.696 28.1719 22.6216C28.1031 22.5471 28.0515 22.4587 28.0207 22.3625C27.9899 22.2663 27.9806 22.1645 27.9934 22.0643C28.0062 21.9
29641 28.0408 21.8679 28.0949 21.7824C28.149 21.6969 28.2212 21.6241 28.3065 21.5691C33.4269 16.7521 48.3592 21.5135 56.5388 28.6464C66.1455 36.9836 65.446 41.4949 64.1682 43.468C64.0941 43.5561 63.9989 43.6244 63.8913 43.6665C63.7838 43.7086 63.6673 43.7231 63.5526 43.7089Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M47.8453 35.523C48.3225 34.8746 47.8128 33.6979 46.7067 32.8947C45.6006 32.0915 44.317 31.9661 43.8397 32.6145C43.3624 33.2629 43.8721 34.4397 44.9783 35.2428C46.0844 36.046 47.368 36.1715 47.8453 35.523Z",fill:"white"}),(0,r.jsx)("path",{d:"M46.8585 36.631L46.588 36.631C45.8527 36.5418 45.1543 36.2606 44.5641 35.8158C43.9599 35.3964 43.48 34.8238 43.1744 34.1576C43.015 33.8538 42.9404 33.5132 42.9585 33.1711C42.9765 32.829 43.0865 32.4979 43.277 32.2123C43.9952 31.286 45.6833 31.286 47.129 32.342C48.5746 33.398 49.1342 34.9728 48.4161 35.9455C48.2299 36.1744 47.9915 36.356 47.7207 36.4752C47.4498 36.5944 47.1543 36.6478 46.8585 36.631ZM44.8252 32.8885C44.6107 32.8885 44.4615 32.8885 44.4055 33.0182C44.3703 33.1119 44.357 33.2123 44.3667 33.3118C44.3764 33.4113 44.4088 33.5074 44.4615 33.5926C44.67 34.0297 44.9919 34.4038 45.3942 34.6764C45.7794 34.9731 46.2359 35.1647 46.7186 35.2322C46.8165 35.2558 46.9184 35.2572 47.0169 35.2364C47.1154 35.2155 47.2079 35.1729 47.2875 35.1118C47.4461 34.8895 47.1943 34.0928 46.2989 33.4443C45.8756 33.1154 45.3617 32.9216 44.8252 32.8885Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M48.1548 34.2784C50.4996 34.0976 52.8571 34.1659 55.1872 34.4822C55.1872 34.4822 60.1864 35.0843 60.1957 37.8263",fill:"white"}),(0,r.jsx)("path",{d:"M60.1958 38.4836C60.0103 38.4836 59.8323 38.4104 59.7011 38.2801C59.57 38.1499 59.4963 37.9731 59.4963 37.7889C59.4963 35.7231 55.15 35.1395 55.1033 35.1303C52.8226 34.8203 50.5149 34.7551 48.2201 34.9357C48.0346 34.9529 47.8498 34.8962 47.7064 34.7781C47.5629 34.66 47.4726 34.4901 47.4553 34.3058C47.438 34.1215 47.4951 33.938 47.614 33.7955C47.733 33.6531 47.904 33.5634 48.0895 33.5462C50.4904 33.3616 52.9043 33.433 55.2899 33.7593C55.5044 33.7593 60.886 34.4633 60.886 37.7889C60.886 37.9731 60.8123 38.1499 60.6811 38.2801C60.5499 38.4104 60.372 38.4836 60.1865 38.4836L60.1958 38.4836Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M47.7711 35.8533C47.7711 35.8533 60.4929 40.3646 60.6235 42.8935C60.6235 44.4868 55.8202 43.9496 55.8202 43.9496",fill:"white"}),(0,r.jsx)("path",{d:"M57.4726 44.7363C56.8805 44.7337 56.289 44.6997 55.7005 44.6344C55.6088 44.6253 55.5199 44.5979 55.4389 44.5541C55.358 44.5102 55.2868 44.4507 55.2294 44.379C55.172 44.3074 55.1297 44.225 55.1049 44.1368C55.0801 44.0486 55.0733 43.9564 55.085 43.8656C55.106 43.6825 55.1994 43.5153 55.3446 43.4007C55.4898 43.286 55.6748 43.2333 55.8591 43.2542C57.8457 43.4765 59.6924 43.2542 59.879 42.9114C59.879 41.7998 54.1896 38.8633 47.5302 36.5103C47.3608 36.444 47.2241 36.3147 47.1492 36.1499C47.0742 35.9851 47.0669 35.7977 47.1289 35.6276C47.1908 35.4576 47.3171 35.3182 47.4808 35.2391C47.6446 35.16 47.833 35.1475 48.0059 35.2042C51.0931 36.2973 61.1847 40.0861 61.278 42.8744C61.2846 43.0801 61.2454 43.2847 61.1631 43.4737C61.0809 43.6626 60.9577 43.8312 60.8023 43.9675C60.1215 44.5881 58.6665 44.7363 57.4726 44.7363Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M46.9794 32.8239C46.9794 32.8239 51.4096 27.5808 52.2211 28.1922L46.9794 32.8239Z",fill:"white"}),(0,r.jsx)("path",{d:"M46.9792 33.5187C46.8147 33.5179 46.6559 33.4588 46.5315 33.352C46.4608 33.2932 46.4026 33.221 46.3601 33.1397C46.3176 33.0585 46.2917 32.9696 46.2839 32.8784C46.2761 32.7871 46.2865 32.6952 46.3146 32.608C46.3427 32.5208 46.3879 32.4399 46.4475 32.3701C51.2975 26.636 52.2022 27.2844 52.6312 27.5901C52.7711 27.6954 52.8661 27.8491 52.8972 28.0207C52.9283 28.1923 52.8933 28.3693 52.7991 28.5165C52.7158 28.6322 52.5984 28.7193 52.463 28.7658C52.3277 28.8123 52.1811 28.8158 52.0436 28.7758C51.3441 29.0537 49.1803 31.2492 47.5201 33.2223C47.4593 33.3101 47.3788 33.3825 47.2849 33.434C47.191 33.4855 47.0863 33.5145 46.9792 33.5187Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M45.3003 32.1013C45.3003 32.1013 44.3023 24.0328 40.4503 23.0879L45.3003 32.1013Z",fill:"white"}),(0,r.jsx)("path",{d:"M45.3011 32.7965C45.1317 32.7977 44.9678 32.7371 44.8405 32.626C44.7132 32.515 44.6315 32.3614 44.6109 32.1944C44.3498 30.073 43.0533 24.4408 40.2832 23.7646C40.1027 23.7203 39.9472 23.6067 39.851 23.4486C39.7548 23.2905 39.7257 23.1009 39.7703 22.9216C39.8
29148 22.7422 39.9292 22.5878 40.0884 22.4923C40.2476 22.3967 40.4384 22.3679 40.619 22.4121C44.8907 23.4589 45.954 31.6756 46.0006 32.0183C46.0123 32.1097 46.0056 32.2024 45.9809 32.2912C45.9562 32.3799 45.914 32.4629 45.8567 32.5353C45.7995 32.6077 45.7283 32.6681 45.6473 32.7129C45.5663 32.7578 45.4772 32.7862 45.385 32.7965L45.3011 32.7965Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M43.537 32.2869C43.537 32.2869 32.5313 21.3097 31.0577 23.255C30.125 24.4685 31.4588 26.9604 31.4588 26.9604",fill:"white"}),(0,r.jsx)("path",{d:"M43.5381 32.9815C43.4462 32.982 43.3552 32.9642 43.2703 32.9292C43.1854 32.8942 43.1084 32.8427 43.0438 32.7777C37.8394 27.6087 32.5511 23.5142 31.5438 23.7273C31.1148 24.3294 31.7117 25.9413 32.0754 26.6175C32.1616 26.7773 32.1805 26.9644 32.128 27.138C32.0756 27.3116 31.9561 27.4576 31.7956 27.5439C31.6343 27.627 31.4467 27.6444 31.2726 27.5925C31.0985 27.5407 30.9516 27.4235 30.8629 27.266C30.7044 26.9695 29.352 24.348 30.5179 22.8287C30.6295 22.6852 30.7701 22.5666 30.9308 22.4804C31.0914 22.3942 31.2685 22.3425 31.4505 22.3285C34.1926 22.1247 42.3909 30.1747 44.0138 31.7865C44.1448 31.9168 44.2184 32.0934 44.2184 32.2775C44.2184 32.4616 44.1448 32.6382 44.0138 32.7685C43.8894 32.8986 43.7186 32.9751 43.5381 32.9815Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M43.7241 34.1672C43.7241 34.1672 34.7703 30.8694 33.8376 32.3145C33.0728 33.4354 35.4418 34.7045 35.4418 34.7045",fill:"white"}),(0,r.jsx)("path",{d:"M35.4424 35.3992C35.3283 35.3991 35.2161 35.3704 35.116 35.3159C34.8362 35.2047 33.3346 34.2784 33.0361 33.1667C32.9795 32.9537 32.9693 32.7311 33.0063 32.5138C33.0433 32.2965 33.1266 32.0896 33.2506 31.9069C34.2766 30.3506 39.6489 31.9069 43.9765 33.5188C44.0679 33.5467 44.1526 33.5929 44.2253 33.6546C44.298 33.7162 44.3572 33.792 44.3992 33.8773C44.4412 33.9626 44.4652 34.0555 44.4697 34.1504C44.4742 34.2453 44.459 34.34 44.4252 34.4288C44.3913 34.5176 44.3395 34.5986 44.2729 34.6667C44.2063 34.7349 44.1264 34.7887 44.038 34.825C43.9496 34.8612 43.8547 34.8791 43.7591 34.8775C43.6635 34.8759 43.5693 34.8549 43.4822 34.8157C39.2105 33.2501 35.088 32.2775 34.3792 32.7128C34.3765 32.7498 34.3765 32.787 34.3792 32.824C34.4818 33.2223 35.2559 33.8152 35.7782 34.0931C35.9155 34.1667 36.0241 34.2838 36.0867 34.4257C36.1493 34.5676 36.1623 34.7262 36.1238 34.8764C36.0852 35.0265 35.9971 35.1595 35.8737 35.2543C35.7502 35.349 35.5985 35.4 35.4424 35.3992Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M45.5434 35.7976C45.5434 35.7976 45.9631 40.7628 44.7693 40.6054C43.7098 40.297 42.7234 39.7803 41.8687 39.0861",fill:"white"}),(0,r.jsx)("path",{d:"M44.7688 41.3001L44.6103 41.3001C43.4182 40.9878 42.31 40.4185 41.3645 39.6327C41.2406 39.5115 41.1665 39.3489 41.1567 39.1765C41.147 39.0041 41.2022 38.8342 41.3117 38.7C41.4211 38.5659 41.577 38.477 41.7489 38.4507C41.9207 38.4245 42.0963 38.4628 42.2413 38.5581C42.954 39.1357 43.7618 39.587 44.6289 39.892C44.92 38.5688 44.98 37.2058 44.8061 35.8624C44.7932 35.6786 44.8533 35.497 44.9737 35.3567C45.094 35.2164 45.2649 35.1286 45.4497 35.1121C45.6339 35.0967 45.8167 35.1542 45.9582 35.2723C46.0998 35.3903 46.1886 35.5592 46.2052 35.742C46.3078 37.0389 46.4663 40.1329 45.5243 41.0037C45.3214 41.197 45.05 41.3035 44.7688 41.3001Z",fill:"#4C4F51"}),(0,r.jsx)("path",{d:"M94.6677 61.5685L94.4439 61.5685C81.0412 61.5685 77.8981 56.0845 76.2006 53.1387L75.9208 52.6478C74.0554 49.5352 65.5027 48.7571 62.3502 48.7201C62.1655 48.7152 61.9899 48.6389 61.861 48.5074C61.7321 48.3759 61.66 48.1996 61.66 48.016C61.6625 47.8334 61.7373 47.659 61.8682 47.5307C61.9991 47.4024 62.1756 47.3305 62.3595 47.3305C62.8539 47.3305 74.4844 47.5251 77.1146 51.9623L77.4037 52.4718C78.9707 55.1489 81.8527 60.2161 94.4439 60.2161C103.771 60.2161 131.956 60.2161 135.193 54.5931C135.404 54.3072 135.552 53.9806 135.627 53.6343C135.703 53.288 135.704 52.9298 135.631 52.5829C135.295 51.6566 133.813 51.0081 132.376 50.4153C130.576 49.6742 128.711 48.9053 128.561 47.1731C128.546 47.0782 128.55 46.9812 128.574 46.8881C128.598 46.795 128.641 46.7078 128.701 46.6321C128.76 46.5564 128.835 46.4938 128.92 46.4482C129.005 46.4027 129.099 46.3752 129.196 46.3675C129.292 46.3598 129.389 46.372 129.48 46.4034C129.572 46.4348 129.656 46.4848 129.727 46.55C129.798 46.6153 129.854 46.6945 129.893 46.7826C129.932 46.8707 129.951 46.9
29658 129.951 47.0619C130.035 47.9882 131.499 48.5533 132.917 49.1277C134.633 49.8409 136.415 50.5728 136.946 52.129C137.092 52.6615 137.119 53.2191 137.026 53.7631C136.932 54.307 136.72 54.8242 136.405 55.2786C133.896 59.6139 121.016 61.5685 94.6677 61.5685Z",fill:"#4C4F51"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_30028_1006",children:(0,r.jsx)("rect",{width:"184",height:"81",fill:"white",transform:"translate(0 0.00341797)"})})})]})}function c(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.7675 28.6488L18.0011 26.5294L19.2657 28.6294C18.5021 29.1165 17.5381 29.124 16.7675 28.6488ZM16.1915 11.7151C15.2637 11.0665 14.0516 10.4706 12.73 10.4706C9.69912 10.4706 7.92012 12.7647 8.51312 15.9136C9.52839 21.3048 18.0011 26.5294 18.0011 26.5294C16.7675 28.6488 16.768 28.649 16.7675 28.6488L16.7627 28.6458L16.7548 28.6409L16.7299 28.6254C16.7093 28.6125 16.6808 28.5946 16.6449 28.5718C16.5731 28.5262 16.4716 28.4609 16.3443 28.3774C16.0899 28.2103 15.7312 27.9692 15.3003 27.6638C14.4417 27.0555 13.2796 26.1808 12.076 25.1193C10.8791 24.0637 9.59533 22.7834 8.52469 21.3576C7.46908 19.9518 6.5097 18.2587 6.1566 16.3837C5.75372 14.2444 6.1159 12.1097 7.38605 10.4707C8.66438 8.82114 10.6105 8 12.73 8C14.9187 8 16.7381 9.06109 17.8668 9.90806C17.9123 9.94217 17.9571 9.97626 18.0011 10.0103C18.0452 9.97626 18.09 9.94217 18.1354 9.90806C19.2641 9.06109 21.0835 8 23.2722 8C28.0071 8 30.7386 12.5147 29.8248 16.4833C29.4058 18.303 28.4351 19.9602 27.3775 21.3514C26.3051 22.7619 25.0377 24.036 23.8584 25.0916C22.6732 26.1525 21.5356 27.0292 20.6963 27.6401C20.2751 27.9466 19.9253 28.1889 19.6774 28.3568C19.5533 28.4408 19.4545 28.5063 19.3846 28.5521C19.367 28.5637 19.3511 28.5741 19.3372 28.5831C19.3237 28.592 19.3119 28.5996 19.3021 28.606L19.2779 28.6215L19.2703 28.6264L19.2657 28.6294C19.2652 28.6297 19.2657 28.6294 18.0011 26.5294C18.0011 26.5294 26.2575 21.2625 27.4891 15.9136C28.0821 13.3382 26.3031 10.4706 23.2722 10.4706C21.9506 10.4706 20.7385 11.0665 19.8108 11.7151C18.7034 12.4892 18.0011 13.3382 18.0011 13.3382C18.0011 13.3382 17.2988 12.4892 16.1915 11.7151Z",fill:"#212121"})})}function u(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"168",height:"16",viewBox:"0 0 168 16",fill:"none",children:[(0,r.jsx)("path",{d:"M8.82118 14.7813L3.37821 8.69151H3.30794V14.7813H0V0.655762H3.30794V6.50423H3.35659L8.6266 0.697724H12.4696L6.14564 7.44838L12.8588 14.7813H8.82118Z",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M15.2587 7.87827C15.2395 8.90938 15.4615 9.93128 15.9081 10.8671C16.3547 11.8029 17.0142 12.6282 17.837 13.2809C19.2423 14.3929 21.1882 14.9961 23.5448 14.9961C25.7548 15.0612 27.9081 14.3115 29.5715 12.898C30.2993 12.2345 30.8748 11.4296 31.2604 10.5358C31.646 9.64189 31.833 8.67917 31.8092 7.71042C31.8367 6.78612 31.6724 5.8659 31.326 5.00446C30.9797 4.14302 30.4584 3.35796 29.7931 2.69595C28.3337 1.31644 26.1447 0.503425 23.5178 0.503425C21.3329 0.442636 19.2064 1.19303 17.5721 2.60153C16.8295 3.27516 16.2405 4.09224 15.843 5.00015C15.4455 5.90806 15.2483 6.88668 15.2641 7.87302L15.2587 7.87827ZM28.2635 7.76287C28.2635 10.8523 26.2474 12.6305 23.5232 12.6305C20.799 12.6305 18.7396 10.8523 18.7396 7.76287C18.7396 4.67341 20.7557 2.90051 23.5232 2.90051C26.2906 2.90051 28.2635 4.72062 28.2635 7.76287Z",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M45.9447 7.68442H45.215V3.12628H45.9447C47.8905 3.12628 48.8364 4.11239 48.8364 5.37126C48.8364 6.83468 47.9392 7.71064 45.9663 7.71064L45.9447 7.68442ZM41.1881 7.71064C39.2207 7.71064 38.3234 6.83468 38.3234 5.37126C38.2964 4.08617 39.2423 3.12628 41.1881 3.12628H41.8854V7.71064H41.1881ZM46.2582 0.655762H40.853C37.2964 0.655762 34.9614 2.21885 34.9614 5.22439C34.9614 7.04974 36.5181 9.89792 41.2854 9.89792H41.8854V14.7655H45.215V9.91366H45.8203C50.5877 9.91366 52.1389 7.06548 52.1389 5.24012C52.1389 2.21885 49.7823 0.655762 46.2582 0.655762Z",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M57.5115 14.7813V0.655762H67.4083L66.5326 3.05285H60.841V6.35736H66.5543V8.78068H60.841V12.3789H67.3812V14.7813H57.5115Z",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M86.4122 14.7173V6.9805C86.4122 6.45597 86.4122 5.96291 86.4609 5.4751H86.4122C86.1239 5.98571 85.7969 6.47487 85.4339 6.93853L82.5043 10.9144H80.9909L77.7478 6.83363C77.3703 6.41053 77.0321 5.95592 76.737 5.4751H76.6884C76.6884 5.99963 76.6884 6.49269 76.6884 6.89657V14.7173H73.4453V0.712402H76.4668L80.6179 5.95767C81.0774 6.55038 81.4395 7.00672 81.7746 7.53125C82.0913 6.9547 82.4527 6.40236 82.8557 5.87899L86.6392 0.712402H89.6661V14.7173H86.4122Z",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M109.132 14.7182L102.699 0.650391H100.202L93.981 14.7182H97.224L98.6888 11.2983H104.067L105.602 14.7182H109.132ZM103.056 8.9484H99.6239L101.375 4.50566C101.472 4.95675 103.029 8.9484 103.029 8.9484",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M124.426 14.7173V8.85306H117.107V14.7173H113.816V0.712402H117.107V6.34582H124.426V0.712402H127.718V14.7173H124.426Z",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M134.589 14.7173V0.712402H137.859V7.84596C137.859 8.44392 137.859 9.3566 137.805 10.0175H137.859C138.286 9.44053 138.724 8.88977 139.345 8.18691L145.983 0.712402H149.296V14.7173H146.053V7.04344C146.053 6.40876 146.053 5.55903 146.107 5.08695H146.053C145.572 5.7059 145.145 6.25665 144.54 6.93853L137.654 14.7173H134.589Z",fill:"#EC4C41"}),(0,r.jsx)("path",{d:"M159.208 14.7173C161.608 11.0823 162.565 9.50871 163.143 9.31988H164.365V14.7173H167.657V0.712402H163.051C158.825 0.712402 157.29 2.55874 157.29 4.73028C157.29 6.55563 158.711 7.78827 160.17 8.36C159.381 8.75864 157.846 11.119 155.468 14.691L159.208 14.7173ZM162.992 3.13572H164.381V7.19555H162.992C162.683 7.22068 162.373 7.18423 162.079 7.08846C161.785 6.99268 161.515 6.8396 161.285 6.63863C161.054 6.43767 160.869 6.19307 160.739 5.9199C160.61 5.64674 160.54 5.35077 160.533 5.05024C160.533 3.96447 161.414 3.12522 162.976 3.12522",fill:"#EC4C41"})]})}function d(){return(0,r.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M18 10C15.7909 10 14 11.7909 14 14C14 16.2091 15.7909 18 18 18C20.2091 18 22 16.2091 22 14C22 11.7909 20.2091 10 18 10ZM12 14C12 10.6863 14.6863 8 18 8C21.3137 8 24 10.6863 24 14C24 17.3137 21.3137 20 18 20C14.6863 20 12 17.3137 12 14ZM14 24C12.3431 24 11 25.3431 11 27C11 27.5523 10.5523 28 10 28C9.44772 28 9 27.5523 9 27C9 24.2386 11.2386 22 14 22H22C24.7614 22 27 24.2386 27 27C27 27.5523 26.5523 28 26 28C25.4477 28 25 27.5523 25 27C25 25.3431 23.6569 24 22 24H14Z",fill:"#212121"})})}function p(){return(0,r.jsxs)("svg",{width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{"clip-path":"url(#clip0_14657_705)",children:[(0,r.jsx)("path",{d:"M37.1402 0H8.8598C3.96667 0 0 3.96667 0 8.8598V37.1402C0 42.0333 3.96667 46 8.8598 46H37.1402C42.0333 46 46 42.0333 46 37.
291402V8.8598C46 3.96667 42.0333 0 37.1402 0Z",fill:"#FF3000"}),(0,r.jsx)("path",{d:"M33.8246 37.3873C31.9365 37.3873 30.636 36.3174 30.636 33.0027V32.2901H32.7336V33.0027C32.7336 34.7644 33.1951 35.2475 33.8246 35.2475C34.4542 35.2475 34.8942 34.7647 34.8942 33.9469C34.8942 32.9189 34.7474 32.3524 33.2789 31.2848C31.5591 30.0469 30.762 28.7256 30.762 27.0266C30.762 24.8659 31.8946 23.5654 33.8246 23.5654C35.1671 23.5654 36.9499 23.9847 36.9499 27.5089V28.3271H34.8539V27.5089C34.8539 26.1246 34.4134 25.663 33.8262 25.663C33.1967 25.663 32.8612 26.1246 32.8612 26.9424C32.8612 27.7818 33.0499 28.4739 34.5184 29.6065C36.3431 31.0119 36.9934 32.1238 36.9934 33.9489C36.9934 35.774 36.1544 37.3873 33.8246 37.3873ZM26.6713 37.3873C24.7836 37.3873 23.4831 36.4869 23.4831 33.0027V32.2901H25.5807V33.0027C25.5807 34.7644 26.0422 35.2475 26.6713 35.2475C27.3005 35.2475 27.7413 34.7647 27.7413 33.9469C27.7413 32.9189 27.5945 32.3524 26.126 31.2848C24.4058 30.0469 23.6087 28.7256 23.6087 27.0266C23.6087 24.8659 24.7417 23.5654 26.6713 23.5654C28.0138 23.5654 29.797 23.9847 29.797 27.5089V28.3271H27.701V27.5089C27.701 26.1246 27.2601 25.663 26.6729 25.663C26.0438 25.663 25.7079 26.1246 25.7079 26.9424C25.7079 27.7818 25.897 28.4739 27.3651 29.6065C29.1902 31.0119 29.8404 32.1238 29.8404 33.9489C29.8404 35.774 29.0015 37.3873 26.6729 37.3873H26.6713ZM33.8246 22.5147C31.9365 22.5147 30.636 21.4451 30.636 18.13V17.4175H32.7336V18.1308C32.7336 19.8925 33.1951 20.3752 33.8246 20.3752C34.4542 20.3752 34.8942 19.8928 34.8942 19.0746C34.8942 18.047 34.7474 17.4805 33.2789 16.4105C31.5591 15.1731 30.762 13.8514 30.762 12.1523C30.762 9.99169 31.8946 8.69116 33.8246 8.69116C35.1671 8.69116 36.9499 9.11084 36.9499 12.6346V13.4528H34.8539V12.6346C34.8539 11.2503 34.4134 10.7888 33.8262 10.7888C33.1967 10.7888 32.8612 11.2503 32.8612 12.0685C32.8612 12.9075 33.0499 13.5997 34.5184 14.7326C36.3431 16.1381 36.9934 17.2495 36.9934 19.0746C36.9934 20.8998 36.1544 22.5147 33.8246 22.5147ZM26.6713 22.5147C24.7836 22.5147 23.4831 21.6142 23.4831 18.13V17.4175H25.5807V18.1308C25.5807 19.8925 26.0422 20.3752 26.6713 20.3752C27.3005 20.3752 27.7413 19.8928 27.7413 19.0746C27.7413 18.047 27.5945 17.4805 26.126 16.4105C24.4058 15.1731 23.6087 13.8514 23.6087 12.1523C23.6087 9.99169 24.7417 8.69116 26.6713 8.69116C28.0138 8.69116 29.797 9.11084 29.797 12.6346V13.4528H27.701V12.6346C27.701 11.2503 27.2601 10.7888 26.6729 10.7888C26.0438 10.7888 25.7079 11.2503 25.7079 12.0685C25.7079 12.9075 25.897 13.5997 27.3651 14.7326C29.1902 16.1381 29.8404 17.2495 29.8404 19.0746C29.8404 20.8998 29.0015 22.5147 26.6729 22.5147H26.6713ZM11.3391 32.2901H11.7583C12.6815 32.2901 13.143 31.8286 13.143 29.6887V28.4723C13.143 26.3325 12.6815 25.8713 11.7583 25.8713H11.3391V32.2901ZM11.3391 37.1775H9.24146V23.7733H11.7583C14.4855 23.7733 15.2406 25.3255 15.2406 28.2625V29.8985C15.2406 32.8347 14.4855 34.3877 11.7583 34.3877H11.3391V37.1775ZM11.7583 15.3199H11.3391V10.9986H11.7583C12.7026 10.9986 13.143 11.3118 13.143 12.7814V13.5366C13.143 15.0051 12.7026 15.3199 11.7583 15.3199ZM15.6392 22.3052L14.0239 16.7253C14.8002 16.075 15.2406 15.0051 15.2406 13.6834V12.6346C15.2406 10.1804 14.1499 8.901 11.7583 8.901H9.24146V22.3052H11.3391V17.4175H11.6131C11.7743 17.4185 11.9354 17.4115 12.0958 17.3963L13.3544 22.3052H15.6392ZM18.0304 32.2882L19.1003 25.8678H19.2683L20.3378 32.2882H18.0304ZM21.1353 37.1755H23.2329L20.9055 23.7733H17.4643L15.1154 37.1775H17.213L17.6953 34.3877H20.6741L21.1353 37.1755ZM19.3939 22.5147C16.814 22.5147 16.3313 20.5639 16.3313 18.1938V8.901H18.5131V18.3825C18.5131 20.0397 18.8067 20.4182 19.3939 20.4182C19.9812 20.4182 20.2752 20.0408 20.2752 18.3825V8.901H22.4566V18.1938C22.4566 20.5639 21.9743 22.5147 19.3939 22.5147Z",fill:"white"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_14657_705",children:(0,r.jsx)("rect",{width:"46",height:"46",fill:"white"})})})]})}function f(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,r.jsx)("path",{d:"M3.20921 5.22309C3.48816 4.93019 3.94042 4.93019 4.21936 5.22309L8 9.19276L11.7806 5.22309C12.0596 4.93019 12.5118 4.93019 12.7908 5.22309C13.0697 5.51598 13.0697 5.99085 12.7908 6.28375L8.50508 10.7837C8.22613 11.0766 7.77387 11.0766 7.49492 10.7837L3.20921 6.28375C2.93026 5.99
29085 2.93026 5.51598 3.20921 5.22309Z",fill:"#A8A8A8"})})}function h(){return(0,r.jsxs)("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M16.998 0.75C25.9697 0.750007 33.25 8.02681 33.25 16.998C33.25 25.9736 25.9733 33.25 17.002 33.25C8.03038 33.25 0.750007 25.9733 0.75 16.998C0.75 8.02658 8.02658 0.75 16.998 0.75Z",stroke:"#212121","stroke-width":"1.5"}),(0,r.jsx)("path",{d:"M23.8533 10.057L7.55396 16.3913C7.40104 16.3974 7.25682 16.4638 7.15302 16.5759C7.04922 16.688 6.99435 16.8366 7.00046 16.9891C7.00658 17.1415 7.07319 17.2853 7.18564 17.3888C7.29809 17.4922 7.44717 17.547 7.60008 17.5409L11.7398 18.7594L13.2907 23.6509C13.3263 23.7683 13.392 23.8743 13.4815 23.9584C13.571 24.0424 13.681 24.1017 13.8005 24.1302C13.9201 24.1587 14.0451 24.1555 14.163 24.1208C14.281 24.0861 14.3877 24.0212 14.4727 23.9326L16.6175 21.7541L20.8205 24.8292C20.9387 24.9161 21.0768 24.9721 21.2221 24.9919C21.3676 25.0118 21.5156 24.9949 21.6528 24.9428C21.7899 24.8907 21.9118 24.8052 22.0071 24.6939C22.1025 24.5827 22.1683 24.4494 22.1986 24.3062L24.9833 11.0054C25.0132 10.8578 25.0028 10.7048 24.9529 10.5626C24.9032 10.4204 24.8159 10.2942 24.7003 10.1972C24.5847 10.1002 24.4451 10.036 24.2961 10.0113C24.147 9.98666 23.9941 10.0024 23.8533 10.057ZM21.8123 13L14.2363 19.6791C14.1604 19.7452 14.1129 19.8378 14.1037 19.9377L13.8096 22.5186C13.8096 22.5384 13.8017 22.5574 13.7877 22.5714C13.7736 22.5854 13.7545 22.5933 13.7347 22.5933C13.7148 22.5933 13.6957 22.5854 13.6817 22.5714C13.6676 22.5574 13.6597 22.5384 13.6597 22.5186L12.4605 18.679C12.4333 18.5941 12.4356 18.5026 12.467 18.4191C12.4984 18.3357 12.557 18.2653 12.6334 18.2191L21.5873 12.6896C21.6286 12.6711 21.6748 12.6674 21.7185 12.679C21.762 12.6906 21.8003 12.7169 21.8268 12.7534C21.8532 12.7898 21.8662 12.8343 21.8636 12.8792C21.8609 12.9242 21.8428 12.9668 21.8123 13Z",fill:"#212121"})]})}function m(){return(0,r.jsxs)("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M16.998 0.75C25.9697 0.750007 33.25 8.02681 33.25 16.998C33.25 25.9736 25.9733 33.25 17.002 33.25C8.03038 33.25 0.750007 25.9733 0.75 16.998C0.75 8.02658 8.02658 0.75 16.998 0.75Z",stroke:"#212121","stroke-width":"1.5"}),(0,r.jsx)("g",{"clip-path":"url(#clip0_5295_1242)",children:(0,r.jsx)("path",{d:"M25.0982 19.4063C24.6288 18.7747 23.879 18.0547 23.6169 17.7262C23.2695 17.3473 23.3731 17.1452 23.6169 16.7473C23.6169 16.7473 26.2502 12.8947 26.5062 11.6315C26.5916 11.1768 26.4026 10.9999 25.9515 10.9999H23.6656C23.4854 10.9725 23.3015 11.0103 23.1448 11.1069C22.9883 11.2035 22.8687 11.3531 22.8062 11.5305C22.0721 13.1133 21.1551 14.5979 20.0753 15.9515C19.5876 16.5073 19.3621 16.6715 19.0938 16.6715C18.8257 16.6715 18.8195 16.4884 18.8195 15.9894V11.5684C18.8195 10.9368 18.6794 10.9999 18.21 10.9999H14.5526C14.2722 10.9999 14.2173 11.0568 14.2173 11.2841C14.2173 11.8652 15.1926 11.8778 15.1926 13.4505V16.6841C15.1926 17.3157 15.0402 17.6441 14.7415 17.6441C13.9552 17.6441 11.968 14.9031 10.9195 11.7199C10.6574 11.0694 10.4563 10.9999 9.86498 10.9999H7.573C7.24383 10.9999 7 11.1199 7 11.4673C7 12.0989 7.7132 14.9157 10.5233 18.8378C12.413 21.4778 14.8878 22.9052 17.125 22.9052C18.4843 22.9052 18.8195 22.6716 18.8195 22.0716V20.0504C18.8195 19.5452 19.0085 19.3494 19.2889 19.3494C19.5693 19.3494 20.1545 19.4757 21.4529 20.802C22.989 22.3178 23.0927 23 23.9278 23H26.5062C26.7684 23 27.0122 22.8294 27.0122 22.3684C27 21.781 26.2502 20.6694 25.0982 19.4063Z",fill:"#212121"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_5295_1242",children:(0,r.jsx)("rect",{width:"20",height:"12",fill:"white",transform:"translate(7 11)"})})})]})}function g(){return(0,r.jsxs)("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{"clip-path":"url(#clip0_5295_1230)",children:[(0,r.jsx)("mask",{id:"mask0_5295_1230",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:(0,r.jsx)("path",{d:"M34 0H0V34H34V0Z",fill:"white"})}),(0,r.jsxs)("g",{mask:"url(#mask0_5295_1230)",children:[(0,r.jsx)("path",{d:"M34 17C34 7.61116 26.3888 0 17 0C7.61116 0 0 7.61116 0 17C0 26.3888 7.61116 34 17 34C26.3888 34 34 26.3888 34 17Z",fill:"black"}),(0,r.jsx)("path",{d:"M7.67584 34L12.4013 13.532H18.1588L13.4334 34H7.67584Z",fill:"url(#paint0_linear_5295_1230)"}),(0,r.jsx)("path",{d:"M10.7733 13.532L12.0684 7.922H17.826L16.5308 13.532H10.7733Z",fill:"url(#paint1_linear_5295_1230)"}),(0,r.jsx)("path",{d:"M25.5543 13.532L22.5727 26.4466C22.2242 27.9561 20.7181 28.8972 19.2086 28.5487C17.6992 28.2003 16.758 26.6941 17.1065 25.1847L19.7967 13.532H25.5543Z",fill:"url(#paint2_linear_5295_1230)"}),(0,r.jsx)("path",{d:"M23.9103 13.5321H18.1528L18.605 11.5731C18.9535 10.0636 20.4597 9.12246 21.9691 9.47096C23.4786 9.81942 24.4197 11.3256 24.0712 12.835L23.9103 13.5321Z",fill:"url(#paint3_linear_5295_1230)"}),(0,r.jsx)("path",{d:"M20.1591 7.92207H14.4016L15.0579 5.07904C15.4064 3.5696 16.9126 2.62845 18.422 2.97693C19.9315 3.32542 20.8726 4.83158 20.5241 6.34103L20.1591 7.92207Z",fill:"url(#paint4_linear_5295_1230)"})]})]}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"paint0_linear_5295_1230",x1:"16.7791",y1:"20.689",x2:"16.7791",y2:"13.532",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{"stop-color":"white"}),(0,r.jsx)("stop",{offset:"1","stop-color":"#E3E4E9"})]}),(0,r.jsxs)("linearGradient",{id:"paint1_linear_5295_1230",x1:"16.8978",y1:"11.084",x2:"16.8978",y2:"7.922",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{"stop-color":"white"}),(0,r.jsx)("stop",{offset:"1","stop-color":"#E3E4E9"})]}),(0,r.jsxs)("linearGradient",{id:"paint2_linear_5295_1230",x1:"24.4329",y1:"21.08",x2:"24.4329",y2:"13.532",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{"stop-color":"white"}),(0,r.jsx)("stop",{offset:"1","stop-color":"#E3E4E9"})]}),(0,r.jsxs)("linearGradient",{id:"paint3_linear_5295_1230",x1:"23.3553",y1:"10.8439",x2:"23.3553",y2:"7.88807",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{"stop-color":"white"}),(0,r.jsx)("stop",{offset:"1","stop-color":"#E3E4E9"})]}),(0,r.jsxs)("linearGradient",{id:"paint4_linear_5295_1230",x1:"19.7812",
29y1:"6.80007",x2:"19.7812",y2:"2.90442",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{"stop-color":"white"}),(0,r.jsx)("stop",{offset:"1","stop-color":"#E3E4E9"})]}),(0,r.jsx)("clipPath",{id:"clip0_5295_1230",children:(0,r.jsx)("rect",{width:"34",height:"34",fill:"white"})})]})]})}},33368:function(e,t,n){"use strict";var r=n(8307),i=n(4730),o=n(85893);let a=["children"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}t.Z=function(e){let{children:t}=e,n=(0,i.Z)(e,a);return(0,o.jsx)("a",l(l({},n),{},{children:t}))}},74744:function(e,t,n){"use strict";n.d(t,{CQ:function(){return p},CU:function(){return y},JA:function(){return o},K7:function(){return l},LY:function(){return d},Mf:function(){return f},Ml:function(){return c},NR:function(){return u},Wv:function(){return h},br:function(){return s},im:function(){return a},q6:function(){return i},qJ:function(){return g},yB:function(){return m}});var r=n(87379);let i=56,o=r.ZP.div.withConfig({displayName:"styles__StyledNavbar",componentId:"sc-ut3x70-0"})(["margin:0 auto;padding:0 40px;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;position:sticky;top:0;background:",";z-index:50;box-shadow:",";transition:all .5s;@media screen and (max-width:768px){justify-content:start;min-width:768px;}"],e=>e.theme.colors.bg,e=>e.isScrolled?"0 6px 12px rgba(0, 0, 0, 0.08)":"none"),a=r.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-ut3x70-1"})(["display:flex;align-items:center;justify-content:space-between;column-gap:18px;width:100%;max-width:1204px;overflow:hidden;"]),s=r.ZP.div.withConfig({displayName:"styles__NavWrapper",componentId:"sc-ut3x70-2"})(["display:flex;flex-direction:row;align-items:center;height:","px;"],i),l=r.ZP.div.withConfig({displayName:"styles__LogoWrapper",componentId:"sc-ut3x70-3"})(["width:168px;height:16px;cursor:pointer;"]),c=r.ZP.ul.withConfig({displayName:"styles__NavMenu",componentId:"sc-ut3x70-4"})(['display:flex;justify-content:center;align-items:center;column-gap:18px;color:#212121;font-family:"Suisse Intl";font-size:16px;font-style:normal;font-weight:400;line-height:21px;width:100%;']),u=r.ZP.li.withConfig({displayName:"styles__NavItemWrapper",componentId:"sc-ut3x70-5"})([""]),d=r.ZP.div.withConfig({displayName:"styles__NavItem",componentId:"sc-ut3x70-6"})(["display:flex;justify-content:space-between;align-items:center;column-gap:6px;white-space:nowrap;height:36px;cursor:pointer;& > a{transition:color 0.5s ease;color:",";}& > a::after{content:'';position:absolute;bottom:-6px;left:0;width:100%;height:1.5px;background-color:#8A724B;transition:0.3s ease;opacity:",";}&:hover > a::after{opacity:1;}"],e=>e.color??"#212121",e=>e.isActive?1:0),p=r.ZP.div.withConfig({displayName:"styles__ExtraButton",componentId:"sc-ut3x70-7"})(["display:flex;justify-content:space-between;align-items:center;white-space:nowrap;height:56px;position:relative;cursor:pointer;white-space:nowrap;& > a{transition:color 0.3s ease;color:",";}& > img{height:24px;width:24px;object-fit:contain;margin-right:6px;}svg{margin-left:5px;transition:transform 0.3s linear;}"," & > a::after{content:'';position:absolute;bottom:-6px;left:0;width:100%;height:1.5px;background-color:#8A724B;transition:transform 0.3s ease;opacity:",";}&:hover > a::after{opacity:1;}"],e=>e.color??"#212121",e=>e.isOpen&&(0,r.iv)(["svg{transform:scaleY(-1);}"]),e=>e.isActive?1:0),f=r.ZP.div.withConfig({displayName:"styles__CtrlWrapper",componentId:"sc-ut3x70-8"})(["display:flex;justify-content:space-between;column-gap:8px;height:36px;& > div{width:36px;}"]),h=r.ZP.div.withConfig({displayName:"styles__Favorites",componentId:"sc-ut3x70-9"})(["position:relative;display:flex;font-weight:400;font-size:14px;white-space:nowrap;cursor:pointer;"]),m=r.ZP.span.withConfig({displayName:"styles__FavoritesItems",componentId:"sc-ut3x70-10"})(['position:absolute;top:-4px;right:-4px;width:20px;height:20px;
29display:flex;justify-content:center;align-items:center;background-color:#EC4C41;border-radius:50%;color:#FFFFFF;font-family:"Suisse Intl";font-size:12px;font-style:normal;font-weight:400;line-height:14px;']),g=r.ZP.div.withConfig({displayName:"styles__ToolbarContainer",componentId:"sc-ut3x70-11"})(["display:flex;z-index:9;top:0;max-width:1204px;width:100%;"]),y=r.ZP.div.withConfig({displayName:"styles__SearchInputBarContainer",componentId:"sc-ut3x70-12"})(["display:flex;z-index:9;top:0;width:100%;& input{caret-color:transparent;}"])},64236:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(8307),i=n(4730),o=n(67294),a=n(87379);let s=a.ZP.button.withConfig({displayName:"styles__ButtonWrapper",componentId:"sc-2iv5ti-0"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px;width:100%;color:",";"," background:",";border:",";border-radius:14px;font-family:'Suisse Intl';font-style:normal;font-weight:",";font-size:",";line-height:15px;cursor:pointer;:hover{background:",";}:active{background:",";}& > svg{opacity:",";transition:all 0.2s ease-out;}& > span{opacity:",";transition:all 0.2s ease-out;}& > div.spinner{position:absolute;max-width:28px;min-width:28px;max-height:28px;min-height:28px;opacity:",";transition:all 0.2s ease-out;}&:disabled,&[disabled]{background:#e5e5e5;color:#a8a8a8;font-size:15px;line-height:15px;font-weight:500;}-moz-user-select:none;-khtml-user-select:none;user-select:none;"],e=>"white"===e.variant?"#212121":"#ffffff",e=>e.isLoading&&(0,a.iv)(["color:transparent;"]),e=>"white"===e.variant?"#ffffff":"#ec4c41",e=>"white"===e.variant?"1px solid #DEDEDE;":"none",e=>"white"===e.variant?"400":"500",e=>(e.variant,"15px"),e=>"white"===e.variant?"#F0F0F0":"#D7453B",e=>"white"===e.variant?"#D9D9D9":"#A8362E",e=>e.isLoading?0:1,e=>e.isLoading?0:1,e=>e.isLoading?1:0);var l=n(5292),c=n(85893);let u=["children","variant","disabled","className","isLoading","onLoading","onClick"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var f=function(e){let{children:t,variant:n,disabled:r,className:a,isLoading:d,onLoading:f,onClick:h}=e,m=(0,i.Z)(e,u),{0:g,1:y}=(0,o.useState)(d);return(0,c.jsxs)(s,p(p({disabled:r,isLoading:g,onClick:()=>{setTimeout(()=>{h?.()},200),setTimeout(()=>{y(!0),f?.(!0)},100),setTimeout(()=>{y(!1),f?.(!1)},3e3)},className:a,variant:n},m),{},{children:[t,(0,c.jsx)(l.Z,{className:"spinner",variant:["white","transparent"].includes(n??"")?"red":"white"})]}))}},5292:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}}),n(67294);let r=n(87379).ZP.div.withConfig({displayName:"styles__SpinnerWrapper",componentId:"sc-js21y1-0"})(["display:flex;justify-content:center;align-items:center;max-width:",";min-width:",";max-height:",";min-height:",";& > svg{animation:2s linear infinite svg-animation;max-width:",";min-width:",";max-height:",";min-height:",";transition:all 0.2s ease-out;}@keyframes svg-animation{0%{transform:rotateZ(0deg);}100%{transform:rotateZ(360deg)}}circle{animation:1.4s ease-in-out infinite both circle-animation;display:block;fill:transparent;stroke:",";stroke-linecap:round;stroke-dasharray:283;stroke-dashoffset:280;stroke-width:",";transform-origin:50% 50%;}@keyframes circle-animation{0%,25%{stroke-dashoffset:280;transform:rotate(0);}50%,75%{stroke-dashoffset:75;transform:rotate(45deg);}100%{stroke-dashoffset:280;transform:rotate(360deg);}}"],e=>"small"===e.size?"20px":"28px",e=>"small"===e.size?"20px":"28px",e=>"small"===e.size?"20px":"28px",e=>"small"===e.size?"20px":"28px",e=>"small"===e.size?"20px":"28px",e=>"small"===e.size?"20px":"28px",e=>"small"===e.size?"20px":"28px",e=>"small"===e.size?"20px":"28px",e=>{switch(e.variant){case"white":return"#FFFFFF";case"gray":return"#A0A1A4";default:return"#EC4C41"}},e=>"small"===e.size?"8px":"10px");var i=n(85893),o=function(e){let{variant:t="red",size:n="standart",className:o="spinner"}=e;return(0,i.jsx)(r,{variant:t,size:n,className:o,children:(0,i.jsx)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("circle",{cx:"50",cy:"50",r:"45"})})})}},68179:function(e,t,n){"use strict";n.d(t,{C3:function(){return l},Iq:function(){return s},Iy:function(){return a},Nu:function(){return o},OD:function(){return c},QS:function(){return i},Xs:function(){return r}});let r=e=>{let{loginType:t,user_id:n}=e;window.dataLayer=window.dataLayer||[],dataLayer.push({event:"login",login_type:t,user_id:n})},i=e=>{let{user_id:t}=e;window.dataLayer=window.dataLayer||[],dataLayer.push({event:"userId",user_id:t})},o=e=>{let{text:t,user_id:n}=e;window.dataLayer=window.dataLayer||[],dataLayer.push({event:"search_input",text:`${t}`,user_id:n})},a=(e,t)=>{let{title:n,sku:r,price:i,qty:o,section:a,category:s}=e;window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null}),dataLayer.push({event:"view_item",ecommerce:{currency:"RUB",value:i*o,items:[{item_id:`${r}`,item_name:n,item_category:a,item_category2:s,price:"number"==typeof i?i:Number(i),quantity:o}]},user_id:t})},s=(e,t)=>{let{title:n,sku:r,price:i,qty:o,section:a,category:s,source:l}=e;window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null}),dataLayer.push({event:"add_to_cart",ecommerce:{currency:"RUB",value:i*o,items:[{item_id:`${r}`,item_name:n,item_category:a,item_category2:s,item_category3:l,price:"number"==typeof i?i:Number(i),quantity:o}]},user_id:t})},l=(e,t)=>
29{let{title:n,sku:r,price:i,qty:o,section:a,category:s}=e;window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null}),dataLayer.push({event:"remove_from_cart",ecommerce:{currency:"RUB",value:i*o,items:[{item_id:`${r}`,item_name:n,item_category:a,item_category2:s,price:"number"==typeof i?i:Number(i),quantity:o}]},user_id:t})},c=(e,t)=>{let{title:n,sku:r,price:i,qty:o,section:a,category:s}=e;window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null}),dataLayer.push({event:"add_to_wishlist",ecommerce:{currency:"RUB",value:i*o,items:[{item_id:`${r}`,item_name:n,item_category:a,item_category2:s,price:"number"==typeof i?i:Number(i),quantity:o}]},user_id:t})}},27910:function(e,t,n){"use strict";let r=(0,n(67294).createContext)({});t.Z=r},71816:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294);function i(e,t){(0,r.useEffect)(()=>{let n=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])}},45835:function(e,t,n){"use strict";let r,i;n.d(t,{Z:function(){return eR}});try{r=window}catch{r=globalThis}function o(e,t){return void 0===e?t:e}var a=["","webkit","Moz","MS","ms","o"];function s(){if(void 0===i){let e=r?.document?.createElement?.("div");i=d(e?.style,"touchAction")}}var l=Math.round,c=Math.abs,u=Date.now;function d(e,t){for(var n=void 0,r=void 0,i=t[0].toUpperCase()+t.slice(1),o=0;o<a.length;){if(r=(n=a[o])?n+i:t,r?.[e]&&r in e)return r;o++}}var p="compute",f="auto",h="manipulation",m="none",g="pan-x",y="pan-y",v=function(){if(s(),!(void 0!==i))return!1;var e={},t=r?.CSS&&r?.CSS?.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return e[n]=!t||r?.CSS?.supports("touch-action",n)}),e}(),b="ontouchstart"in r,x=void 0!==d(r,"PointerEvent"),w=b&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),_="touch",C="mouse",S=["x","y"],E=["clientX","clientY"],T=1;function k(e,t,n){var r=void 0;if(e){if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}}function j(e,t,n){return!!Array.isArray(e)&&(k(e,n[t],n),!0)}function O(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return -1}var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){function e(e){this.value=e}function t(t){var n,r;function i(n,r){try{var a=t[n](r),s=a.value;s instanceof e?Promise.resolve(s.value).then(function(e){i("next",e)},function(e){i("throw",e)}):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}();var I=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},N=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),D=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);if(null===o)return;return e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},M=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},A=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e},L=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);
29throw TypeError("Invalid attempt to destructure non-iterable instance")};function R(e,t){return(void 0===e?"undefined":P(e))==="function"?e.apply(t&&t[0]||void 0,t):e}function Z(e,t){var n=t.manager;return n?n.get(e):e}function z(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}var F=function(){function e(t){I(this,e),this.options=Object.assign({},this.defaults,t||{}),this.id=T++,this.manager=null,this.options.enable=o(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}return N(e,[{key:"set",value:function(e){return Object.assign(this.options,e),this.manager&&this.manager.touchAction.update(),this}},{key:"recognizeWith",value:function(e){if(j(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Z(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this}},{key:"dropRecognizeWith",value:function(e){return j(e,"dropRecognizeWith",this)||(e=Z(e,this),delete this.simultaneous[e.id]),this}},{key:"requireFailure",value:function(e){if(j(e,"requireFailure",this))return this;var t=this.requireFail;return -1===O(t,e=Z(e,this))&&(t.push(e),e.requireFailure(this)),this}},{key:"dropRequireFailure",value:function(e){if(j(e,"dropRequireFailure",this))return this;e=Z(e,this);var t=O(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this}},{key:"hasRequireFailures",value:function(){return this.requireFail.length>0}},{key:"canRecognizeWith",value:function(e){return!!this.simultaneous[e.id]}},{key:"emit",value:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+z(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+z(n))}},{key:"tryEmit",value:function(e){if(this.canEmit())return this.emit(e);this.state=32}},{key:"canEmit",value:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0}},{key:"recognize",value:function(e){var t=Object.assign({},e);if(!R(this.options.enable,[this,t])){this.reset(),this.state=32;return}56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)}},{key:"process",value:function(e){}},{key:"getTouchAction",value:function(){}},{key:"reset",value:function(){}}]),e}();F.prototype.defaults={};var B=function(e){function t(){return I(this,t),A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return M(t,e),N(t,[{key:"attrTest",value:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t}},{key:"process",value:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:32}}]),t}(F);B.prototype.defaults={pointers:1};var H=function(e){function t(){return I(this,t),A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return M(t,e),N(t,[{key:"getTouchAction",value:function(){return[m]}},{key:"attrTest",value:function(e){return D(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attrTest",this).call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}]),t}(B);H.prototype.defaults={event:"rotate",threshold:0,pointers:2};var $=function(e){function t(){return I(this,t),A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return M(t,e),N(t,[{key:"getTouchAction",value:function(){return[m]}},{key:"attrTest",value:function(e){return D(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attrTest",this).call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)}},{key:"emit",value:function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}D(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e)}}]),t}(B);function U(e){return 16===e?"down":8===e?"up":2===e?"left":4===e?"right":""}$.prototype.defaults={event:"pinch",threshold:0,pointers:2};var Y=function(e){function t(){I(this,t);var e=A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.pX=null,e.pY=null,e}return M(t,e),N(t,[{key:"getTouchAction",value:function(){var e=this.options.direction,t=[];return 6&e&&t.push(y),24&e&&t.push(g),t}},{key:"directionTest",value:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:16,n=a!==this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction}},{key:"attrTest",value:function(e){return B.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))}},{key:"emit",value:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=U(e.direction);n&&(e.additionalEvent=this.options.event+n),D(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).call(this,e)}}]),t}(B);Y.prototype.defaults={event:"pan",threshold:10,pointers:1,direction:30};var G=function(e){function t(){return I(this,t),A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return M(t,e),N(t,[{key:"getTouchAction",value:function(){return Y.prototype.getTouchAction.call(this)}},{key:"attrTest",value:function(e){var n=this.options.direction,r=void 0;return 30&n?r=e.overallVelocity:6&n?r=e.overallVelocityX:24&n&&(r=e.overallVelocityY),D(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attrTest",this).call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&c(r)>this.options.velocity&&4&e.eventType}},{key:"emit",value:function(e){var t=U(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}]),t}(B);function V(e,t){return function(){return e.apply(t,arguments)}}function q(e,t,n){return setTimeout(V(e,n),t)}function W(e,t,n){n||(n=S);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}G.prototype.defaults={event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1};var X=function(e){function t(){I(this,t);var e=A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.pTime=!1,e.pCenter=!1,e._timer=null,e._input=null,e.count=0,e}return M(t,e),N(t,[{key:"getTouchAction",value:function(){return[h]}},{key:"process",value:function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distance<n.threshold,o=e.deltaTime<n.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==e.eventType)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<n.interval,s=!this.pCenter||W(this.pCenter,e.center)<n.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&a?this.count+=1:this.count=1,this._input=e,0==this.count%n.taps)return this.hasRequireFailures()?(this._timer=q(function(){t.state=8,t.tryEmit()},n.interval,this),2):8}return 32}},{key:"failTimeout",value:function(){var e=this;return this._timer=q(function(){e.state=32},this.options.interval,this),32}},{key:"reset",value:function(){clearTimeout(this._timer)}},{key:"emit",value:function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}]),t}(F);X.prototype.defaults={event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10};var K=function(e){function t(){I(this,t);var e=A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e._timer=null,e._input=null,e}return M(t,e),N(t,[{key:"getTouchAction",value:function(){return[f]}},{key:"process",value:function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distance<n.threshold,o=e.deltaTime>n.time;
29if(this._input=e,i&&r&&(!(12&e.eventType)||o)){if(1&e.eventType)this.reset(),this._timer=q(function(){t.state=8,t.tryEmit()},n.time,this);else if(4&e.eventType)return 8}else this.reset();return 32}},{key:"reset",value:function(){clearTimeout(this._timer)}},{key:"emit",value:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}]),t}(F);function J(e,t){return e.indexOf(t)>-1}K.prototype.defaults={event:"press",pointers:1,time:251,threshold:9};var Q=function(){function e(t,n){I(this,e),this.manager=t,this.set(n)}return N(e,[{key:"set",value:function(e){e===p&&(e=this.compute()),s(),void 0!==i&&this.manager.element.style&&v[e]&&(this.manager.element.style[i]=e),this.actions=e.toLowerCase().trim()}},{key:"update",value:function(){this.set(this.manager.options.touchAction)}},{key:"compute",value:function(){var e=[];return k(this.manager.recognizers,function(t){R(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(J(e,m))return m;var t=J(e,g),n=J(e,y);return t&&n?m:t||n?t?g:y:J(e,h)?h:f}(e.join(" "))}},{key:"preventDefaults",value:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented){t.preventDefault();return}var r=this.actions,i=J(r,m)&&!v[m],o=J(r,y)&&!v[y],a=J(r,g)&&!v[g];if(i){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if((!a||!o)&&(i||o&&6&n||a&&24&n))return this.preventSrc(t)}},{key:"preventSrc",value:function(e){this.manager.session.prevented=!0,e.preventDefault()}}]),e}();function ee(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function et(e){var t=e.length;if(1===t)return{x:l(e[0].clientX),y:l(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:l(n/t),y:l(r/t)}}function en(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:l(e.pointers[n].clientX),clientY:l(e.pointers[n].clientY)},n++;return{timeStamp:u(),pointers:t,center:et(t),deltaX:e.deltaX,deltaY:e.deltaY}}function er(e,t,n){n||(n=S);var r=t[n[0]]-e[n[0]];return 180*Math.atan2(t[n[1]]-e[n[1]],r)/Math.PI}function ei(e,t){return e===t?1:c(e)>=c(t)?e<0?2:4:t<0?8:16}function eo(e,t,n){return{x:t/e||0,y:n/e||0}}function ea(e,t,n){var r,i,o,a,s,l,d,p,f,h,m,g,y,v,b,x=n.pointers.length,w=n.changedPointers.length,_=1&t&&x-w==0,C=12&t&&x-w==0;n.isFirst=!!_,n.isFinal=!!C,_&&(e.session={}),n.eventType=t,r=e.session,o=(i=n.pointers).length,r.firstInput||(r.firstInput=en(n)),o>1&&!r.firstMultiple?r.firstMultiple=en(n):1===o&&(r.firstMultiple=!1),a=r.firstInput,l=(s=r.firstMultiple)?s.center:a.center,d=n.center=et(i),n.timeStamp=u(),n.deltaTime=n.timeStamp-a.timeStamp,n.angle=er(l,d),n.distance=W(l,d),p=n.center,f=r.offsetDelta||{},h=r.prevDelta||{},m=r.prevInput||{},(1===n.eventType||4===m.eventType)&&(h=r.prevDelta={x:m.deltaX||0,y:m.deltaY||0},f=r.offsetDelta={x:p.x,y:p.y}),n.deltaX=h.x+(p.x-f.x),n.deltaY=h.y+(p.y-f.y),n.offsetDirection=ei(n.deltaX,n.deltaY),g=eo(n.deltaTime,n.deltaX,n.deltaY),n.overallVelocityX=g.x,n.overallVelocityY=g.y,n.overallVelocity=c(g.x)>c(g.y)?g.x:g.y,n.scale=s?(y=s.pointers,W(i[0],i[1],E)/W(y[0],y[1],E)):1,n.rotation=s?(v=s.pointers,er(i[1],i[0],E)+er(v[1],v[0],E)):0,n.maxPointers=r.prevInput?n.pointers.length>r.prevInput.maxPointers?n.pointers.length:r.prevInput.maxPointers:n.pointers.length,function(e,t){var n=e.lastInterval||t,r=t.timeStamp-n.timeStamp,i=void 0,o=void 0,a=void 0,s=void 0;if(8!==t.eventType&&(r>25||void 0===n.velocity)){var l=t.deltaX-n.deltaX,u=t.deltaY-n.deltaY,d=eo(r,l,u);o=d.x,a=d.y,i=c(d.x)>c(d.y)?d.x:d.y,s=ei(l,u),e.lastInterval=t}else i=n.velocity,o=n.velocityX,a=n.velocityY,s=n.direction;t.velocity=i,t.velocityX=o,t.velocityY=a,t.direction=s}(r,n),b=e.element,ee(n.srcEvent.target,b)&&(b=n.srcEvent.target),n.target=b,e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function es(e){return e.trim().split(/\s+/g)}function el(e,t,n){k(es(t),function(t){e.addEventListener(t,n,!1)})}function ec(e,t,n){k(es(t),function(t){e.removeEventListener(t,n,!1)})}function eu(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}var ed=function(){function e(t,n){I(this,e);var r=this;this.manager=t,this.callback=n,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){R(t.options.enable,[t])&&r.handler(e)},this.init()}return N(e,[{key:"handler",value:function(){}},{key:"init",value:function(){this.evEl&&el(this.element,this.evEl,this.domHandler),this.evTarget&&el(this.target,this.evTarget,this.domHandler),this.evWin&&el(eu(this.element),this.evWin,this.domHandler)}},{key:"destroy",value:function(){this.evEl&&ec(this.element,this.evEl,this.domHandler),this.evTarget&&ec(this.target,this.evTarget,this.domHandler),this.evWin&&ec(eu(this.element),this.evWin,this.domHandler)}}]),e}(),ep={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ef={2:_,3:"pen",4:C,5:"kinect"},eh="pointerdown",em="pointermove pointerup pointercancel";r?.MSPointerEvent&&!r?.PointerEvent&&(eh="MSPointerDown",em="MSPointerMove MSPointerUp MSPointerCancel");var eg=function(e){function t(){I(this,t);var e=A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.evEl=eh,e.evWin=em,e.store=e.manager.session.pointerEvents=[],e}return M(t,e),N(t,[{key:"handler",value:function(e){var t=this.store,n=!1,r=ep[e.type.toLowerCase().replace("ms","")],i=ef[e.pointerType]||e.pointerType,o=i===_,a=O(t,e.pointerId,"pointerId");1&r&&(0===e.button||o)?a<0&&(t.push(e),a=t.length-1):12&r&&(n=!0),!(a<0)&&(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(a,1))}}]),t}(ed);function ey(e){return Array.prototype.slice.call(e,0)}function ev(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];0>O(i,a)&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}var eb={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ex="touchstart touchmove touchend touchcancel",ew=function(e){function t(){I(this,t),t.prototype.evTarget=ex,t.prototype.targetIds={};var e=A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.evTarget=ex,e.targetIds={},e}return M(t,e),N(t,[{key:"handler",value:function(e){var t=eb[e.type],n=e_.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:_,srcEvent:e})}}]),t}(ed);function e_(e,t){var n=ey(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i=void 0,o=void 0,a=ey(e.changedTouches),s=[],l=this.target;if(o=n.filter(function(e){return ee(e.target,l)}),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&t&&delete r[a[i].identifier],i++;if(s.length)return[ev(o.concat(s),"identifier",!0),s]}
29var eC={mousedown:1,mousemove:2,mouseup:4},eS=function(e){function t(){I(this,t);var e=A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.evEl="mousedown",e.evWin="mousemove mouseup",e.pressed=!1,e}return M(t,e),N(t,[{key:"handler",value:function(e){var t=eC[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:C,srcEvent:e}))}}]),t}(ed),eE=function(e){function t(){I(this,t);var e=A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments)),n=V(e.handler,e);return e.touch=new ew(e.manager,n),e.mouse=new eS(e.manager,n),e.primaryTouch=null,e.lastTouches=[],e}return M(t,e),N(t,[{key:"handler",value:function(e,t,n){var r=n.pointerType===_,i=n.pointerType===C;if(!i||!n.sourceCapabilities||!n.sourceCapabilities.firesTouchEvents){if(r)eT.call(this,t,n);else if(i&&ej.call(this,n))return;this.callback(e,t,n)}}},{key:"destroy",value:function(){this.touch.destroy(),this.mouse.destroy()}}]),t}(ed);function eT(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ek.call(this,t)):12&e&&ek.call(this,t)}function ek(e){var t,n,r=L(e.changedPointers,1)[0];r.identifier===this.primaryTouch&&(t={x:r.clientX,y:r.clientY},this.lastTouches.push(t),n=this.lastTouches,setTimeout(function(){var e=n.indexOf(t);e>-1&&n.splice(e,1)},2500))}function ej(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var eO=function(){function e(t,n){var r,i=this;I(this,e),this.options=Object.assign({},eI.defaults,n||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((r=this.options.inputClass)?r:x?eg:w?ew:b?eE:eS)(this,ea),this.touchAction=new Q(this,this.options.touchAction),eP(this,!0),k(this.options.recognizers,function(e){var t=i.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}return N(e,[{key:"set",value:function(e){return Object.assign(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this}},{key:"stop",value:function(e){this.session.stopped=e?2:1}},{key:"recognize",value:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n=void 0,r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2!==t.stopped&&(!i||n===i||n.canRecognizeWith(i))?n.recognize(e):n.reset(),!i&&14&n.state&&(i=t.curRecognizer=n),o++}}},{key:"get",value:function(e){if(e instanceof F)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event===e)return t[n];return null}},{key:"add",value:function(e){if(j(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e}},{key:"remove",value:function(e){if(j(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=O(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this}},{key:"on",value:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return k(es(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}}},{key:"off",value:function(e,t){if(void 0!==e){var n=this.handlers;return k(es(e),function(e){t?n[e]&&n[e].splice(O(n[e],t),1):delete n[e]}),this}}},{key:"emit",value:function(e,t){this.options.domEvents&&((n=document.createEvent("Event")).initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n));var n,r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](t),i++}}},{key:"destroy",value:function(){this.element&&eP(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}}]),e}();function eP(e,t){var n=e.element;if(n.style){var r=void 0;k(e.options.cssProps,function(i,o){r=d(n.style,o),t?(e.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=e.oldCssProps[r]||""}),t||(e.oldCssProps={})}}var eI=function e(t,n){return I(this,e),(n=n||{}).recognizers=o(n.recognizers,e.defaults.preset),new eO(t,n)};eI.VERSION="2.0.8",eI.defaults={domEvents:!1,touchAction:p,enable:!0,inputTarget:null,inputClass:null,preset:[[H,{enable:!1}],[$,{enable:!1},["rotate"]],[G,{direction:6}],[Y,{direction:6},["swipe"]],[X],[X,{event:"doubletap",taps:2},["tap"]],[K]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var eN={touchstart:1,touchmove:2,touchend:4,touchcancel:8},eD=function(e){function t(){I(this,t);var e=A(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.evTarget="touchstart",e.evWin="touchstart touchmove touchend touchcancel",e.started=!1,ed.apply(e,arguments),e}return M(t,e),N(t,[{key:"handler",value:function(e){var t=eN[e.type];if(1===t&&(this.started=!0),this.started){var n=eM.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:_,srcEvent:e})}}}]),t}(ed);function eM(e,t){var n=ey(e.touches),r=ey(e.changedTouches);return 12&t&&(n=ev(n.concat(r),"identifier",!0)),[n,r]}function eA(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r?.console&&(r?.console.warn||r?.console.log);return o&&o.call(r?.console,i,n),e.apply(this,arguments)}}var eL=eA(function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&void 0===e[r[i]])&&(e[r[i]]=t[r[i]]),i++;return e},"extend","Use `assign`.");Object.assign(eI,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:eO,In
29put:ed,TouchAction:Q,TouchInput:ew,MouseInput:eS,PointerEventInput:eg,TouchMouseInput:eE,SingleTouchInput:eD,Recognizer:F,AttrRecognizer:B,Tap:X,Pan:Y,Swipe:G,Pinch:$,Rotate:H,Press:K,on:el,off:ec,each:k,merge:eA(function(e,t){return eL(e,t,!0)},"merge","Use `assign`."),extend:eL,assign:Object.assign,inherit:function(e,t,n){var r=t.prototype,i=void 0;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&Object.assign(i,n)},bindFn:V,prefixed:d,toArray:ey,inArray:O,uniqueArray:ev,splitStr:es,boolOrFn:R,hasParent:ee,addEventListeners:el,removeEventListeners:ec});var eR=function(e){let{modal:t,blind:n=null,content:r=t,onClose:i}=e,o=r.scrollTop,a=t?.style?.transitionDuration||"unset",s=t?.style?.transform||"unset",l=new eI(n??t);return l.get("pan").set({direction:eI.DIRECTION_VERTICAL,threshold:0}),l.on("panstart",()=>{o=r.scrollTop}),l.on("pan",e=>{let{deltaY:n,isFinal:l}=e;if(r.scrollTop=o-n,n<=0){Object.assign(t.style,{transform:"translateY(0px)","transition-duration":"0ms"});return}if(!1===l&&0===r.scrollTop){Object.assign(t.style,{transform:`translateY(${n-o}px)`,"transition-duration":"0ms"});return}if(n-o<=100){Object.assign(t.style,{transform:"translateY(0%)","transition-duration":a});return}Object.assign(t.style,{transform:s,"transition-duration":a}),i()}),()=>l.destroy()}},82229:function(e,t,n){"use strict";n.d(t,{$b:function(){return A},AA:function(){return P},Bb:function(){return S},Ec:function(){return D},Fk:function(){return C},Iu:function(){return p},K9:function(){return v},Kq:function(){return I},VT:function(){return y},Vg:function(){return O},Y9:function(){return f},j_:function(){return E},nM:function(){return N},oC:function(){return _},qG:function(){return T},sG:function(){return b},sS:function(){return k},su:function(){return L},vN:function(){return x},vq:function(){return j}});var r=n(47041),i=n(39540),o=n(28828),a=n(27484),s=n.n(a),l=n(70178),c=n.n(l),u=n(29387),d=n.n(u);function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s()().toISOString();return s()(s()(t).tz().date(e)).toDate()}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s()().toISOString();return s()(t).tz().format(e)}n(70600),s().extend(c()),s().extend(d()),s().tz.setDefault("Europe/Moscow"),s().locale("ru");let h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][s()(e).tz().month()]};function m(e){return"preorder"===e?45:3}function g(e){return"preorder"===e?120:15}function y(){let e=s()().tz().hour(0).minute(0).second(0).millisecond(0).toISOString();return Array.from({length:m("default")}).map((t,n)=>s()(e).add(n,"day").toISOString())}function v(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ru";if(!s()(e).isValid())return"";let r=[{day:(t=y())[0],ru:"Сегодня"},{day:t[1],ru:"Завтра"},{day:t[2],ru:"Послезавтра"}],i=r?.find(t=>t.day===s()(e).tz().hour(0).minute(0).second(0).millisecond(0)?.toISOString());return i?.[n]??""}function b(e){if(!s()(e))return null;let t=x(e)?.[1]??"";return[e,w(e),w(t)]}function x(e){let t=g((0,r.getCookie)("cartType"));if(!s()(e).isValid())return null;let n=s()(e).add(t,"minutes").toISOString();return[e,n]}let w=e=>`${s()(e).tz().format("HH:mm")}`,_=e=>{let[t,n]=e;return`${s()(t).tz().format("HH:mm")} - ${s()(n).tz().format("HH:mm")}`};async function C(e){let{restaurant:t}=e,n=(0,r.getCookie)("deliveryType"),a=function(e){let t=y(),n=t.map(t=>{let n=e.filter(e=>t===s()(e).tz().hour(0).minute(0).second(0).millisecond(0).toISOString());return[t,n]});return console.log({arrDays:t,arrTime:e,timeByDays:n}),n}(function(e,t){let n=s()(),r=m("default"),i=[],o=0,a=s()(function(e,t){let n=s()(e).minute();return s()(e).minute(t*(Math.trunc(n/t)+(n%t!=0&&n?1:0)))}(n,e)).add(60,"minutes").toISOString();do i.push(a),0===s()(a).tz().minute()&&0===s()(a).tz().hour()&&o++,a=s()(a).add(e,"minutes").toISOString();while(o<r);return i}(g("default"),0)),l=a.map(e=>e[0]),c=l?.[0],u=l?.[l.length-1],d=[];if(c&&u){let e=`filter[date-from]=${c}&filter[date-to]=${u}
29&filter[cart-type]=default&filter[delivery-type]=${"self"===n?"pickup":"delivery"}`,t=await (0,i.ZP)(`order-time-limits?${e}`);t?.data?.length&&d.push(...t.data)}return a.map(e=>{let[r,i]=e;return[r,i.map(e=>{if(E(e,d))return null;if("delivery"===n)return e;let{isAvailable:r}=(0,o._A)(t,e);return r?e:null}).filter(e=>null!==e)]}).filter(e=>{let[,t]=e;return t?.length})}let S=e=>{let t=t=>{let[n,r]=t?.split?.(":").map(Number);return s()(new Date(e?.date)).tz().hour(n).minute(r).toDate()};return{"time-start-iso":new Date(t(e?.["time-start"])).toISOString(),"time-end-iso":new Date(t(e?.["time-end"])).toISOString()}};function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";s()(e).isValid()||(e=new Date().toISOString());let r=e,i=s()(e).add("preorder"===n?120:15,"minutes").toISOString();if(!t?.length)return null;let o=s()(e).tz().month()+1,a=s()(e).tz().date(),l=s()(r).tz().format("HH"),c=s()(r).tz().format("mm"),u=Number(`${l}${c}`),d=s()(i).tz().format("HH"),p=s()(i).tz().format("mm"),f=Number(`${d}${p}`);for(let e of t){var h;let t=Number(e?.date?.split?.("-")?.[1]??-1),n=Number(e?.date?.split?.("-")?.[2]??-1);if(o!==t||a!==n)continue;let r=Number(`${e["time-start"].replace(":","")}`),i=Number(`${e["time-end"].replace(":","")}`);if(u>=r&&i>u||r<(h={start:u,end:f}).end&&h.start<i)return e}return null}function T(e){let t=e.filter(e=>"preorder"===e.type);if(!t.length){let e=new Date,t=new Date(new Date(e).setDate(e.getDate()+2));return[e.toISOString(),t.toISOString()]}let n=t.map(e=>e?.product),r=n.map(e=>new Date(e?.["preorder-start-time"]??0).valueOf()),i=n.map(e=>new Date(e?.["preorder-end-time"]??0).valueOf());return[new Date(Math.max(...r)||0).toISOString(),new Date(Math.min(...i)||0).toISOString()]}let k=e=>{let t=e=>s()(e).tz().format("HH:mm"),n=t(e),r=t(s()(e).add(120,"minute").toDate()).replace("00:","24:");return`${n} - ${r}`};function j(e,t){let[n,r]=e;return new Date(n).valueOf()<=new Date(t).valueOf()&&new Date(t).valueOf()<new Date(r).valueOf()}function O(e,t,n,r,i){e||(e=t[0]);let o=j(t,e);o||(e=t[0]);let a=I(e,i),s=a.find(t=>e===t)||a[0]||e;if("delivery"===n||null===r||!r?.length)return s;let l=r?.some?.(e=>j(e,s));if(s&&o&&l)return s;let c=a.find(e=>r?.some?.(t=>j(t,e)));if(s=j(t,c)&&c)return s;let u=I(t[0],i);if(u.length){let e=u.find(e=>r?.some?.(t=>j(t,e)));if(e||(e=r?.[0]?.[0]),s=j(t,e)&&e)return s}return t[0]}function P(e){let t=h(e),n=s()(e).tz().format(`DD [${t}]`);if(!n)return null;let[r,i]=[s()(e).tz().format("HH:mm"),s()(e).add(120,"minute").tz().format("HH:mm")];return[n,r,i]}function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||"Invalid Date"===new Date(e).toString())return[];let n=s()(e).tz().hour(0).minute(0)?.toISOString(),r=[];E(n,t,"preorder")||r.push(n);for(let e=0;e<22;e+=2)E(n=s()(n).add(2,"hour").toISOString(),t,"preorder")||r.push(n);return r}function N(e){return I(e).map(e=>({value:e,label:k(e)}))}let D=e=>{if(!e||null===e)return null;let[t,n,r]=b(e)||[],i=v(t,"ru"),o=s()(t).hour(0).format("DD.MM");return`${(i??o)?.toLowerCase()} в ${n} - ${r}`},M=(e,t,n)=>{if((!e||null===e)&&"delivery"===n)return null;let r=e;return"self"===n?(r=t?7:22,`через ${r} ${(0,o.LH)(r)}`):0===r?`через ${r+5} ${(0,o.LH)(r+5)}`:`через ${r-10<=0?0:r-10} - ${r} ${(0,o.LH)(r)}`},A=function(e,t,n){let{deliveryType:r,deliveryForecastTime:i}=t,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null===e&&(!n||null===n))return null;let a=M(i,e,r),s=D(n);return o||!s?a:s};function L(e,t){let n=new Date(e),r=t.map(e=>new Date(new Date(e.id).getTime()+108e5)),i=new Date(n.getTime()+108e5);for(let e=0;e<r.length-1;e++)if(i>=r[e]&&i<r[e+1])return e;return i>=r[r.length-1]?r.length-1:-1}},13174:function(e,t,n){"use strict";n.d(t,{$7:function(){return m},AQ:function(){return h},G6:function(){return c},Q9:function(){return f},aY:function(){return g},ny:function(){return d},wg:function(){return p}});var r=n(8307),i=n(47041),o=n(39540),a=n(90102);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?s(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let c=async e=>{let t=String((0,i.getCookie)("authToken"));if(!t)return;let{profile:n,cartItems:r,restaurantId:s,address:l,promocode:c=null,pointsValue:u=null,cartType:d="default"}=e,p={"cart-items":r,restaurant:s,lat:l?.lat||0,lng:l?.lng||0,"bonus-charge":u||0,"delivery-type":"delivery"===n.deliveryType?0:1,promocode:c||null,date:new Date().toISOString()},f=function(e){let t=String((0,i.getCookie)("deliveryType"));if("preorder"===e){let e="delivery"===t?String((0,i.getCookie)("preorderDeliveryIsoTime")):String((0,i.getCookie)("preorderSelfIsoTime"));return Date.parse(e)?(0,a.CI)(e,{timeZone:"Europe/Moscow"}):e}let n="delivery"===t?String((0,i.getCookie)("deliveryIsoTime")):String((0,i.getCookie)("selfIsoTime"));return Date.parse(n)?(0,a.CI)(new Date(n).valueOf()-new Date(0).setUTCHours(3),{timeZone:"Europe/Moscow"}):n}(d);return f&&"null"!==f&&Object.assign(p,{date:f}),(0,o.ZP)("preorder"===d?"me/preorder":"me/checkout",{method:"POST",headers:{"Content-Type":"application/json",Authorization:t,accept:"application/json"},body:JSON.stringify(p)})},u=e=>{let t=0;for(let n=0;n<e.length;n++)t+=e.charCodeAt(n);return t},d=e=>{let{product:t,variant:n,extras:r,comment:i,"compliment-id":o,type:a}=e,s=parseInt(t?.id);return s+=u(t?.slug||"")+u(String(a))+u(String(n?.id||"")),r&&Array.isArray(r)&&r.forEach(e=>{s+=u(String(e?.id||""))}),(s+=u(String(i||""))+u(String(o||""))).toString(36)},p=(e,t)=>{let{product:n}=t;if(!n)return null;let r=t.variant||n?.variants?.[0]||null,i=d(l(l({},t),{},{variant:r}));return e?.find(e=>e?.hash===i)||null},f=e=>{let t=0;return e&&Array.isArray(e)&&e.forEach(e=>{t+=u(e?.hash||"")}),t.toString(36)},h=(e,t)=>{if(!Array.isArray(e)||!e.find(e=>"default"===e.type))return!0;for(let n of e){let e=n?.product?.categories;if(!e)return t;if(!e.find(e=>e?.["is-fast"]))return!1}return!0},m=(e,t)=>!t?.length||t?.filter(t=>t.product?.["preorder-pages"]?.map(e=>e.id)?.filter(t=>e?.["preorder-pages"]?.map(e=>e.id)?.includes(t)).length>0).length===t.length,g=async(e,t,n,r,a,s,c,u)=>{let d=t?.id??"",p=n?.map(e=>`${e?.id}`)??[],f={method:"POST",body:JSON.stringify(l({type:(0,i.getCookie)("cartType")??"default","extra-ids":p,"variant-id":`${d}`,comment:r,"product-id":e,"compliment-id":a,"preorder-page-id":s},u&&{"recommendation-id":u}))};return c&&Object.assign(f,{headers:{Authorization:c}}),(0,o.ZP)("me/cart/items",f).catch(e=>console.log(e))}},78768:function(e,t,n){"use strict";n.d(t,{X7:function(){return i},d7:function(){return r}});let r=(e,t)=>{let n=Math.abs(e)%100,r=e%10;return n>10&&n<20?t[2]:r>1&&r<5?t[1]:1===r?t[0]:t[2]},i=e=>r(e,["позиция","позиции","позиций"])},39540:function(e,t,n){"use strict";n.d(t,{LP:function(){return c}});var r=n(4730),i=n(8307),o=n(83454);let a=["headers","context"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,i.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){let t=function(e){try{if(e?.req){let t=e.req.headers.cookie;if(t){let e=t.match(/authToken=([^;]+)/);if(e){let t=decodeURIComponent(e[1]);return t&&"undefined"!==t&&"null"!==t?t:null}}return null}{let e=document.cookie.match(/authToken=([^;]+)/);if(e){let t=decodeURIComponent(e[1]);return t&&"undefined"!==t&&"null"!==t?t:null}}return null}catch(e){return null}}(e);return t?String(t):""}async function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.env.API_URL??"https://coffeemania.ru/api/v1"??"";if(!n)return console.error("API_URL is not defined"),!1;try{let{headers:i,context:o}=t,s=(0,r.Z)(t,a),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=c(t),r={Accept:"application/json","Content-Type":"application/json"};return n&&(r.Authorization=n),l(l({},r),e)}(i,o),d=await fetch(`${n}/${e}`,l(l({},s),{},{headers:u}));if("DELETE"===t.method||429===d.status)return d;if(!d.ok)return console.error(`API Error: ${d.status} ${d.statusText}`),!1;let p=await d.text();return p?JSON.parse(p):{}}catch(e){return console.error("Fetch error:",e),!1}}t.ZP=u},57172:function(e,t,n){"use strict";n.d(t,{Nn:function(){return i},ik:function(){return r},uc:function(){return o}});let r=e=>{let t=e.asPath,n=t.indexOf("filter")>=0?t.indexOf("filter"):t.length,r=t.length;return t.substring(n,r)},i=e=>{let t=new URLSearchParams(e),n={};return t.forEach((e,t)=>{let r=decodeURIComponent(t),i=decodeURIComponent(e);
29if(r.startsWith("filter[")&&r.endsWith("]")){let e=r.slice(7,-1),t=i?.split(",").map(e=>parseInt(e,10));n[e]=t}}),Object.keys(n)?.length?n:null},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new URLSearchParams;return Object.entries(e).forEach(e=>{let[t,r]=e,i=`filter[${t}]`,o=Array.isArray(r)?r.join(","):r.toString();n.append(encodeURIComponent(i),encodeURIComponent(o))}),Object.entries(t).forEach(e=>{let[t,r]=e,i=Array.isArray(r)?r.join(","):r.toString();n.append(encodeURIComponent(t),encodeURIComponent(i))}),n.toString()}},90102:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ru-RU",r=[null,void 0,""].includes(e),i="number"==typeof e&&!1===Number.isInteger(e);if(r||i)return"";let o=new Date(e).toLocaleDateString(n,{day:"numeric",month:"long",timeZone:"Europe/Moscow"}),a=new Date(e).toLocaleDateString(n,{day:"numeric",timeZone:"Europe/Moscow"}),s=new Date(e).toLocaleDateString(n,{month:"2-digit",timeZone:"Europe/Moscow"}),l=new Date(e).toLocaleDateString(n,{year:"numeric",timeZone:"Europe/Moscow"}).replace(/\D/g,"");return"long"===t?`${o} ${l}`:`${a}.${s}.${l}`}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ru-RU";
29return[].concat(e).filter(Boolean).map((e,n,r)=>{if(0===n)return[new Date(e).toLocaleDateString(t,{day:"numeric",month:"long",timeZone:"Europe/Moscow"}),new Date(e).toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit",hourCycle:"h23",timeZone:"Europe/Moscow"})].join(r.length?" c ":" ");if(1===n){let n=new Date(e).toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit",hourCycle:"h23",timeZone:"Europe/Moscow"});return`${n}`}return""}).join(" по ")||"Скоро"}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ru-RU";return[].concat(e).filter(Boolean).map((e,n)=>0===n?new Date(e).toLocaleDateString(t,{day:"numeric",month:"long",timeZone:"Europe/Moscow"}):"").join("")||"Скоро"}n.d(t,{CI:function(){return c},Dm:function(){return l},N4:function(){return r},Tg:function(){return a},eJ:function(){return s},ep:function(){return i},vX:function(){return o}});let a=e=>{if(!e)return"";let t=e.city&&!["г. Москва","г.Москва","г Москва","Москва"].find(t=>e.city?.includes(t));console.log("isNeedCity ",t,e);let n=e.city&&!["г. ","г "].find(t=>e.city?.includes(t)),r=t?`${e?.city??"?"}`:"",i=l(e),o=i&&!["ул","пер","пл","проезд","пр-кт","б-р"].find(t=>e.street?.includes(t)),a=!["д ","д."].find(t=>e.dom?.includes(t)||e.house?.includes(t));return[{prefix:n?"г ":"",value:r},{prefix:o?i[0]:"",value:i},{prefix:a?"д ":"",value:e.dom||e.house}].filter(e=>{let{value:t}=e;return t}).map(e=>`${e.prefix}${e.value}`).join(", ")||["Россия","Россия Россия","Россия Россия Москва","г. Москва","г.Москва","г Москва","Москва"].reduce((e,t)=>e.replace(RegExp(t,"g"),"").trim()||"",e?.["public-part"]??"")};function s(e,t){return"Москва"===e.city?`г ${e.city}, ${t}`:t}function l(e){return["Россия","Россия Россия","г. Москва","г.Москва","г Москва","Москва"].reduce((e,t)=>e.replace(RegExp(t,"g"),"").trim()||"",e?.street??"")}function c(e,t){let n=t?.timeZone;if(void 0===n)return new Date(e).toISOString();let r=new Date(e).toLocaleDateString("en-US",{year:"numeric",timeZone:n}),i=new Date(e).toLocaleDateString("en-US",{month:"2-digit",timeZone:n}),o=new Date(e).toLocaleDateString("en-US",{day:"2-digit",timeZone:n}),[a,s]=new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,timeZoneName:"longOffset",hourCycle:"h23",timeZone:n}).split("GMT").map(e=>e.trim()||"+00:00");return`${r}-${i}-${o}T${a}${s}`}},65797:function(e,t,n){"use strict";async function r(){return new Promise((e,t)=>{navigator.geolocation?.getCurrentPosition?.(t=>{let{coords:n}=t;return e([n.latitude,n.longitude])},()=>e(null))})}n.d(t,{c:function(){return i},h:function(){return r}});let i=(e,t)=>{let[n,r]=e,[i,a]=t,s=o(i-n),l=o(a-r),c=Math.sin(s/2)*Math.sin(s/2)+Math.sin(l/2)*Math.sin(l/2)*Math.cos(n=o(n))*Math.cos(i=o(i));return 2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))*6371},o=e=>e*Math.PI/180},389:function(e,t,n){"use strict";n.d(t,{UU:function(){return o},oH:function(){return r},tq:function(){return i},vZ:function(){return function e(t,n){if(t===n)return!0;if(null==t||null==n||"object"!=typeof t||"object"!=typeof n)return!1;let r=Object.keys(t),i=Object.keys(n);if(r.length!==i.length)return!1;for(let o of r)if(!i.includes(o)||!e(t[o],n[o]))return!1;return!0}}});let r=e=>!!e?.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),i=!1,o=e=>{let t=e.match(/\d(?:\s*\d)*/)?.[0].replaceAll(" ","");return[t?parseFloat(t):"",e.match(/[\p{L}]*г?[\p{L}]*/gu)?.filter(e=>e.length>0)]}},50555:function(e,t,n){"use strict";n.d(t,{Nb:function(){return v},RB:function(){return b},_A:function(){return h},g7:function(){return f},qS:function(){return g},zi:function(){return w}});var r=n(8307),i=n(13174),o=n(27484),a=n.n(o),s=n(70178),l=n.n(s),c=n(29387),u=n.n(c);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?d(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n(70600),a().extend(l()),a().extend(u()),a().tz.setDefault("Europe/Moscow"),a().locale("ru");let f=function(e,t){let{deliveryType:n,deliveryRestaurantId:r,selfRestaurantId:i,deliveryIsoTime:o,selfIsoTime:s}=t,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"storefront",c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,u=new Date,d="self"===n?s:o;null===d&&(d=new Date(u).toISOString());let p="cart"===l?e.product:e;"cart"===l&&e.type;let f=[],h=a()().tz().format("YYYY-MM-DD"),m=a()(d).tz().format("YYYY-MM-DD"),g=p?.schedules?.find(e=>e.date===(m??h));if(p?.schedules&&p?.schedules.length>0&&!g&&(f[0]="Будет доступно позже"),g&&g["is-closed"]&&(f[0]="Будет доступно позже"),g&&!g["is-closed"]&&!g?.is24){let e=parseInt(g.from),t=parseInt(g.to),n=a()(u).tz().format("YYYY-MM-DD");parseInt(a()(u).tz().format("HH"))>=t&&(n=a()(u).add(1,"day").tz().format("YYYY-MM-DD")),c?.schedule?.pickup?.filter(e=>e.date===n),e>=t&&(e=parseInt(g.from),t=parseInt(g.to)),"storefront"===l?f[0]=`c ${e} до ${t} ч.`:f[0]=`Готовим c ${e} до ${t} ч.`}"self"===n&&p?.["available-for-delivery"]&&!p?.["available-for-pickup"]&&("storefront"===l?f[0]="Только доставка":f[0]="Доступно только для доставки"),"delivery"===n&&p?.["available-for-pickup"]&&!p?.["available-for-delivery"]&&("storefront"===l?f[0]="Только самовывоз":f[0]="Доступно только для самовывоза"),p?.["available-for-pickup"]||p?.["available-for-delivery"]||("storefront"===l?f[0]="Только в ресторане":f[0]="Доступно только в ресторане");let y=a()().utc().format("YYYY-MM-DD"),v=0===a()(d).diff(y,"d");if("storefront"===l&&p?.["in-stop-list"]&&v&&(f[0]="Будет доступно позже"),"storefront"!==l){let e="self"===n?i:r,t=p?.restaurants?.find(t=>t.id===e);t||(f[0]="Будет доступно позже"),t?.["in-stop-list"]&&v&&(f[0]="Будет доступно позже")}if("cart"===l&&e?.variant){let t="self"===n?i:r,o=p?.restaurants?.find(e=>e.id===t),a=e?.variant,s=a?.restaurants?.find(e=>e.id===o?.id);(!s||s?.["in-stop-list"]&&v)&&(f[0]="Блюдо недоступно с выбранными модификаторами"),"self"===n&&s?.["display-in-pickup"]===!1&&(f[0]="Блюдо недоступно с выбранными модификаторами"),"self"!==n&&s?.["available-for-delivery"]===!1&&(f[0]="Блюдо недоступно с выбранными модификаторами");let l=e?.extras;l?.map(e=>{let t=e?.restaurants?.find(e=>e.id===o?.id);(!t||t?.["in-stop-list"]&&v)&&(f[0]="Блюдо недоступно с выбранными модификаторами"),"self"===n&&t?.["display-in-pickup"]===!1&&(f[0]="Блюдо недоступно с выбранными модификаторами"),"self"!==n&&t?.["available-for-delivery"]===!1&&(f[0]="Блюдо недоступно с выбранными модификаторами")})}return f},h=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"storefront";arguments.length>3&&void 0!==arguments[3]&&arguments[3];let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",{deliveryType:i,deliveryRestaurantId:o,selfRestaurantId:s,deliveryIsoTime:l,selfIsoTime:c}=t,u=new Date,d="cart"===n?e.product:e,p="cart"===n?e.type:r,f="self"===i?c:l;null===f&&(f=new Date(u).toISOString());let h=!1;d?.["available-for-delivery"]&&"delivery"===i&&(h=!0);let m=d?.restaurants?.find(e=>e.id===s)?.["display-in-pickup"];if(void 0===m&&(m=!0),"self"===i&&d?.restaurants&&!m)return!1;"self"===i&&d?.["available-for-pickup"]&&(h=!0);let g=a()().utc().format("YYYY-MM-DD"),y=0===a()(f).diff(g,"d");if("storefront"===n&&d?.["in-stop-list"]&&y&&(h=!1),"storefront"!==n){let e="self"===i?s:o,t=d?.restaurants?.find(t=>
29t.id===e),n=t&&t?.["in-stop-list"]||!1;(!t||n&&y)&&(h=!1)}if("cart"===n&&(e?.variant||e?.extras)){let t="self"===i?s:o,n=d?.restaurants?.find(e=>e.id===t),r=n&&n?.["in-stop-list"]||!1;if((!n||r&&y)&&(h=!1),e?.variant){let t=e?.variant,r=t?.restaurants?.find(e=>e.id===n?.id);if(!r||r?.["in-stop-list"]&&y||"self"===i&&r?.["display-in-pickup"]===!1||"self"!==i&&r?.["available-for-delivery"]===!1)return!1}for(let t of e?.extras??[]){let e=t?.restaurants?.find(e=>e.id===n?.id);if(!e||e?.["in-stop-list"]&&y||"self"===i&&e?.["display-in-pickup"]===!1||"self"!==i&&e?.["available-for-delivery"]===!1)return!1}return!0}"preorder"===p&&(h=!0);let v=a()(f).tz().format("YYYY-MM-DD"),b=d?.schedules?.find(e=>e.date===(v??g));if(d?.schedules&&d?.schedules.length>0&&!b&&(h=!1),b&&b["is-closed"]&&(h=!1),b&&!b["is-closed"]&&!b?.is24&&"preorder"!==p){let e=x(t),n=parseInt(a()(e??u).tz().format("HH")),r=parseInt(b.from),i=parseInt(b.to);(r>n||i<=n)&&(h=!1)}return h},m=(e,t)=>!!t?.find(t=>t.product.id===e.id),g=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cart",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default";return e.isAvailable=h(e,t,n,!1,o),e.product=p(p({},e.product),{},{labels:f(e,t,n,r)}),e.hash=(0,i.ny)(e),e},y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\s+БТ\s*$/,"")},v=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];e=e?.filter(e=>!!e).map((e,t)=>(e&&!e?.initSortOrder&&(e.initSortOrder=(t+1)*10),e));let o=e?.map((e,o)=>{let a=e?.products?.length,s=e.products.map((e,o)=>{let s=f(e,t,"storefront",r),l=h(e,t,"storefront",n),c=m(e,i);return!l&&a--,e=p(p({},e),{},{labels:s,isAvailable:l,isVisible:!0,sortOrder:(e?.["sort-order"]||0)+1e3*(c?0:1)+1e4*(l?0:1)})});return s.sort((e,t)=>e.sortOrder-t.sortOrder),e=p(p({},e),{},{title:y(e.title),products:s,isVisible:!0,sortOrder:e.initSortOrder+(0===a?1e3:0)})});return o?.sort((e,t)=>e.sortOrder-t.sortOrder),o},b=(e,t)=>{let n=Object.entries(t).reduce((e,t)=>{let[n,r]=t;return[...e,...r]},[])??[];return console.log("filterIds ",n),{category:e.map(e=>{let t=!n.length;return e=p(p({},e),{},{products:e.products.map(e=>{let r=!!e?.["filter-ids"]?.filter(e=>n.includes(e)).length||!n.length;return t=t||r,e=p(p({},e),{},{isVisible:r})})}),p(p({},e),{},{isVisible:t&&!!e.products.length})}),count:n.length}},x=e=>{let{deliveryType:t,deliveryIsoTime:n,selfIsoTime:r}=e;return"self"===t?r:n},w=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.reduce((e,t)=>[...e,...t.products.map(e=>r?{id:e.id,"preorder-pages":e["preorder-pages"]}:e.id)],[]),o={id:0,title:"Избранные блюда",products:e.filter(e=>r?i.find(t=>t.id===e.product.id):i.includes(e.product.id)).map((e,t)=>p(p({},e.product),{},{isVisible:!0,isAvailable:h(e.product,n),labels:f(e.product,n),sortOrder:t+1e4*(e.isAvailable?0:1)},r&&{"preorder-pages":i.find(t=>t.id===e.product.id)?.["preorder-pages"]})).sort((e,t)=>e.sortOrder-t.sortOrder),isVisible:!0,sortOrder:-10,initSortOrder:-10,slug:"izbrannye blyuda"};return o.products.length?o:null}},28828:function(e,t,n){"use strict";n.d(t,{Cn:function(){return g},LH:function(){return x},M6:function(){return C},O6:function(){return m},Rc:function(){return y},Zi:function(){return f},_A:function(){return h},m2:function(){return S},oP:function(){return p}});var r=n(27484),i=n.n(r),o=n(70178),a=n.n(o),s=n(29387),l=n.n(s),c=n(66607),u=n.n(c),d=n(82229);function p(e){return!!e?.["is-beztarelok"]}function f(e){return!!e?.["is-airport"]}i().extend(a()),i().extend(l()),i().extend(u()),i().tz.setDefault("Europe/Moscow");let h=(e,t)=>!e?.["display-in-pickup"]||e?.["is-closed"]?{isAvailable:!1,isStillClosed:!1,isAlreadyClosed:!1}:m(e,t),m=(e,t)=>{let n=e?.schedule?.pickup,r={isAvailable:!0,isStillClosed:!1,isAlreadyClosed:!1};if(n){let e=i()(t).isValid()?t:i()().toISOString(),o=i()(e).tz().format("YYYY-MM-DD"),a=parseInt(i()(e).tz().format("HHmm")),s=n.filter(e=>e.date===o);if(s.length)for(let e of s){let t=parseInt(e?.["time-start"]?.split(":")?.join("")),n=parseInt(e?.["time-end"]?.split(":")?.join(""));if(t<=a&&n>a){r={isAvailable:!0,isStillClosed:!1,isAlreadyClosed:!1}
29;break}if(t>a&&n>a){r={isAvailable:!1,isStillClosed:!0,isAlreadyClosed:!1};continue}if(t<=a&&n<=a){r={isAvailable:!1,isStillClosed:!1,isAlreadyClosed:!0};continue}}s.length||(r={isAvailable:!1,isStillClosed:!0,isAlreadyClosed:!0})}return r},g=async e=>{let t=await (0,d.Fk)({restaurant:e});if(console.log("getNearestAvailableDate - selectDays ",t),!t?.[0])return null;let[n="",r=[]]=t?.[0]??[];return n&&r?.length?r[0]:null},y=(e,t)=>{let n=!1;e?.["available-for-pickup"]&&(n=!0);let r=e?.restaurants?.find(e=>e.id===t),i=r&&r?.["in-stop-list"]||!1;return(!r||i)&&(n=!1),n},v=(e,t)=>{let n=i()(t).tz().add(1,"day").format("YYYY-MM-DD"),r=e.pickup.filter(e=>e.date===t),o=e.pickup.filter(e=>e.date===n),a="08:00",s="22:00";return r?.length||(a="00:00",s="00:00"),1===r.length&&(a=r[0]["time-start"],s=r[0]["time-end"]),2===r.length&&(a=r[1]["time-start"],s=r[1]["time-end"]),2===o.length&&(s=o[0]["time-end"]),{startTime:a,endTime:s}},b=e=>v(e,i()().tz().format("YYYY-MM-DD"));function x(e){let t={one:"минуту",many:"минут",few:"минуты"};try{let n=new Intl.PluralRules("ru-RU").select(e);return t?.[n]??t.many}catch(e){return t.many}}let w=e=>{let t=i()().tz().format("YYYY-MM-DD"),n=i()(`${t}T${e.startTime}+03:00`),r=i()(`${t}T${e.endTime}+03:00`);return n>r&&(r=i()(r).add(1,"day")),i()().isBetween(n,r,"minutes","[)")},_=e=>{let t=i()().tz().format("YYYY-MM-DD"),n=i()(`${t}T${e.startTime}+03:00`);return i()()<n},C=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(e?.["is-closed"])return"";let n=b(e.schedule);if("00:00"===n.startTime&&"24:00"===n.endTime)return t?"Круглосуточно":"";let r=e.schedule,o=i()(),a=i()().tz().format("YYYY-MM-DD"),s=i()().add(1,"day"),l=w(n),c=_(n),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),n=e?.pickup?.filter?.(e=>i()(`${e.date}T23:59+03:00`)>=t)?.[0],r=`${n?.date}`;return!1===Number.isInteger(Date.parse(r))?null:r}(r,i()(c?o:s)),d=v(r,u),p=c||l?n:d,f=c||l?a:u,h=i()(`${f}T${p.startTime}+03:00`),m=i()(`${f}T${p.endTime}+03:00`);if(h>m&&(m=i()(m).add(1,"day")),l){let e=m.diff(i()(),"minutes")+1;return e<=30?`Закроется через ${e} `+x(e):`Открыто с ${n.startTime} до ${n.endTime}`}let g=i()().add(1,"day").tz().format("YYYY-MM-DD"),y=i()().add(2,"days").tz().format("YYYY-MM-DD"),C=h.diff(i()(),"minutes");if(C<=30)return`Откроется через ${C} `+x(C);if(C>30){let e=i()(h).tz().format("HH:mm");i()(m).tz().format("HH:mm");let t=i()(h).tz().format("DD.MM");switch(i()(h).tz().format("YYYY-MM-DD")){case a:return`Откроется в ${e}`;case g:return`Откроется завтра в ${e}`;case y:return`Откроется послезавтра в ${e}`}return`Откроется в ${e}, ${t}`}},S=e=>{let t=i()().subtract(1,"day").tz().format("YYYY-MM-DD"),n=i()().tz().format("YYYY-MM-DD"),r=i()().add(1,"day").tz().format("YYYY-MM-DD");return i()().add(2,"days").tz().format("YYYY-MM-DD"),![t,n,r].find(t=>{let n=v(e,t);return!("00:00"===n.startTime&&"24:00"===n.endTime)})}},58808:function(e,t,n){"use strict";let r=(0,n(67294).createContext)({modals:[],setModals:e=>[]});t.Z=r},2489:function(e,t,n){"use strict";n.d(t,{Fp:function(){return d},np:function(){return c}});var r=n(8307),i=n(67294),o=n(58808);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let l={htmlStyle:{},bodyStyle:{}};
29function c(){return window.innerWidth-(window?.visualViewport?.width||0)||0}let u=()=>{let e=window?.document?.querySelector?.(":root"),t=window?.document?.body,n=c();e&&t&&(!function(){let e=window?.document?.querySelector?.(":root"),t=window?.document?.body;Object.assign(l,{htmlStyle:{overflow:e.style.overflow||"unset",width:e.style.width||"unset"},bodyStyle:{overflow:t.style.overflow||"unset",width:t.style.width||"unset"}})}(),Object.assign(t.style,{overflowY:"hidden",paddingRight:`${n}px`}))},d=()=>{let e=window?.document?.querySelector?.(":root"),t=window?.document?.body;if(e&&t){let{htmlStyle:e,bodyStyle:n}=function(){let e={htmlStyle:s({},l.htmlStyle),bodyStyle:s({},l.bodyStyle)};return Object.assign(l,{htmlStyle:{},bodyStyle:{}}),e}();Object.assign(t.style,{overflowY:"scroll",paddingRight:0})}};t.ZP=function(){let{setModals:e}=(0,i.useContext)(o.Z);return{createModal:(0,i.useCallback)(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(i=>{e(e=>{let o=!!(n?.name&&e.find(e=>e.props?.name===n?.name));return e.length||r||u(),o?e:e.concat({node:t,props:n,resolve:i,guid:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})})})})},[e])}}},63272:function(e,t,n){"use strict";var r=n(8307),i=n(4730),o=n(67294),a=n(58808),s=n(2489),l=n(85893);let c=["guid","node"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e){let{guid:t,node:n}=e,r=(0,i.Z)(e,c),{setModals:u}=(0,o.useContext)(a.Z),p=(0,o.useCallback)(e=>{u(n=>{let r=n.find(e=>{let{guid:n}=e;return n===t});return r?.resolve?.(e),n})},[t,u]),f=(0,o.useCallback)(()=>{u(e=>{let n=e.filter(e=>{let{guid:n}=e;return n!==t});return 0===n.length&&(0,s.Fp)(),n})},[t,u]);return(0,l.jsx)(n,d({destroy:f,resolve:p},r.props))}t.Z=function(e){let{children:t}=e,{0:n,1:r}=(0,o.useState)([]),i=(0,o.useMemo)(()=>({modals:n,setModals:r}),[n]);return(0,l.jsxs)(a.Z.Provider,{value:i,children:[t,n.map(e=>(0,l.jsx)(p,d({},e),e.guid))]})}},87756:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tc}});var r,i,o,a,s,l=n(8307),c=n(9008),u=n.n(c),d=n(9473),p=n(89757),f=n(97582),h=n(67294),m=n(74806),g=n(680),y=n(25687),v=n(16284),b=n(88222),x=n(56096);function w(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=(0,f.pi)({timeZone:t},e[r]),n},{})}function _(e,t){return Object.keys((0,f.pi)((0,f.pi)({},e),t)).reduce(function(n,r){return n[r]=(0,f.pi)((0,f.pi)({},e[r]||{}),t[r]||{}),n},{})}function C(e,t){if(!t)return e;var n=v.C.formats;return(0,f.pi)((0,f.pi)((0,f.pi)({},n),e),{date:_(w(n.date,t),w(e.date||{},t)),time:_(w(n.time,t),w(e.time||{},t))})}var S=function(e,t,n,r,i){var o=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,p=e.timeZone,h=e.defaultRichTextElements;void 0===n&&(n={id:""});var m=n.id,g=n.defaultMessage;(0,y.kG)(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(m),w=s&&Object.prototype.hasOwnProperty.call(s,v)&&s[v];if(Array.isArray(w)&&1===w.length&&w[0].type===x.wD.literal)return w[0].value;if(!r&&w&&"string"==typeof w&&!h)return w.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=(0,f.pi)((0,f.pi)({},h),r||{}),a=C(a,p),c=C(c,p),!w){if(!1===u&&""===w)return w;if((!g||o&&o.toLowerCase()!==l.toLowerCase())&&d(new b.$6(n,o)),g)try{var _=t.getMessageFormat(g,l,c,i);return _.format(r)}catch(e){return d(new b.X9('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),o,n,e)),"string"==typeof g?g:v}return v}try{var _=t.getMessageFormat(w,o,a,(0,f.pi)({formatters:t},i||{}));return _.format(r)}catch(e){d(new b.X9('Error formatting message: "'.concat(v,'", using ').concat(g?"default message":"id"," as fallback."),o,n,e))}if(g)try{var _=t.getMessageFormat(g,l,c,i);return _.format(r)}catch(e){d(new b.X9('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),o,n,e))}return"string"==typeof w?w:"string"==typeof g?g:v},E=n(82644),T=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];
29function k(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=a&&(0,E.TB)(i,"number",a,o)||{};return t(r,(0,E.L6)(n,T,s))}function j(e,t,n,r){void 0===r&&(r={});try{return k(e,t,r).format(n)}catch(t){e.onError(new b.Qe("Error formatting number.",e.locale,t))}return String(n)}function O(e,t,n,r){void 0===r&&(r={});try{return k(e,t,r).formatToParts(n)}catch(t){e.onError(new b.Qe("Error formatting number.",e.locale,t))}return[]}var P=n(11050),I=["numeric","style"];function N(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new P.u_('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',P.jK.MISSING_INTL_API));try{var o,a,s,l,c,u;return(o=i,a=e.locale,s=e.formats,l=e.onError,void 0===o&&(o={}),u=!!(c=o.format)&&(0,E.TB)(s,"relative",c,l)||{},t(a,(0,E.L6)(o,I,u))).format(n,r)}catch(t){e.onError(new b.Qe("Error formatting relative time.",e.locale,t))}return String(n)}var D=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function M(e,t,n,r){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,c=(0,f.pi)((0,f.pi)({},s&&{timeZone:s}),l&&(0,E.TB)(o,t,l,a)),u=(0,E.L6)(r,D,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=(0,f.pi)((0,f.pi)({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function A(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a="string"==typeof i?new Date(i||0):i;try{return M(e,"date",t,void 0===o?{}:o).format(a)}catch(t){e.onError(new b.Qe("Error formatting date.",e.locale,t))}return String(a)}function L(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a="string"==typeof i?new Date(i||0):i;try{return M(e,"time",t,void 0===o?{}:o).format(a)}catch(t){e.onError(new b.Qe("Error formatting time.",e.locale,t))}return String(a)}function R(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=n[2],s=e.timeZone,l=e.locale,c=e.onError,u=(0,E.L6)(void 0===a?{}:a,D,s?{timeZone:s}:{});try{return t(l,u).formatRange(i,o)}catch(t){c(new b.Qe("Error formatting date time range.",e.locale,t))}return String(i)}function Z(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a="string"==typeof i?new Date(i||0):i;try{return M(e,"date",t,void 0===o?{}:o).formatToParts(a)}catch(t){e.onError(new b.Qe("Error formatting date.",e.locale,t))}return[]}function z(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a="string"==typeof i?new Date(i||0):i;try{return M(e,"time",t,void 0===o?{}:o).formatToParts(a)}catch(t){e.onError(new b.Qe("Error formatting time.",e.locale,t))}return[]}var F=["type"];function B(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.PluralRules||o(new P.u_('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',P.jK.MISSING_INTL_API));var a=(0,E.L6)(r,F);try{return t(i,a).select(n)}catch(e){o(new b.Qe("Error formatting plural.",i,e))}return"other"}var H=["type","style"],$=Date.now();function U(e,t,n,r){void 0===r&&(r={});var i=Y(e,t,n,r).reduce(function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function Y(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.ListFormat||o(new P.u_('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',P.jK.MISSING_INTL_API));var a=(0,E.L6)(r,H);try{var s={},l=n.map(function(e,t){if("object"==typeof e){var n="".concat($,"_").concat(t,"_").concat($);return s[n]=e,n}return String(e)});return t(i,a).formatToParts(l).map(function(e){return"literal"===e.type?e:(0,f.pi)((0,f.pi)({},e),{value:s[e.value]||e.value})})}catch(e){o(new b.Qe("Error formatting list.",i,e))}return n}var G=["style","type","fallback","languageDisplay"];function V(e,t,n,r){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new P.u_('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',P.jK.MISSING_INTL_API));var a=(0,E.L6)(r,G);try{return t(i,a).of(n)}catch(e){o(new b.Qe("Error formatting display name.",i,e))}}var q=n(61092);function W(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function X(e){return e?Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=(0,q.Gt)(r)?(0,g.dt)(r):r,t},{}):e}var K=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=X(r),s=S.apply(void 0,(0,f.ev)([e,t,n,a],i,!1));return Array.isArray(s)?h.Children.toArray(s):s},J=function(e,t){var n,r,i,o,a,s,l,c=e.defaultRichTextElements,u=(0,f._T)(e,["defaultRichTextElements"]),d=X(c),p=(r=(0,f.pi)((0,f.pi)((0,f.pi)({},g.Z0),u),{defaultRichTextElements:d}),i=(0,E.ax)(t),a=(o=(0,f.pi)((0,f.pi)({},E.Z0),r)).locale,s=o.defaultLocale,l=o.onError,a?!Intl.NumberFormat.supportedLocalesOf(a).length&&l?l(new b.gb('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&l&&l(new b.gb('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(l&&l(new b.OV('"locale" was not configured, using "'.concat(s,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),o.locale=o.defaultLocale||"en"),o.onWarn&&o.defaultRichTextElements&&"string"==typeof(n=o.messages||{})[Object.keys(n)[0]]&&o.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution'),(0,f.pi)((0,f.pi)({},o),{formatters:i,formatNumber:j.bind(null,o,i.getNumberFormat),formatNumberToParts:O.bind(null,o,i.getNumberFormat),formatRelativeTime:N.bind(null,o,i.getRelativeTimeFormat),formatDate:A.bind(null,o,i.getDateTimeFormat),formatDateToParts:Z.bind(null,o,i.getDateTimeFormat),formatTime:L.bind(null,o,i.getDateTimeFormat),formatDateTimeRange:R.bind(null,o,i.getDateTimeFormat),formatTimeToParts:z.bind(null,o,i.getDateTimeFormat),formatPlural
29:B.bind(null,o,i.getPluralRules),formatMessage:S.bind(null,o,i),$t:S.bind(null,o,i),formatList:U.bind(null,o,i.getListFormat),formatListToParts:Y.bind(null,o,i.getListFormat),formatDisplayName:V.bind(null,o,i.getDisplayNames)})),h={locale:p.locale,timeZone:p.timeZone,fallbackOnEmptyString:p.fallbackOnEmptyString,formats:p.formats,defaultLocale:p.defaultLocale,defaultFormats:p.defaultFormats,messages:p.messages,onError:p.onError,defaultRichTextElements:d};return(0,f.pi)((0,f.pi)({},p),{formatMessage:K.bind(null,h,p.formatters),$t:K.bind(null,h,p.formatters)})},Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,E.Sn)(),t.state={cache:t.cache,intl:J(W(t.props),t.cache),prevConfig:W(t.props)},t}return(0,f.ZT)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,i=W(e);return(0,g.wU)(n,i)?null:{intl:J(i,r),prevConfig:i}},t.prototype.render=function(){return(0,g.lq)(this.state.intl),h.createElement(m.zt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=g.Z0,t}(h.PureComponent),ee=n(11163),et=n(87379),en=n(39142),er=n(22022),ei=n(52604);let eo=et.ZP.div.withConfig({displayName:"styles__FooterContainer",componentId:"sc-kz01ci-0"})(["display:flex;flex-direction:column;"]),ea=et.ZP.div.withConfig({displayName:"styles__FooterTopContainer",componentId:"sc-kz01ci-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px 40px 0;background:#F3F4F5;width:100%;@media screen and (max-width:1024px){align-items:start;}"]),es=et.ZP.div.withConfig({displayName:"styles__MenuListWrapper",componentId:"sc-kz01ci-2"})(["display:flex;column-gap:40px;max-width:1204px;width:100%;@media screen and (max-width:1024px){flex-direction:column;}"]),el=et.ZP.ul.withConfig({displayName:"styles__MenuList",componentId:"sc-kz01ci-3"})([""]),ec=et.ZP.li.withConfig({displayName:"styles__MenuItem",componentId:"sc-kz01ci-4"})(['& > span{display:flex;flex-direction:column;font-family:"Suisse Intl";font-size:16px;font-style:normal;font-weight:400;line-height:normal;color:#212121;}@media screen and (max-width:1024px){display:flex;flex-direction:column;justify-content:center;border-bottom:0.5px solid #B0B3B6;min-height:60px;max-height:fit-content;transition:all .3s;}']),eu=et.ZP.div.withConfig({displayName:"styles__MenuItemTitleWrapper",componentId:"sc-kz01ci-5"})(["& > a{display:flex;align-items:center;height:100%;}@media screen and (max-width:1024px){display:flex;align-items:center;justify-content:space-between;height:60px;cursor:pointer;pointer-events:painted;white-space:nowrap;}"]),ed=et.ZP.div.withConfig({displayName:"styles__MenuItemArrowWrapper",componentId:"sc-kz01ci-6"})(["display:none;@media screen and (max-width:1024px){display:flex;justify-content:end;align-items:center;width:100%;height:100%;& > svg{transform:rotate(",");transition:transform .3s;}}"],e=>e.isOpen?"180deg":"0"),ep=et.ZP.ul.withConfig({displayName:"styles__MenuSubList",componentId:"sc-kz01ci-7"})(["display:grid;row-gap:10px;margin-top:18px;@media screen and (max-width:1024px){max-height:",";overflow:hidden;margin:",";row-gap:",";transition:all .3s ease-in-out;}"],e=>e.isOpen?`${e.height}px`:"0",e=>e.isOpen?"8px 0 24px":"0",e=>e.isOpen?"10px":"0"),ef=et.ZP.li.withConfig({displayName:"styles__MenuSubItem",componentId:"sc-kz01ci-8"})(['display:flex;column-gap:46px;font-family:"Suisse Intl";font-size:13px;font-style:normal;font-weight:400;line-height:18px;color:#212121;opacity:.7;']),eh=et.ZP.div.withConfig({displayName:"styles__Contacts",componentId:"sc-kz01ci-9"})(["display:flex;justify-content:space-between;align-items:center;column-gap:60px;height:165px;max-width:1204px;width:100%;@media screen and (max-width:1024px){height:210px;}"]),em=et.ZP.div.withConfig({displayName:"styles__TopLeftBlockWrapper",componentId:"sc-kz01ci-10"})(["display:flex;"]),eg=et.ZP.div.withConfig({displayName:"styles__PhoneWrapper",componentId:"sc-kz01ci-11"})(['display:flex;flex-direction:column;row-gap:18px;& > span{font-family:"Suisse Intl";font-size:16px;font-style:normal;font-weight:400;line-height:normal;color:#212121;}& > a{color:#376F62;font-family:"Suisse Intl";font-size:20px;font-style:normal;font-weight:500;line-height:normal;}']),ey=et.ZP.div.withConfig({displayName:"styles__SocialWrapper",componentId:"sc-kz01ci-12"})(['display:flex;flex-direction:column;row-gap:12px;margin-left:37px;& > span{font-family:"Suisse Intl";font-size:16px;font-style:normal;font-weight:400;line-height:normal;color:#212121;}']),ev=et.ZP.div.withConfig({displayName:"styles__SocialButtonsWrapper",componentId:"sc-kz01ci-13"})(["display:flex;justify-content:flex-start;column-gap:14px;& > button{border:none;background:inherit;display:flex;align-items:center;justify-content:flex-start;flex-direction:row;}"]),eb=et.ZP.div.withConfig({displayName:"styles__MobileAppWrapper",componentId:"sc-kz01ci-14"})(['display:flex;flex-direction:column;row-gap:12px;margin-left:86px;& > span{font-family:"Suisse Intl";font-size:16px;font-style:normal;font-weight:400;line-height:normal;color:#212121;}']),ex=et.ZP.div.withConfig({displayName:"styles__StoreLogosWrapper",componentId:"sc-kz01ci-15"})(["display:flex;justify-content:flex-start;column-gap:11px;@media screen and (max-width:1024px){flex-direction:row;flex-wrap:wrap;row-gap:11px;}& > a{height:34px;}"]),ew=et.ZP.div.withConfig({displayName:"styles__TopRightBlockWrapper",componentId:"sc-kz01ci-16"})(["@media screen and (max-width:1024px){display:none;}"]),e_=et.ZP.div.withConfig({displayName:"styles__FooterBottomContainer",componentId:"sc-kz01ci-17"})(["display:flex;justify-content:center;align-items:center;padding:0 40px;width:100%;height:68px;background:#053D35;& > span{color:#979797;font-family:'Suisse Intl';font-size:12px;font-style:normal;font-weight:400;line-height:16px;}"]),eC=et.ZP.div.withConfig({displayName:"styles__FooterBottomWrapper",componentId:"sc-kz01ci-18"})(["display:flex;justify-content:space-between;align-items:center;width:100%;max-width:1204px;"]),eS=et.ZP.div.withConfig({displayName:"styles__BottomLeftBlockWrapper",componentId:"sc-kz01ci-19"})(["color:#979797;font-family:'Suisse Intl';font-size:12px;font-style:normal;font-weight:400;line-height:16px;"]),eE=et.ZP.div.withConfig({displayName:"styles__BottomRightBlockWrapper",componentId:"sc-kz01ci-20"})(['display:flex;justify-content:flex-start;align-items:center;column-gap:80px;@media screen and (max-width:1024px){column-gap:30px;}& > a{font-family:"Suisse Intl";font-size:12px;font-style:normal;font-weight:400;line-height:16px;color:#979797;text-decoration:none;border-bottom:1px solid #979797;width:max-content;height:14px;}']);var eT=n(33368),ek=n(10893),ej=n(85893);function eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?eO(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eI=function(e){let{menuItems:t}=e,{0:n,1:r}=(0,h.useState)({}),i=(0,h.useMemo)(()=>t?.filter?.(e=>e?.type==="footer")||[],[t]);(0,h.useMemo)(()=>new Date().getFullYear(),[]);let o=(0,h.useCallback)(e=>{e?.preventDefault?.(),window.open("/policy","_blank")},[]);return(0,ej.jsxs)(eo,{className:"analytics-footer",children:[(0,ej.jsxs)(ea,{children:[(0,ej.jsx)(es,{children:i?.map?.((e,t)=>{let{id:i,url:o="",title:a,external:s,children:l}=e;return ej.jsx(el,{id:`${a}-${i}-${o}`,children:ej.jsxs(ec,{children:[o?ej.jsxs(eu,{className:`analytics-footer-item-${i}`,children:[ej.jsx(eT.Z,{target:s?"_blank":"_self",href:o||"",children:ej.jsx("span",{children:a})}),ej.jsx(ed,{isOpen:n[t],onClick:()=>r(e=>eP(eP({},e),{},{[t]:!e[t]})),children:ej.jsx(ek.V9,{})})]}):ej.jsxs(eu,{onClick:()=>r(e=>eP(eP({},e),{},{[t]:!e[t]})),className:`analytics-footer-item-${i}`,children:[ej.jsx("span",{children:a}),ej.jsx(ed,{isOpen:n[t],children:ej.jsx(ek.V9,{})})]}),!!l.length&&ej.jsx(ep,{isOpen:n[t],height:28*(l?.length||0),children:l?.filter(e=>e?.title)?.map?.(e=>{let{id:t,url:n="",title:r,external:o}=e;return ej.jsx(ef,{className:`analytics-footer-item-${i}-${t}`,children:n?ej.jsx(eT.Z,{target:o?"_blank":"_self",href:n||"",children:ej.jsx("span",{children:r})}):ej.jsx("span",{children:r})},`${r}-${t}`)})})]})},`${a}-${i}`)})}),(0,ej.jsxs)(eh,{children:[(0,ej.jsxs)(em,{children:[(0,ej.jsxs)(eg,{children:[(0,ej.jsx)("span",{children:"Телефон доставки:"}),(0,ej.jsx)(eT.Z,{href:"tel:+74951201203",onClick:()=>{ym(91020614,"reachGoal","click_phone")},children:"+7 (495) 120-120-3"})]}),(0,ej.jsxs)(ey,{children:[(0,ej.jsx)("span",{children:"Мы в соцсетях:"}),(0,ej.jsxs)(ev,{children:[(0,ej.jsx)("button",{children:(0,ej.jsx)(eT.Z,{href:"https://vk.com/coffeemaniaru",target:"_blank",onClick:()=>{ym(91020614,"reachGoal","go_to_vk")},children:(0,ej.jsx)(ek.J1,{})})}),(0,ej.jsx)("button",{children:(0,ej.jsx)(eT.Z,{href:"https://t.me/coffeemaniaru",target:"_blank",onClick:()=>{ym(91020614,"reachGoal","go_to_telegram")},children:(0,ej.jsx)(ek.cU,{})})}),(0,ej.jsx)("button",{children:(0,ej.jsx)(eT.Z,{href:"https://yandex.ru/rythm/businesses/@coffeemania.ru",target:"_blank",onClick:()=>{ym(91020614,"reachGoal","go_to_rythm")},children:(0,ej.jsx)(ek.cO,{})})})]})]}),(0,ej.jsxs)(eb,{children:[(0,ej.jsx)("span",{children:"Мобильное приложение:"}),(0,ej.jsxs)(ex,{children:[(0,ej.jsx)(eT.Z,{href:"https://coffeemania.onelink.me/5eTU/z4dwypwh",target:"_blank",onClick:()=>{ym(91020614,"reachGoal","app_install_ios")},children:(0,ej.jsx)(ek.b1,{})}),(0,ej.jsx)(eT.Z,{href:"https://coffeemania.onelink.me/5eTU/z4dwypwh",target:"_blank",onClick:()=>{ym(91020614,"reachGoal","app_install_andoird")},children:(0,ej.jsx)(ek.m3,{})})]})]})]}),(0,ej.jsx)(ew,{children:(0,ej.jsx)(ek.pq,{})})]})]}),(0,ej.jsx)(e_,{children:(0,ej.jsxs)(eC,{children:[(0,ej.jsx)(eS,{children:(0,ej.jsx)("span",{children:`\xa9 ООО \xabОртизей\xbb 2001-${new Date().getFullYear()}. Все права защищены.`})}),(0,ej.jsxs)(eE,{children:[(0,ej.jsx)(eT.Z,{href:"/policy",target:"_blank",onClick:o,children:"Политика обработки персональных данных"}),(0,ej.jsx)(ek.Oh,{})]})]})})]})},eN=n(74832);(0,et.F4)(["from{opacity:0;}to{opacity:1;}"]),(0,et.F4)(["from{transform:translateY(-200%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),(0,et.F4)(["from{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}to{transform:translateY(-200%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}"]);let eD=et.ZP.div.withConfig({displayName:"styles__AlertContainer",componentId:"sc-1ya6is9-0"})(["display:flex;justify-content:center;position:fixed;top:64px;left:0;width:100%;height:auto;padding:0 40px;filter:drop-shadow(0px 4px 12px rgba(0,0,0,0.25));border-radius:8px;z-index:990;opacity:",";visibility:",";transition:all ","ms;background-color:transparent;"],e=>e.isOpen?1:0,e=>e.isOpen?"visible":"hidden",300),eM=et.ZP.div.withConfig({displayName:"styles__AlertWrapper",componentId:"sc-1ya6is9-1"})(["display:flex;justify-content:space-between;max-width:1204px;width:100%;height:100%;min-height:78px;"]),eA=et.ZP.div.withConfig({displayName:"styles__LeftWrapper",componentId:"sc-1ya6is9-2"})(["min-width:40px;min-height:100%;background:",";border:1.5px solid ",";border-radius:8px 0px 0px 8px;"],e=>e.bgColor,e=>e.bgColor),eL=et.ZP.div.withConfig({displayName:"styles__IconWrapper",componentId:"sc-1ya6is9-3"})(["min-width:40px;height:100%;display:flex;align-items:center;justify-content:center;"]),eR=et.ZP.div.withConfig({displayName:"styles__RightWrapper",componentId:"sc-1ya6is9-4"})(["display:flex;align-items:center;justify-content:space-between;width:100%;background:#ffffff;border:1.5px solid ",";border-radius:0px 8px 8px 0px;"],e=>e.borderColor),eZ=et.ZP.div.withConfig({displayName:"styles__ContentWrapper",componentId:"sc-1ya6is9-5"})(["display:flex;align-items:center;justify-content:center;margin-left:10px;padding:12px 0;font-size:14px;line-height:18px;font-weight:400;color:#212121;"]),ez=et.ZP.div.withConfig({displayName:"styles__CloseIconWrapper",componentId:"sc-1ya6is9-6"})(["display:flex;align-items:center;padding:20px 12px 20px 4px;:active{background-color:#e7e7e7;}"]);function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eB=e=>{let{title:t,titleId:n,...i}=e;return h.createElement("svg",eF({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},i),t?h.createElement("title",{id:n},t):null,r||(r=h.createElement("path",{d:"m5 5 10 10M5 15 15 5",
29stroke:"#212121",strokeWidth:1.5,strokeLinecap:"round"})))};function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var e$=e=>{let{title:t,titleId:n,...r}=e;return h.createElement("svg",eH({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?h.createElement("title",{id:n},t):null,i||(i=h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2 2 6.477 2 12Zm2 0a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm12.737-2.324a1 1 0 0 0-1.474-1.352l-4.727 5.157-1.768-2.121a1 1 0 1 0-1.536 1.28l2.5 3a1 1 0 0 0 1.505.036l5.5-6Z",fill:"#fff"})))};function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eY=e=>{let{title:t,titleId:n,...r}=e;return h.createElement("svg",eU({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?h.createElement("title",{id:n},t):null,o||(o=h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM13 13V7h-2v6h2Zm0 4v-2h-2v2h2Zm-9-5c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z",fill:"#fff"})))};function eG(){return(eG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eV=e=>{let{title:t,titleId:n,...r}=e;return h.createElement("svg",eG({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?h.createElement("title",{id:n},t):null,a||(a=h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM13 13V7h-2v6h2Zm0 4v-2h-2v2h2Zm-9-5c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z",fill:"#fff"})))};function eq(){let e=(0,p.I0)(),{ui:t}=(0,p.v9)(e=>e),n=(0,h.useMemo)(()=>{switch(t.alertModal.mode){case"success":return"#48907F";case"info":default:return"#B1976F";case"warning":return"#EC4C41"}},[t.alertModal.mode]);return(0,ej.jsx)(eD,{isOpen:t.alertModal.isOpen,children:(0,ej.jsxs)(eM,{isOpen:t.alertModal.isOpen,children:[(0,ej.jsx)(eA,{bgColor:n,children:(0,ej.jsx)(eL,{children:(0,ej.jsx)(()=>{switch(t.alertModal.mode){case"success":return(0,ej.jsx)(e$,{});case"info":default:return(0,ej.jsx)(eY,{});case"warning":return(0,ej.jsx)(eV,{})}},{})})}),(0,ej.jsxs)(eR,{borderColor:n,children:[(0,ej.jsx)(eZ,{children:t.alertModal.content}),(0,ej.jsx)(ez,{onClick:()=>{e((0,eN.M6)()),localStorage.setItem("alertDate",String(Math.round(Date.now()/1e3)))},children:(0,ej.jsx)(eB,{})})]})]})})}var eW=n(73935);(0,et.F4)(["from{opacity:0;}to{opacity:1;}"]);let eX=(0,et.F4)(["from{transform:translateY(100%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),eK=et.ZP.div.withConfig({displayName:"styles__ButtonContainer",componentId:"sc-mgacqj-0"})(["display:flex;flex-direction:column;align-items:center;position:fixed;z-index:",";width:100%;min-height:70px;height:auto;bottom:0;padding:10px 20px;background-color:#00000073;background:#ffffff;box-shadow:0px -4px 24px rgba(0,0,0,0.08);border-radius:20px 20px 0px 0px;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transform:",";font-family:'Suisse Intl';line-height:15px;font-weight:500;& > a{width:100%;}"],e=>e.zIndex||"205",eX,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,e=>e.isOpen?"unset":"translateY(100%)");function eJ(e){let{children:t,isOpen:n,props:r}=e;return eW.createPortal(t?(0,ej.jsx)(eK,{isOpen:n,zIndex:r?.zIndex,children:t}):null,document.getElementById("root-modal-button"))}let eQ=et.ZP.div.withConfig({displayName:"styles__WeatherAlertContainer",componentId:"sc-x3rxmf-0"})(["display:flex;justify-content:center;position:",";top:0px;left:0;width:100%;height:","px;padding:0 40px;z-index:990;opacity:",";visibility:",";transition:all ","ms;background-color:#ffd3cf;"],e=>e.isOpen?"static":"fixed",e=>e.height?e.height:56,e=>e.isOpen?1:0,e=>e.isOpen?"visible":"hidden",300),e0=et.ZP.div.withConfig({displayName:"styles__WeatherAlertWrapper",componentId:"sc-x3rxmf-1"})(["display:flex;justify-content:center;max-width:1204px;width:100%;height:100%;position:relative;"]),e1=et.ZP.div.withConfig({displayName:"styles__WeatherAlertContent",componentId:"sc-x3rxmf-2"})(["display:flex;align-items:center;justify-content:center;margin-left:10px;padding:12px 40px;font-family:Suisse Intl;font-weight:400;font-size:16px;line-height:22px;letter-spacing:0%;text-align:center;"]),e2=et.ZP.div.withConfig({displayName:"styles__WeatherAlertCloseIconWrapper",componentId:"sc-x3rxmf-3"})(["display:flex;align-items:center;padding:6px;cursor:pointer;position:absolute;top:50%;right:0;transform:translateY(-50%);path{fill:#212121;}"]);function e4(){return(e4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var e3=e=>{let{title:t,titleId:n,...r}=e;return h.createElement("svg",e4({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?h.createElement("title",{id:n},t):null,s||(s=h.createElement("path",{d:"M4.347 4.347a1.184 1.184 0 0 1 1.674 0L12 10.326l5.98-5.98a1.184 1.184 0 0 1 1.673 1.675L13.674 12l5.98 5.98a1.184 1.184 0 0 1-1.675 1.673L12 13.674l-5.98 5.98a1.184 1.184 0 1 1-1.673-1.675L10.326 12l-5.98-5.98a1.184 1.184 0 0 1 0-1.673Z",fill:"#A0A1A4"})))};function e6(){let e=(0,p.I0)(),t=(0,p.v9)(e=>e.ui);return(0,ej.jsx)(eQ,{isOpen:t.weatherAlert.isOpen,height:t.weatherAlert.height,children:(0,ej.jsxs)(e0,{isOpen:t.alertModal.isOpen,children:[(0,ej.jsx)(e1,{children:t.weatherAlert.content}),(0,ej.jsx)(e2,{onClick:()=>{e((0,eN.Md)()),localStorage.setItem("alertWeatherDate",String(Math.round(Date.now()/1e3)))},children:(0,ej.jsx)(e3,{})})]})})}var e5=e=>{(0,h.useLayoutEffect)(()=>{let t=()=>{let t=document.querySelector(e);
29if(!t)return{};let n=t.getBoundingClientRect(),r=Math.max(0,window.innerHeight-n.top);t.style.minHeight=`${r}px`};t(),requestAnimationFrame(()=>{requestAnimationFrame(t)})},[])};let e9=et.ZP.div.withConfig({displayName:"default__Content",componentId:"sc-1saqug5-0"})(["width:100%;&.content-background{display:flex;flex-direction:column;align-items:start;flex:1;background-color:#f0f0f0;}"]);function e7(e){let{children:t}=e,n=(0,ee.useRouter)(),r="/cart"===n.pathname;n.pathname.includes("/cabinet");let i=n.pathname.includes("/cabinet/login"),o=n.pathname.includes("/loyalty")&&!n.pathname.includes("/loyalty-rules"),a=n.pathname.includes("/menu")&&3===n.pathname.split("/").length;n.pathname.includes("/order");let s=n.pathname.includes("/order-error"),l=n.pathname.includes("/order-success"),c=(0,d.v9)(e=>e.ui),u=t?.props?.children?.props?.menuItems??!1,p=t?.props?.children?.props?.hasToolbar??!1,f=t?.props?.children?.props?.hasDeliveryBar??!1,h=p&&(t?.props?.children?.props?.categories??!1),m=t?.props?.children?.props?.isFooterHide??!1;return en.Z.ui=c,e5(".content-background"),(0,ej.jsx)(ej.Fragment,{children:(0,ej.jsxs)(et.f6,{theme:en.Z,children:[null!==c.alertModal.content&&!s&&!l&&!a&&(0,ej.jsx)(eq,{}),null!==c.weatherAlert.content&&!s&&!l&&!a&&(0,ej.jsx)(e6,{}),!i&&!a&&(0,ej.jsx)(ei.Z,{menuItems:u,hasToolbar:p,hasDeliveryBar:f,categories:h}),(0,ej.jsx)(e9,{className:`${r||s||l?"content-background":""}`,children:t}),!m&&!a&&!o&&(0,ej.jsx)(eI,{menuItems:u}),(0,ej.jsx)(eJ,{isOpen:c.buttonModal.isOpen,props:c.buttonModal.content?.props,children:c.buttonModal.content}),(0,ej.jsx)(er.s,{})]})})}var e8=n(63272);n(12023),n(71344),n(15663),n(24207);var te=n(18386),tt=n(9556),tn=n(39540),tr=n(16931),ti=n(68179),to=function(){let e=(0,p.I0)(),t=(0,p.v9)(e=>e.profile),{isAuth:n,user:{addresses:r}}=t,{restaurants:i}=(0,p.v9)(e=>e?.restaurants),o=(0,h.useRef)(!1);return(0,h.useEffect)(()=>{o.current||(o.current=!0,e((0,te.GS)()),i?.length||e((0,tt.nj)()),r?.length||e((0,te.gi)()))},[e,i?.length,r?.length]),(0,h.useEffect)(()=>{n&&(e((0,tr.xj)(!0)),(0,tn.ZP)("me/cart").then(t=>{if(t&&"object"==typeof t){let n=t?.data?.items||t?.items||[];Array.isArray(n)?e((0,tr.o8)(n)):e((0,tr.o8)([]))}else e((0,tr.o8)([]))}).catch(t=>{console.error("Cart fetch error:",t),e((0,tr.o8)([]))}).finally(()=>{e((0,tr.xj)(!1))}),e((0,te.E8)()))},[n,e]),(0,h.useEffect)(()=>{t.user.userId&&(0,ti.QS)({user_id:t.user.userId})},[t.user.userId,t.user.phone]),(0,ej.jsx)(ej.Fragment,{})},ta=n(27910);function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tc=function(e){let{Component:t,pageProps:r}=e,{defaultLocale:i,locale:o}=(0,ee.useRouter)(),{0:a,1:s}=(0,h.useState)({}),{0:l,1:c}=(0,h.useState)(!1);(0,h.useEffect)(()=>{c(!0),"en"===o?n.e(8667).then(n.t.bind(n,68667,19)).then(e=>s(e.default||e)).catch(e=>console.error("Failed to load translations:",e)):s({})},[o]);let f=(0,h.useMemo)(()=>!Object.keys(r).length,[r]),m=(0,h.useMemo)(()=>tl(tl({},r),{},{isMounted:l}),[r,l]);return(t.getLayout||(e=>(0,ej.jsxs)(ej.Fragment,{children:[(0,ej.jsxs)(u(),{children:[(0,ej.jsx)("meta",{name:"yandex-verification",content:"d76e3f89e6668f0e"}),(0,ej.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"}),(0,ej.jsx)("link",{rel:"preload",href:"/static/fonts/SuisseIntl-ExtraLight.woff2",as:"font",crossOrigin:""}),(0,ej.jsx)("link",{rel:"preload",href:"/static/fonts/SuisseIntl-Light.woff2",as:"font",crossOrigin:""}),(0,ej.jsx)("link",{rel:"preload",href:"/static/fonts/SuisseIntl-Medium.woff2",as:"font",crossOrigin:""}),(0,ej.jsx)("link",{rel:"preload",href:"/static/fonts/SuisseIntl-Regular.woff2",as:"font",crossOrigin:""}),(0,ej.jsx)("link",{rel:"preload",href:"/static/fonts/SuisseIntl-SemiBold.woff2",as:"font",crossOrigin:""}),(0,ej.jsx)("link",{rel:"preload",href:"/static/fonts/PF-Agora-Slab-Pro-Bold.ttf",as:"font",crossOrigin:""}),(0,ej.jsx)("link",{rel:"preload",href:"/static/fonts/PFAgoraSlabPro-Medium.woff2",as:"font",crossOrigin:""}),(0,ej.jsx)("link",{type:"image/x-icon",rel:"shortcut icon",href:"/favicon.ico"}),(0,ej.jsx)("link",{type:"image/png",rel:"icon",sizes:"32x32",href:"/favicon-32x32.png"}),(0,ej.jsx)("link",{type:"image/png",rel:"icon",sizes:"16x16",href:"/favicon-16x16.png"}),(0,ej.jsx)("link",{type:"image/svg+xml",rel:"icon",href:"/icon0.svg"}),(0,ej.jsx)("link",{type:"image/png",rel:"icon",sizes:"96x96",href:"/icon1.png"}),(0,ej.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon-180x180.png"}),(0,ej.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Coffeemania.ru"}),(0,ej.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,ej.jsx)("meta",{name:"msapplication-TileImage",content:"/mstile-144x144.png"}),(0,ej.jsx)("meta",{name:"application-name",content:"Coffeemania.ru"}),(0,ej.jsx)("meta",{name:"msapplication-config",content:"/browserconfig.xml"})]}),(0,ej.jsx)(d.zt,{store:p.h,children:(0,ej.jsxs)(ta.Z.Provider,{value:m,children:[(0,ej.jsx)(to,{}),(0,ej.jsx)(e8.Z,{children:f?e:(0,ej.jsx)(e7,{children:e})})]})})]})))((0,ej.jsx)(Q,{locale:o,defaultLocale:i,messages:a,children:(0,ej.jsx)(t,tl({},m))}))}},83194:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(8307),i=n(67294),o=n(87379);let a=o.ZP.div.withConfig({displayName:"styles__ContentEditableDivWrapper",componentId:"sc-64ir8a-0"})(["display:flex;position:relative;width:100%;height:auto;> svg{position:absolute;right:16px;top:20px;cursor:pointer;}> div{padding-top:",";padding-bottom:",";}"],e=>e.isLabelFloating?"23px":"16px",e=>e.isLabelFloating?"9px":"16px"),s=o.ZP.textarea.withConfig({displayName:"styles__ContentEditableDiv",componentId:"sc-64ir8a-1"})(["display:flex;width:100%;height:20px;max-height:200px;resize:none;overflow:hidden;overflow-y:auto;padding-right:43px;font-size:16px;line-height:20px;border:none;white-space:pre-wrap;word-wrap:break-word;outline:none;transition:height 0.2s ease-in-out;position:relative;font-family:'Suisse Intl','Arial',sans-serif;font-weight:400;color:#212121;&::placeholder{color:#a0a1a4;pointer-events:none;user-select:none;display:inline-flex;flex-wrap:wrap;overflow:visible;white-space:pre-line;}"]),l=o.ZP.div.withConfig({displayName:"styles__ContentEditableWrap",componentId:"sc-64ir8a-2"})(["width:100%;min-height:54px !important;overflow:hidden;border:1px solid #d9d9d9;border-radius:14px;transition:height 0.2s ease-in-out;position:relative;padding:16px;padding-right:0;& textarea:empty:before{content:attr(data-placeholder);color:#a0a1a4;pointer-events:none;user-select:none;position:absolute;
29left:16px;top:16px;}"]),c=o.ZP.label.withConfig({displayName:"styles__Label",componentId:"sc-64ir8a-3"})(["position:absolute;left:17px;top:",";color:#979797;white-space:nowrap;pointer-events:none;font-size:",";line-height:",";font-weight:400;transition:all 0.3s;background-color:white;width:80%;&::before{content:'';background-color:white;height:10px;width:100%;position:absolute;top:-7px;}"],e=>e.isMinimized?"8px":"16px",e=>e.isMinimized?"12px":"16px",e=>e.isMinimized?"16px":"21px"),u=o.ZP.div.withConfig({displayName:"styles__MaxLengthAmount",componentId:"sc-64ir8a-4"})(["position:absolute;right:0px;top:-19px;font-family:Suisse Intl;font-size:12px !important;font-weight:500;height:20px !important;min-height:20px !important;padding:0 !important;display:block;"]);var d=n(89997),p=n(4730),f=n(85893);let h=["maxLength","onInput","componentRef","value","areaLabel","onBlur","onFocus"],m=e=>e?(e.match(/\n/g)||[]).length+1:1;var g=e=>{let{maxLength:t=1e3,onInput:n,componentRef:r,value:o,areaLabel:a,onBlur:c,onFocus:u}=e,d=(0,p.Z)(e,h),g=(0,i.useRef)(null),y=(0,i.useMemo)(()=>m(o),[o]),v=(0,i.useCallback)(()=>{let e=g.current;e&&(e.style.height="auto",e.style.height=Math.min(e.scrollHeight,300)+"px")},[]),b=(0,i.useCallback)(e=>{let r=e.target.value;r.length<=t&&n?.(r),""===r&&v()},[v,t,n]),x=(0,i.useCallback)(e=>{c?.(),v()},[v,c]);return(0,f.jsx)(l,{children:(0,f.jsx)(s,{ref:e=>{g.current=e,r(e)},value:o,onChange:b,onInput:v,onBlur:x,onFocus:u,maxLength:t,rows:Math.max(1,y),"aria-label":a||"",placeholder:d?.["data-placeholder"]||"",name:d?.name||"textarea"})})};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=(0,i.forwardRef)((e,t)=>{let{placeholder:n,content:r="",onChange:o,onBlur:s,onFocus:l,onClear:p,isCleanable:h,isLabelFloating:m=!1,maxLength:y}=e,{0:b,1:x}=(0,i.useState)(r),w=(0,i.useRef)(null),_=(0,i.useRef)(null),{0:C,1:S}=(0,i.useState)(!1);(0,i.useImperativeHandle)(t,()=>w.current),(0,i.useEffect)(()=>{if(w.current){let e=w.current;""===e.innerText.trim()&&(e.innerHTML=""),e.innerText!==r&&(e.innerText=r)}},[r]),(0,i.useEffect)(()=>{C&&l?.()},[l,C]);let E=(0,i.useCallback)(e=>{w.current&&(x(e),o?.(e.trim().replace(/(\n)+/g,"\n")))},[o]),T=(0,i.useCallback)(()=>{S(!1),s?.()},[s]);return(0,f.jsxs)(a,{isLabelFloating:m,className:"comment-field",children:[(0,f.jsx)(g,v(v({componentRef:e=>{w.current=e,t&&("function"==typeof t?t(e):t.current=e)},onInput:E},!m&&{"data-placeholder":n}),{},{onFocus:()=>S(!0),onBlur:T,value:b,maxLength:y})),y&&(0,f.jsx)(u,{ref:_,children:`${(b||"").length}/${y}`}),h&&b&&(0,f.jsx)(d.Z,{onClick:()=>{let e=w.current;e&&(e.innerHTML="",e.style.height="auto"),x(""),p?.()}}),m&&(0,f.jsx)(c,{isMinimized:!!C||!!b,children:n})]})})},24469:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});let r=n(87379).ZP.div.withConfig({displayName:"styles__SimpleLoaderWrapper",componentId:"sc-1sr1wz1-0"})(["margin-left:5px;display:inline-flex;gap:4px;span{width:4px;height:4px;border-radius:50%;background-color:#ababab;animation:simple-pulse 1.5s infinite ease-in-out;&:nth-child(1){animation-delay:0s;}&:nth-child(2){animation-delay:0.2s;}&:nth-child(3){animation-delay:0.4s;}}@keyframes simple-pulse{0%,100%{opacity:0.5;transform:scale(0.8);}50%{opacity:1;transform:scale(1.2);}}"]);var i=n(85893),o=()=>(0,i.jsxs)(r,{children:[(0,i.jsx)("span",{}),(0,i.jsx)("span",{}),(0,i.jsx)("span",{})]})},1595:function(e,t,n){"use strict";n.d(t,{Z:function(){return iS}});var r,i,o,a,s,l,c,u,d,p,f=n(8307),h=n(67294),m=n(87379);let g="cubic-bezier(0.23, 1, 0.32, 1)",y=(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]),v=m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-tqlajq-0"})(["position:fixed;display:flex;flex-direction:row;inset:0;z-index:501;height:100%;background-color:#00000073;bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";overscroll-behavior:contain;"],y,300,g,300,300,e=>e.isOpen?"1":"0"),b=(0,m.F4)(["from{transform:translateY(100%);}to{transform:translateY(0%);}"]),x=m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-tqlajq-1"})(["display:flex;flex-direction:column;inset:0;z-index:509;height:max-content;bottom:0;background-color:transparent;align-items:center;align-self:center;position:relative;width:100vw;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all;transition-duration:","ms;transform:",";& > .modal-body{border-radius:20px;background-color:#FFFFFF;width:1200px;height:732px;overflow:hidden;display:flex;flex-direction:row;}"],b,300,g,300,e=>e.isOpen?"unset":"translateY(100%)");m.ZP.div.withConfig({displayName:"styles__Blind",componentId:"sc-tqlajq-2"})(['display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:transparent;min-height:16px;width:100%;&:after{background-color:#A8A8A8;border-radius:16px;height:4px;width:36px;content:" ";}']),m.ZP.span.withConfig({displayName:"styles__TitleWrapper",componentId:"sc-tqlajq-3"})(["background:#fff;padding:20px;padding-bottom:0;border-radius:20px 20px 0px 0px;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;color:#212121;"]),m.ZP.div.withConfig({displayName:"styles__RestaurantWrapper",componentId:"sc-tqlajq-4"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;height:max-content;align-items:flex-start;& > .options{display:flex;flex-direction:column;width:100%;height:max-content;margin-left:10px;}"]),m.ZP.div.withConfig({displayName:"styles__ImgWrapper",componentId:"sc-tqlajq-5"}
29)(["height:60px;max-width:60px;min-width:60px;border-radius:50%;overflow:hidden;& > img{height:60px;width:60px;border-radius:50%;}"]),m.ZP.div.withConfig({displayName:"styles__NameWrapper",componentId:"sc-tqlajq-6"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;& > .title{font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#212121;margin-right:37px;}& > button{display:flex;justify-content:center;align-items:center;min-width:32px;height:32px;background:#FFFFFF;border:1px solid #DEDEDE;border-radius:50%;position:absolute;right:0;top:0;}"]),m.ZP.span.withConfig({displayName:"styles__Address",componentId:"sc-tqlajq-7"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#A8A8A8;margin-right:37px;margin-top:1px;min-height:18px;"]),m.ZP.span.withConfig({displayName:"styles__TimeWrapper",componentId:"sc-tqlajq-8"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;margin-top:1px;"]),m.ZP.span.withConfig({displayName:"styles__Time",componentId:"sc-tqlajq-9"})(["margin-top:6px;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:12px;line-height:14px;color:#A8A8A8;"]),m.ZP.span.withConfig({displayName:"styles__Distance",componentId:"sc-tqlajq-10"})(["font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:12px;line-height:14px;color:#A8A8A8;white-space:nowrap;margin-left:5px;"]),m.ZP.div.withConfig({displayName:"styles__StyledModal",componentId:"sc-tqlajq-11"})(["position:fixed;display:flex;flex-direction:row;top:0;right:0;bottom:0;left:0;z-index:500;padding:0px;width:100%;height:100%;overflow:auto;background:rgba(57,57,57,0.5);transition:opacity 0.3s linear;opacity:",";pointer-events:",";"],e=>e.isOpen?1:0,e=>e.isOpen?"all":"none"),m.ZP.div.withConfig({displayName:"styles__Overlay",componentId:"sc-tqlajq-12"})(["position:fixed;top:0;right:0;bottom:0;left:0;"]),m.ZP.div.withConfig({displayName:"styles__Window",componentId:"sc-tqlajq-13"})(["overflow:hidden;position:relative;background-color:#fffdf8;width:100%;height:100%;color:#393939;"]),m.ZP.span.withConfig({displayName:"styles__Close",componentId:"sc-tqlajq-14"})(["position:absolute;color:$c-black;width:16px;height:16px;right:20px;top:20px;cursor:pointer;& > svg{transition:color 0.5s linear,transform 0.5s linear;}&:hover{& > svg{color:",";transform:scaleY(-1);}}"],e=>e.theme.colors.link),m.ZP.div.withConfig({displayName:"styles__Title",componentId:"sc-tqlajq-15"})(["font-size:24px;font-weight:400;margin:0;"]),m.ZP.div.withConfig({displayName:"styles__Description",componentId:"sc-tqlajq-16"})(["margin:10px 0;"]),m.ZP.div.withConfig({displayName:"styles__InputLabel",componentId:"sc-tqlajq-17"})(["margin:0 0 10px;font-size:13px;font-weight:400;"]),m.ZP.div.withConfig({displayName:"styles__ActionWrapper",componentId:"sc-tqlajq-18"})(["display:flex;justify-content:center;margin:30px 0 15px 0;"]),m.ZP.div.withConfig({displayName:"styles__AddressForm",componentId:"sc-tqlajq-19"})(["display:flex;justify-content:space-between;position:relative;width:100%;div{width:100%;}"]),m.ZP.div.withConfig({displayName:"styles__DeliveryTitle",componentId:"sc-tqlajq-20"})(["display:flex;justify-content:center;flex-direction:row;width:100%;color:#393939;margin-top:24px;margin-bottom:24px;font-size:22px;font-style:normal;font-weight:400;line-height:29px;letter-spacing:0px;text-align:center;"]),m.ZP.div.withConfig({displayName:"styles__ButtonSelfContener",componentId:"sc-tqlajq-21"})(["display:flex;margin-top:8px;margin-bottom:8px;margin-left:16px;margin-right:16px;"]),m.ZP.div.withConfig({displayName:"styles__YandexMapContainer",componentId:"sc-tqlajq-22"})(["height:100%;width:770px;& .geolocation-control > ymaps > ymaps{width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:14px;& > ymaps:first-child{width:40px;height:40px;}}& .copyrights-promo{display:none}"]),m.ZP.div.withConfig({displayName:"styles__UnavalablityInfo",componentId:"sc-tqlajq-23"})(["display:flex;justify-content:flex-start;column-gap:6px;margin-top:16px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#212121;& > svg{min-width:28px;min-height:28px;}"]);let w=m.ZP.div.withConfig({displayName:"styles__DeliveryViewStyled",componentId:"sc-tqlajq-24"})(["width:430px;height:100%;padding:20px;
29display:flex;gap:15px;flex-direction:column;"]),_=m.ZP.div.withConfig({displayName:"styles__BackTitleStyled",componentId:"sc-ywfkgu-0"})(["display:flex;flex-direction:row;gap:16px;align-items:center;button{width:43px;height:32px;border-radius:12px;border:1px solid #dedede;background-color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;}span{color:#77787b;font-family:'Suisse Intl';font-size:14px;font-style:normal;font-weight:400;line-height:18px;}"]);var C=n(85893),S=function(e){let{onClick:t,children:n}=e;return(0,C.jsxs)(_,{children:[(0,C.jsx)("button",{onClick:t,children:(0,C.jsx)("svg",{width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M7.70711 0.292893C8.09763 0.683417 8.09763 1.31658 7.70711 1.70711L2.41421 7L7.70711 12.2929C8.09763 12.6834 8.09763 13.3166 7.70711 13.7071C7.31658 14.0976 6.68342 14.0976 6.29289 13.7071L0.292894 7.70711C-0.0976309 7.31658 -0.0976309 6.68342 0.292894 6.29289L6.29289 0.292893C6.68342 -0.097631 7.31658 -0.097631 7.70711 0.292893Z",fill:"#212121"})})}),(0,C.jsx)("span",{children:n})]})};let E=m.ZP.div.withConfig({displayName:"styles__TitleStyled",componentId:"sc-l2359f-0"})(['color:#000;font-family:"Suisse Intl";font-size:20px;font-style:normal;font-weight:500;line-height:28px;']);var T=function(e){let{children:t}=e;return(0,C.jsx)(E,{children:t})},k=n(87462);function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var I=n(4942),N=n(1413),D=n(71002),M=n(93967),A=n.n(M);function L(e){var t=h.useRef();return t.current=e,h.useCallback(function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[])}function R(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}var Z=R()?h.useLayoutEffect:h.useEffect,z=function(e,t){var n=h.useRef(!0);Z(function(){return e(n.current)},t),Z(function(){return n.current=!1,function(){n.current=!0}},[])},F=function(e,t){z(function(t){if(!t)return e()},t)};function B(e){var t=h.useRef(!1),n=O(h.useState(e),2),r=n[0],i=n[1];return h.useEffect(function(){return t.current=!1,function(){t.current=!0}}
29,[]),[r,function(e,n){n&&t.current||i(e)}]}function H(e){return void 0!==e}var $=n(11805),U=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),G=Symbol.for("react.fragment"),V=Number(h.version.split(".")[0]),q=function(e,t){"function"==typeof e?e(t):"object"===(0,D.Z)(e)&&e&&"current"in e&&(e.current=t)},W=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){q(t,e)})}},X=function(e){if(!e)return!1;if(K(e)&&V>=19)return!0;var t,n,r=(0,$.isMemo)(e)?e.type.type:e.type;return("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&!!t.render||r.$$typeof===$.ForwardRef)&&("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&!!n.render||e.$$typeof===$.ForwardRef)};function K(e){return(0,h.isValidElement)(e)&&!(e&&"object"===(0,D.Z)(e)&&(e.$$typeof===U||e.$$typeof===Y)&&e.type===G)}var J=n(73935);function Q(e){return e instanceof HTMLElement||e instanceof SVGElement}var ee=h.createContext({}),et=n(15671),en=n(43144),er=n(32531),ei=n(73568),eo=function(e){(0,er.Z)(n,e);var t=(0,ei.Z)(n);function n(){return(0,et.Z)(this,n),t.apply(this,arguments)}return(0,en.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component),ea={},es=[];function el(e,t){}function ec(e,t){}function eu(e,t,n){t||ea[n]||(e(!1,n),ea[n]=!0)}function ed(e,t){eu(el,e,t)}ed.preMessage=function(e){es.push(e)},ed.resetWarned=function(){ea={}},ed.noteOnce=function(e,t){eu(ec,e,t)};var ep="none",ef="appear",eh="enter",em="leave",eg="none",ey="prepare",ev="start",eb="active",ex="prepared";function ew(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var e_=(r=R(),i="undefined"!=typeof window?window:{},o={animationend:ew("Animation","AnimationEnd"),transitionend:ew("Transition","TransitionEnd")},!r||("AnimationEvent"in i||delete o.animationend.animation,"TransitionEvent"in i||delete o.transitionend.transition),o),eC={};R()&&(eC=document.createElement("div").style);var eS={};function eE(e){if(eS[e])return eS[e];var t=e_[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in eC)return eS[e]=t[o],eS[e]}return""}var eT=eE("animationend"),ek=eE("transitionend"),ej=!!(eT&&ek),eO=eT||"animationend",eP=ek||"transitionend";function eI(e,t){return e?"object"===(0,D.Z)(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}var eN=function(e){var t=(0,h.useRef)();function n(t){t&&(t.removeEventListener(eP,e),t.removeEventListener(eO,e))}return h.useEffect(function(){return function(){n(t.current)}},[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(eP,e),r.addEventListener(eO,e),t.current=r)},n]},eD=R()?h.useLayoutEffect:h.useEffect,eM=function(e){return+setTimeout(e,16)},eA=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(eM=function(e){return window.requestAnimationFrame(e)},eA=function(e){return window.cancelAnimationFrame(e)});var eL=0,eR=new Map,eZ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=eL+=1;return!function t(r){if(0===r)eR.delete(n),e();else{var i=eM(function(){t(r-1)});eR.set(n,i)}}(t),n};eZ.cancel=function(e){var t=eR.get(e);return eR.delete(e),eA(t)};var ez=function(){var e=h.useRef(null);
29function t(){eZ.cancel(e.current)}return h.useEffect(function(){return function(){t()}},[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=eZ(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o},t]},eF=[ey,ev,eb,"end"],eB=[ey,ex];function eH(e){return e===eb||"end"===e}var e$=function(e,t,n){var r=O(B(eg),2),i=r[0],o=r[1],a=O(ez(),2),s=a[0],l=a[1],c=t?eB:eF;return eD(function(){if(i!==eg&&"end"!==i){var e=c.indexOf(i),t=c[e+1],r=n(i);!1===r?o(t,!0):t&&s(function(e){function n(){e.isCanceled()||o(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,i]),h.useEffect(function(){return function(){l()}},[]),[function(){o(ey,!0)},i]},eU=(a=ej,"object"===(0,D.Z)(ej)&&(a=ej.transitionSupport),(s=h.forwardRef(function(e,t){var n,r=e.visible,i=void 0===r||r,o=e.removeOnLeave,s=void 0===o||o,l=e.forceRender,c=e.children,u=e.motionName,d=e.leavedClassName,p=e.eventProps,f=h.useContext(ee).motion,m=!!(e.motionName&&a&&!1!==f),g=(0,h.useRef)(),y=(0,h.useRef)(),v=function(e,t,n,r){var i,o,a=r.motionEnter,s=void 0===a||a,l=r.motionAppear,c=void 0===l||l,u=r.motionLeave,d=void 0===u||u,p=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,y=r.onLeavePrepare,v=r.onAppearStart,b=r.onEnterStart,x=r.onLeaveStart,w=r.onAppearActive,_=r.onEnterActive,C=r.onLeaveActive,S=r.onAppearEnd,E=r.onEnterEnd,T=r.onLeaveEnd,k=r.onVisibleChanged,j=O(B(),2),P=j[0],D=j[1],M=(i=O(h.useReducer(function(e){return e+1},0),2)[1],o=h.useRef(ep),[L(function(){return o.current}),L(function(e){o.current="function"==typeof e?e(o.current):e,i()})]),A=O(M,2),R=A[0],Z=A[1],z=O(B(null),2),F=z[0],H=z[1],$=R(),U=(0,h.useRef)(!1),Y=(0,h.useRef)(null),G=(0,h.useRef)(!1);function V(){Z(ep),H(null,!0)}var q=L(function(e){var t,r=R();if(r!==ep){var i=n();if(!e||e.deadline||e.target===i){var o=G.current;r===ef&&o?t=null==S?void 0:S(i,e):r===eh&&o?t=null==E?void 0:E(i,e):r===em&&o&&(t=null==T?void 0:T(i,e)),o&&!1!==t&&V()}}}),W=O(eN(q),1)[0],X=function(e){switch(e){case ef:return(0,I.Z)((0,I.Z)((0,I.Z)({},ey,m),ev,v),eb,w);case eh:return(0,I.Z)((0,I.Z)((0,I.Z)({},ey,g),ev,b),eb,_);case em:return(0,I.Z)((0,I.Z)((0,I.Z)({},ey,y),ev,x),eb,C);default:return{}}},K=h.useMemo(function(){return X($)},[$]),J=O(e$($,!e,function(e){if(e===ey){var t,r=K[ey];return!!r&&r(n())}return ee in K&&H((null===(t=K[ee])||void 0===t?void 0:t.call(K,n(),null))||null),ee===eb&&$!==ep&&(W(n()),p>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){q({deadline:!0})},p))),ee===ex&&V(),!0}),2),Q=J[0],ee=J[1],et=eH(ee);G.current=et;var en=(0,h.useRef)(null);eD(function(){if(!U.current||en.current!==t){D(t);var n,r=U.current;U.current=!0,!r&&t&&c&&(n=ef),r&&t&&s&&(n=eh),(r&&!t&&d||!r&&f&&!t&&d)&&(n=em);var i=X(n);n&&(e||i[ey])?(Z(n),Q()):Z(ep),en.current=t}},[t]),(0,h.useEffect)(function(){($!==ef||c)&&($!==eh||s)&&($!==em||d)||Z(ep)},[c,s,d]),(0,h.useEffect)(function(){return function(){U.current=!1,clearTimeout(Y.current)}},[]);var er=h.useRef(!1);(0,h.useEffect)(function(){P&&(er.current=!0),void 0!==P&&$===ep&&((er.current||P)&&(null==k||k(P)),er.current=!0)},[P,$]);var ei=F;return K[ey]&&ee===ev&&(ei=(0,N.Z)({transition:"none"},ei)),[$,ee,ei,null!=P?P:t]}(m,i,function(){try{var e,t,n,r;return g.current instanceof HTMLElement?g.current:(r=(t=e=y.current)&&"object"===(0,D.Z)(t)&&Q(t.nativeElement)?t.nativeElement:Q(t)?t:null)?r:e instanceof h.Component?null===(n=J.findDOMNode)||void 0===n?void 0:n.call(J,e):null}catch(e){return null}},e),b=O(v,4),x=b[0],w=b[1],_=b[2],C=b[3],S=h.useRef(C);C&&(S.current=!0);var E=h.useCallback(function(e){g.current=e,q(t,e)},[t]),T=(0,N.Z)((0,N.Z)({},p),{},{visible:i});if(c){if(x===ep)k=C?c((0,N.Z)({},T),E):!s&&S.current&&d?c((0,N.Z)((0,N.Z)({},T),{},{className:d}),E):!l&&(s||d)?null:c((0,N.Z)((0,N.Z)({},T),{},{style:{display:"none"}}),E);else{w===ey?j="prepare":eH(w)?j="active":w===ev&&(j="start");var k,j,P=eI(u,"".concat(x,"-").concat(j));k=c((0,N.Z)((0,N.Z)({},T),{},{className:A()(eI(u,x),(0,I.Z)((0,I.Z)({},P,P&&j),u,"string"==typeof u)),style:_}),E)}}else k=null;return h.isValidElement(k)&&X(k)&&(((n=k)&&K(n)?n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref:null)||(k=h.cloneElement(k,{ref:E}))),h.createElement(eo,{ref:y},k)})).displayName="CSSMotion",s),eY=n(97326),eG="keep",eV="remove",eq="removed";function eW(e){var t;return t=e&&"object"===(0,D.Z)(e)&&"key"in e?e:{key:e},(0,N.Z)((0,N.Z)({},t),{},{key:String(t.key)})}function eX(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(eW)}var eK=["component","children","onVisibleChanged","onAllRemoved"],eJ=["status"],eQ=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eU,n=function(e){(0,er.Z)(r,e);var n=(0,ei.Z)(r);function r(){var e;(0,et.Z)(this,r);for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return e=n.call.apply(n,[this].concat(i)),(0,I.Z)((0,eY.Z)(e),"state",{keyEntities:[]}),(0,I.Z)((0,eY.Z)(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:(0,N.Z)((0,N.Z)({},e),{},{status:eq})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==eq}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return(0,en.Z)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r
29=this.props,i=r.component,o=r.children,a=r.onVisibleChanged,s=(r.onAllRemoved,P(r,eK)),l=i||h.Fragment,c={};return eQ.forEach(function(e){c[e]=s[e],delete s[e]}),delete s.keys,h.createElement(l,s,n.map(function(n,r){var i=n.status,s=P(n,eJ);return h.createElement(t,(0,k.Z)({},c,{key:s.key,visible:"add"===i||i===eG,eventProps:s,onVisibleChanged:function(t){null==a||a(t,{key:s.key}),t||e.removeKey(s.key)}}),function(e,t){return o((0,N.Z)((0,N.Z)({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities;return{keyEntities:(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=eX(e),a=eX(t);o.forEach(function(e){for(var t=!1,o=r;o<i;o+=1){var s=a[o];if(s.key===e.key){r<o&&(n=n.concat(a.slice(r,o).map(function(e){return(0,N.Z)((0,N.Z)({},e),{},{status:"add"})})),r=o),n.push((0,N.Z)((0,N.Z)({},s),{},{status:eG})),r+=1,t=!0;break}}t||n.push((0,N.Z)((0,N.Z)({},e),{},{status:eV}))}),r<i&&(n=n.concat(a.slice(r).map(function(e){return(0,N.Z)((0,N.Z)({},e),{},{status:"add"})})));var s={};return n.forEach(function(e){var t=e.key;s[t]=(s[t]||0)+1}),Object.keys(s).filter(function(e){return s[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==eV})).forEach(function(t){t.key===e&&(t.status=eG)})}),n})(r,eX(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==eq||e.status!==eV})}}}]),r}(h.Component);(0,I.Z)(n,"defaultProps",{component:"div"})}(ej);var e0=function(e,t){if(!e)return null;var n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},e1=function(e){return void 0!==e?"".concat(e,"px"):void 0};function e2(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,o=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=void 0!==c&&c,d=h.useRef(null),p=O(h.useState(r),2),f=p[0],m=p[1],g=function(e){var r,o=i(e),a=null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[o];return(null==a?void 0:a.offsetParent)&&a},y=O(h.useState(null),2),v=y[0],b=y[1],x=O(h.useState(null),2),w=x[0],_=x[1];z(function(){if(f!==r){var e=g(f),t=g(r),n=e0(e,u),i=e0(t,u);m(r),b(n),_(i),e&&t?a():s()}},[r]);var C=h.useMemo(function(){if(u){var e;return e1(null!==(e=null==v?void 0:v.top)&&void 0!==e?e:0)}return"rtl"===l?e1(-(null==v?void 0:v.right)):e1(null==v?void 0:v.left)},[u,l,v]),S=h.useMemo(function(){if(u){var e;return e1(null!==(e=null==w?void 0:w.top)&&void 0!==e?e:0)}return"rtl"===l?e1(-(null==w?void 0:w.right)):e1(null==w?void 0:w.left)},[u,l,w]);return v&&w?h.createElement(eU,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){b(null),_(null),s()}},function(e,n){var r=e.className,i=e.style,o=(0,N.Z)((0,N.Z)({},i),{},{"--thumb-start-left":C,"--thumb-start-width":e1(null==v?void 0:v.width),"--thumb-active-left":S,"--thumb-active-width":e1(null==w?void 0:w.width),"--thumb-start-top":C,"--thumb-start-height":e1(null==v?void 0:v.height),"--thumb-active-top":S,"--thumb-active-height":e1(null==w?void 0:w.height)}),a={ref:W(d,n),style:o,className:A()("".concat(t,"-thumb"),r)};return h.createElement("div",a)}):null}var e4=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"],e3=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,i=e.checked,o=e.label,a=e.title,s=e.value,l=e.name,c=e.onCh
29ange,u=e.onFocus,d=e.onBlur,p=e.onKeyDown,f=e.onKeyUp,m=e.onMouseDown;return h.createElement("label",{className:A()(n,(0,I.Z)({},"".concat(t,"-item-disabled"),r)),onMouseDown:m},h.createElement("input",{name:l,className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:i,onChange:function(e){r||c(e,s)},onFocus:u,onBlur:d,onKeyDown:p,onKeyUp:f}),h.createElement("div",{className:"".concat(t,"-item-label"),title:a},o))},e6=h.forwardRef(function(e,t){var n,r,i,o,a,s,l,c,u,d,p,f,m,g,y,v,b,x,w=e.prefixCls,_=void 0===w?"rc-segmented":w,C=e.direction,S=e.vertical,E=e.options,T=void 0===E?[]:E,j=e.disabled,M=e.defaultValue,R=e.value,Z=e.name,z=e.onChange,$=e.className,U=e.motionName,Y=P(e,e4),G=h.useRef(null),V=h.useMemo(function(){return W(G,t)},[G,t]),q=h.useMemo(function(){return T.map(function(e){if("object"===(0,D.Z)(e)&&null!==e){var t=function(e){if(void 0!==e.title)return e.title;if("object"!==(0,D.Z)(e.label)){var t;return null===(t=e.label)||void 0===t?void 0:t.toString()}}(e);return(0,N.Z)((0,N.Z)({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}})},[T]),X=(n=null===(x=q[0])||void 0===x?void 0:x.value,i=(r={value:R,defaultValue:M}).defaultValue,o=r.value,a=r.onChange,s=r.postState,c=(l=O(B(function(){return H(o)?o:H(i)?"function"==typeof i?i():i:"function"==typeof n?n():n}),2))[0],u=l[1],d=void 0!==o?o:c,p=s?s(d):d,f=L(a),g=(m=O(B([d]),2))[0],y=m[1],F(function(){var e=g[0];c!==e&&f(c,e)},[g]),F(function(){H(o)||u(o)},[o]),[p,L(function(e,t){u(e,t),y([d],t)}
29)]),K=O(X,2),J=K[0],Q=K[1],ee=O(h.useState(!1),2),et=ee[0],en=ee[1],er=function(e,t){Q(t),null==z||z(t)},ei=(v=["children"],b=Object.assign({},Y),Array.isArray(v)&&v.forEach(function(e){delete b[e]}),b),eo=O(h.useState(!1),2),ea=eo[0],es=eo[1],el=O(h.useState(!1),2),ec=el[0],eu=el[1],ed=function(){eu(!0)},ep=function(){eu(!1)},ef=function(){es(!1)},eh=function(e){"Tab"===e.key&&es(!0)},em=function(e){var t=q.findIndex(function(e){return e.value===J}),n=q.length,r=q[(t+e+n)%n];r&&(Q(r.value),null==z||z(r.value))},eg=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":em(-1);break;case"ArrowRight":case"ArrowDown":em(1)}};return h.createElement("div",(0,k.Z)({role:"radiogroup","aria-label":"segmented control",tabIndex:j?void 0:0,"aria-orientation":S?"vertical":"horizontal"},ei,{className:A()(_,(0,I.Z)((0,I.Z)((0,I.Z)({},"".concat(_,"-rtl"),"rtl"===C),"".concat(_,"-disabled"),j),"".concat(_,"-vertical"),S),void 0===$?"":$),ref:V}),h.createElement("div",{className:"".concat(_,"-group")},h.createElement(e2,{vertical:S,prefixCls:_,value:J,containerRef:G,motionName:"".concat(_,"-").concat(void 0===U?"thumb-motion":U),direction:C,getValueIndex:function(e){return q.findIndex(function(t){return t.value===e})},onMotionStart:function(){en(!0)},onMotionEnd:function(){en(!1)}}),q.map(function(e){return h.createElement(e3,(0,k.Z)({},e,{name:Z,key:e.value,prefixCls:_,className:A()(e.className,"".concat(_,"-item"),(0,I.Z)((0,I.Z)({},"".concat(_,"-item-selected"),e.value===J&&!et),"".concat(_,"-item-focused"),ec&&ea&&e.value===J)),checked:e.value===J,onChange:er,onFocus:ed,onBlur:ep,onKeyDown:eg,onKeyUp:eh,onMouseDown:ef,disabled:!!j||!!e.disabled}))})))});let e5=(0,m.ZP)(e6).withConfig({displayName:"styles__RCSegmenteStyled",componentId:"sc-4r1cp-0"})(["width:100%;display:inline-block;padding:2px;min-height:43px;border-radius:12px;background-color:#f0f0f0;.rc-segmented-group{position:relative;display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;width:100%;border-radius:2px;}.rc-segmented-item{position:relative;height:39px;padding:9px 16px;color:#80818b;text-align:center;cursor:pointer;width:50%;font-family:'Suisse Intl';font-size:16px;font-style:normal;font-weight:400;border-radius:10px;}.rc-segmented-item-selected{background-color:white;color:#262626;box-shadow:0px 2px 6px 0px rgba(0,0,0,0.09);}.rc-segmented-item:hover,.rc-segmented-item:focus{}.rc-segmented-item-disabled,.rc-segmented-item-disabled:hover,.rc-segmented-item-disabled:focus{color:rgba(0,0,0,0.25);cursor:not-allowed;}.rc-segmented-item-label{z-index:2;line-height:20px;}.rc-segmented-item-input{position:absolute;top:0;left:0;width:0;height:0;opacity:0;pointer-events:none;}.rc-segmented-thumb{background-color:white;position:absolute;width:0;height:100%;padding:4px 0;transition:transform 0.3s cubic-bezier(0.645,0.045,0.355,1),width 0.3s cubic-bezier(0.645,0.045,0.355,1);}.rc-segmented-vertical .rc-segmented-group{flex-direction:column;}.rc-segmented-vertical .rc-segmented-item{width:100%;text-align:left;}.rc-segmented-vertical .rc-segmented-thumb{width:100%;height:0;padding:0 4px;transition:transform 0.3s cubic-bezier(0.645,0.045,0.355,1),height 0.3s cubic-bezier(0.645,0.045,0.355,1);}.rc-segmented-disabled .rc-segmented-item,.rc-segmented-disabled .rc-segmented-item:hover,.rc-segmented-disabled .rc-segmented-item:focus,.rc-segmented-disabled .rc-segmented-item:hover,.rc-segmented-disabled .rc-segmented-item:hover:hover,.rc-segmented-disabled .rc-segmented-item:focus:hover,.rc-segmented-disabled .rc-segmented-item:focus,.rc-segmented-disabled .rc-segmented-item:hover:focus,.rc-segmented-disabled .rc-segmented-item:focus:focus{color:rgba(0,0,0,0.25);cursor:not-allowed;}.rc-segmented-thumb-motion-appear-active,.rc-segmented-thumb-motion-enter-active{transition:transform 0.3s cubic-bezier(0.645,0.045,0.355,1),width 0.3s cubic-bezier(0.645,0.045,0.355,1);will-change:transform,width;}.rc-segmented-rtl{direction:rtl;}.rc-segmented-item:focus{outline:none;}.rc-segmented-item-focused{border-radius:2px;}"]);var e9=function(e){let{onChange:t,value:n,options:r}=e;return(0,C.jsx)(e5,{onChange:t,value:n,options:r})};let e7=[{value:"delivery",label:"Доставка"},{value:"self",label:"Навынос"}
29];var e8=function(e){let{onChange:t,value:n}=e;return(0,C.jsx)(e9,{onChange:t,value:n,options:e7})};let te=m.ZP.div.withConfig({displayName:"styles__ButtonContainer",componentId:"sc-uv6hqg-0"})(["display:flex;justify-content:center;align-items:center;width:100%;"]),tt=m.ZP.button.withConfig({displayName:"styles__ButtonStyled",componentId:"sc-uv6hqg-1"})(["display:flex;justify-content:center;align-items:center;padding:0 10px;width:100%;min-height:62px;border:none;background-color:#ec4c41;border-radius:14px;font-family:'Suisse Intl';font-family:Suisse Intl;font-weight:450;font-size:17px;line-height:24px;letter-spacing:1.5%;color:#fff;transition:all 0.2s ease-out;cursor:pointer;:active{background-color:#ec4c41;}&:disabled{background-color:#f0f0f0;cursor:not-allowed;span{color:#77787b;}}& > span{opacity:",";transition:all 0.2s ease-out;}& > div{position:absolute;max-width:28px;min-width:28px;max-height:28px;min-height:28px;opacity:",";transition:all 0.2s ease-out;svg circle{stroke:white;}}"],e=>e.isLoading?0:1,e=>e.isLoading?1:0);var tn=n(5292),tr=function(e){let{onClick:t,children:n,disabled:r,isLoadingProp:i=null}=e,{0:o,1:a}=(0,h.useState)(!1);return console.log("isLoadingProp ",i),(0,C.jsx)(te,{onClick:()=>{setTimeout(()=>{t()},100)},children:(0,C.jsxs)(tt,{isLoading:o||i,disabled:r,children:[(0,C.jsx)("span",{children:n}),(0,C.jsx)(tn.Z,{})]})})},ti=n(89757),to=n(18386);let ta=m.ZP.div.withConfig({displayName:"styles__CheckboxGroupWrapper",componentId:"sc-1nigass-0"})(["display:flex;flex-direction:column;height:min-content;width:100%;padding-left:8px;.labels{display:flex;flex-direction:column;height:min-content;width:100%;margin-left:24px;}.subtitle{font-family:Suisse Intl;font-weight:400;font-size:14px;line-height:18px;letter-spacing:0%;vertical-align:middle;color:#A8A8A8;}& > label{padding:12px 0px 12px 0px;}& > label:not(:last-child){border:1px solid #DEDEDE;border-top-width:0px;border-left-width:0px;border-right-width:0px;}& > label{max-height:min-content;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-right:4px;& > input{height:24px;min-width:24px;}& > span{width:100%;margin-left:12px;margin-right:12px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}& > input[type=radio]:disabled{visibility:hidden;}& > input[type=radio]{opacity:0;z-index:2;}& > input[type=radio]:disabled + span{color:#A8A8A8;}& > button{margin-left:8px;}}"]),ts=m.ZP.div.withConfig({displayName:"styles__RadioInner",componentId:"sc-1nigass-1"})(["visibility:",";z-index:1;position:absolute;display:block;height:24px;min-width:24px;background-color:#fff;border-color:#e5e5e5;border-style:solid;border-width:1.5px;border-radius:50%;transition:all 0.3s;&:after{position:absolute;top:50%;left:50%;display:block;height:24px;min-width:24px;margin-top:-12px;margin-left:-12px;background-color:#48907f;border-top:0;border-left:0;border-radius:16px;transform:scale(",");opacity:",";transition:all 0.3s cubic-bezier(0.78,0.14,0.15,0.86);content:' ';}"],e=>{let{disabled:t}=e;return t?"hidden":"unset"},e=>{let{checked:t}=e;return t?"0.6668":"0"},e=>{let{checked:t}=e;return t?"1":"0"}),tl=m.ZP.button.withConfig({displayName:"styles__ButtonStyled",componentId:"sc-oufmc4-0"})(["background:inherit;border:none;display:flex;justify-content:center;align-items:center;height:24px;width:24px;cursor:pointer;-moz-user-select:none;-khtml-user-select:none;user-select:none;"]);var tc=function(e){let{onClick:t}=e;return(0,C.jsx)(tl,{onClick:t,children:(0,C.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6099 2.58877C16.3949 1.80374 17.6677 1.80374 18.4527 2.58877L21.4112 5.54729C22.1963 6.33232 22.1963 7.6051 21.4112 8.39012L9.14172 20.6596C8.86229 20.9391 8.5067 21.1299 8.1194 21.2084L4.40932 21.96C3.74887 22.0937 3.0653 21.8877 2.5888 21.4112C2.1123 20.9347 1.90626 20.2511 2.04005 19.5907L2.79161 15.8806C2.87007 15.4933 3.06094 15.1377 3.34036 14.8583L15.6099 2.58877ZM4.44348 17.851L4.57274 17.2129L6.78709 19.4273L6.14901 19.5565L4.01022 19.9898L4.44348 17.851ZM8.58059 18.3779L5.62208 15.4194L14.2516 6.78988L17.2101 9.7484L8.58059 18.3779ZM18.6315 8.32699L19.9898 6.96871L18.5684 5.54729L18.4527 5.43161L17.0313 4.01019L15.673 5.36847L18.6315 8.32699Z",fill:"#A0A1A4"})})})};function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?tu(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tp(e){let{item:t,onDelete:n,onEdit:r,handler:i}=e,o=(0,h.useMemo)(()=>[t?.apartment&&`кв. ${t?.apartment}`,t?.entrance&&`подъезд ${t?.entrance}`,t?.floor&&`этаж ${t?.floor}`].filter(Boolean).join(", "),[t]);return(0,C.jsxs)("label",{id:`address-${t.id}`,children:[(0,C.jsx)("input",{id:t.id,type:"radio",value:t.id,checked:t.checked,onChange:i,disabled:!!t?.disabled}),(0,C.jsxs)("div",{className:"labels",children:[(0,C.jsx)("span",{className:"title",children:t.title}),(0,C.jsx)("span",{className:"subtitle",children:o})]}),(0,C.jsx)(tc,{onClick:()=>r(t.id)}),(0,C.jsx)(ts,{checked:t.checked,disabled:!!t?.disabled})]})}var tf=function(e){let{value:t,onChange:n,onDelete:r,onEdit:i,length:o}=e,a=(0,h.useCallback)(e=>{let{target:r}=e;n(t.map(e=>String(e.id)===r?.value?td(td({},e),{},{checked:!!r?.checked}):td(td({},e),{},{checked:!1==!!r?.checked})))},[t,n]),s=(0,h.useMemo)(()=>{let e=t.map(e=>td(td({},e),{},{label:e?.disabled?`${e.label} (недосту…)`:e.label})).filter(e=>e?.type!=="del");return Number.isInteger(o)?e.slice(0,o):e},[t,o]);return!!s?.length&&(0,C.jsx)(ta,{children:s.map(e=>(0,C.jsx)(tp,{item:e,onDelete:r,onEdit:i,handler:a},e.id))})};let th=m.ZP.button.withConfig({displayName:"styles__ButtonAddStyled",componentId:"sc-1ye2j33-0"})(["min-height:62px;width:100%;background-color:",";border:",";border-radius:14px;display:flex;gap:10px;align-items:center;justify-content:center;flex-direction:row;transition:all 0.2s ease-out;cursor:pointer;margin-bottom:-7px;margin-top:auto;:active{background-color:",";}span{font-family:Suisse Intl;font-weight:450;font-size:17px;line-height:24px;letter-spacing:1.5%;color:",";}"],e=>{let{isImportant:t}=e;return t?"#ec4c41":"white"},e=>{let{isImportant:t}=e;return t?"none":"1px solid #e5e5e5"},e=>{let{isImportant:t}=e;return t?"#ec4c41":"#e7e7e7"},e=>{let{isImportant:t}=e;return t?"white":"#212121"});var tm=function(e){let{onClick:t,isImportant:n}=e;return(0,C.jsxs)(th,{onClick:t,isImportant:n,children:[(0,C.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M8 16C7.51675 16 7.125 15.6082 7.125 15.125L7.125 8.875L0.875001 8.875C0.391751 8.875 6.57136e-07 8.48324 6.99383e-07 7.99999C7.41629e-07 7.51675 0.391751 7.12499 0.875001 7.12499L7.125 7.125L7.125 0.874999C7.125 0.39175 7.51675 -7.41629e-07 8 -6.99382e-07C8.48325 -6.57135e-07 8.875 0.39175 8.875 0.874999L8.875 7.125L15.125 7.125C15.6082 7.125 16 7.51675 16 8C16 8.48325 15.6082 8.875 15.125 8.875L8.875 8.875L8.875 15.125C8.875 15.6082 8.48325 16 8 16Z",fill:n?"white":"#212121"})}),(0,C.jsx)("span",{children:"Добавить новый адрес"})]})};let tg=m.ZP.div.withConfig({displayName:"styles__ListStyled",componentId:"sc-1h3ew8p-0"})(["height:100%;width:100%;background-color:#fff;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-direction:column;overflow-y:auto;padding-right:4px;&::-webkit-scrollbar{width:5px;margin-top:20px;}&::-webkit-scrollbar-track{background:#e6e6e6;border-radius:16px;}&::-webkit-scrollbar-thumb{width:5px;background:#ababab;border-radius:16px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}"]),ty=m.ZP.div.withConfig({displayName:"styles__TitleNoAddresses",componentId:"sc-1h3ew8p-1"})(["font-family:Suisse Intl;font-weight:400;font-style:Regular;font-size:16px;line-height:22px;letter-spacing:0%;text-align:center;color:#212121;"]),tv=m.ZP.span.withConfig({displayName:"styles__Loader",componentId:"sc-1h3ew8p-2"})(["width:28px;height:28px;border-radius:100%;display:inline-block;border-top:2px solid #ec4c41;border-right:1px solid #ec4c41;border-bottom:0px solid transparent;box-sizing:border-box;animation:rotation 1s linear infinite;margin:auto;display:flex;@keyframes rotation{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"]),tb=(0,m.F4)(["from{opacity:0;background:rgba(0,0,0,0);}to{opacity:1;background:rgba(0,0,0,0.25);}"]),tx=m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-1jge92g-0"})(["position:fixed;inset:0;z-index:502;height:100%;background:#ffffff;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";background:rgba(0,0,0,",");display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;"],tb,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,300,e=>e.isOpen?"1":"0",e=>e.isOpen?"0.25":"0"),tw=m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-1jge92g-1"})(["width:335px;height:178px;display:flex;flex-direction:column;align-items:center;background:#fff;overflow:hidden;border-radius:14px;padding:20px 12px 0 12px;& > .title{width:100%;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;text-align:center;}& > .subtitle{margin-top:14px;margin-bottom:24px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:19px;text-align:center;}& > .wrapper-button{width:100%;height:44px;display:flex;flex-direction:row;align-items:center;justify-content:center;border-left:0;border-right:0;border-bottom:0;gap:6px;}"]);var t_=n(64236);let tC=e=>e.stopPropagation();var tS=function(e){let{resolve:t,destroy:n}=e,{0:r,1:i}=(0,h.useState)(!0),o=(0,h.useCallback)(e=>{t({stageCode:e||"cancel"}),i(!1),setTimeout(n,300)},[t,n]),a=(0,h.useCallback)(()=>o("ok"),[o]);return(0,C.jsx)(tx,{isOpen:r,onClick:o,children:(0,C.jsxs)(tw,{isOpen:r,onClick:tC,children:[(0,C.jsx)("span",{className:"title",children:"Удалить адрес?"}),(0,C.jsx)("span",{className:"subtitle",children:"Вы действительно хотите удалить данный адрес из списка адресов?"}),(0,C.jsxs)("div",{className:"wrapper-button",children:[(0,C.jsx)(t_.Z,{isLoaderDisabled:!0,variant:"white",onClick:o,children:"Отменить"}),(0,C.jsx)(t_.Z,{onClick:a,children:"Да"})]})]})})},tE=n(2489);let tT=m.ZP.div.withConfig({displayName:"styles__AuthorizationAppealAlertWrapper",componentId:"sc-1d3aqnb-0"})(["display:flex;justify-content:start;border-radius:12px;opacity:1;gap:12px;padding:12px;background-color:#d6ede2;font-family:Suisse Intl;font-weight:400;font-style:Regular;font-size:16px;line-height:22px;letter-spacing:0%;text-align:center;color:#212121;cursor:pointer;svg{margin-top:2px;}"]),tk=m.ZP.div.withConfig({displayName:"styles__AuthorizationAppealAlertTitle",componentId:"sc-1d3aqnb-1"})([""]),tj=m.ZP.div.withConfig({displayName:"styles__AuthorizationAppealAlertText",componentId:"sc-1d3aqnb-2"})(["display:flex;flex-direction:column;align-items:start;"]),tO=m.ZP.div.withConfig({displayName:"styles__AuthorizationAppealAlertLink",componentId:"sc-1d3aqnb-3"})(["color:#053D35;text-decoration:underline;cur"]);var tP=n(38580),tI=e=>{let{onClose:t}=e,{createModal:n}=(0,tE.ZP)(),r=async()=>{t({});let e=await n(tP.Z);e?.stageCode};return(0,C.jsxs)(tT,{className:"authorization-appeal-alert",children:[(0,C.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM11 11V5H9V11H11ZM11 15V13H9V15H11ZM2 10C2 14.42 5.58 18 10 18C14.42 18 18 14.42 18 10C18 5.58 14.42 2 10 2C5.58 2 2 5.58 2 10Z",fill:"#376F62"})}),(0,C.jsxs)(tj,{children:[(0,C.jsx)(tk,{children:"Есть сохраненные адреса?"}),(0,C.jsx)(tO,{onClick:r,children:"Войти для отображения"})]})]})},tN=n(27910),tD=function(e){let{onChange:t,value:n,onClose:r}=e,{createModal:i}=(0,tE.ZP)(),{isAuth:o}=(0,ti.v9)(e=>e.profile),a=(0,h.useRef)(null),{authToken:s}=(0,h.useContext)(tN.Z),l=(0,h.useMemo)(()=>o||s?Number(localStorage.getItem("addressId")):null,[o,s]);(0,h.useEffect)(()=>
29{if(!n||!a.current)return;let e=a.current,t=n.find(e=>e.checked)?.id,r=e.querySelector(`#address-${t}`);if(!r)return;let i=r.getBoundingClientRect(),o=e.getBoundingClientRect(),s=i.top-o?.top+e?.scrollTop;e.scrollTo({top:s,behavior:"smooth"})},[a]);let c=(0,h.useCallback)(e=>{t({action:"select",formData:{id:e.find(e=>e?.checked)?.id}})},[t]),u=(0,h.useCallback)(async e=>{let n=await i(tS);n?.stageCode==="ok"&&t({action:"delete",formData:{id:e}})},[i,t]),d=(0,h.useCallback)(async e=>{t({action:"edit",formData:{id:e}})},[t]),p=(0,h.useCallback)(async()=>{console.log("add"),t({action:"add"})},[t]);return(0,C.jsxs)(C.Fragment,{children:[n?.length?(0,C.jsx)(tg,{ref:a,children:(0,C.jsx)(tf,{value:n,onChange:c,onDelete:u,onEdit:d})}):l?(0,C.jsx)(tv,{}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ty,{children:"Укажите, пожалуйста, адрес доставки"}),!o&&(0,C.jsx)(tI,{onClose:r})]}),(0,C.jsx)(tm,{onClick:p,isImportant:!n?.length})]})};(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]),(0,m.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]);let tM=m.ZP.div.withConfig({displayName:"styles__Container",componentId:"sc-q8ewcp-0"})(["width:100%;z-index:2;height:100vh;display:flex;flex-direction:column;gap:8px;.authorization-appeal-alert{margin-bottom:10px;}[contenteditable*='true']{font-family:Suisse Intl;font-weight:400;font-style:Regular;font-size:16px;line-height:22px;letter-spacing:0%;min-height:55px;padding-top:24px;padding-bottom:7px;border:1px solid #e5e5e5;}.comment-field{margin-top:15px;}"]),tA=m.ZP.div.withConfig({displayName:"styles__ErrorText",componentId:"sc-q8ewcp-1"})(["display:flex;align-items:center;width:100%;margin-top:-4px;color:#d7453b;font-family:Suisse Intl;font-weight:400;font-style:Regular;font-size:12px;line-height:16px;letter-spacing:0%;white-space:pre-wrap;"]),tL=m.ZP.div.withConfig({displayName:"styles__AddressLayout",componentId:"sc-q8ewcp-2"})(["display:grid;grid-template-columns:1fr 1fr;gap:8px;grid-template-areas:'. .' '. .';"]),tR=m.ZP.div.withConfig({displayName:"styles__ButtonsWrapper",componentId:"sc-q8ewcp-3"})(["display:flex;gap:16px;margin-top:auto;> div:nth-child(2) button{background-color:white;color:#212121;border:1px solid #d9d9d9;}"]);var tZ=n(24617);let tz=m.ZP.div.withConfig({displayName:"styles__InputWrapper",componentId:"sc-1p4o5sa-0"})(["width:100%;height:55px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px;padding-left:16px;padding-right:16px;position:relative;border:1px solid #e5e5e5;&.error{border:1px solid #ec4c41;}border-radius:14px;& > div > span{display:block;font-family:'Suisse Intl';font-style:normal;color:#a0a1a4;position:absolute;top:16px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:none;font-size:16px;line-height:21px;font-weight:400;transition:all 0.3s;}&.not-empty > div > span{top:8px;font-size:12px;line-height:16px;}&:focus-within > div > span{top:8px;font-size:12px;line-height:16px;transition:all 0.3s;}&:focus-within > div{justify-content:space-between;}&:focus-within > div > input::placeholder{color:transparent;}& > div > input::placeholder{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:transparent;display:none;}&:focus-within{border:1px solid #376f62;}&.error:focus-within{border:1px solid #ec4c41;}& > div > input{width:100%;height:40px;border:none;background:inherit;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:16px;line-height:22px;color:#212121;letter-spacing:0%;margin-top:16px;}& > div{flex:1;}& button{display:none;justify-content:center;align-items:center;width:16px;height:16px;margin:auto;border:none;background:inherit;cursor:pointer;}&.not-empty button{display:flex;}"]),tF=m.ZP.div.withConfig({displayName:"styles__OptionsListWarapper",componentId:"sc-1p4o5sa-1"})(["position:absolute;background:#fff;z-index:2;width:390px;box-shadow:0px 2px 16px 0px #00000024;border-radius:16px;margin-top:60px;"]),tB=m.ZP.div.withConfig({displayName:"styles__InputStyled",componentId:"sc-1p4o5sa-2"})(["display:flex;flex-direction:column;align-items:center;justify-content:flex-start;"]);function tH(){return(tH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var t$=e=>{let{title:t,titleId:n,...r}=e;return h.createElement("svg",tH({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?h.createElement("title",{id:n},t):null,l||(l=h.createElement("circle",{cx:8,cy:8,r:8,fill:"#C7C7C8"})),c||(c=h.createElement("path",{d:"M4.593 4.594a.508.508 0 0 1 .718 0L8 7.283l2.688-2.689a.508.508 0 0 1 .719.718
29L8.718 8.001l2.689 2.688a.508.508 0 0 1-.719.719L8 8.719 5.31 11.408a.508.508 0 0 1-.718-.719l2.689-2.688-2.689-2.689a.508.508 0 0 1 0-.718Z",fill:"#fff"})))};let tU=e=>{let t=e?.value??"";return{value:t,label:t,lat:parseFloat(e?.data?.geo_lat)||0,lng:parseFloat(e?.data?.geo_lon)||0,house:e?.data?.house,dom:e?.data?.house,adr:e?.unrestricted_value||"",city:e?.data?.city,street:e?.data?.street||e?.data?.settlement_with_type}};async function tY(e){let{query:t}=e;if(!1==!!t)return[];let n=await fetch("https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/address",{method:"POST",mode:"cors",credentials:void 0,headers:{Authorization:"Token 6d258bc7aefaf57d422fd4b4c38c725897cfc3c0",Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({query:t,count:7,from_bound:{value:"city"},to_bound:{value:"house"},restrict_value:!0,locations:[{country_iso_code:"RU",kladr_id:"77"},{country_iso_code:"RU",kladr_id:"50"}]})}).then(e=>e.json());return(n?.suggestions||[]).map(tU)}let tG=m.ZP.div.withConfig({displayName:"styles__InputWarapper",componentId:"sc-1uahfeo-0"})(["width:100%;height:max-content;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;& > div{width:100%;height:42px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;border-top:0;border-left:0;border-right:0;& > span{margin-left:16px;margin-right:16px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;}}& > div:hover{background:#f5f5f5;cursor:pointer;}"]);var tV=function(e){let{value:t,onChange:n}=e;return(0,C.jsx)(tG,{children:t.map(e=>(0,C.jsx)("div",{onClick:()=>n(e),children:(0,C.jsx)("span",{children:e.label})},`${e.lat} ${e.lon} ${e.label}`))})},tq=e=>{let t=(0,h.useRef)();return(0,h.useLayoutEffect)(()=>{t.current=e},[e]),t.current};function tW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tW(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let tK=(e,t,n)=>t?"Ищем вас...":(e?n?.street&&n?.house:n?.street||n?.house)?n?.value??n?.label??"":"";var tJ=function(e){let{value:t,onChange:n,isSearchingAddress:r,isSetCoordsMap:i,isError:o=!1,setError:a}=e,s=(0,h.useRef)({value:tK(i,r,t)}),{0:l,1:c}=(0,h.useState)(!!tK(i,r,t)),u=(0,h.useRef)(null),{0:d,1:p}=(0,h.useState)([]),f=tq(s.current?.value),m=(0,h.useCallback)(async e=>{let{target:t}=e,n=t.value;Object.assign(s.current,{value:n}),n||g();let r=await tY({query:n});p(r),a(0===r.length&&n?.length)},[]),g=(0,h.useCallback)(()=>{Object.assign(s.current,{value:""}),n({}),p([]),c(!0),u.current=null},[n]);(0,h.useEffect)(()=>{let e=tK(i,r,t);Object.assign(s.current,{value:e}),c(!e)},[t,r]);let y=(0,h.useCallback)(async e=>{let t=(e?.house===null&&e?.label?tX(tX({},e),{},{label:`${e.label}, `}):e)?.label||"";Object.assign(s.current,{value:t}),p([]),n(e),u.current=e},[n]),v=(0,h.useCallback)(()=>{p([])},[]);return(0,C.jsxs)(tB,{children:[(0,C.jsxs)(tz,{className:`${l||r?"empty":"not-empty"}${o?" error":""}`,children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:"Адрес"}),(0,C.jsx)("input",{onChange:m,onBlur:()=>{setTimeout(()=>{i||f===s.current?.value||s.current?.value===u.current?.value||s.current?.value===u.current?.label||(Object.assign(s.current,{value:""}),u.current=null,n({}),p([]),c(!0))},500)},autoFocus:!0,ref:s,placeholder:"Адрес"})]}),(0,C.jsx)("button",{onClick:g,children:(0,C.jsx)(t$,{})})]}),!!d.length&&(0,C.jsx)(tF,{onMouseLeave:v,children:(0,C.jsx)(tV,{value:d,onChange:y})})]})},tQ=n(83194),t0=n(39540),t1=n(73525),t2=n(90102);function t4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?t4(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function t6(e){return!!e?.street&&!!e?.house}var t5=function(e){let{value:t,onChange:n,type:r,onClose:i,isSearchingAddress:o,isSetCoordsMap:a}=e,{0:s,1:l}=(0,h.useState)(()=>(console.log({value:t}),t)?t3(t3({},t),{},{isOutOfZone:null}):{}),{isAuth:c}=(0,ti.v9)(e=>e.profile),u=(0,h.useRef)(t?.id??0),{createModal:d}=(0,tE.ZP)();console.log({formInput:s,initValue:t});let{0:p,1:f}=(0,h.useState)(!!s?.private),{0:m,1:g}=(0,h.useState)(!1),{0:y,1:v}=(0,h.useState)(),{0:b,1:x}=(0,h.useState)(!1),{0:w,1:_}=(0,h.useState)(!1),S=(0,ti.I0)();console.log("EditAddress - isSetCoordsMap ",a);let E=(0,h.useCallback)(e=>{l(e)},[n,r]);(0,h.useEffect)(()=>{(async()=>{v(await (0,t0.ZP)("channels/global-delivery-zone").then(e=>{let t=e?.data?.[0];return Array.isArray(t?.coordinates)?t.coordinates.map(e=>[e.latitude,e.longitude]):[]}))})()},[]),(0,h.useEffect)(()=>
29{l(t3(t3({},t),{},{id:b?u.current:t.id})),x(!0)},[t]);let T=e=>t3(t3({},e),{},{street:(e?.street||"").slice(0,20),house:(e?.house||"").slice(0,10),apartment:(e?.apartment||"").slice(0,10),entrance:(e?.entrance||"").slice(0,10),intercom:(e?.intercom||"").slice(0,10),floor:(e?.floor||"").slice(0,10),comment:e?.comment||"",city:e?.city||"",id:e?.id||0,private:e?.private||!1,title:e?.title||""}),k=e=>{E(T(t3(t3({},s),{},{[e.target.name]:e.target.value})))},j=e=>{E(T(t3(t3({},s),{},{[e]:""})))},O=async()=>{let e,t;let i=Date.now(),o=(0,t2.Tg)(s),a=(0,t2.eJ)(s,o),l=t3({id:s?.id||i,dom:s?.house||s?.dom,podezd:s?.entrance||"",etaj:s?.floor||"",kvartira:s?.apartment||"",domofon:s?.intercom||"",comment:s?.comment||"",lat:s?.lat,lng:s?.lng,city:s?.city,street:s?.street,title:o,label:a,"public-part":s?.value||s?.label},"add"===r&&{sort:i});if(g(!0),"save"===r){let t=(await to.L5(l))?.data,n=(0,t2.Tg)(t),r=(0,t2.eJ)(t,n);e={id:s?.id||0,house:t?.dom||"",entrance:t?.podezd||"",floor:t?.etaj||"",apartment:t?.kvartira||"",intercom:t?.domofon||"",comment:t?.comment||"",lat:t?.lat,lng:t?.lng,city:t?.city,street:t?.street,title:n,label:r,"public-part":t?.["public-part"]}}"add"===r&&(t=await S((0,to.y$)({address:l}))),"save"===r&&(t=await S((0,to.y3)(e))),n({status:("add"===r?t6(t?.payload?.address||s):t6(e))?"ok":"work",formData:t3({},"add"===r?t?.payload?.address||s:T(e)),action:r}),g(!1)},P=(0,h.useCallback)(async()=>{let e=await d(tS);e?.stageCode==="ok"&&(g(!0),await S((0,to.Ro)({addressId:s?.id})),g(!1),n({action:"delete",formData:{id:s?.id}}))},[d,n]),I=(0,h.useMemo)(()=>"boolean"==typeof s?.isOutOfZone&&!!s?.isOutOfZone,[s]),N=(0,h.useMemo)(()=>{let e;return I&&(e="isOutOfZone"),(s?.title||s?.value||s?.label)&&(a?s?.street&&s?.house:s?.street||s?.house)||b&&"add"===r||(e="noHouse"),a&&!s?.value&&(e="noAddressOnMapFound"),w&&(e="noAddressFromInputFound"),e},[I,s,b,r,a,w]);return(0,C.jsxs)(tM,{children:[!c&&"add"===r&&(0,C.jsx)(tI,{onClose:i}),(0,C.jsx)(tJ,{value:s,onChange:e=>{let t;let r={formData:e},i=!(0,t1.c9)(r.formData.lat,r.formData.lng,y);if(Object.keys(e)?.length){let e=(0,t2.Tg)(r.formData),n=(0,t2.eJ)(r.formData,e);t=t3(t3({},r.formData),{},{street:r.formData.street,house:r.formData.dom??r.formData.house,city:r.formData.city,apartment:s.apartment,entrance:s.entrance,intercom:s.intercom,floor:s.floor,comment:s.comment,id:s.id,private:s.private,title:e,label:n,"public-part":e,isOutOfZone:i})}else t={};E(t3({},t)),n({status:t6(t)?"ok":"work",formData:t3({},T(t)),action:"update-coords-map"})},isSearchingAddress:o,isError:!!N,setError:_,isSetCoordsMap:a}),!!N&&(0,C.jsx)(tA,{children:{isOutOfZone:"Адрес недоступен для доставки",noAddressOnMapFound:"Не удалось определить адрес",noAddressFromInputFound:"Не можем найти такой адрес. \nПроверьте на опечатки или укажите другой",noHouse:"Не найден дом в указанном месте"}[`${N}`]||""}),(0,C.jsx)(tL,{children:p?null:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(tZ.UP,{type:"text",name:"apartment",label:"Квартира/офис",disabled:p,value:s?.apartment??"",onChange:k,onClear:j,isCleanable:!0}),(0,C.jsx)(tZ.UP,{name:"entrance",value:s?.entrance??"",type:"text",label:"Подъезд",disabled:p,onChange:k,onClear:j,isCleanable:!0}),(0,C.jsx)(tZ.UP,{name:"intercom",type:"text",value:s?.intercom??"",disabled:p,label:"Домофон",onChange:k,onClear:j,isCleanable:!0}),(0,C.jsx)(tZ.UP,{name:"floor",type:"text",value:s?.floor??"",disabled:p,label:"Этаж",onChange:k,onClear:j,isCleanable:!0})]})}),(0,C.jsx)(tQ.Z,{placeholder:"Комментарий курьеру",content:s?.comment,onChange:e=>{E(T(t3(t3({},s),{},{comment:e})))},onClear:()=>j("comment"),isCleanable:!0,maxLength:250,isLabelFloating:!0}),(0,C.jsxs)(tR,{children:[(0,C.jsx)(tr,{onClick:O,disabled:!t6(s),isLoadingProp:m,children:"add"===r?"Перейти к выбору времени":"Сохранить"}),"save"===r&&(0,C.jsx)(tr,{onClick:P,disabled:!s,isLoadingProp:m,children:"Удалить"})]})]})};let t9=m.ZP.div.withConfig({displayName:"styles__ViewStyled",componentId:"sc-1yu2zy1-0"})(["width:100%;height:100%;gap:16px;display:flex;flex-direction:column;"]),t7=m.ZP.div.withConfig({displayName:"styles__TimeTextStyled",componentId:"sc-1yu2zy1-1"})(["width:100%;display:flex;gap:16px;flex-direction:column;background-color:#f5f5f5;border-radius:16px;padding:16px;gap:8px;.title{font-family:Suisse Intl;font-weight:500;font-size:20px;line-height:28px;letter-spacing:0%;}.subtitle{font-family:Suisse Intl;font-weight:400;font-size:14px;line-height:18px;letter-spacing:0%;color:#a0a1a4;}"]),t8=m.ZP.div.withConfig({displayName:"styles__RestaurantEditStyled",componentId:"sc-1yu2zy1-2"})(["width:100%;gap:4px;padding-top:12px;display:flex;flex-direction:column;& > div{display:flex;flex-direction:row;width:100%;justify-content:space-between;padding-top:8px;padding-bottom:8px;}.restaurant-description{font-family:Suisse Intl;font-weight:400;font-size:14px;line-height:18px;letter-spacing:0%;vertical-align:middle;
29color:#77787b;}.restaurant-title{font-family:Suisse Intl;font-weight:400;font-size:16px;line-height:21px;letter-spacing:0%;vertical-align:middle;}button{color:#48907f;font-family:Suisse Intl;font-weight:500;font-size:14px;line-height:15px;letter-spacing:1.5%;border:none;display:flex;background:unset;align-items:center;cursor:pointer;gap:10px;}"]),ne=[{value:"current-time",label:"По готовности"},{value:"by-time",label:"Ко времени"}];var nt=function(e){let{onChange:t,value:n}=e;return(0,C.jsx)(e9,{onChange:t,value:n,options:ne})},nn=n(24469);let nr=m.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-bxjpnn-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:50px;"]),ni=m.ZP.div.withConfig({displayName:"styles__SelectWrapper",componentId:"sc-1b8hits-0"})(["width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:54px;width:195px;border:1px solid #d9d9d9;border-radius:16px;padding-left:15px;padding-right:15px;cursor:pointer;position:relative;&.hovered{border-color:#376f62;}& > span{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:15px;line-height:22px;color:#212121;}& > button{border:none;background:inherit;margin-left:10px;}"]);m.ZP.div.withConfig({displayName:"styles__SelectDateStyled",componentId:"sc-1b8hits-1"})(["position:relative;display:flex;flex-direction:column;width:auto;"]);let no=m.ZP.div.withConfig({displayName:"styles__CalendarInputStyled",componentId:"sc-1b8hits-2"})(["display:",";flex-direction:row;justify-content:space-between;align-items:center;position:absolute;z-index:1;top:60px;left:0;"],e=>e.isDisplay?"flex":"none");function na(){return(na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var ns=e=>{let{title:t,titleId:n,...r}=e;return h.createElement("svg",na({width:10,height:6,viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?h.createElement("title",{id:n},t):null,u||(u=h.createElement("path",{d:"M9.79.218a.694.694 0 0 0-1.01 0L5 4.155 1.22.218a.694.694 0 0 0-1.01 0 .766.766 0 0 0 0 1.052l4.285 4.462c.279.29.731.29 1.01 0L9.791 1.27a.766.766 0 0 0 0-1.052Z",fill:"#212121"})))},nl=n(82229);function nc(e){let t=Number((0,nl.Y9)("d",e));return 0===t?6:t-1}let nu=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"];function nd(e){let t=new Date(e);return 33-new Date(Number((0,nl.Y9)("YYYY",t)),Number((0,nl.Y9)("M",t))-1,33).getDate()}function np(e){let t=1,n=(0,nl.Iu)(t,e),r=nc(n),i=[];for(;0!==r;)t--,r=nc(n=(0,nl.Iu)(t,e)),i.push(n.toISOString());return i.reverse()}function nf(e){let t=nd(e),n=new Date(e);return Array.from({length:t}).map((e,t)=>(0,nl.Iu)(t+1,n).toISOString())}let nh=m.ZP.div.withConfig({displayName:"styles__WrapperCalendar",componentId:"sc-169b3fo-0"})(["width:236px;background:#ffffff;box-shadow:0px 8px 24px rgba(0,0,0,0.16);border-radius:14px;height:auto;padding:4px;& > .header{height:44px;border-bottom:1px solid #f5f5f5;width:100%;display:flex;justify-content:space-between;align-items:center;flex-direction:row;padding-left:4px;padding-right:4px;}.button-left{height:12px;width:6px;border:none;cursor:pointer;background:gold;}.button-right{height:12px;width:6px;border:none;cursor:pointer;background:gold;}.top-date{font-family:Suisse Intl;font-weight:400;font-style:Regular;font-size:16px;line-height:22px;letter-spacing:0%;text-align:center;color:#212121;}.top-date::first-letter{text-transform:uppercase;}& > .grid{display:grid;grid-template-rows:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr;row-gap:10px;column-gap:6.33px;margin-top:6px;text-align:center;padding:4px;}.week-day{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;letter-spacing:0.03em;text-transform:uppercase;color:#212121;}.day{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;text-align:center;border:none;cursor:pointer;background:unset;}"]);m.ZP.div.withConfig({displayName:"styles__LocaleSwitcherActiveItemArrow",componentId:"sc-169b3fo-1"})(["display:flex;justify-content:flex-start;align-items:center;margin-left:4px;width:16px;height:20px;transform:",";transition:all 200ms ease-out;"],e=>e.isOpen?"rotate(180deg)":"none");let nm=m.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-1mhkh2y-0"}
29)(["height:auto;width:auto;line-height:0;border:none;cursor:pointer;background:unset;transform:scale(",",1);"],e=>"right"===e.type?1:"-1");var ng=function(e){let{onClick:t,type:n}=e;return(0,C.jsx)(nm,{onClick:t,type:n,children:(0,C.jsxs)("svg",{width:"43",height:"32",viewBox:"0 0 43 32",fill:"none",children:[(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"42",height:"31",rx:"11.5",fill:"white"}),(0,C.jsx)("rect",{x:"0.5",y:"0.5",width:"42",height:"31",rx:"11.5",stroke:"#DEDEDE"}),(0,C.jsx)("path",{d:"M17.2929 22.7071C16.9024 22.3166 16.9024 21.6834 17.2929 21.2929L22.5858 16L17.2929 10.7071C16.9024 10.3166 16.9024 9.68342 17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289L24.7071 15.2929C25.0976 15.6834 25.0976 16.3166 24.7071 16.7071L18.7071 22.7071C18.3166 23.0976 17.6834 23.0976 17.2929 22.7071Z",fill:"#212121"})]})})};let ny=m.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-qoara0-0"})(["border:none;cursor:pointer;background:unset;height:22px;width:22px;& > span{z-index:2;height:22px;width:22px;display:inline-block;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;text-align:center;color:",";}&:after{display:",";content:'';height:26px;width:26px;position:absolute;background:#376f62;border-radius:50%;margin-top:-25px;left:-2px;z-index:1;}"],function(e){return e?.isSelect?"#FFFFFF":e?.disabled?"rgba(0, 0, 0, 0.4)":"#212121"},e=>e.isSelect?"flex":"none");var nv=function(e){let{onClick:t,isSelect:n,label:r,value:i,isDisabled:o}=e,a=(0,h.useCallback)(()=>t(i),[i,t]);return(0,C.jsx)(ny,{onClick:a,isSelect:n,disabled:o,children:(0,C.jsx)("span",{children:r})})};function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var nw=function(e){let{date:t,cbDisabled:n,onClickDay:r}=e,{0:i,1:o}=(0,h.useState)(t),a=(0,h.useMemo)(()=>(0,nl.Y9)("MMMM YYYY",i),[i]),s=(0,h.useMemo)(()=>{var e;return[...np(e=i),...nf(e),...function(e){let t=np(e),n=nf(e),r=nd(e),i=(0,nl.Iu)(r,e),o=nc(i),a=[];for(;6!==o||t.length+n.length+a.length<=35;)r++,o=nc(i=(0,nl.Iu)(r,e)),a.push(i.toISOString());return a}(e)].map(e=>{let r=new Date(e).toISOString()?.split("T")?.[0]===new Date(t).toISOString()?.split("T")?.[0],i=n?.(e)||!1;return{value:e,label:(0,nl.Y9)("D",e),isDisabled:i,isSelect:r}})},[i,t,n]),l=(0,h.useCallback)(()=>{o(e=>{let t=new Date(e).getMonth()-1;return new Date(new Date(e).setMonth(t)).toISOString()})},[]),c=(0,h.useCallback)(()=>{o(e=>{let t=new Date(e).getMonth()+1;return new Date(new Date(e).setMonth(t)).toISOString()})},[]);return(0,C.jsxs)(nh,{children:[(0,C.jsxs)("div",{className:"header",children:[(0,C.jsx)(ng,{onClick:l,type:"left"}),(0,C.jsx)("span",{className:"top-date",children:a}),(0,C.jsx)(ng,{onClick:c,type:"right"})]}),(0,C.jsxs)("div",{className:"grid",children:[nu.map(e=>(0,C.jsx)("span",{className:"week-day",children:e},e)),s.map(e=>(0,h.createElement)(nv,nx(nx({},e),{},{key:e.value,onClick:r})))]})]})},n_=n(27484),nC=n.n(n_),nS=n(70178),nE=n.n(nS),nT=n(29387),nk=n.n(nT);nC().extend(nE()),nC().extend(nk()),nC().tz.setDefault("Europe/Moscow");var nj=function(e){let{day:t,filter:n,onChange:r}=e,{0:i,1:o}=(0,h.useState)(!1),a=(0,h.useCallback)(e=>!1===n(e),[n]),s=(0,h.useCallback)(async()=>{o(!0)},[]),l=(0,h.useCallback)(async()=>{o(!1)},[]),c=(0,h.useCallback)(e=>{r(e),o(!1)},[r]),u=(0,h.useMemo)(()=>nC()(t).tz().format("DD.MM.YYYY"),[t]);return(0,C.jsxs)(ni,{onClick:s,className:`${i?"hovered":""}`,children:[(0,C.jsx)("span",{children:u}),(0,C.jsx)("button",{children:(0,C.jsx)(ns,{})}),(0,C.jsx)(no,{isDisplay:i,onMouseLeave:l,children:(0,C.jsx)(nw,{date:t,cbDisabled:a,onClickDay:c})})]})};let nO=m.ZP.div.withConfig({displayName:"styles__SelectWrapper",componentId:"sc-6wr829-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:54px;width:187px;border:1px solid #d9d9d9;border-radius:16px;padding-left:16px;padding-right:16px;cursor:pointer;position:relative;&.hovered{border-color:#376f62;}& > span{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:15px;line-height:22px;color:#212121;}& > button{border:none;background:inherit;margin-left:10px;}"]),nP=m.ZP.div.withConfig({displayName:"styles__TimesOptionsStyled",componentId:"sc-6wr829-1"})(["display:",";justify-content:space-between;position:absolute;z-index:1;width:187px;max-height:378px;border-radius:16px;box-shadow:0px 2px 16px 0px #00000024;position:absolute;top:52px;left:0;overflow-y:auto;background:white;font-weight:400;font-size:14px;line-height:18px;margin-top:10px;&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{background:#f0f0f0;border-radius:10px;margin-top:12px;margin-bottom:12px;margin-right:12px;}&::-webkit-scrollbar-thumb{width:5px;background:#d9d9d9;border-radius:10px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}"],e=>e.isDisplay?"block":"none"),nI=m.ZP.div.withConfig({displayName:"styles__DataTimesStyled",componentId:"sc-10lljfo-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:left;min-height:54px;width:100%;height:100%;"]),nN=m.ZP.div.withConfig({displayName:"styles__SelectTimeItem",componentId:"sc-10lljfo-1"})(["display:flex;align-items:center;min-height:42px;padding-left:12px;padding-right:12px;cursor:pointer;background-color:",";&:hover{background-color:#f5f5f5;}&:active,&:focus{background-color:#dedede;}"],e=>{let{isChecked:t}=e;return t?"#DEDEDE;":"transparent"});var nD=function(e){let{day:t,filter:n,onChange:r}=e,i=(0,h.useMemo)(()=>(0,nl.nM)(t).filter(e=>n(e?.value)),[t,n]);return(0,C.jsx)(nI,{children:i?.map(e=>C.jsx(nN,{isChecked:e.value===t,onClick:()=>r(e.value),children:e.label},e.value))})};let nM=e=>e.stopPropagation();var nA=function(e){let{day:t,filter:n,onChange:r}=e,{0:i,1:o}=(0,h.useState)(!1),a=(0,h.useCallback)(async()=>{o(!0)},[o]),s=(0,h.useCallback)(async e=>{console.log(e,"onClickTime"),o(!1),r(e)},[r]),l=(0,h.useMemo)(()=>(0,nl.sS)(t),[t]),c=(0,h.useCallback)(async()=>{o(!1)},[]);return(0,C.jsxs)(nO,{onClick:a,className:`${i?"hovered":""}`,children:[(0,C.jsx)("span",{children:l}),(0,C.jsx)("button",{children:(0,C.jsx)(ns,{})}),(0,C.jsx)(nP,{isDisplay:i,onMouseLeave:c,onClick:nM,children:(0,C.jsx)(nD,{day:t,filter:n,onChange:s})})]})},nL=function(e){let{day:t,dayFilter:n,intervalFilter:r,onChange:i}=e;return(0,C.jsxs)(nr,{children:[(0,C.jsx)(nj,{day:t,filter:n,onChange:i}),(0,C.jsx)(nA,{day:t,filter:r,onChange:i})]})},nR=n(68697),nZ=n(47041);let nz=(0,m.F4)(["from{opacity:0;background:rgba(0,0,0,0);}to{opacity:1;background:rgba(0,0,0,0.25);}"]);m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-1t868sa-0"})(["position:fixed;inset:0;z-index:502;height:100%;background:#ffffff;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";background:rgba(0,0,0,",");display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;"],nz,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,300,e=>e.isOpen?"1":"0",e=>e.isOpen?"0.25":"0"),m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-1t868sa-1"})(["width:335px;height:260px;display:flex;flex-direction:column;align-items:center;background:#fff;overflow:hidden;border-radius:14px;padding:20px 12px 0 12px;& > .title{width:100%;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;text-align:center;}& > .subtitle{margin-top:14px;margin-bottom:24px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:19px;text-align:center;}& > .wrapper-button{width:100%;height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-left:0;border-right:0;border-bottom:0;font-size:15px;gap:6px;& > .button-cancel{background-color:white;color:black;border:1px solid #dedede;}}"]);let nF=(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]);function nB(){return(nB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}(0,m.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-kbbrvo-0"})(["position:fixed;inset:0;z-index:",";height:100%;background:#ffffff;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;& > .modal-header{width:100%;}& > .modal-body{width:100%;overflow:scroll;}"],e=>e.isOpen?"504":"0",nF,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,300,e=>e.isOpen?"1":"0"),m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-kbbrvo-1"})(["width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;background:#f2f2f2;"]),m.ZP.div.withConfig({displayName:"styles__TitleWrapper",componentId:"sc-kbbrvo-2"})(["padding:20px;padding-bottom:18px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;& > span{font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;color:#212121;}& > button{width:40px;height:30px;background-color:#fff;border:1px solid #e5e5e5;border-radius:100px;display:flex;align-items:center;justify-content:flex-end;flex-direction:row;padding-right:16px;:active{background:#e7e7e7;}}& > div{width:40px;}"]),m.ZP.div.withConfig({displayName:"styles__ButtonsWrapper",componentId:"sc-kbbrvo-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:20px;padding-right:20px;& > button{margin-left:20px;height:50px;width:min-content;border:none;background:inherit;& > span{white-space:nowrap;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;}}"]),m.ZP.div.withConfig({displayName:"styles__ScrollOptionsList",componentId:"sc-kbbrvo-4"})(["display:flex;height:max-content;width:100%;
29"]),m.ZP.div.withConfig({displayName:"styles__SearchWrapper",componentId:"sc-uauo58-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;border:1px solid #DEDEDE;border-radius:14px;height:50px;width:100%;& > input{margin-left:20px;margin-right:15px;width:100%;border:none;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;&::placeholder{color:#212121;opacity:0.3;}}& > button{height:14px;min-width:14px;margin-right:20px;border:none;background:inherit;}"]);var nH=e=>{let{title:t,titleId:n,...r}=e;return h.createElement("svg",nB({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?h.createElement("title",{id:n},t):null,d||(d=h.createElement("path",{d:"M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12Zm-8 6a8 8 0 1 1 14.32 4.906l5.387 5.387a1 1 0 0 1-1.414 1.414l-5.387-5.387A8 8 0 0 1 2 10Z",fill:"#A0A1A4"})))};m.ZP.div.withConfig({displayName:"styles__InputWarapper",componentId:"sc-srigsv-0"})(["width:100%;height:max-content;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;margin-top:10px;"]),m.ZP.div.withConfig({displayName:"styles__OptionWrapper",componentId:"sc-srigsv-1"})(["padding-left:20px;padding-right:20px;width:100%;height:max-content;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding-top:13px;padding-bottom:13px;background:",";& > div{display:flex;flex-direction:column;width:100%;height:max-content;}"],e=>{let{isCheked:t}=e;return t?"#F7F7F7":"inherit"}),m.ZP.div.withConfig({displayName:"styles__ImgWrapper",componentId:"sc-srigsv-2"})(["height:60px;max-width:60px;border-radius:50%;overflow:hidden;opacity:",";& > img{height:60px;width:60px;border-radius:50%;}margin-right:10px;"],e=>{let{isClosed:t}=e;return t?"0.4":"unset"}),m.ZP.div.withConfig({displayName:"styles__TitleWrapper",componentId:"sc-srigsv-3"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;& > .title{font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:",";}& > .distance{margin-left:5px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;white-space:nowrap;}"],e=>{let{isClosed:t}=e;return t?"#A8A8A8":"#212121"}),m.ZP.div.withConfig({displayName:"styles__AddressWrapper",componentId:"sc-srigsv-4"})(["margin-top:6px;width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;& > span{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#A8A8A8;}& > button{min-width:15px;height:12px;margin-left:10px;border:none;background:inherit;}"]),m.ZP.span.withConfig({displayName:"styles__Address",componentId:"sc-srigsv-5"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#A8A8A8;"]),m.ZP.span.withConfig({displayName:"styles__Time",componentId:"sc-srigsv-6"})(["margin-top:6px;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:12px;line-height:14px;color:#A8A8A8;"]);var n$=n(25675),nU=n.n(n$);function nY(){return(nY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var nG=e=>{let{title:t,titleId:n,...r}=e;return h.createElement("svg",nY({width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?h.createElement("title",{id:n},t):null,p||(p=h.createElement("path",{d:"M15 26.95 8.05 20l-2.366 2.35L15 31.666l20-20-2.35-2.35L15 26.95Z",fill:"#fff"})))},nV=n(28828);let nq=(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]);m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-e9fngo-0"})(["position:fixed;display:flex;flex-direction:column;inset:0;z-index:",";height:100%;background-color:#00000073;bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],e=>e.isOpen?"508":"0",nq,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,300,e=>e.isOpen?"1":"0"),(0,m.F4)(["from{transform:translateY(100%);}to{transform:translateY(0%);}"]),m.ZP.div.withConfig({displayName:"styles__YandexMapContainer",componentId:"sc-e9fngo-1"}
29)(["height:calc(100%);width:100vw;& .geolocation-control > ymaps > ymaps{width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:50%;& > ymaps:first-child{width:40px;height:40px;}}& .copyrights-promo{display:none}"]),m.ZP.div.withConfig({displayName:"styles__FooterWarapper",componentId:"sc-e9fngo-2"})(["height:150px;width:100vw;background:#FFFFFF;box-shadow:0px -4px 8px rgba(0,0,0,0.08);padding:20px;padding-bottom:10px;& > .button-confirm{margin-top:20px;}"]),m.ZP.button.withConfig({displayName:"styles__ButtonBackStyled",componentId:"sc-1xae16-0"})(["width:43px;height:32px;background-color:#fff;border:1px solid #e5e5e5;border-radius:12px;display:flex;align-items:center;justify-content:flex-end;flex-direction:row;padding-right:18px;:active{background-color:#e7e7e7;}"]),m.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-1w4530o-0"})(["height:50px;width:50px;background-color:#fff;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:row;border:1px solid #e5e5e5;box-shadow:2px 2px 10px rgba(0,0,0,0.15);:active{background-color:#e7e7e7;}"]),m.ZP.div.withConfig({displayName:"styles__WrapperButton",componentId:"sc-1w4530o-1"})(["width:50px;height:110px;background-color:transparent;& > button:last-child{margin-top:10px;}"]);var nW=n(15105),nX=n(73761);m.ZP.button.withConfig({displayName:"styles__ButtonListControlStyled",componentId:"sc-vrtmvf-0"})(["width:120px;height:32px;background-color:#fff;border:1px solid #e5e5e5;border-radius:12px;display:flex;align-items:center;justify-content:space-between;flex-direction:row;padding-left:16px;padding-right:16px;-moz-user-select:none;-khtml-user-select:none;user-select:none;& > span{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;}:active{background-color:#e7e7e7;}"]);let nK="cubic-bezier(0.23, 1, 0.32, 1)",nJ=(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]);m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-7zuvdf-0"})(["position:fixed;display:flex;flex-direction:row;inset:0;z-index:509;height:100%;background-color:#00000073;bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],nJ,300,nK,300,300,e=>e.isOpen?"1":"0");let nQ=(0,m.F4)(["from{transform:translateY(100%);}to{transform:translateY(0%);}"]);m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-7zuvdf-1"})(["display:flex;flex-direction:column;inset:0;z-index:509;height:max-content;bottom:0;background-color:transparent;align-items:center;align-self:flex-end;position:relative;width:100vw;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all;transition-duration:","ms;transform:",";& > .modal-body{border-radius:20px 20px 0px 0px;padding-top:0px;padding:20px;background-color:#FFFFFF;width:100%;height:100%;& > .ok-button{margin-top:20px;width:100%;}}& > .modal-header{display:flex;flex-direction:column;width:100%;background-color:transparent;}"],nQ,300,nK,300,e=>e.isOpen?"unset":"translateY(100%)"),m.ZP.div.withConfig({displayName:"styles__Blind",componentId:"sc-7zuvdf-2"})(['display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:transparent;min-height:16px;width:100%;&:after{background-color:#A8A8A8;border-radius:16px;height:4px;width:36px;content:" ";}']),m.ZP.span.withConfig({displayName:"styles__TitleWrapper",componentId:"sc-7zuvdf-3"})(["background:#fff;padding:20px;padding-bottom:0;border-radius:20px 20px 0px 0px;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;color:#212121;"]),m.ZP.div.withConfig({displayName:"styles__RestaurantWrapper",componentId:"sc-7zuvdf-4"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;height:max-content;align-items:flex-start;& > .options{display:flex;flex-direction:column;width:100%;height:max-content;margin-left:10px;}"]),m.ZP.div.withConfig({displayName:"styles__ImgWrapper",componentId:"sc-7zuvdf-5"}
29)(["height:60px;max-width:60px;min-width:60px;border-radius:50%;overflow:hidden;& > img{height:60px;width:60px;border-radius:50%;}"]),m.ZP.div.withConfig({displayName:"styles__NameWrapper",componentId:"sc-7zuvdf-6"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;& > .title{font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#212121;margin-right:37px;}& > button{display:flex;justify-content:center;align-items:center;min-width:32px;height:32px;background:#FFFFFF;border:1px solid #DEDEDE;border-radius:50%;position:absolute;right:0;top:0;}"]),m.ZP.span.withConfig({displayName:"styles__Address",componentId:"sc-7zuvdf-7"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#A8A8A8;margin-right:37px;margin-top:1px;min-height:18px;"]),m.ZP.span.withConfig({displayName:"styles__TimeWrapper",componentId:"sc-7zuvdf-8"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;margin-top:1px;"]),m.ZP.span.withConfig({displayName:"styles__Time",componentId:"sc-7zuvdf-9"})(["margin-top:6px;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:12px;line-height:14px;color:#A8A8A8;"]),m.ZP.span.withConfig({displayName:"styles__Distance",componentId:"sc-7zuvdf-10"})(["font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:12px;line-height:14px;color:#A8A8A8;white-space:nowrap;margin-left:5px;"]),m.ZP.div.withConfig({displayName:"styles__StyledModal",componentId:"sc-7zuvdf-11"})(["position:fixed;display:flex;flex-direction:row;top:0;right:0;bottom:0;left:0;z-index:500;padding:0px;width:100%;height:100%;overflow:auto;background:rgba(57,57,57,0.5);transition:opacity 0.3s linear;opacity:",";pointer-events:",";"],e=>e.isOpen?1:0,e=>e.isOpen?"all":"none"),m.ZP.div.withConfig({displayName:"styles__Overlay",componentId:"sc-7zuvdf-12"})(["position:fixed;top:0;right:0;bottom:0;left:0;"]),m.ZP.div.withConfig({displayName:"styles__Window",componentId:"sc-7zuvdf-13"})(["overflow:hidden;position:relative;background-color:#fffdf8;width:100%;height:100%;color:#393939;"]),m.ZP.span.withConfig({displayName:"styles__Close",componentId:"sc-7zuvdf-14"})(["position:absolute;color:$c-black;width:16px;height:16px;right:20px;top:20px;cursor:pointer;& > svg{transition:color 0.5s linear,transform 0.5s linear;}&:hover{& > svg{color:",";transform:scaleY(-1);}}"],e=>e.theme.colors.link),m.ZP.div.withConfig({displayName:"styles__Title",componentId:"sc-7zuvdf-15"})(["font-size:24px;font-weight:400;margin:0;"]),m.ZP.div.withConfig({displayName:"styles__Description",componentId:"sc-7zuvdf-16"})(["margin:10px 0;"]),m.ZP.div.withConfig({displayName:"styles__InputLabel",componentId:"sc-7zuvdf-17"})(["margin:0 0 10px;font-size:13px;font-weight:400;"]),m.ZP.div.withConfig({displayName:"styles__ActionWrapper",componentId:"sc-7zuvdf-18"})(["display:flex;justify-content:center;margin:30px 0 15px 0;"]),m.ZP.div.withConfig({displayName:"styles__AddressForm",componentId:"sc-7zuvdf-19"})(["display:flex;justify-content:space-between;position:relative;width:100%;div{width:100%;}"]),m.ZP.div.withConfig({displayName:"styles__DeliveryTitle",componentId:"sc-7zuvdf-20"})(["display:flex;justify-content:center;flex-direction:row;width:100%;color:#393939;margin-top:24px;margin-bottom:24px;font-size:22px;font-style:normal;font-weight:400;line-height:29px;letter-spacing:0px;text-align:center;"]),m.ZP.div.withConfig({displayName:"styles__ButtonSelfContener",componentId:"sc-7zuvdf-21"})(["display:flex;margin-top:8px;margin-bottom:8px;margin-left:16px;margin-right:16px;"]),m.ZP.div.withConfig({displayName:"styles__YandexMapContainer",componentId:"sc-7zuvdf-22"})(["height:calc(100% - 253px);"]),m.ZP.div.withConfig({displayName:"styles__UnavalablityInfo",componentId:"sc-7zuvdf-23"})(["display:flex;justify-content:flex-start;column-gap:6px;margin-top:16px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#212121;& > svg{min-width:28px;min-height:28px;}"]),n(45835),n(5010);let n0=e=>new Date(e).toLocaleDateString("en-CA",{timeZone:"Europe/Moscow"});function n1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"numeric",day:"numeric",timeZone:"Europe/Moscow"}
29),r=(e?.restaurant??e)?.schedule?.pickup?.filter?.(e=>n(e.date)===n(t)),i=r?.filter(e=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=e.startTime.split(":").map(Number),r=e.endTime.split(":").map(Number),i=60*n[0]+n[1],o=60*r[0]+r[1],a=new Date(t).valueOf(),s=n0(t),l=new Date(`${s}T${e.startTime}+03:00`).valueOf(),c=n0(t+864e5),u=new Date(`${i>o?c:s}T${e.endTime}+03:00`).valueOf();return a>=l&&a<=u})({startTime:e?.["time-start"],endTime:e?.["time-end"]},t));return!!i?.length}var n2=n(83454);function n4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n4(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let n6=e=>[e?.house,e?.block_type,e?.block].filter(Boolean).join(", ")||null;async function n5(e){let[t,n]=e;return fetch("https://suggestions.dadata.ru/suggestions/api/4_1/rs/geolocate/address",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Token "+(n2.env.NEXT_PUBLIC_DADATA_TOKEN??"6d258bc7aefaf57d422fd4b4c38c725897cfc3c0")},body:JSON.stringify({lat:t,lon:n,count:3,radius_meters:50,from_bound:{value:"street-house"},to_bound:{value:"street-house"}})}).then(e=>e.json()).then(e=>{let t=e?.suggestions?.[0],n=t?.data;return{lat:n?.geo_lat,lng:n?.geo_lon,country_code:n?.country_iso_code??null,postal_code:n?.postal_code??null,value:function(e){let t=e?.data,n=e?.value;return t?.city_with_type,t?.region_with_type,n}(t),city:n?.city??null,region:n?.region_with_type??null,country:n?.country??null,locality:n?.locality??null,street:n?.street_with_type??null,house:n6(n)}}).catch(e=>console.warn("error",e))}function n9(e){return{top:Math.trunc(e/2)-55,right:20}}function n7(e){return{bottom:20,right:20}}let n8=(e,t)=>{let n=new ymaps.control.GeolocationControl({data:{image:"/static/svg/delivery/geolocate.svg"},options:{position:n7(e)}});return"function"==typeof t&&n.events.add("click",t),n.events.add("parentchange",e=>{let{originalEvent:t}=e,r=function(e){for(let t of Object.keys(e))if(/^id_\d+$/.test(t)&&"string"==typeof e?.[t])return e?.[t];return null}(n),i=r?t?.newParent?._childElements?.[r]:null;i?.classList?.add?.("geolocation-control")}),n},re=e=>new ymaps.Placemark(e,{},{iconLayout:"default#image",iconImageHref:"static/svg/delivery/placemark.svg",iconImageSize:[37,50],iconImageOffset:[-13,-55],separateContainer:!0,syncOverlayInit:!0,draggable:!1,zIndex:9999});function rt(e){function t(e){t.superclass.constructor.call(this,e)}return ymaps.util.augment(t,ymaps.collection.Item,{onAddToMap(n){t.superclass.onAddToMap.call(this,n),this.getParent().getChildElement(this).then(e)},onRemoveFromMap(e){t.superclass.onRemoveFromMap.call(this,e)}}),new t}function rn(e){let{centerMark:t,address:n,isInZone:r}=e,i=!!(n?.value||n?.city||n?.street||n?.house||n?.lat&&n?.lng),o=!1!==r&&i?"static/svg/delivery/placemark.svg":"static/svg/delivery/placemark-gray.svg";o!==t.options.get("iconImageHref")&&t.options.set("iconImageHref",o)}let rr=function(e,t,n){let{coords:r}=e,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(()=>{let e=t;switch(t){case"selected":e="/club/static/svg/delivery/placemark-selected.svg";break;case"gray":e="/club/static/svg/delivery/placemark-restaurant-gray.svg";break;case"red":e="/club/static/svg/delivery/placemark-restaurant.svg"}return{href:e,selected:i}})(),a=window.ymaps;if(a)return new a.Placemark(r,{restaurant:n},{iconLayout:"default#image",iconImageHref:o.href,iconImageSize:o.selected?[62,70]:[44,50],iconImageOffset:o.selected?[-31,-60]:[-22,-45],separateContainer:!0,syncOverlayInit:!0})},ri=e=>{let{restaurants:t,complimentData:n=null,selectedRestaurantId:r=null}=e;return t.filter?.(e=>e?.["is-hidden"]===!1).map(e=>{let t=nV._A(e?.schedule?.pickup),i=nV.Rc(n?.product,e.id),o=e?.projects?.[0]?.["logo-small"];e?.projects?.[0]?.["logo-small-closed"];let a=n1(e),s=e?.["is-closed"]||!a?"gray":o||"red";return n3({mark:rr({coords:[e.lat,e.lng]},s,e,r===e.id),availability:t,hasProduct:i},r===e.id&&{selected:!0})})},ro=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(()=>{let n=e;switch(e){case"selected":n="/club/static/svg/delivery/placemark-selected.svg";break;case"gray":n="/club/static/svg/delivery/placemark-restaurant-gray.svg";break;case"red":n="/club/static/svg/delivery/placemark-restaurant.svg"}return{href:n,selected:t}})();return{iconImageHref:n.href,iconImageSize:n.selected?[62,70]:[44,50],iconImageOffset:n.selected?[-31,-60]:[-22,-45]}},ra=e=>{let{restaurant:t,selected:n=!0}=e,r=t?.projects?.[0]?.["logo-small"],i=n1(t);return n3({},ro(t?.["is-closed"]||!i?"gray":r||"red",n))},rs=[55.7552921,37.6176294];var rl=n(9556);let rc="cubic-bezier(0.23, 1, 0.32, 1)",ru=(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]);m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-6cipfb-0"})(["display:flex;align-items:center;justify-content:center;position:fixed;inset:0;z-index:505;height:100%;background-color:rgba(33,33,33,0.8);bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],ru,300,rc,300,300,e=>e.isOpen?"1":"0");let rd=(0,m.F4)(["from{transform:translateY(100%);
29box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]);m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-6cipfb-1"})(["display:flex;flex-direction:column;z-index:501;width:100%;position:fixed;bottom:0;height:fit-content;min-height:fit-content;padding:10px 20px;margin:0;background-color:#00000073;background:#FFFFFF;align-items:center;border-radius:20px 20px 0 0;box-shadow:0px 12px 52px rgba(57,57,57,0.16);animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transform:",";"],rd,300,rc,300,e=>e.isOpen?"unset":"translateY(100%)"),m.ZP.div.withConfig({displayName:"styles__ButtonsWrapper",componentId:"sc-6cipfb-2"})(["display:flex;justify-content:space-between;column-gap:12px;width:100%;"]),m.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-6cipfb-3"})(["height:50px;width:100%;display:flex;align-items:center;justify-content:center;column-gap:10px;font-weight:500;font-size:15px;line-height:15px;cursor:pointer;user-select:none;color:#FFFFFF;background:#EC4C41;border-radius:14px;border:none;&:active{background:#D9463C;}&:disabled{background:#F0F0F0;color:#A8A8A8;}"]);let rp=(0,m.F4)(["from{opacity:0;background:rgba(0,0,0,0);}to{opacity:1;background:rgba(0,0,0,0.25);}"]);function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-1vmfm5i-0"})(["position:fixed;inset:0;z-index:502;height:100%;background:#ffffff;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";background:rgba(0,0,0,",");display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;"],rp,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,300,e=>e.isOpen?"1":"0",e=>e.isOpen?"0.25":"0"),m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-1vmfm5i-1"})(["width:335px;height:260px;display:flex;flex-direction:column;align-items:center;background:#fff;overflow:hidden;border-radius:14px;padding:20px 12px 0 12px;& > .title{width:100%;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;text-align:center;}& > .subtitle{margin-top:14px;margin-bottom:20px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:19px;text-align:center;}& > .wrapper-button{width:100%;height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-left:0;border-right:0;border-bottom:0;font-size:15px;gap:6px;& > .button-cancel{background-color:transparent;color:black;border:none;margin-top:-5px;}}"]);let rm=n(27484),rg=n(70178),ry=n(29387);async function rv(e,t,n){let r=String((0,nZ.getCookie)("authToken")),i={lat:e,lng:t};if(n){let e=n?rm(n).tz("Europe/Moscow"):"";Object.assign(i,{date:e?e?.format():[]})}let o=new URLSearchParams(i).toString(),a=await (0,t0.ZP)(`channels/delivery-costs-for-point?${o}`,{headers:{"Content-Type":"application/json",Authorization:r}}).then(e=>e?.data?.map?.(e=>e?.["department-number"])||[]),s=ti.h.getState().restaurants.restaurants;return s?.length||(s=await (0,t0.ZP)("restaurants",{headers:{"Content-Type":"application/json",Authorization:r}}).then(e=>e?.data||[])),s.filter(e=>a.includes(e?.["inner-id"])).map(e=>rh(rh({},e),{},{index:a.findIndex(t=>t===e?.["inner-id"])})).sort((e,t)=>e.index-t.index)}function rb(e){let t=e?.split(":")?.map(Number);return!1===t?.every(Number.isInteger)?0:t?.[0]*60+t?.[1]}function rx(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"delivery",r=!!e?.["is-closed"],i=new Date().toISOString().slice(0,10),o=e?.schedule?.[n]?.filter?.(e=>e.date===i),a=!0;for(let e of o){let n=rb(e?.["time-start"]),i=rb(e?.["time-end"]),o=t;isNaN(Date.parse(t))||(o=new Date(t).toLocaleTimeString("ru-RU",{hour:"numeric",minute:"numeric"}));let s=rb(o),l=n<=s&&s<=i;a||=l&&!1===r}return a}rm.extend(rg),rm.extend(ry),new Date(0).setDate(30);let rw=e=>e?nC()(e).format("YYYY-MM-DD"):null,r_=(e,t)=>
29{if(!e||!Array.isArray(t)||!t.length)return t[0];let[n,r]=e.split(":").map(Number),i=60*n+r;return t.reduce((e,t)=>{let n=nl.sG(t)?.[1];if(!n)return e;let[r,o]=n.split(":").map(Number),a=nl.sG(e)?.[1],[s,l]=a?.split(":").map(Number)||[0,0];return Math.abs(60*r+o-i)<Math.abs(60*s+l-i)?t:e},t[0])},rC=async(e,t)=>{if(!e||!t?.length)return{synchronizedTime:e,needsSync:!1};let n=nl.sG(e)?.[0],r=nl.sG(e)?.[1],i=rw(n),o=t.find(e=>rw(e[0])===i),a=!!o,s=o?.[1]||[],l=s.some(e=>nl.sG(e)?.[1]===r);if(a&&l)return{synchronizedTime:s.find(e=>nl.sG(e)?.[1]===r)||e,needsSync:!1};if(a&&s.length)return{synchronizedTime:r_(r,s),needsSync:!0};let c=nC()().startOf("day"),u=t.filter(e=>nC()(e[0]).startOf("day").valueOf()>=c.valueOf()).sort((e,t)=>nC()(e[0]).valueOf()-nC()(t[0]).valueOf());if(u.length){let e=u[0][1];return{synchronizedTime:r&&e.length?r_(r,e):e[0],needsSync:!0}}return{synchronizedTime:null,needsSync:!0}},rS=async(e,t,n,r,i)=>{if(!e)return{synchronizedTime:e,needsSync:!1};if(!n||!n.length||!n[0]||!n[1])return rx(null,e,t)?{synchronizedTime:e,needsSync:!1}:{synchronizedTime:null,needsSync:!0};let o=(0,nl.Vg)(e,n,t,i||null,r||[]);return o===e?{synchronizedTime:e,needsSync:!1}:{synchronizedTime:o,needsSync:!0}},rE=async(e,t,n,r)=>e?"default"===t?rC(e,r.availableTimes||[]):rS(e,n,r.timeInterval,r.nonWorkingIntervals,r.pickupSchedule):{synchronizedTime:e,needsSync:!1},rT=(0,nR.P1)([e=>(0,nl.qG)(e.cart?.items)],e=>e);var rk=function(e){let{day:t,onChange:n,deliveryType:r,restaurantId:i}=e,o=(0,ti.v9)(rT),{restaurants:a}=(0,ti.v9)(e=>e.restaurants),{0:s,1:l}=(0,h.useState)(null),{0:c,1:u}=(0,h.useState)([]),{0:d,1:p}=(0,h.useState)(()=>(0,nl.Vg)(t,o,r,s,c)),f=(0,h.useRef)(null),m=(0,h.useMemo)(()=>a.find(e=>e.id===i),[a,i]);(0,h.useEffect)(()=>{m&&d&&o?.length&&(async()=>{let e=await rE(d,"preorder",r,{timeInterval:o,nonWorkingIntervals:c||[],pickupSchedule:s||[]});if(e.needsSync&&e.synchronizedTime&&e.synchronizedTime!==d){p(e.synchronizedTime),n(e.synchronizedTime);let t=nl.AA(e.synchronizedTime)?.[1];t&&(f.current=t)}})()},[m,d,r,o,c,s,n]),(0,h.useEffect)(()=>{if(d){let e=nl.AA(d)?.[1];e&&(f.current=e)}},[d]);let g=(0,h.useCallback)(e=>{if(console.log("=== handleChange CALLED ==="),console.log("newValue:",e),!e)return;let t=nC()(e).format("YYYY-MM-DD"),i=d?nC()(d).format("YYYY-MM-DD"):null;if(console.log("oldDateOnly:",i),console.log("newDateOnly:",t),i!==t){console.log("DATE CHANGED");let e=(0,nl.Kq)(t,c);console.log("dayIntervals:",e.map(e=>nC()(e).format("HH:mm")));let i=e.filter(e=>(0,nl.vq)(o,e));if(console.log("validIntervals after timeInterval:",i.map(e=>nC()(e).format("HH:mm"))),"self"===r&&s?.length&&console.log("validIntervals after pickupSchedule:",(i=i.filter(e=>s.some(t=>(0,nl.vq)(t,e)))).map(e=>nC()(e).format("HH:mm"))),i.length){let e=i[0];if(f.current){let t=i.find(e=>nC()(e).format("HH:mm")===f.current);if(t)e=t,console.log("Found exact match:",f.current);else{let t=(()=>{let[e,t]=f.current.split(":").map(Number);return 60*e+t})(),n=1/0;for(let r of i){let[i,o]=nC()(r).format("HH:mm").split(":").map(Number),a=Math.abs(60*i+o-t);a<n&&(n=a,e=r)}console.log("Found closest:",nC()(e).format("HH:mm"))}}p(e),n(e),f.current=nC()(e).format("HH:mm");return}console.log("No valid intervals for date:",t);return}let a=nC()(e).format("HH:mm");console.log("TIME CHANGED to:",a),f.current=a,p(e),n(e)},[d,o,r,s,c,n]);(0,h.useEffect)(()=>{let e=(0,nl.Vg)(t,o,r,s,c);if(e!==d){p(e);let t=nl.AA(e)?.[1];t&&(f.current=t)}},[t,o,r,s,c]),(0,h.useEffect)(()=>{let e=o?.[0],t=o?.[o.length-1];if(e&&t){let n=`filter[date-from]=${e}&filter[date-to]=${t}&filter[cart-type]=preorder&filter[delivery-type]=${"self"===r?"pickup":"delivery"}`;(0,t0.ZP)(`order-time-limits?${encodeURI(n)}`).then(e=>{e?.data?.length&&u(e.data)})}},[o,r]),(0,h.useEffect)(()=>{if("self"===r&&o?.length&&i){let e=new URLSearchParams({type:"pickup","date-from":o[0],"date-to":o[1]}).toString();(0,t0.ZP)(`/restaurants/${i}/schedule?${e}`).then(e=>{l(e?.data?.pickup?.map(nl.Bb)?.map?.(e=>[e?.["time-start-iso"],e?.["time-end-iso"]]))})}},[i,o,r]);let y=(0,h.useCallback)(e=>{console.log("dayFilter called for date:",e);let t=(0,nl.Kq)(e,c),n=t?.some?.(e=>nl.vq(o,e)),i=!1;return i="delivery"===r?n:(s?.some?.(t=>nl.vq(t,e))??!1)&&n,console.log(`dayFilter result for ${e}:`,i),i},[o,r,s,c]),v=(0,h.useCallback)(e=>{let t=(0,nl.vq)(o,e),n=(0,nl.j_)(e,c,"preorder");return"delivery"===r?t&&!n:s?.some?.(t=>nl.vq(t,e))&&t&&!n},[o,r,s,c]);return(0,C.jsx)(nL,{day:d,dayFilter:y,intervalFilter:v,onChange:g})};let rj=m.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1nozo89-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:50px;gap:8px;"]);m.ZP.div.withConfig({displayName:"styles__SelectDateStyled",componentId:"sc-1q0o3iy-0"})(["position:relative;display:flex;flex-direction:column;width:auto;"]);let rO=m.ZP.div.withConfig({displayName:"styles__SelectWrapper",componentId:"sc-1q0o3iy-1"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:54px;width:187px;border:1px solid #D9D9D9;border-radius:16px;padding-left:16px;padding-right:16px;cursor:pointer;position:relative;&.hovered{border-color:#376F62;}& > span{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:15px;line-height:22px;color:#212121;}& > button{border:none;background:inherit;margin-left:10px;}"]),rP=m.ZP.div.withConfig({displayName:"styles__TimesOptionsStyled",componentId:"sc-1q0o3iy-2"})(["display:",";justify-content:space-between;align-items:center;position:absolute;z-index:1;width:187px;max-height:378px;border-radius:16px;box-shadow:0px 2px 16px 0px #00000024;position:absolute;top:60px;left:0;overflow-y:auto;background:white;font-weight:400;font-size:14px;line-height:18px;&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{background:#f0f0f0;border-radius:10px;margin-top:12px;margin-bottom:12px;margin-right:12px;}&::-webkit-scrollbar-thumb{width:5px;background:#d9d9d9;border-radius:10px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}"],e=>e.isDisplay?"block":"none"),rI=m.ZP.div.withConfig({displayName:"styles__DataTimesStyled",componentId:"sc-1b0k7pn-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:left;min-height:54px;width:100%;height:auto;"]),rN=m.ZP.div.withConfig({displayName:"styles__SelectTimeItem",componentId:"sc-1b0k7pn-1"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:42px;padding-left:12px;padding-right:12px;cursor:pointer;background-color:",";&:hover{background-color:#F5F5F5;}&:active,&:focus{background-color:#DEDEDE;}"],e=>{let{isChecked:t}=e;return t?"#DEDEDE;":"transparent"});var rD=function(e){let{value:t,data:n,onChange:r}=e;return console.log("DataTimes - data ",n),console.log("DataTimes - value ",t),(0,C.jsx)(rI,{children:n?.map((e,n)=>C.jsx(rN,{isChecked:e.id===t||e.label===t,onClick:()=>r(n),children:e.label},e.value))})};let rM=e=>e.stopPropagation();var rA=function(e){let{date:t,times:n,onChange:r}=e,{0:i,1:o}=(0,h.useState)(!1),a=(0,h.useCallback)(async()=>{o(!0)},[o]),s=(0,h.useCallback)(async e=>{console.log(e,"onChangeLocal"),o(!1),r(e)},[r]),l=(0,h.useMemo)(()=>
29{if(null!==t){let[e,n,r]=(0,nl.sG)(t)||[];return`${n} - ${r}`}return"Время"},[t]),c=(0,h.useCallback)(async()=>{o(!1)},[]);return(0,C.jsxs)(rO,{onClick:a,className:`${i?"hovered":""}`,children:[(0,C.jsx)("span",{children:l}),(0,C.jsx)("button",{children:(0,C.jsx)(ns,{})}),(0,C.jsx)(rP,{isDisplay:i,onMouseLeave:c,onClick:rM,children:(0,C.jsx)(rD,{value:l,data:n,onChange:s})})]})};let rL=m.ZP.div.withConfig({displayName:"styles__SelectWrapper",componentId:"sc-16xwmij-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:54px;width:195px;border:1px solid #D9D9D9;border-radius:16px;padding-left:15px;padding-right:15px;cursor:pointer;&.hovered{border-color:#376F62;}& > span{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:15px;line-height:22px;color:#212121;}& > button{border:none;background:inherit;margin-left:8px;}"]),rR=m.ZP.div.withConfig({displayName:"styles__TimesOptionsStyled",componentId:"sc-16xwmij-1"})(["display:",";justify-content:space-between;align-items:center;position:absolute;z-index:1;width:195px;max-height:378px;border-radius:16px;box-shadow:0px 2px 16px 0px #00000024;position:absolute;top:60px;left:0;overflow-y:auto;background:white;font-weight:400;font-size:14px;line-height:18px;"],e=>e.isDisplay?"flex":"none"),rZ=e=>e.stopPropagation();var rz=function(e){let{date:t,activeDayId:n,days:r,onChange:i}=e,{0:o,1:a}=(0,h.useState)(!1),s=(0,h.useCallback)(async()=>{a(!0)},[a]),l=(0,h.useCallback)(async e=>{console.log(e,"onChangeLocal"),a(!1),i(e)},[i]),c=(0,h.useMemo)(()=>{if(null!==t){let[e,n,r]=(0,nl.sG)(t)||[],i=(0,nl.K9)(e,"ru"),o=nC()(e).hour(0).format("DD.MM");return`${i}, ${o}`}return"Дата"},[t,n]),u=(0,h.useCallback)(async()=>{a(!1)},[]);return(0,C.jsxs)(rL,{onClick:s,className:`${o?"hovered":""}`,children:[(0,C.jsx)("span",{children:c}),(0,C.jsx)("button",{children:(0,C.jsx)(ns,{})}),(0,C.jsx)(rR,{isDisplay:o,onMouseLeave:u,onClick:rZ,children:(0,C.jsx)(rD,{value:n,data:r,onChange:l})})]})},rF=function(e){let{date:t,activeDayId:n,days:r,times:i,onClickDay:o,onClickTime:a}=e;return(0,C.jsxs)(rj,{children:[(0,C.jsx)(rz,{date:t,activeDayId:n,days:r,onChange:o}),(0,C.jsx)(rA,{date:t,times:i,onChange:a})]})};let rB=(e,t)=>{if(!e||!Array.isArray(t)||!t.length)return t[0];let[n,r]=e.split(":").map(Number),i=60*n+r;return t.reduce((e,t)=>{let n=nl.sG(t)?.[1];if(!n)return e;let[r,o]=n.split(":").map(Number),a=nl.sG(e)?.[1],[s,l]=a?.split(":").map(Number)||[0,0];return Math.abs(60*r+o-i)<Math.abs(60*s+l-i)?t:e},t[0])};var rH=function(e){let{day:t,onChange:n,restaurant:r}=e,{0:i,1:o}=(0,h.useState)([]),{0:a,1:s}=(0,h.useState)(t),{0:l,1:c}=(0,h.useState)(nl.sG(t)?.[0]),{0:u,1:d}=(0,h.useState)(()=>nl.sG(t)?.[1]);(0,h.useEffect)(()=>{t&&t!==a&&n(t)},[t,a,n]),(0,h.useEffect)(()=>{a&&t!==a&&n(a)},[a,t,n]),(0,h.useEffect)(()=>{(0,nl.Fk)({restaurant:r}).then(e=>{o(e)})},[r]),(0,h.useEffect)(()=>{(0,nl.Fk)({restaurant:r}).then(e=>{if(o(e),!a&&e?.length){let t=e[0],r=t?.[1]?.[0];r&&(s(r),c(t[0]),d(nl.sG(r)?.[1]),n(r))}})},[r,n]),(0,h.useEffect)(()=>{i.length&&a&&(async()=>{let e=await rE(a,"default","self",{availableTimes:i});if(e.needsSync&&e.synchronizedTime&&e.synchronizedTime!==a){s(e.synchronizedTime);let t=nl.sG(e.synchronizedTime)?.[0],n=nl.sG(e.synchronizedTime)?.[1];t&&c(t),n&&d(n)}})()},[i,a]);let p=(0,h.useMemo)(()=>i.map(e=>e[0]).map(e=>{let t=nC()(e).hour(0).format("DD.MM");return{id:e,label:`${(0,nl.K9)(e,"ru")}, ${t}`}}),[i]),f=(0,h.useMemo)(()=>i.find(e=>e[0]===l)?.[1]||[],[i,l]),m=(0,h.useMemo)(()=>f.map(e=>({value:e,label:(0,nl.oC)((0,nl.vN)(e))})),[f]);(0,h.useEffect)(()=>{if(!p||!p?.length)return;let e=(0,nl.su)(l,p);-1!==e&&p[e]?.id!==l&&c(p[e].id)},[p,l]);let g=(0,h.useCallback)(e=>{let t=f[e];d(nl.sG(t)?.[1]),s(t)},[f]),y=(0,h.useCallback)(e=>{let t;let n=i[e]?.[0];if(!n)return;let r=i.find(e=>e[0]===n)?.[1]||[],o=u||nl.sG(a)?.[1];c(n),(t=r.find(e=>nl.sG(e)?.[1]===o)||(r.length?rB(o,r):r[0]))&&(d(nl.sG(t)?.[1]),s(t))},[i,u,a]);return(0,C.jsx)(rF,{date:a,activeDayId:l,days:p,times:m,onClickDay:y,onClickTime:g})};function r$(){return(0,C.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.40724 0.724544C9.93059 0.201193 10.7791 0.201193 11.3025 0.724544L13.2748 2.69689C13.7982 3.22024 13.7982 4.06876 13.2748 4.59211L5.09513 12.7718C4.90885 12.9581 4.67179 13.0853 4.41359 13.1376L1.9402 13.6387C1.4999 13.7279 1.04419 13.5905 0.726521 13.2728C0.408854 12.9552 0.271492 12.4995 0.360685 12.0591L0.861725 9.58576C0.91403 9.32756 1.04128 9.0905 1.22756 8.90422L9.40724 0.724544ZM1.96297 10.8994L2.04914 10.474L3.52538 11.9502L3.09999 12.0364L1.67413 12.3252L1.96297 10.8994ZM4.72105 11.2506L2.7487 9.2783L8.50172 3.52529L10.4741 5.49763L4.72105 11.2506ZM11.4217 4.55002L12.3272 3.6445L11.3796 2.69689L11.3025 2.61977L10.3548 1.67216L9.44933 2.57768L11.4217 4.55002Z",fill:"#48907F"})})}var rU=function(e){let{value:t,isCurrentTime:n,autoTime:r,onChange:i,deliveryType:o,restaurantId:a,setIsCurrentTime:s,isCTALoading:l}=e,{0:c,1:u}=(0,h.useState)(n?"current-time":"by-time"),{restaurants:d}=(0,ti.v9)(e=>e.restaurants),p=(0,ti.v9)(e=>e.cart?.type),f=(0,h.useMemo)(()=>"delivery"===o?(0,C.jsxs)(C.Fragment,{children:["Доставим ",l?(0,C.jsx)(nn.Z,{}):r]}):(0,C.jsxs)(C.Fragment,{children:["Приготовим ",l?(0,C.jsx)(nn.Z,{}):r]}),[o,r,l]),m=(0,h.useMemo)(()=>"delivery"===o?"Мы автоматически выбрали оптимальный ресторан для вашего заказа, чтобы доставить его как можно быстрее.":"Время доставки может отличаться в зависимости от выбранного адреса.",[o]),g=(0,h.useMemo)(()=>d.find(e=>e?.id===a),[d,a]),y=(0,h.useCallback)(()=>{i({action:"restaurant-edit"})},[i]),v=(0,h.useCallback)(e=>{i({action:"set-time",formData:e})},[i]),b=(0,h.useCallback)(e=>{u(e),s("current-time"===e),"current-time"===e&&i({action:"set-current-time"})},[u,s,t]);return(0,C.jsxs)(t9,{children:["default"===p&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(nt,{value:c,onChange:b}),"current-time"===c?(0,C.jsxs)(t7,{children:[(0,C.jsx)("span",{className:"title",children:f}),(0,C.jsx)("span",{className:"subtitle",children:m})]}):(0,C.jsx)(rH,{day:t,onChange:v,restaurant:g})]}),"preorder"===p&&(0,C.jsx)(rk,{day:t,onChange:v,deliveryType:o,restaurantId:a}),(0,C.jsxs)(t8,{children:[(0,C.jsx)("span",{className:"restaurant-description",children:"Из ресторана:"}),(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{className:"restaurant-title",children:l?(0,C.jsx)(nn.Z,{}):g?.title??""}),("default"===p||"preorder"===p&&"self"===o)&&(0,C.jsxs)("button",{onClick:y,children:[(0,C.jsx)(r$,{}),(0,C.jsx)("span",{children:"Изменить"})]})]})]})]})};let rY="cubic-bezier(0.23, 1, 0.32, 1)",rG=(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]);m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-1pjp6yc-0"})(["position:fixed;display:flex;flex-direction:row;inset:0;z-index:501;height:100%;background-color:#00000073;bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],rG,300,rY,300,300,e=>e.isOpen?"1":"0");let rV=(0,m.F4)(["from{transform:translateY(100%);}to{transform:translateY(0%);}"]);m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-1pjp6yc-1"})(["display:flex;flex-direction:column;inset:0;z-index:509;height:max-content;bottom:0;background-color:transparent;align-items:center;align-self:center;position:relative;width:100vw;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all;transition-duration:","ms;transform:",";& > .modal-body{border-radius:20px;background-color:#FFFFFF;width:1200px;height:732px;overflow:hidden;display:flex;flex-direction:row;}"],rV,300,rY,300,e=>e.isOpen?"unset":"translateY(100%)"),m.ZP.div.withConfig({displayName:"styles__Blind",componentId:"sc-1pjp6yc-2"})(['display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:transparent;min-height:16px;width:100%;&:after{background-color:#A8A8A8;border-radius:16px;height:4px;width:36px;content:" ";}']),m.ZP.span.withConfig({displayName:"styles__TitleWrapper",componentId:"sc-1pjp6yc-3"})(["background:#fff;padding:20px;padding-bottom:0;border-radius:20px 20px 0px 0px;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;color:#212121;"]),m.ZP.div.withConfig({displayName:"styles__RestaurantWrapper",componentId:"sc-1pjp6yc-4"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;height:max-content;align-items:flex-start;& > .options{display:flex;flex-direction:column;width:100%;height:max-content;margin-left:10px;}"]),m.ZP.div.withConfig({displayName:"styles__ImgWrapper",componentId:"sc-1pjp6yc-5"}
29)(["height:60px;max-width:60px;min-width:60px;border-radius:50%;overflow:hidden;& > img{height:60px;width:60px;border-radius:50%;}"]),m.ZP.div.withConfig({displayName:"styles__NameWrapper",componentId:"sc-1pjp6yc-6"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;& > .title{font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:#212121;margin-right:37px;}& > button{display:flex;justify-content:center;align-items:center;min-width:32px;height:32px;background:#FFFFFF;border:1px solid #DEDEDE;border-radius:50%;position:absolute;right:0;top:0;}"]),m.ZP.span.withConfig({displayName:"styles__Address",componentId:"sc-1pjp6yc-7"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#A8A8A8;margin-right:37px;margin-top:1px;min-height:18px;"]),m.ZP.span.withConfig({displayName:"styles__TimeWrapper",componentId:"sc-1pjp6yc-8"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;margin-top:1px;"]),m.ZP.span.withConfig({displayName:"styles__Time",componentId:"sc-1pjp6yc-9"})(["margin-top:6px;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:12px;line-height:14px;color:#A8A8A8;"]),m.ZP.span.withConfig({displayName:"styles__Distance",componentId:"sc-1pjp6yc-10"})(["font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:12px;line-height:14px;color:#A8A8A8;white-space:nowrap;margin-left:5px;"]),m.ZP.div.withConfig({displayName:"styles__StyledModal",componentId:"sc-1pjp6yc-11"})(["position:fixed;display:flex;flex-direction:row;top:0;right:0;bottom:0;left:0;z-index:500;padding:0px;width:100%;height:100%;overflow:auto;background:rgba(57,57,57,0.5);transition:opacity 0.3s linear;opacity:",";pointer-events:",";"],e=>e.isOpen?1:0,e=>e.isOpen?"all":"none"),m.ZP.div.withConfig({displayName:"styles__Overlay",componentId:"sc-1pjp6yc-12"})(["position:fixed;top:0;right:0;bottom:0;left:0;"]),m.ZP.div.withConfig({displayName:"styles__Window",componentId:"sc-1pjp6yc-13"})(["overflow:hidden;position:relative;background-color:#fffdf8;width:100%;height:100%;color:#393939;"]),m.ZP.span.withConfig({displayName:"styles__Close",componentId:"sc-1pjp6yc-14"})(["position:absolute;color:$c-black;width:16px;height:16px;right:20px;top:20px;cursor:pointer;& > svg{transition:color 0.5s linear,transform 0.5s linear;}&:hover{& > svg{color:",";transform:scaleY(-1);}}"],e=>e.theme.colors.link),m.ZP.div.withConfig({displayName:"styles__Title",componentId:"sc-1pjp6yc-15"})(["font-size:24px;font-weight:400;margin:0;"]),m.ZP.div.withConfig({displayName:"styles__Description",componentId:"sc-1pjp6yc-16"})(["margin:10px 0;"]),m.ZP.div.withConfig({displayName:"styles__InputLabel",componentId:"sc-1pjp6yc-17"})(["margin:0 0 10px;font-size:13px;font-weight:400;"]),m.ZP.div.withConfig({displayName:"styles__ActionWrapper",componentId:"sc-1pjp6yc-18"})(["display:flex;justify-content:center;margin:30px 0 15px 0;"]),m.ZP.div.withConfig({displayName:"styles__AddressForm",componentId:"sc-1pjp6yc-19"})(["display:flex;justify-content:space-between;position:relative;width:100%;div{width:100%;}"]),m.ZP.div.withConfig({displayName:"styles__DeliveryTitle",componentId:"sc-1pjp6yc-20"})(["display:flex;justify-content:center;flex-direction:row;width:100%;color:#393939;margin-top:24px;margin-bottom:24px;font-size:22px;font-style:normal;font-weight:400;line-height:29px;letter-spacing:0px;text-align:center;"]),m.ZP.div.withConfig({displayName:"styles__ButtonSelfContener",componentId:"sc-1pjp6yc-21"})(["display:flex;margin-top:8px;margin-bottom:8px;margin-left:16px;margin-right:16px;"]);let rq=m.ZP.div.withConfig({displayName:"styles__YandexMapContainer",componentId:"sc-1pjp6yc-22"})(["height:100%;width:770px;opacity:",";& .geolocation-control > ymaps > ymaps{width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:14px;& > ymaps:first-child{width:40px;height:40px;}}& .copyrights-promo{display:none;}.ymaps-2-1-79-gototaxi,.ymaps-2-1-79-gototech{display:none !important;}"],e=>e.isShow?"1":"0");m.ZP.div.withConfig({displayName:"styles__UnavalablityInfo",componentId:"sc-1pjp6yc-23"})(["display:flex;justify-content:flex-start;column-gap:6px;margin-top:16px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#212121;& > svg{min-width:28px;min-height:28px;}"]),m.ZP.div.withConfig({displayName:"styles__DeliveryViewStyled",componentId:"sc-1pjp6yc-24"})(["width:430px;height:100%;padding:20px;
29display:flex;gap:15px;flex-direction:column;"]);let rW=m.ZP.button.withConfig({displayName:"styles__ButtonBackStyled",componentId:"sc-yfqh7e-0"})(["height:50px;width:50px;background-color:#fff;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:row;border:1px solid #e5e5e5;box-shadow:2px 2px 10px rgba(0,0,0,0.15);transition:all 0.2s ease-out;cursor:pointer;:active{background-color:#e7e7e7;}"]);var rX=(0,h.forwardRef)(function(e,t){let{onClick:n}=e;return console.log("ref ",t),t.current?J.createPortal((0,C.jsx)(rW,{onClick:n,children:(0,C.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M0.346728 0.346728C0.809033 -0.115576 1.55858 -0.115576 2.02088 0.346728L8 6.32585L13.9791 0.346732C14.4414 -0.115573 15.191 -0.115572 15.6533 0.346732C16.1156 0.809037 16.1156 1.55858 15.6533 2.02088L9.67416 8L15.6533 13.9791C16.1156 14.4414 16.1156 15.191 15.6533 15.6533C15.191 16.1156 14.4414 16.1156 13.9791 15.6533L8 9.67416L2.02088 15.6533C1.55858 16.1156 0.809037 16.1156 0.346732 15.6533C-0.115572 15.191 -0.115573 14.4414 0.346732 13.9791L6.32585 8L0.346728 2.02088C-0.115576 1.55858 -0.115576 0.809033 0.346728 0.346728Z",fill:"#212121"})})}),t.current):null});let rK=m.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-1odwe53-0"})(["height:50px;width:50px;background-color:#fff;border:1px solid #e5e5e5;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:row;box-shadow:2px 2px 10px rgba(0,0,0,0.15);transition:all 0.2s ease-out;cursor:pointer;:active{background-color:#e7e7e7;}"]),rJ=m.ZP.div.withConfig({displayName:"styles__WrapperButton",componentId:"sc-1odwe53-1"})(["width:50px;height:110px;background-color:transparent;& > button:last-child{margin-top:10px;}"]);var rQ=(0,h.forwardRef)(function(e,t){let{onClick:n}=e,r=(0,h.useCallback)(()=>n(1),[n]),i=(0,h.useCallback)(()=>n(-1),[n]);return t.current?J.createPortal((0,C.jsxs)(rJ,{children:[(0,C.jsx)(rK,{onClick:r,children:(0,C.jsx)(nW.Z,{})}),(0,C.jsx)(rK,{onClick:i,children:(0,C.jsx)(nX.Z,{})})]}),t.current):null}),r0=n(65797);function r1(e){let t=Math.max(0,Math.ceil(Math.log2(e.container.getElement().clientHeight/100)));return e.options.set("minZoom",t),e.getZoom()<t&&e.setZoom(t),()=>{e.options.set("minZoom",0)}}var r2=function(e){let{value:t,onChange:n,setIsSearchingAddress:r}=e,i=(0,h.useRef)(),o=(0,h.useRef)(null),{0:a,1:s}=(0,h.useState)({current:null}),{0:l,1:c}=(0,h.useState)({current:null}),u=(0,h.useRef)(),{0:d,1:p}=(0,h.useState)(()=>({}));(0,h.useRef)({});let{0:f,1:m}=(0,h.useState)("Укажите адрес"),{0:g,1:y}=(0,h.useState)(!1);(0,h.useRef)(!1);let{0:v,1:b}=(0,h.useState)([]),{0:x,1:w}=(0,h.useState)(null),_=(0,h.useRef)([]),S=(0,h.useRef)([]),E=(0,h.useRef)(!0),T=(0,h.useRef)(null),k=(0,h.useRef)(!1),j=(0,h.useRef)(!1);(0,h.useRef)(0),(0,h.useRef)(null);let O=(0,h.useRef)(!1),P=(0,h.useRef)(null),I=(0,h.useCallback)(async e=>{let t,{center:r}=e,i=await n5(r);console.log("updateAddress - result ",i);let[o,a]=r;w(t=!!(Number.isFinite(o)&&Number.isFinite(a)&&_.current?.length)&&(0,t1.c9)(o,a,_.current));let s={value:i?.value??"",lat:Number.isFinite(Number.parseFloat(i?.lat))?Number.parseFloat(i?.lat):o,lng:Number.isFinite(Number.parseFloat(i?.lng))?Number.parseFloat(i?.lng):a,city:i?.city,street:i?.street,house:i?.house,"is-private-house":i?.private,isOutOfZone:!t};rn({centerMark:u.current,address:s,isInZone:t}),n({action:"set-coords-map",formData:s}),p(s),T.current=r},[p,n,_]),N=(0,h.useCallback)(async()=>{let e;let t=window.ymaps;if(!t||!i.current||O.current)return;O.current=!0,r(!0);try{let n=await t.geolocation.get({provider:"browser",mapStateAutoApply:!1}),r=n?.geoObjects?.get(0);e=r?.geometry?.getCoordinates?.()}catch(e){console.warn("geolocation error",e)}if(e||(e=rs),!Array.isArray(e)||e.length<2)return;let[o,a]=e,s=v.length?v:_.current,l=!!(Number.isFinite(o)&&Number.isFinite(a)&&s?.length)&&(0,t1.c9)(o,a,s);w(l);let c=await n5([o,a]),d={value:c?.value??"",lat:o,lng:a,city:c?.city,street:c?.street,house:c?.house,"is-private-house":c?.private,isOutOfZone:!l},f=u.current;
29if(f){f.geometry.setCoordinates([o,a]);let e=d?.house||d?.isOutOfZone;rn({centerMark:f,address:d,isInZone:e&&l})}p(d),n({action:"set-coords-map",formData:d}),await I({center:[o,a]}),k.current=!0,setTimeout(()=>{i.current&&!O.current&&i.current.setZoom(14,{checkZoomRange:!1})},500),T.current=[o,a],setTimeout(()=>{k.current=!1},1e3),r(!1),setTimeout(()=>{O.current=!1},1200)},[n,_,v,I]);(0,h.useEffect)(()=>{(0,t0.ZP)("channels/global-delivery-zone").then(e=>{let t=e?.data?.[0];if(Array.isArray(t?.coordinates)){let e=t.coordinates.map(e=>[e.latitude,e.longitude]);_.current=e,b(e)}})},[]),(0,h.useEffect)(()=>{let e=u.current,t=e?.geometry?.getCoordinates();if(!Array.isArray(t))return;let[n,r]=t;if(Number.isFinite(n)&&Number.isFinite(r)&&_.current?.length){w((0,t1.c9)(n,r,_.current));return}w(!1)},[d,_]),(0,h.useEffect)(()=>{if(!1==!!window?.ymaps)return;let e=t?.center?.filter(Number.isFinite)?.length===2?t?.center:rs,n=n8(o.current?.offsetHeight,N),a=re(e);Object.assign(u,{current:a});let l=new ymaps.Map(o.current,{center:e,controls:[n,"zoomControl"],zoom:14,behaviors:["drag","dblClickZoom","multiTouch"]},{zoomDuration:0,yandexMapDisablePoiInteractivity:!0,suppressMapOpenBlock:!0});r1(l);let d=e=>{var t=e.get("delta"),n=l.getZoom()+(t>0?1:-1);n=Math.min(Math.max(n,l.options.get("minZoom")||0),l.options.get("maxZoom")||23),l.setZoom(n),e.preventDefault()};l.events.add("wheel",d),ymaps.option.presetStorage.add("islands#geolocationIcon",{iconLayout:"default#image",iconImageHref:"static/svg/delivery/mark-geolocation.svg"}),i.current=l,l.geoObjects.add(a);let p=rt(e=>s({current:e}));l.controls.add(p,{float:"none",position:{top:20,right:20}});let f=rt(e=>c({current:e}));l.controls.add(f,{float:"none",position:n9(o.current?.offsetHeight)}),l.controls.remove("routeButtonControl");let h=()=>{let e=o.current?.offsetHeight;!1!==Number.isFinite(e)&&(f.options.set("position",n9(e)),n.options.set("position",n7(e)))},m=!1,g=()=>{if(k.current||O.current||m||!u.current)return;let{globalPixelCenter:e,zoom:t}=l.action.getCurrentState(),n=l.options.get("projection").fromGlobalPixels(e,t);m=!0,u.current.geometry.setCoordinates(n),m=!1;let i=setTimeout(()=>{r(!0)},100);l.events.add("actionend",()=>{clearTimeout(i),r(!1)})},y=async e=>{if(k.current||O.current){k.current=!1;return}r1(l);let t=e.get("newCenter"),n=e.get("oldCenter");if(JSON.stringify(t)!==JSON.stringify(n)){g(),h(),r(!0);try{await I({center:t})}finally{r(!1)}}};l.events.add("actiontick",g);let v=()=>{k.current||O.current||(j.current=!0)};l.events.add("actionbegin",v);let b=()=>{if(k.current||O.current){k.current=!1;return}};return l.events.add("actionend",b),l.events.add("boundschange",y),()=>{P.current&&clearTimeout(P.current),l.destroy(),l.events.remove("actiontick",g),l.events.remove("boundschange",y),l.events.remove("actionbegin",v),l.events.remove("actionend",b),l.events.remove("wheel",d),l.geoObjects.removeAll()}},[]),(0,h.useEffect)(()=>{if(!i.current||!v?.length)return;S.current&&i.current.geoObjects.remove(S.current);let e=new ymaps.GeoObject({geometry:{type:"Polygon",coordinates:[v]}},{strokeColor:"#5a5a2264",fillColor:"#5a5a2220",strokeWidth:2});i.current.geoObjects.add(e),S.current=e},[v]),(0,h.useEffect)(()=>{let e=u.current,n=i.current;if(!n||!e)return;let r=Array.isArray(t?.center)&&t.center.filter(Number.isFinite)?.length===2?t.center:rs;if(!(t.address?.house||t.address?.dom||t.address?.isOutOfZone)){E.current||rn({centerMark:e,address:{value:""},isInZone:!1}),r&&(T.current=r),E.current=!1;return}let[o,a]=r,s=!!(Number.isFinite(o)&&Number.isFinite(a)&&_.current?.length)&&(0,t1.c9)(o,a,_.current);if(w(s),rn({centerMark:e,address:t.address??{value:""},isInZone:s}),console.log("useeffect - isUserInteractingRef.current ",j.current),j.current||O.current||n.setCenter(r),j.current=!1,r&&(!T.current||r[0]!==T.current[0]||r[1]!==T.current[1])&&!E.current){if(j.current);else{let e=!0,t=T.current;if(t)try{let n=(0,r0.c)([t[0],t[1]],r);Number.isFinite(n)&&n<30&&(e=!1)}catch(e){}if(e){k.current=!0;try{n.panTo(r,{flying:!1,duration:300})}catch(e){}window.setTimeout(()=>{k.current=!1},400)}else T.current=r}}r&&(T.current=r),E.current=!1},[t,v]);let D=(0,h.useCallback)(()=>{n({action:"close-from-map"})},[n]),M=(0,h.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=i.current;t&&!O.current&&t.setZoom(t.getZoom()+e,{checkZoomRange:!0})},[]);return(0,C.jsxs)(rq,{ref:o,style:{width:770},isShow:!!_.current?.length,children:[(0,C.jsx)(rX,{ref:a,onClick:D}),(0,C.jsx)(rQ,{ref:l,onClick:M})]})},r4=function(e){let{value:t,type:n,onChange:r,deliveryType:i}=e,o=(0,h.useRef)(),a=(0,h.useRef)(),s=(0,h.useRef)(),{0:l,1:c}=(0,h.useState)({current:null}),{0:u,1:d}=(0,h.useState)({current:null}),{0:p,1:f}=(0,h.useState)([]),m=(0,h.useRef)(),{0:g,1:y}=(0,h.useState)(()=>({})),{0:v,1:b}=(0,h.useState)(!0),x=(0,h.useRef)(!1),w=(0,h.useCallback)(async e=>{let{center:t}=e,n=await n5(t),r={value:n?.value??"",lat:parseFloat(n?.lat)??0,lng:parseFloat(n?.lng)??0,city:n?.city,street:n?.street,dom:n?.house};rn({centerMark:m.current,address:r}),y(r)},[y]);(0,h.useEffect)(()=>{(0,t0.ZP)("channels/global-delivery-zone").then(e=>{let t=e?.data?.[0];Array.isArray(t?.coordinates)&&f(t.coordinates.map(e=>[e.latitude,e.longitude]))})},[]);let _=()=>{let e;if(!1==!!window?.ymaps)return;let r=t?.center?.filter(Number.isFinite)?.length===2?t?.center:rs;return e="address"===n?re(r):ri({restaurants:[t.restaurant]}
29)?.[0]?.mark,{center:r,centerMark:e}};(0,h.useEffect)(()=>{let e=m.current,t=e?.geometry?.getCoordinates();if(!Array.isArray(t))return;let[n,r]=t;if(n&&r&&p.length){b((0,t1.c9)(n,r,p));return}b(!1)},[g,p]),(0,h.useEffect)(()=>{if(!1==!!window?.ymaps||x.current)return;let{center:e,centerMark:t}=_()||{},r=n8(s.current.offsetHeight);Object.assign(m,{current:t});let i=new ymaps.Map(s.current,{center:e,controls:[r,"zoomControl"],zoom:13,behaviors:["drag","dblClickZoom","multiTouch"]},{yandexMapDisablePoiInteractivity:!0,suppressMapOpenBlock:!0});r1(i),ymaps.option.presetStorage.add("islands#geolocationIcon",{iconLayout:"default#image",iconImageHref:"static/svg/delivery/mark-geolocation.svg"}),o.current=i,i.geoObjects?.add?.(t);let a=rt(e=>c({current:e}));i.controls.add(a,{float:"none",position:{top:20,right:20}});let l=rt(e=>d({current:e}));i.controls.add(l,{float:"none",position:n9(s.current.offsetHeight)}),i.controls.remove("routeButtonControl");let u=e=>{var t=e.get("delta"),n=i.getZoom()+(t>0?1:-1);n=Math.min(Math.max(n,i.options.get("minZoom")||0),i.options.get("maxZoom")||23),i.setZoom(n),e.preventDefault()},p=async e=>{r1(i)};return i.events.add("wheel",u),i.events.add("boundschange",p),"address"===n&&w({center:e}),x.current=!0,()=>{i.destroy(),i.events.remove("boundschange",p),i.events.remove("wheel",u),x.current=!1}},[]),(0,h.useEffect)(()=>{if(o.current&&p?.length){if(a.current)a.current.geometry.setCoordinates([p]);else{let e=new ymaps.GeoObject({geometry:{type:"Polygon",coordinates:[p]}},{strokeColor:"#5a5a2264",fillColor:"#5a5a2220",strokeWidth:2});o.current.geoObjects.add(e),a.current=e}}},[p]),(0,h.useEffect)(()=>{if(!o.current)return;let e=o.current,{center:t,centerMark:n}=_()||{};Object.assign(m,{current:n});let r=m.current;r&&!r.getParent?.()&&(e.geoObjects.removeAll(),e.geoObjects?.add?.(r),a.current&&!a.current.getParent()&&e.geoObjects.add(a.current)),e.setCenter(t)},[n]),(0,h.useEffect)(()=>{if(!o.current)return;let e=o.current,{center:t}=_()||{};e.setCenter(t);let n=m.current;n?.geometry?.setCoordinates(t)},[t]),(0,h.useMemo)(()=>{let e=m.current,t=e?.geometry?.getCoordinates();if(!Array.isArray(t))return;let[n,r]=t;if(n&&r&&p.length){b((0,t1.c9)(n,r,p));return}b(!1)},[p,t]);let S=(0,h.useCallback)(()=>{r({action:"close-from-map"})},[r]),E=(0,h.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=o.current;t&&t.setZoom(t.getZoom()+e,{checkZoomRange:!0})},[]);return(0,C.jsxs)(rq,{ref:s,style:{width:770},isShow:!0,children:[(0,C.jsx)(rX,{ref:l,onClick:S}),(0,C.jsx)(rQ,{ref:u,onClick:E})]})};function r3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r3(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var r5=function(e){let{value:t,type:n,onChange:r,deliveryType:i,mapRestaurantIdList:o}=e,a=(0,h.useRef)(),s=(0,h.useRef)(),l=(0,h.useRef)([]),{0:c,1:u}=(0,h.useState)({current:null}),{0:d,1:p}=(0,h.useState)({current:null}),{restaurants:f}=(0,ti.v9)(e=>e.restaurants),m=(0,h.useRef)(),{0:g,1:y}=(0,h.useState)(()=>({}));(0,h.useRef)({});let{0:v,1:b}=(0,h.useState)("Укажите адрес"),{0:x,1:w}=(0,h.useState)(!1);(0,h.useRef)(!1);let{0:_,1:S}=(0,h.useState)([]),{0:E,1:T}=(0,h.useState)(!0),k=(0,h.useRef)(),j={duration:600,flying:!1,delay:0},O=(0,h.useMemo)(()=>f.filter(e=>o?.find(t=>t===e.id)),[o,f]);(0,h.useEffect)(()=>{let e=m.current,t=e?.geometry?.getCoordinates();if(!Array.isArray(t))return;let[n,r]=t;if(n&&r&&_.length){T((0,t1.c9)(n,r,_));return}T(!1)},[g,_]),(0,h.useEffect)(()=>{if(!1==!!window?.ymaps)return;console.log("rest=========--");let e=t?.center?.filter(Number.isFinite)?.length===2?t?.center:rs,n=n8(s.current.offsetHeight),r=new ymaps.Map(s.current,{center:e,controls:[n,"zoomControl"],zoom:13,behaviors:["drag","dblClickZoom","multiTouch"]},{yandexMapDisablePoiInteractivity:!0,suppressMapOpenBlock:!0});function i(){var e=r.container.getElement().clientHeight,t=r.getCenter();r.options.get("projection").fromGlobalPixels(r.getGlobalPixelCenter(),r.getZoom()),t[0],t[1],t[0],t[1],r.getZoom(),r.options.set("minZoom",Math.ceil(Math.log2(e/256)))}i(),window.addEventListener("resize",i),ymaps.option.presetStorage.add("islands#geolocationIcon",{iconLayout:"default#image",iconImageHref:"static/svg/delivery/mark-geolocation.svg"}),a.current=r;let o=rt(e=>u({current:e}));r.controls.add(o,{float:"none",position:{top:20,right:20}});let l=rt(e=>p({current:e}));r.controls.add(l,{float:"none",position:n9(s.current.offsetHeight)}),r1(r);let c=e=>{var t=e.get("delta"),n=r.getZoom()+(t>0?1:-1);n=Math.min(Math.max(n,r.options.get("minZoom")||0),r.options.get("maxZoom")||23),r.setZoom(n),e.preventDefault()},d=async e=>{r1(r)};return r.events.add("wheel",c),r.events.add("boundschange",d),()=>{r.destroy(),r.events.remove("boundschange",d),r.events.remove("wheel",c)}},[]),(0,h.useEffect)(()=>
29{if(!1==!!O?.length)return;let e=window.ymaps;if(!e||!a.current)return;let n=a.current;l.current?.length&&l.current.forEach(e=>{e?.mark&&e?.mark?.getParent?.()&&n?.geoObjects?.remove?.(e.mark)});let i=t.restaurant?.id;l.current=ri({restaurants:O?.filter(e=>e?.["display-in-pickup"]),selectedRestaurantId:i}),l.current?.forEach(e=>{e?.mark&&!e?.mark?.getParent?.()&&n?.geoObjects?.add?.(e.mark)}),e.geolocation.get({provider:"browser",mapStateAutoApply:!0}).then(t=>{let n=t.geoObjects.position,r=l.current.map(e=>{let{item:{geometry:t}}=e;return t._coordinates}).sort((e,t)=>(0,r0.c)(n,e)-(0,r0.c)(n,t)).slice(0,3);e.util.bounds.fromPoints(r),s.current.clientWidth,s.current.clientHeight});let o=async e=>{let{originalEvent:t,availability:n,hasProduct:i}=e,{target:o}=t,s=o.geometry._coordinates,l=O?.find(e=>e.lat===s[0]&&e.lng===s[1]);a.current?.panTo(s,j),console.log(s),r({status:"ok",formData:{id:l?.id}})};l.current?.forEach(e=>e.mark?.events.add(["click"],t=>o(r6(r6({},t),{},{availability:e.availability,hasProduct:e.hasProduct}))))},[O,r]),(0,h.useEffect)(()=>{(0,t0.ZP)("channels/global-delivery-zone").then(e=>{let t=e?.data?.[0];Array.isArray(t?.coordinates)&&S(t.coordinates.map(e=>[e.latitude,e.longitude]))})},[]),(0,h.useEffect)(()=>{let{iconImageSize:e,iconImageOffset:n}=ra({restaurant:k.current?.properties.get("restaurant"),selected:!1});k.current?.options?.set({iconLayout:"default#image",iconImageSize:e,iconImageOffset:n}),k.current=l.current?.find(e=>e?.mark?.properties.get("restaurant")?.id===t.restaurant?.id)?.mark;let{iconImageSize:r,iconImageOffset:i}=ra({restaurant:t.restaurant,selected:!0});k.current?.options?.set({iconLayout:"default#image",iconImageSize:r,iconImageOffset:i});let o=a.current,s=t?.center?.filter(Number.isFinite)?.length===2?t?.center:rs;o?.panTo(s,j),console.log(t,"RestaransMap - coords")},[t]);let P=(0,h.useCallback)(()=>{r({action:"close-from-map"})},[r]),I=(0,h.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=a.current;t&&t.setZoom(t.getZoom()+e,{checkZoomRange:!0})},[]);return(0,C.jsxs)(rq,{ref:s,style:{width:770},isShow:!0,children:[(0,C.jsx)(rX,{ref:c,onClick:P}),(0,C.jsx)(rQ,{ref:d,onClick:I})]})},r9=function(e){let{value:t,type:{type:n,stage:r=""},onChange:i,deliveryType:o,setIsSearchingAddress:a,mapRestaurantIdList:s}=e;return"center"===n?(0,C.jsx)(r2,{value:t,onChange:i,setIsSearchingAddress:a}):"restaurants"===n?(0,C.jsx)(r5,{value:t,type:n,onChange:i,deliveryType:o,mapRestaurantIdList:s}):(0,C.jsx)(r4,{value:t,onChange:i,deliveryType:o,type:r})};(0,m.F4)(["from{opacity:0;}to{opacity:1;}"]),(0,m.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]);let r7=m.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-17zckdc-0"})(["width:100%;height:calc(100% - ","px);transition:height 0.5s ease-in;& > .modal-header{width:100%;}& > .modal-body{width:100%;overflow-y:auto;height:calc(100% - 66px);margin-top:16px;background-color:#fafafa;border-radius:14px;margin-right:-8px;padding-right:8px;&::-webkit-scrollbar{width:4px;margin-right:4px;}&::-webkit-scrollbar-track{background:#e6e6e6;border-radius:16px;margin-top:5px;margin-bottom:5px;margin-right:4px;}&::-webkit-scrollbar-thumb{width:4px;background:#ababab;border-radius:16px;}@-moz-document url-prefix(){&{scrollbar-color:#d9d9d9 #f0f0f0;scrollbar-width:thin;}}}"],e=>{let{isShort:t}=e;return t?"178":"167"});m.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-17zckdc-1"})(["width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;background:#f2f2f2;"]),m.ZP.div.withConfig({displayName:"styles__TitleWrapper",componentId:"sc-17zckdc-2"})(["padding:20px;padding-bottom:18px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;& > span{font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;color:#212121;}& > button{width:40px;height:30px;background-color:#fff;border:1px solid #e5e5e5;border-radius:100px;display:flex;align-items:center;justify-content:flex-end;flex-direction:row;padding-right:16px;transition:all 0.2s ease-out;:active{background:#e7e7e7;}}& > div{width:40px;}"]);let r8=m.ZP.div.withConfig({displayName:"styles__ButtonsWrapper",componentId:"sc-17zckdc-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;& > button{margin-left:20px;height:50px;width:min-content;border:none;background:inherit;& > span{white-space:nowrap;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;}}"]);m.ZP.div.withConfig({displayName:"styles__ScrollOptionsList",componentId:"sc-17zckdc-4"})(["display:flex;height:max-content;width:100%;"]);
29let ie=m.ZP.div.withConfig({displayName:"styles__SearchWrapper",componentId:"sc-1bck3dj-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;background-color:#f5f5f5;border-radius:14px;height:50px;width:100%;& > input{margin-left:20px;margin-right:15px;width:100%;border:none;font-family:'Suisse Intl';font-style:normal;font-family:Suisse Intl;font-weight:400;font-style:Regular;font-size:17px;line-height:26px;letter-spacing:0%;vertical-align:middle;color:#212121;background-color:transparent;&::placeholder{color:#a0a1a4;background-color:transparent;}}& > button{height:24px;min-width:24px;margin-right:13px;border:none;background-color:transparent;}"]);var it=function(e){let{value:t,onChange:n}=e,r=(0,h.useRef)(),i=(0,h.useCallback)(()=>{let e=r.current.value;n(e.split("\\")?.[0])},[n]);return(0,C.jsxs)(ie,{children:[(0,C.jsx)("input",{ref:r,onChange:i,value:t,placeholder:"Адрес или название ресторана"}),(0,C.jsx)("button",{onClick:i,children:(0,C.jsx)(nH,{})})]})};let ir=m.ZP.div.withConfig({displayName:"styles__InputWarapper",componentId:"sc-fcje02-0"})(["width:100%;height:max-content;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;"]),ii=m.ZP.div.withConfig({displayName:"styles__OptionWrapper",componentId:"sc-fcje02-1"})(["padding:4px 8px;padding-right:0;width:100%;height:max-content;display:flex;flex-direction:row;align-items:start;justify-content:flex-start;cursor:",";& > div{display:flex;flex-direction:column;height:max-content;&:nth-child(1){position:relative;&:after{content:'';position:absolute;top:4px;left:4px;right:4px;bottom:4px;background:#00000080;border-radius:8px;display:",";}}&:nth-child(2){flex:1;}}&:not(:last-of-type){&:after{content:'';position:absolute;bottom:0;width:366px;height:1px;background-color:#dedede;}}&:first-of-type{padding-top:8px;}&:last-of-type{padding-bottom:8px;}opacity:",";"],e=>{let{isClosed:t}=e;return t?"default":"pointer"},e=>{let{isCheked:t}=e;return t?"block":"none"},e=>{let{isClosed:t}=e;return t?"0.4":"unset"}),io=m.ZP.div.withConfig({displayName:"styles__ImgWrapper",componentId:"sc-fcje02-2"})(["width:fit-content;border-radius:8px;padding:4px;overflow:hidden;position:relative;& > img{height:61px;width:61px;border-radius:8px;}svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;}margin-right:8px;"]),ia=m.ZP.div.withConfig({displayName:"styles__TitleWrapper",componentId:"sc-fcje02-3"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;& > .title{font-family:'Suisse Intl';font-style:normal;color:#212121;font-family:Suisse Intl;font-weight:400;font-size:16px;line-height:22px;letter-spacing:0%;}& > .distance{margin-left:5px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;white-space:nowrap;}"]),is=m.ZP.div.withConfig({displayName:"styles__AddressWrapper",componentId:"sc-fcje02-4"})(["width:100%;height:max-content;display:flex;flex-direction:row;justify-content:space-between;& > span{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#77787b;}"]);m.ZP.span.withConfig({displayName:"styles__Address",componentId:"sc-fcje02-5"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#a8a8a8;"]);let il=m.ZP.span.withConfig({displayName:"styles__Time",componentId:"sc-fcje02-6"})(["margin-top:4px;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#77787b;"]);function ic(e){let{item:t,cartType:n,onChange:r,currentId:i,className:o}=e,a=(0,h.useMemo)(()=>{let e=t?.images?.[0]?.thumbnails?.[1]?.url||t?.images?.[0]?.thumbnails?.[0]?.url;return e?`${e}`:null},[t]),s=(0,h.useMemo)(()=>t?.id===i,[t,i]),l=(0,h.useMemo)(()=>{let e=[];
29if(t?.["is-closed"])return e.push("Недоступен: техническое закрытие");let r="preorder"===n;return r&&(0,nV.Zi)(t)?e.push("Недоступен: аэропорт"):r&&(0,nV.oP)(t)?e.push("Недоступен: Без Тарелок"):!!e.length},[t]),c=(0,h.useMemo)(()=>(function(e){if("payment-info"in e){var t;let n=[];return e?.["forecast-time"]?.["need-alert"]===!1&&Number.isInteger(e?.["forecast-time"]?.minutes)&&n.push("от "+5*Math.ceil((Number(e?.["forecast-time"]?.minutes)||0)/5)+" мин"),e?.["payment-info"]?.["cost-set-by-dispatcher"]===!1&&Number.isFinite(e?.["payment-info"]?.cost)&&n.push("доставка "+parseInt(e["payment-info"].cost)/100+"₽"),e?.["payment-info"]?.["cost-set-by-dispatcher"]&&n.push("цена будет расчитана диспетчером вручную"),(t=n.join(", ")).charAt(0).toUpperCase()+t.slice(1)}return e?.["is-closed"]?"Недоступен: техническое закрытие":(0,nV.M6)(e)})(t),[t]),u=(0,h.useCallback)(()=>{l||r(t)},[l,r,t]);return(0,C.jsxs)(ii,{onClick:u,isCheked:s,className:o,isClosed:!!l,children:[(0,C.jsxs)(io,{children:[a&&(0,C.jsx)(nU(),{src:a,width:"60",height:"60",alt:"i"}),s&&(0,C.jsx)(nG,{})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)(ia,{isClosed:!!l,children:(0,C.jsx)("span",{className:"title",children:t.title})}),(0,C.jsx)(is,{children:(0,C.jsx)("span",{children:t.address})}),(0,C.jsx)(il,{children:c})]})]})}var iu=function(e){let{value:t,cartType:n,onChange:r,currentId:i}=e;return(0,C.jsx)(ir,{children:t.map(e=>(0,C.jsx)(ic,{cartType:n,item:e,onChange:r,currentId:i,className:`item-${e.id}`},e.id))})};function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let ih=n(27484),im=n(70178),ig=n(29387);ih.extend(im),ih.extend(ig);let iy=e=>e.stopPropagation();var iv=function(e){let{onChange:t,value:n,type:r,data:i={},complimentData:o=null,setIsCTADiabled:a,setMapRestaurantIdList:s,cartType:l}=e,c=(0,ti.I0)(),{0:u,1:d}=(0,h.useState)(n),{0:p,1:f}=(0,h.useState)(""),{restaurants:m}=(0,ti.v9)(e=>e.restaurants),{profile:g}=(0,ti.v9)(e=>e),{createModal:y}=(0,tE.ZP)(),{0:v,1:b}=(0,h.useState)([]),x=(0,h.useRef)(null),{0:w,1:_}=(0,h.useState)(!0),S=(0,h.useRef)(!0),E=(0,h.useMemo)(()=>{if(!1==!!p)return v.filter(e=>e?.["is-hidden"]===!1);let e=RegExp(p,"i");return v.filter(t=>e.test(t.title)||e.test(t.address)).filter(e=>e?.["is-hidden"]===!1)},[v,p]),T=(0,h.useMemo)(()=>E.filter(e=>e["available-for-delivery"]),[E]);(0,h.useEffect)(()=>{S.current=!0,d(n),k.current=!1},[n]);let k=(0,h.useRef)(!1);(0,h.useEffect)(()=>{if(!n||!x.current||p||k.current||!v.length||!E||!S.current)return;let e=setTimeout(()=>{if(!S.current||!E)return;let e=x.current?.querySelector(`.item-${n}`);if(e){let t=x.current.getBoundingClientRect(),n=e.getBoundingClientRect().top-t.top+x.current.scrollTop;x.current?.scrollTo({top:n,behavior:"smooth"}),S.current=!1,k.current=!0}},200);return()=>clearTimeout(e)},[x,p,E,n,S,S,v]),(0,h.useEffect)(()=>{if(_(!document.querySelector("[class*='BackTitleStyled']")),"self"===r){b(m?.filter(e=>e?.["display-in-pickup"])),(0,r0.h)().then(e=>{null!==e&&b(t=>t.filter(e=>e?.["display-in-pickup"]).map(t=>{let n=(0,r0.c)(e,[t?.lat||0,t?.lng||0]);return ip(ip({},t),{},{distance:n})}).concat().sort((e,t)=>(e?.distance||0)-(t?.distance||0)))});return}if(console.log(r),"self"!==r){let e=i?.isoTime;if(e){let t=e?ih(e).tz("Europe/Moscow"):"";e=t?t?.format():[]}else{let e=new Date;e.setMinutes(e.getMinutes()+g.deliveryForecastTime)}c((0,rl.le)(ip({coords:i?.coords},!!e&&{date:e}))).then(t=>{let{payload:n}=t;if(!1===Array.isArray(n))return;let r=m.map(e=>{let t=n.find(t=>t?.["department-number"]===e?.["inner-id"]);return t?ip(ip({},e),t):null}).filter(e=>e?.["available-for-delivery"]).filter(t=>!0===rx(t,e,"delivery")&&Number.isInteger(t?.id)).map(e=>{let t=(0,r0.c)(i?.coords,[e?.lat||0,e?.lng||0]);return ip(ip({},e),{},{distance:t})}).concat().sort((e,t)=>
29(e?.distance||0)-(t?.distance||0));if(!r.length){let e=Number("60");r.push(m.find(t=>t.id===e))}b(r)})}},[]);let j=(0,h.useCallback)(function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t({status:e,formData:{id:n}})},[t]);(0,h.useMemo)(()=>"object"==typeof o,[o]);let O=(0,h.useCallback)(e=>{f(e.split("\\")?.[0])},[]),P=(0,h.useCallback)(async e=>{d(e?.id),j("ok",e?.id)},[j,y]);(0,h.useEffect)(()=>{s(("self"!==r?T:E).map(e=>e.id))},[r,E,T]);let I=(0,h.useMemo)(()=>("self"!==r?T:E).find(e=>e?.id===u),[r,T,E,u]);return(0,h.useEffect)(()=>{a?.(!I)},[I,a]),(0,C.jsxs)(r7,{isOpen:!0,onClick:iy,isShort:w,children:[(0,C.jsx)("div",{className:"modal-header",children:(0,C.jsx)(r8,{children:(0,C.jsx)(it,{value:p,onChange:O})})}),(0,C.jsx)("div",{className:"modal-body",ref:x,children:(0,C.jsx)(iu,{cartType:l,value:"self"!==r?T:E,onChange:P,currentId:u})})]})},ib=n(50555);function ix(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ix(Object(n),!0).forEach(function(t){(0,f.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ix(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}async function i_(e,t,n){let r=[e?.lat,e?.lng],i=await rv(...r,t??"");if(i?.length)return await o(i,t);async function o(e,t){let r=[];for(let i of e){let e=await (0,t0.ZP)(`restaurants/${i?.id}`).then(e=>e?.data),o=t;if(!t){let e=new Date;e.setMinutes(e.getMinutes()+n.deliveryForecastTime),o=e.toISOString()}!0===rx(e,o,"delivery")&&Number.isInteger(i?.id)&&r.push(e.id)}let i=Number("60");return r=r?.filter(e=>null!==e),r?.filter(e=>e===Number(n.deliveryRestaurantId??""))?.[0]??r?.[0]??i}}let iC=e=>e.stopPropagation();var iS=function(e){let{resolve:t,destroy:n,value:r,autoTime:i}=e;console.log("Modal ----");let o=(0,ti.I0)(),a=(0,ti.v9)(e=>e.profile.user?.addresses),{0:s,1:l}=(0,h.useState)(()=>a),{restaurants:c}=(0,ti.v9)(e=>e.restaurants),{profile:u}=(0,ti.v9)(e=>e),d=(0,ti.v9)(e=>e.cart?.type),p=(0,ti.v9)(e=>e.cart?.items),{0:f,1:m}=(0,h.useState)(),{0:g,1:y}=(0,h.useState)({label:"",visibled:!1}),{0:b,1:_}=(0,h.useState)({label:"Перейти к выбору времени",disabled:!1,loading:null}),{0:E,1:k}=(0,h.useState)(()=>({deliveryId:Number((0,nZ.getCookie)("deliveryRestaurantId"))||u.deliveryRestaurantId,selfId:Number((0,nZ.getCookie)("selfRestaurantId"))||u.selfRestaurantId})),{0:j,1:O}=(0,h.useState)(!0),{0:P,1:I}=(0,h.useState)(),{0:N,1:D}=(0,h.useState)(!1),{0:M,1:A}=(0,h.useState)(!1),{0:L,1:R}=(0,h.useState)(!1),{0:Z,1:z}=(0,h.useState)(!1),{0:F,1:B}=(0,h.useState)(null),H=(0,h.useRef)(E?.deliveryId),$=(0,h.useRef)(),U=(0,h.useCallback)(e=>{t(iw({stageCode:e?.stageCode??"cancel"},e)),O(!1),setTimeout(n,300)},[t,n]),{0:Y,1:G}=(0,h.useState)(()=>"null"!==(0,nZ.getCookie)("deliveryType")?(0,nZ.getCookie)("deliveryType"):u.deliveryType??"delivery"),V=(0,h.useMemo)(()=>Number(localStorage.getItem("addressId"))||null,[]),q=(0,h.useMemo)(()=>"null"!==(0,nZ.getCookie)("selfIsoTime")?(0,nZ.getCookie)("selfIsoTime"):u.selfIsoTime??null,[u]);console.log("start - selfIsoTime ",q);let W=(0,h.useMemo)(()=>"null"!==(0,nZ.getCookie)("deliveryIsoTime")?(0,nZ.getCookie)("deliveryIsoTime"):u.deliveryIsoTime??null,[u]),{0:X,1:K}=(0,h.useState)(()=>"delivery"===Y&&(i??"null"!==(0,nZ.getCookie)("autoTime"))?String((0,nZ.getCookie)("autoTime")):u.autoTime??null),{0:J,1:Q}=(0,h.useState)(()=>"self"===Y&&(i??"null"!==(0,nZ.getCookie)("autoTime"))?String((0,nZ.getCookie)("autoTime")):u.autoTime??null),ee="delivery"===Y?X:J,et=(0,h.useMemo)(()=>"preorder"===d,[d]),en=(0,h.useMemo)(()=>"null"!==(0,nZ.getCookie)("preorderDeliveryIsoTime")?(0,nZ.getCookie)("preorderDeliveryIsoTime"):u.preorderDeliveryIsoTime??null,[u]),er=(0,h.useMemo)(()=>"null"!==(0,nZ.getCookie)("preorderSelfIsoTime")?(0,nZ.getCookie)("preorderSelfIsoTime"):u.preorderSelfIsoTime??null,[u]),ei=(0,h.useCallback)(e=>("self"===e?et?er:q:et?en:W)??null,[]),{0:eo,1:ea}=(0,h.useState)(()=>ei(Y)),{0:es,1:el}=(0,h.useState)(()=>{let e=s.find(e=>e?.checked);return{coords:[e?.lat??0,e?.lng??0],isoTime:eo}}),{0:ec,1:eu}=(0,h.useState)(!W),{0:ed,1:ep}=(0,h.useState)(!q),{0:ef,1:eh}=(0,h.useState)("self"===Y?"self-select-restaurant":"adr-select"),em=(0,h.useMemo)(()=>p.filter(e=>{let t={product:e.product,type:d};return(0,ib._A)(t,u,"cart")}).filter(e=>e?.type===d),[p,d]);(0,h.useEffect)(()=>{console.log("useEffect - isoTime ",eo),eo||(async()=>{"delivery"===Y?K(null):Q(null);let e=await o((0,to.as)(!0,Y));null!==e&&("delivery"===Y?K(e):Q(e))})()},[Y,u.deliveryForecastTime,q,W,d,em,eo,K,Q]),(0,h.useEffect)(()=>
29{l(a)},[a]),(0,h.useEffect)(()=>{eo||(K(null),Q(null))},[Y,eo]),(0,h.useEffect)(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="unset",H.current=null}),[]);let eg=(0,h.useCallback)(async e=>{if(console.log(" onStateStage ",e,ef),A("set-coords-map"===e.action),"close-from-map"===e.action&&U({}),"restaurant-edit"===e.action){if(_(e=>iw(iw({},e),{},{disabled:!1,label:"Сохранить"})),y(e=>iw(iw({},e),{},{visibled:!0,label:"К выбору времени"})),"delivery"===Y){eh("delivery-select-restaurant");let e=s.find(e=>e?.checked),t=[e?.lat??0,e?.lng??0];console.log("restaurant-edit","isoTime ",eo),el(iw({coords:t},!ec&&{isoTime:eo}))}else eh("self-edit-restaurant")}if(("set-coords-map"===e.action||"update-coords-map"===e.action)&&m({formData:iw({},e.formData)}),["delivery-select-date","self-select-date"].includes(ef)&&"restaurant-edit"!==e.action){let t;R(!1),"set-time"===e.action?t=e.formData:"set-current-time"===e.action&&(t=null),ea(t)}if("adr-select"===ef&&"select"===e.action&&l(t=>t.map(t=>e?.formData?.id!==t.id||t.checked?e?.formData?.id!==t.id&&t.checked?iw(iw({},t),{},{checked:!1}):t:iw(iw({},t),{},{checked:!0,sort:Date.now()}))),"adr-select"===ef&&"edit"===e.action){let t=s.find(t=>t?.id===e?.formData?.id);if(m({formData:t}),!1==!!t)return;B(s.find(e=>e.checked)?.id??null),_(e=>iw(iw({},e),{},{disabled:!0,label:"Перейти к выбору времени"})),y(e=>iw(iw({},e),{},{visibled:!0,label:"Мои адреса"})),eh("adr-edit")}if("adr-select"===ef&&"add"===e.action&&(_(e=>iw(iw({},e),{},{disabled:!1,label:"Перейти к выбору времени"})),y(e=>iw(iw({},e),{},{visibled:!0,label:"Мои адреса"})),eh("adr-add"),m({formData:{}})),"adr-edit"===ef&&"delete"===e.action){let t=e?.formData?.id;l(e=>(console.log({items:e},"adr-select"),e?.filter(e=>e?.id!==t))),eh("adr-select")}if("adr-edit"===ef&&"save"===e.action&&(B(null),l(e=>e.map(e=>F!==e.id||e.checked?F!==e.id&&e.checked?iw(iw({},e),{},{checked:!1}):e:iw(iw({},e),{},{checked:!0,sort:Date.now()}))),eh("adr-select")),["adr-add"].includes(ef)&&"add"===e.action){let t=e?.formData;if(t){R(!0);let e=await i_(t,eo||"",u);e&&E.deliveryId!==e&&(H.current=E.deliveryId,k(t=>iw(iw({},t),{},{deliveryId:e})),"self"!==u.deliveryType&&await o((0,to.Cx)({lat:t?.lat,lng:t?.lng,restaurantId:e}))),R(!1)}eh("delivery-select-date"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Подтвердить"})),y(e=>iw(iw({},e),{},{visibled:!0,label:"К выбору адреса"}))}["self-select-restaurant","self-edit-restaurant"].includes(ef)&&(console.log(e?.formData?.id,"==="),k(t=>iw(iw({},t),{},{selfId:e?.formData?.id}))),["delivery-select-restaurant"].includes(ef)&&(console.log("delivery-select-restaurant ",e?.formData?.id,"==="),H.current=E.deliveryId,k(t=>iw(iw({},t),{},{deliveryId:e?.formData?.id})))},[ef,s,U,F,eo,E]),ey=(0,h.useCallback)(()=>{["adr-add","adr-edit","delivery-select-date"].includes(ef)&&(eh("adr-select"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Перейти к выбору времени"})),y(e=>iw(iw({},e),{},{visibled:!1}))),["self-select-date"].includes(ef)&&(eh("self-select-restaurant"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Перейти к выбору времени"})),y(e=>iw(iw({},e),{},{visibled:!1}))),["delivery-select-restaurant"].includes(ef)&&((async()=>{let e=s.find(e=>e?.checked);e&&E.deliveryId&&H.current!==E.deliveryId&&(R(!0),await o((0,to.Cx)({lat:e?.lat,lng:e?.lng,restaurantId:E.deliveryId})),R(!1))})(),eh("delivery-select-date"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Подтвердить"})),y(e=>iw(iw({},e),{},{visibled:!0,label:"К выбору адреса"}))),["self-edit-restaurant"].includes(ef)&&(eh("self-select-date"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Подтвердить"})),y(e=>iw(iw({},e),{},{visibled:!0,label:"К выбору ресторана"})))},[ef,E,H]),ev=(0,h.useCallback)(async(e,t,n)=>{if(n||!t||!e)return{isoTime:t,isCurrentTime:n};let r=c.find(t=>t.id===e);if(!r)return{isoTime:t,isCurrentTime:n};if("default"===d){let e=await (0,nl.Fk)({restaurant:r}),n=await rE(t,"default","self",{availableTimes:e});if(n.needsSync&&n.synchronizedTime)return{isoTime:n.synchronizedTime,isCurrentTime:!1}}else{let n=String((0,nZ.getCookie)("authToken")),r=await (0,t0.ZP)(`/restaurants/${e}/schedule?type=pickup`,{headers:{"Content-Type":"application/json",Authorization:n}}).then(e=>e?.data?.pickup?.map(e=>[e["time-start-iso"],e["time-end-iso"]])||[]),i=await rE(t,"preorder","self",{pickupSchedule:r});if(i.needsSync&&null===i.synchronizedTime)return{isoTime:null,isCurrentTime:!0};if(i.needsSync&&i.synchronizedTime)return{isoTime:i.synchronizedTime,isCurrentTime:!1}}return{isoTime:t,isCurrentTime:n}},[c,d]),eb=(0,h.useCallback)(async()=>
29{if(console.log(ef),["adr-select"].includes(ef)){let e=s.find(e=>e?.checked);if(e){R(!0);let t=await i_(e,eo||"",u);t&&E.deliveryId!==t&&(H.current=E.deliveryId,k(e=>iw(iw({},e),{},{deliveryId:t})),await o((0,to.Cx)({lat:e?.lat,lng:e?.lng,restaurantId:t}))),R(!1)}eh("delivery-select-date"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Подтвердить"})),y(e=>iw(iw({},e),{},{visibled:!0,label:"К выбору адреса"}))}if(["self-select-restaurant"].includes(ef)&&(eh("self-select-date"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Подтвердить"})),y(e=>iw(iw({},e),{},{visibled:!0,label:"К выбору ресторана"}))),["delivery-select-restaurant"].includes(ef)&&((async()=>{let e=s.find(e=>e?.checked);e&&E.deliveryId&&H.current!==E.deliveryId&&(R(!0),await o((0,to.Cx)({lat:e?.lat,lng:e?.lng,restaurantId:E.deliveryId})),R(!1))})(),o((0,to.ju)({addresses:s})),U({stageCode:"ok",formData:iw(iw({deliveryRestaurantId:E.deliveryId},ec?{autoTime:ee}:{deliveryIsoTime:eo}),{},{deliveryType:"delivery"})})),["self-edit-restaurant"].includes(ef)){let e=eo,t=ed;if(E.selfId){let n=await ev(E.selfId,eo,ed);e=n.isoTime,t=n.isCurrentTime}U({stageCode:"ok",formData:iw(iw(iw({selfRestaurantId:E.selfId},et&&{preorderSelfIsoTime:t?null:e}),!et&&t?{autoTime:ee}:{selfIsoTime:e}),{},{deliveryType:"self"})})}["delivery-select-date"].includes(ef)&&(o((0,to.ju)({addresses:s})),U({stageCode:"ok",formData:iw(iw(iw({deliveryRestaurantId:E.deliveryId},et&&{preorderDeliveryIsoTime:eo}),!et&&(ec?{autoTime:ee}:{deliveryIsoTime:eo})),{},{deliveryType:"delivery"})})),["self-select-date"].includes(ef)&&U({stageCode:"ok",formData:iw(iw(iw({selfRestaurantId:E.selfId},et&&{preorderSelfIsoTime:eo}),!et&&(ed?{autoTime:ee}:{selfIsoTime:eo})),{},{deliveryType:"self"})})},[ef,eo,E,s,ed,ec,X,J]),ex=(0,h.useCallback)(e=>{"delivery"===e&&(eh("adr-select"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Перейти к выбору времени"})),y(e=>iw(iw({},e),{},{visibled:!1}))),"self"===e&&(eh("self-select-restaurant"),_(e=>iw(iw({},e),{},{disabled:!1,label:"Перейти к выбору времени"})),y(e=>iw(iw({},e),{},{visibled:!1})));let t=ei(e);G(e),ea(t),t||(async()=>{"delivery"===e?K(null):Q(null);let t=await o((0,to.as)(!0,e));null!==t&&("delivery"===e?K(t):Q(t))})(),"delivery"===e?(eu(!t),ep(!1)):(ep(!t),eu(!1))},[o,ei]),ew=(0,h.useMemo)(()=>(console.log({stageCode:ef}),["adr-add","adr-edit"].includes(ef))?{type:"center"}:["delivery-select-restaurant","self-select-restaurant","self-edit-restaurant"].includes(ef)?{type:"restaurants"}:["adr-select"].includes(ef)?{type:"point",stage:"address"}:["self-select-date"].includes(ef)?{type:"point",stage:"restaurant"}:(["delivery-select-date"].includes(ef),{type:"point",stage:"address"}),[ef]),e_=(0,h.useMemo)(()=>{if(["adr-add","adr-edit"].includes(ef)){let e=[f?.formData?.lat,f?.formData?.lng];return console.log("center, restaurant ",{center:e,restaurant:E,address:f?.formData}),{center:e,restaurant:E,address:f?.formData}}if(ew?.type==="point"){if(ew?.stage==="address"){let e=s?.find?.(e=>e.checked);return{center:[e?.lat,e?.lng]}}let e="delivery"===Y?E.deliveryId:E.selfId,t=c.find(t=>t.id===e);return{center:[t?.lat,t?.lng],restaurant:t}}if(ew?.type==="center"){let e=s.find(e=>e.id===f?.formData?.id);return{center:[e?.lat,e?.lng],restaurant:E}}if(["delivery-select-restaurant"].includes(ef)){let e=c.find(e=>e.id===E.deliveryId);return{center:e?[e.lat,e.lng]:rs,restaurant:e}}if(["self-select-restaurant","self-edit-restaurant"].includes(ef)){let e=c.find(e=>e.id===E.selfId);return{center:e?[e.lat,e.lng]:rs,restaurant:e}}return{center:rs}},[ew,s,f,E,ef,c]),eC=(0,h.useMemo)(()=>"adr-select"===ef?!Number.isInteger(E.deliveryId)||!s?.length||L:"delivery-select-restaurant"===ef||"self-edit-restaurant"===ef?Z:"self-select-restaurant"===ef||"self-edit-restaurant"===ef?!Number.isInteger(E.selfId):b.disabled,[b,ef,E,s,Z,L]),eS=(0,h.useMemo)(()=>"adr-select"===ef||"delivery-select-date"===ef?(console.log("isCTALoading ",L),L):b.loading,[b,ef,L]);return(0,C.jsx)(v,{onClick:U,isOpen:j,children:(0,C.jsx)(x,{isOpen:j,onClick:iC,ref:$,children:(0,C.jsxs)("div",{className:"modal-body",children:[(0,C.jsxs)(w,{children:[g.visibled&&(0,C.jsx)(S,{onClick:ey,children:g.label}),("delivery-select-date"===ef||"self-select-date"===ef)&&(0,C.jsx)(T,{children:"Выберите время"}),["adr-select","self-select-restaurant"].includes(ef)&&(0,C.jsx)(e8,{value:Y,onChange:ex}),"adr-select"===ef&&!!(s?.length||V)&&(0,C.jsx)(T,{children:"Мои адреса"}),("self-select-restaurant"===ef||"self-edit-restaurant"===ef||"delivery-select-restaurant"===ef)&&(0,C.jsx)(T,{children:"Выберите ресторан"}),"adr-select"===ef&&(0,C.jsx)(tD,{value:s,onChange:eg,onClose:U}),"adr-add"===ef&&(0,C.jsx)(t5,{value:f?.formData,onChange:eg,onClose:U,isSearchingAddress:N,type:"add",isSetCoordsMap:M}),"adr-edit"===ef&&(0,C.jsx)(t5,{value:f?.formData,onChange:eg,isSearchingAddress:N,type:"save",isSetCoordsMap:M}),"delivery-select-restaurant"===ef&&(0,C.jsx)(iv,{value:E.deliveryId,type:"delivery",cartType:d,onChange:eg,data:es,setIsCTADiabled:z,setMapRestaurantIdList:I}),("self-select-restaurant"===ef||"self-edit-restaurant"===ef)&&(0,C.jsx)(iv,{value:E.selfId,type:"self",cartType:d,onChange:eg,setIsCTADiabled:z,setMapRestaurantIdList:I}),"delivery-select-date"===ef&&(0,C.jsx)(rU,{restaurantId:E.deliveryId,value:eo,autoTime:ee,deliveryType:"delivery",onChange:eg,isCurrentTime:ec,setIsCurrentTime:eu,isCTALoading:L}),"self-select-date"===ef&&(0,C.jsx)(rU,{restaurantId:E.selfId,value:eo,autoTime:ee,deliveryType:"self",onChange:eg,isCurrentTime:ed,setIsCurrentTime:ep,isCTALoading:L}),"adr-add"!==ef&&"adr-edit"!==ef&&(0,C.jsx)(tr,{onClick:eb,disabled:eC,isLoadingProp:eS,children:b.label})]}),(0,C.jsx)(r9,{value:e_,type:ew,onChange:eg,deliveryType:Y,setIsSearchingAddress:D,mapRestaurantIdList:P})]})})})}},71705:function(e,t,n){"use strict";n.d(t,{eh:function(){return u},l6:function(){return c},EE:function(){return d}});var r,i,o=n(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var s=e=>{let{title:t,titleId:n,...s}=e;return o.createElement("svg",a({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},s),t?o.createElement("title",{id:n},t):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_49380_1000)"},o.createElement("path",{d:"M3.382 3.286a.833.833 0 0 1 1.179 0L8.096 6.82l3.536-3.535a.833.833 0 1 1 1.178 1.178L9.275 8l3.535 3.536a.833.833 0 0 1-1.178 1.178L8.096 9.179l-3.535 3.535a.833.833 0 1 1-1.179-1.178L6.918 8 3.382 4.464a.833.833 0 0 1 0-1.178Z",fill:"#212121"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_49380_1000"},o.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},l=n(85893);let c=e=>{let{data:t}=e;return(0,l.jsx)("div",{className:"msg-text",children:t.text})},u=()=>(0,l.jsx)("div",{className:"msg-close",children:(0,l.jsx)(s,{})}),d={error:"#EC4C41",default:"#2121212"}},16931:function(e,t,n){"use strict";n.d(t,{DP:function(){return eG},_7:function(){return eK},dA:function(){return eq},UY:function(){return e4},mb:function(){return e1},F:function(){return tr},Or:function(){return tn},di:function(){return eQ},nt:function(){return eW},B8:function(){return e0},t9:function(){return e3},JA:function(){return ti},I2:function(){return eV},o8:function(){return e9},xj:function(){return e7},_M:function(){return tt}});var r,i,o=n(8307),a=n(89757),s=n(27272),l=n(39540),c=n(68179),u=n(67294),d=n(87379),p=n(39142);
29let f="cubic-bezier(0.23, 1, 0.32, 1)",h=(0,d.F4)(["from{opacity:0;}to{opacity:1;}"]),m=d.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-1rkwydz-0"})(["position:fixed;inset:0;z-index:500;width:100%;height:100%;background-color:#00000059;bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],h,300,f,300,300,e=>e.isOpen?"1":"0"),g=(0,d.F4)(["from{transform:translate(-50%,100%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translate(-50%,-50%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),y=d.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-1rkwydz-1"})(["position:fixed;z-index:501;inset:0;top:50%;left:50%;width:100%;min-width:1024px;max-width:1204px;height:608px;min-height:500px;max-height:674px;padding:0;background:white;border-radius:32px;box-shadow:0px 4px 24px 0px #0000001a;overflow:hidden;transform:translate(-50%,-50%);animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;-webkit-mask-image:-webkit-radial-gradient(white,black);mask-image:-webkit-radial-gradient(white,black);@media ","{min-width:unset;max-width:861px;height:100%;max-height:1016px;}@media ","{min-width:unset;max-width:668px;height:100%;max-height:904px;}"],g,300,f,300,p.Z.exactMedia.desktop,p.Z.exactMedia.tablet);var v=n(62609),b=n(11163),x=n(85893);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let C=e=>e.stopPropagation();var S=function(e){let{resolve:t,destroy:n,complimentType:r,product:i,preorderPage:o,complimentId:a,cartItem:s,closeSearchModal:l,restaurant:c,cartType:d,type:p="storefront",section:f,categoryName:h}=e,g=(0,b.useRouter)(),{0:w,1:S}=(0,u.useState)(!0),E=(0,u.useMemo)(()=>!!a,[a]),T=(0,u.useMemo)(()=>i?.slug||i?.attributes?.slug,[i]),k=(0,u.useMemo)(()=>"preorder"===d?`/preorder/menu/${T}`:`/menu/${T}`,[T,d]);(0,u.useEffect)(()=>(g.beforePopState(e=>(e.options.scroll=!1,!0)),window.history.scrollRestoration="manual",()=>{g.beforePopState(e=>(e.options.scroll=!0,!0)),window.history.scrollRestoration="auto"}),[]),(0,u.useEffect)(()=>{let e=()=>{t({stageCode:"cancel"}),S(!1),setTimeout(n,300)};if(!E)return window.history.pushState(T,T,k),window.addEventListener("popstate",e,!1),()=>{window.removeEventListener("popstate",e)}},[]);let j=e=>{E?(t(_(_({},e),{},{stageCode:e?.stageCode||"cancel"})),S(!1),setTimeout(n,300)):window.history.back()};return(0,x.jsx)(m,{onClick:j,isOpen:w,children:(0,x.jsx)(y,{isOpen:w,onClick:C,children:(0,x.jsx)(v.x,{type:p,productId:i.id,preorderPages:i?.["preorder-pages"],preorderPage:o,complimentType:r,complimentId:a,cartItem:s,closeSearchModal:l,onClose:j,restaurant:c,cartType:d,section:f,categoryName:h})})})};let E="cubic-bezier(0.23, 1, 0.32, 1)",T=(0,d.F4)(["from{opacity:0;}to{opacity:1;}"]),k=d.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-1f3gaza-0"})(["position:fixed;inset:0;z-index:500;height:100%;background-color:rgba(33,33,33,0.8);bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],T,300,E,300,300,e=>e.isOpen?"1":"0"),j=(0,d.F4)(["from{transform:translateY(100%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),O=d.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-1f3gaza-1"})(["display:flex;flex-direction:column;position:fixed;inset:0;z-index:501;height:calc(100% - 32px);top:32px;bottom:0;padding:0;background-color:#00000073;background:#FFFFFF;align-items:center;box-shadow:0px -4px 24px rgba(0,0,0,0.08);border-radius:20px 20px 0px 0px;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transform:",";overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(white,black);& > .input-phone{margin-top:20px;}& > .timer{height:40px;margin-top:10px;}& > .input-auth-code{margin-top:20px;}& > .set-phone{margin-top:6px;}& > .resend-code,& > .call-me,& > .help-sms{height:40px;}& > span.help{font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;color:#212121;text-align:center;min-height:40px;
29display:flex;flex-direction:column;justify-content:center;padding-top:2px;padding-bottom:2px;}"],j,300,E,300,e=>e.isOpen?"unset":"translateY(100%)");d.ZP.div.withConfig({displayName:"styles__ModalTitleWrapper",componentId:"sc-1f3gaza-2"})(["display:flex;flex-direction:row;width:100%;justify-content:space-between;height:min-content;margin-bottom:20px;& > div > span{display:flex;flex-direction:row;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;display:flex;align-items:center;justify-content:center;text-align:center;}& > div{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:center;}"]),d.ZP.span.withConfig({displayName:"styles__ModalSubTitleWrapper",componentId:"sc-1f3gaza-3"})(["text-indent:1em;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;text-align:center;"]),d.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-1f3gaza-4"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;text-align:center;color:#376F62;background:inherit;border:none;padding:0;cursor:pointer;outline:inherit;user-select:none;&:focus{background:inherit;}"]);var P=n(72890);(0,d.F4)(["from{opacity:0;}to{opacity:1;}"]);let I=d.ZP.div.withConfig({displayName:"styles__MainBlock",componentId:"sc-16py21q-0"})(["width:100%;display:flex;justify-content:start;flex-direction:column;height:100%;overflow:auto;border-radius:20px 20px 0 0;padding-bottom:64px;"]),N=d.ZP.div.withConfig({displayName:"styles__BackButton",componentId:"sc-16py21q-1"})(["position:absolute;top:14px;left:14px;width:43px;height:32px;background:#ffffff;border:1px solid #e5e5e5;border-radius:12px;z-index:101;::after{content:url('/static/svg/arrow-left.svg');position:absolute;top:6px;left:16px;}:active{background:#e7e7e7;}"]),D=d.ZP.div.withConfig({displayName:"styles__ImageButtonsWrapper",componentId:"sc-16py21q-2"})(["position:absolute;top:14px;right:14px;width:32px;display:flex;flex-direction:column;justify-content:space-between;row-gap:14px;"]);d.ZP.div.withConfig({displayName:"styles__FavoriteButton",componentId:"sc-16py21q-3"})(["width:32px;height:32px;background:#ffffff;border:1px solid #e5e5e5;border-radius:100%;z-index:101;::before{content:url('/static/svg/favorite-disabled.svg');opacity:",";position:absolute;top:4px;left:3px;transition:opacity 0.3s;}::after{content:url('/static/svg/favorite-enabled.svg');opacity:",";position:absolute;top:4px;left:3px;transition:opacity 0.3s;}"],e=>e.isFavorite?"0":"1",e=>e.isFavorite?"1":"0");let M=d.ZP.div.withConfig({displayName:"styles__ShareButton",componentId:"sc-16py21q-4"})(["width:32px;height:32px;background:#ffffff;border:1px solid #e5e5e5;border-radius:100%;z-index:101;display:flex;align-items:center;justify-content:center;"]),A=d.ZP.div.withConfig({displayName:"styles__DoneText",componentId:"sc-16py21q-5"})(["position:absolute;top:42px;right:0;z-index:101;font-size:10px;line-height:13px;transition-duration:1s;opacity:",";white-space:nowrap;"],e=>{let{visible:t}=e;return t?"1":"0"}),L=d.ZP.div.withConfig({displayName:"styles__ProductSectionTitle",componentId:"sc-16py21q-6"})(["font-size:16px;line-height:20px;font-weight:500;color:#212121;"]);d.ZP.div.withConfig({displayName:"styles__ProductSectionDivider",componentId:"sc-16py21q-7"})(["border-bottom:1px solid #e5e5e5;"]),d.ZP.div.withConfig({displayName:"styles__ProductPicture",componentId:"sc-16py21q-8"})(["width:100%;& > div{background-image:url(",");width:100%;height:66vw;background-position:center;background-repeat:no-repeat;background-size:cover;}"],e=>e.urlPicture);let R=d.ZP.div.withConfig({displayName:"styles__ProductWrapper",componentId:"sc-16py21q-9"})(["width:100%;height:auto;margin:30px 0 16px;display:flex;flex-direction:column;justify-content:space-between;color:#393939;"]),Z=d.ZP.div.withConfig({displayName:"styles__ProductTitleWrapper",componentId:"sc-16py21q-10"})(["display:flex;justify-content:space-between;padding:0 20px;font-family:'Suisse Intl';font-weight:500;"]),z=d.ZP.div.withConfig({displayName:"styles__ProductTitle",componentId:"sc-16py21q-11"})(["font-size:18px;line-height:22px;font-weight:500;color:#212121;"]),F=d.ZP.div.withConfig({displayName:"styles__ProductPrice",componentId:"sc-16py21q-12"})(["margin-left:12px;font-size:18px;line-height:22px;font-weight:500;color:#393939;white-space:nowrap;"]),B=d.ZP.div.withConfig({displayName:"styles__ProductDescriptionWrapper",componentId:"sc-16py21q-13"})(["margin-top:14px;padding:0 20px;"]),H=d.ZP.div.withConfig({displayName:"styles__ProductDescription",componentId:"sc-16py21q-14"})(["font-size:14px;line-height:18px;padding-bottom:20px;border-bottom:1px solid #e5e5e5;"]),$=d.ZP.div.withConfig({displayName:"styles__ProductExtrasWrapper",componentId:"sc-16py21q-15"})(["margin-top:20px;padding:0 20px;"]),U=d.ZP.div.withConfig({displayName:"styles__ProductExtras",componentId:"sc-16py21q-16"})(["margin-top:14px;"]),Y=d.ZP.div.withConfig({displayName:"styles__ProductExtra",componentId:"sc-16py21q-17"})(["display:flex;justify-content:flex-start;margin-top:16px;"]),G=d.ZP.div.withConfig({displayName:"styles__ProductExtraInput",componentId:"sc-16py21q-18"})(["position:relative;width:24px;min-width:24px;height:24px;background:",";border:1px solid ",";border-radius:4px;transition:all 0.2s;&::after{content:url('/static/svg/checkbox-icon-tick.svg');position:absolute;top:2px;left:6px;opacity:",";transition:all 0.2s;}"],e=>e.isChecked?"#376F62":"none",e=>e.isChecked?"none":"#E5E5E5",e=>e.isChecked?"1":"0"),V=d.ZP.div.withConfig({displayName:"styles__ProductExtraLabel",componentId:"sc-16py21q-19"})(["margin-left:10px;padding-top:3px;font-size:14px;line-height:18px;font-weight:400;color:#212121;"]),q=d.ZP.span.withConfig({displayName:"styles__ProductExtraPrice",componentId:"sc-16py21q-20"})(["color:#a8a8a8;white-space:nowrap;"]);d.ZP.div.withConfig({displayName:"styles__ProductVariantsWrapper",componentId:"sc-16py21q-21"})(["margin-top:20px;padding:0 20px;"]),d.ZP.div.withConfig({displayName:"styles__ProductVariantsTitle",componentId:"sc-16py21q-22"})(["font-size:16px;line-height:20px;font-weight:500;color:#212121;"]),d.ZP.div.withConfig({displayName:"styles__ProductVariants",componentId:"sc-16py21q-23"})(["margin-top:14px;"]),d.ZP.div.withConfig({displayName:"styles__ProductVariant",componentId:"sc-16py21q-24"})(["display:flex;justify-content:flex-start;margin-top:16px;"]),d.ZP.div.withConfig({displayName:"styles__ProductVariantInput",componentId:"sc-16py21q-25"})(["position:relative;width:24px;min-width:24px;height:24px;background:'none';border:1.5px solid #e5e5e5;border-radius:100px;transition:all 0.2s;&::after{content:url('/static/svg/checkbox-icon-circle.svg');position:absolute;top:2.5px;left:2.5px;opacity:",";transition:all 0.2s;}"],e=>e.isChecked?"1":"0"),d.ZP.div.withConfig({displayName:"styles__ProductVariantLabel",componentId:"sc-16py21q-26"})(["margin-left:10px;padding-top:3px;font-size:14px;line-height:18px;font-weight:400;color:#212121;"]),d.ZP.span.withConfig({displayName:"styles__ProductVariantPrice",componentId:"sc-16py21q-27"})(["color:#a8a8a8;white-space:nowrap;"]),d.ZP.div.withConfig({displayName:"styles__ProductOptionsDividerWrapper",componentId:"sc-16py21q-28"})(["margin-top:20px;padding:0 20px;"]);let W=d.ZP.div.withConfig({displayName:"styles__ProductompositionWrapper",componentId:"sc-16py21q-29"})(["margin-top:20px;padding:0 20px;"]),X=d.ZP.div.withConfig({displayName:"styles__ProductComposition",componentId:"sc-16py21q-30"})(["margin-top:14px;color:#a8a8a8;font-size:12px;line-height:14px;font-weight:400;p{margin-bottom:7px;}ul{list-style-type:disc;}li{margin-left:30px;}"]),K=d.ZP.div.withConfig({displayName:"styles__ProductAllergensWrapper",componentId:"sc-16py21q-31"})(["margin-top:14px;padding:0 20px;"]),J=d.ZP.div.withConfig({displayName:"styles__ProductAllergens",componentId:"sc-16py21q-32"})(["margin-top:14px;color:#a8a8a8;font-size:12px;line-height:14px;font-weight:400;
29"]),Q=d.ZP.div.withConfig({displayName:"styles__ProductParamsWrapper",componentId:"sc-16py21q-33"})(["margin-top:20px;padding:0 20px;"]),ee=d.ZP.div.withConfig({displayName:"styles__ProductParams",componentId:"sc-16py21q-34"})(["padding:15px 0;font-size:12px;display:flex;justify-content:space-between;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;& > div{color:",";& > span{display:block;font-weight:500;margin-bottom:8px;color:#393939;}}"],p.Z.colors.grayDark);d.ZP.div.withConfig({displayName:"styles__ProductLabel",componentId:"sc-16py21q-35"})(["font-size:14px;line-height:18px;color:#979797;"]);let et=d.ZP.div.withConfig({displayName:"styles__ProductParam",componentId:"sc-16py21q-36"})(["width:67px;min-width:55px;& > div{display:flex;flex-direction:column-reverse;justify-content:space-between;text-align:center;}"]),en=d.ZP.div.withConfig({displayName:"styles__ProductParamValue",componentId:"sc-16py21q-37"})(["font-size:14px;line-height:18px;color:#212121;"]),er=d.ZP.div.withConfig({displayName:"styles__ProductParamName",componentId:"sc-16py21q-38"})(["font-size:12px;line-height:13px;color:#a8a8a8;"]);d.ZP.div.withConfig({displayName:"styles__ProductCommentWrapper",componentId:"sc-16py21q-39"})(["margin-top:20px;padding:0 20px;"]),d.ZP.textarea.withConfig({displayName:"styles__ProductCommentTextarea",componentId:"sc-16py21q-40"})(["width:100%;height:50px;border:1px solid #e5e5e5;border-radius:14px;padding:16px;font-family:'Suisse Intl','Arial',sans-serif;font-size:14px;line-height:16px;color:#212121;resize:none;::placeholder{padding:0;color:#a8a8a8;}"]);let ei=d.ZP.div.withConfig({displayName:"styles__ProductAboutRoll",componentId:"sc-16py21q-41"})([""]),eo=d.ZP.div.withConfig({displayName:"styles__ProductAboutRollContent",componentId:"sc-16py21q-42"})(["height:",";transition:all 1s;overflow:hidden;"],e=>e.rollUp?"0":"fit-content"),ea=d.ZP.div.withConfig({displayName:"styles__ProductAboutRollButtonWrapper",componentId:"sc-16py21q-43"})(["margin-top:20px;padding:0 20px;"]);d.ZP.div.withConfig({displayName:"styles__ProductAboutRollButton",componentId:"sc-16py21q-44"})(["width:fit-content;position:relative;padding-right:20px;font-size:14px;line-height:18px;font-weight:500;color:#376f62;-moz-user-select:none;-khtml-user-select:none;user-select:none;::after{content:url('/static/svg/arrow-down.svg');position:absolute;width:16px;height:16px;top:1.5px;right:0;display:inline-block;transform:",";transition:all 0.2s ease-out;}"],e=>e.rollUp?"rotate(0)":"rotate(180deg)");let es=(0,d.F4)(["from{transform:translateY(100%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translateY(0%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]);d.ZP.div.withConfig({displayName:"styles__CheckoutButtonWrapper",componentId:"sc-16py21q-45"})(["display:flex;flex-direction:row;align-items:center;position:fixed;z-index:109;width:100%;height:70px;bottom:0;padding:10px 20px;background-color:#00000073;background:#ffffff;box-shadow:0px -4px 24px rgba(0,0,0,0.08);border-radius:20px 20px 0px 0px;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transform:",";"],es,300,"cubic-bezier(0.23, 1, 0.32, 1)",300,e=>e.isOpen?"unset":"translateY(100%)"),d.ZP.div.withConfig({displayName:"styles__CheckoutButton",componentId:"sc-16py21q-46"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:50px;background:#ec4c41;color:#ffffff;border:none;border-radius:14px;transition:all 0.3s;-moz-user-select:none;-khtml-user-select:none;user-select:none;font-family:'Suisse Intl';line-height:15px;font-weight:500;:active{background:#e24641;}"]),d.ZP.div.withConfig({displayName:"styles__CheckoutButtonText",componentId:"sc-16py21q-47"})(["font-size:14px;"]),d.ZP.div.withConfig({displayName:"styles__CheckoutButtonTextExtra",componentId:"sc-16py21q-48"})(["font-size:10px;"]),d.ZP.div.withConfig({displayName:"styles__CartActionWrapper",componentId:"sc-16py21q-49"})(["display:flex;justify-content:space-between;opacity:",";visibility:",";width:",";min-width:",";margin-left:",";height:50px;overflow:hidden;border:",";border-radius:14px;transition:all 0.3s;& > .del-from-cart{padding:",";svg > path{fill:",";}}& > .add-to-cart{padding:",";svg > path{fill:",";}}& > .count{opacity:",";visibility:",";color:",";}"],e=>e.inCart?"1":"0",e=>e.inCart?"visible":"hidden",e=>e.inCart?"114px":"0",e=>e.inCart?"114px":"0",e=>e.inCart?"10px":"0",e=>e.inCart?"1px solid #E5E5E5":"none",e=>e.inCart?"0 14px":"0",e=>e.inCart?"#212121":"#FFFFFF",e=>e.inCart?"0 14px":"0",e=>e.inCart?"#212121":"#FFFFFF",e=>e.inCart?"1":"0",e=>e.inCart?"visible":"hidden",e=>e.inCart?"#212121":"#FFFFFF"),d.ZP.div.withConfig({displayName:"styles__CartActionMinus",componentId:"sc-16py21q-50"})(["display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer;transition:all 0.3s;:active{background:#e7e7e7;}"]),d.ZP.div.withConfig({displayName:"styles__CartActionPlus",componentId:"sc-16py21q-51"})(["display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer;transition:all 0.3s;:active{background:#e7e7e7;}"]),d.ZP.div.withConfig({displayName:"styles__CartActionCount",componentId:"sc-16py21q-52"})(["display:flex;justify-content:center;align-items:center;font-size:16px;line-height:13px;font-weight:500;transition:all 0.3s;overflow:hidden;"]);var el=n(56792),ec=n(66129);let eu=d.ZP.div.withConfig({displayName:"style__StyledSkeleton",componentId:"sc-1cil5fr-0"})(["width:100%;text-align:center;height:40vw;padding:5vw 5vw;"]);function ed(){return(0,x.jsx)(eu,{children:"Получение данных..."})}n(18386);var ep=n(74832),ef=n(78768),eh=n(50555),em=n(2489);function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ey(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?eg(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ev(e){let{type:t="page",productId:n,productData:r,cartItem:i,cartType:o="default",onClose:s,closeSearchModal:c,restaurant:d}=e,{profile:p,cart:f}=(0,a.v9)(e=>e),h=(0,b.useRouter)(),m=(0,a.I0)(),{createModal:g}=(0,em.ZP)(),{0:y,1:v}=(0,u.useState)("page"===t?r:null),{0:w,1:_}=(0,u.useState)("page"!==t),{0:C,1:S}=(0,u.useState)(i?.comment||""),{0:E,1:T}=(0,u.useState)([]),{0:k,1:j}=(0,u.useState)([]),{0:O,1:es}=(0,u.useState)(!1),{0:eu,1:eg}=(0,u.useState)(!1),{0:ev,1:eb}=(0,u.useState)("");(0,u.useEffect)(()=>{ym(23457298,"reachGoal","open_card")},[]),(0,u.useEffect)(()=>{"storefront"===t&&(0,l.ZP)("products/"+n).then(e=>{v(e?.data||{}),_(!1)})},[]),(0,u.useEffect)(()=>{j(y?.variants?.map((e,t)=>{let n=!1;return i&&i?.variant&&i?.variant?.id===e.id&&(n=!0),i||0!==t||(n=!0),ey(ey({},e),{},{isChecked:n})})||[]),T(y?.extras?.map((e,t)=>(i&&i?.extras&&i?.extras?.find(t=>t.id===e.id)&&(e=ey(ey({},e),{},{isChecked:!0})),e))||[])},[y]);let ex=(0,u.useMemo)(()=>y&&(0,eh.g7)(y,p,"productcard",d),[y,p]);(0,u.useMemo)(()=>y&&(0,eh._A)(y,p,"productcard"),[y,p]),(0,u.useMemo)(()=>!!i,[i]);let ew=e=>{T(E.map(t=>t.id===e?ey(ey({},t),{},{isChecked:!t.isChecked}):t))},e_=e=>{"Escape"===e.key&&(window.history.replaceState(null,"Кофемания",h.pathname),setTimeout(()=>{m((0,ep.Mr)())},300))};(0,u.useMemo)(()=>y&&-1!==p.wishlist.findIndex(e=>e.productId===y.id),[p.wishlist,y]),(0,u.useEffect)(()=>(window.addEventListener("keydown",e_),()=>{window.removeEventListener("keydown",e_)}),[]),(0,u.useMemo)(()=>k?.filter(e=>e?.isChecked||!1)?.[0]||null,[k]),(0,u.useMemo)(()=>E?.filter(e=>e?.isChecked||!1)||null,[E]);let eC=(0,u.useMemo)(()=>f?.items.filter(e=>e.type===o),[f?.items]),eS=(0,u.useMemo)(()=>eC?.reduce((e,t)=>e+t?.amount,0)||0,[eC]);return(0,u.useMemo)(()=>!!eC.find(e=>e.product.id===y?.id)?.amount,[eC,y?.id]),(0,u.useMemo)(()=>eC.filter(e=>e.product.id===y?.id&&e.type===o)?.reduce((e,t)=>e+t?.amount,0)||0,[eC,y?.id]),(0,u.useMemo)(()=>(0,ef.X7)(eS||1),[eS]),(0,u.useMemo)(()=>!!(eC?.map(e=>!!e?.changes?.find(e=>"pending"===e.status))).find(e=>e),[eC]),(0,u.useEffect)(()=>{if("self"===p.deliveryType){eb("Приготовим за 20 минут");return}eb(p.deliveryForecastTime?`Доставим за ${p.deliveryForecastTime} минут`:"")},[p.deliveryType,p.deliveryForecastTime]),(0,x.jsx)(x.Fragment,{children:w?(0,x.jsx)(ed,{}):(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(I,{children:[(0,x.jsx)(N,{onClick:s}),(0,x.jsx)(D,{children:(0,x.jsxs)(M,{children:[(0,x.jsx)(el.Z,{onClick:function(){if(ym(23457298,"reachGoal","share_from_card"),navigator.share)navigator.share({title:y.title,url:window.location.href}).catch(e=>console.log("Error sharing",e));else{console.log("Share not supported on this browser, do it the old way.");let e=document.createElement("textarea");document.body.appendChild(e),e.value=window.location.href,e.select(),document.execCommand("copy"),document.body.removeChild(e),eg(!0),setTimeout(function(){eg(!1)},1500)}}}),(0,x.jsx)(A,{visible:eu,children:"Ссылка скопирована"})]})}),(0,x.jsx)(ec.O,{images:y?.images?.map(e=>e?.thumbnails?.[0]?.url)||[],labels:ex||[],title:y.title}),(0,x.jsxs)(R,{children:[(0,x.jsxs)(Z,{children:[(0,x.jsx)(z,{children:y?.title}),(0,x.jsxs)(F,{children:[(y?.price||0)/100," ₽"]})]}),(0,x.jsx)(B,{children:(0,x.jsx)(H,{children:y?.description})}),!!E?.length&&(0,x.jsxs)($,{children:[(0,x.jsx)(L,{children:"Дополнительные опции"}),(0,x.jsx)(U,{children:E?.map((e,t)=>x.jsxs(Y,{children:[x.jsx(G,{isChecked:!!e.isChecked,id:`${t}`,onClick:()=>ew(e.id)}),x.jsxs(V,{onClick:()=>ew(e.id),children:[e.title,x.jsx(q,{children:0===e.price?"":` +${e.price/100} ₽`})]})]},t))})]}),(0,x.jsxs)(ei,{children:[(0,x.jsxs)(eo,{rollUp:O,children:[(0,x.jsxs)(W,{children:[(0,x.jsx)(L,{children:"Состав"}),(0,x.jsx)(X,{children:(0,x.jsx)(P.D,{children:y?.composition||""})})]}),!!y?.allergens?.length&&(0,x.jsxs)(K,{children:[(0,x.jsx)(L,{children:"АллерÐ
29³ÐµÐ½Ñ‹"}),(0,x.jsxs)(J,{children:[y?.allergens?.map(e=>e.name).join(", "),"."]})]}),(0,x.jsx)(Q,{children:(0,x.jsxs)(ee,{children:[(0,x.jsxs)(et,{children:[(0,x.jsx)(en,{children:y?.calories}),(0,x.jsx)(er,{children:"Ккал"})]}),(0,x.jsxs)(et,{children:[(0,x.jsxs)(en,{children:[y?.belok," г"]}),(0,x.jsx)(er,{children:"Белки"})]}),(0,x.jsxs)(et,{children:[(0,x.jsxs)(en,{children:[y?.uglevod," г"]}),(0,x.jsx)(er,{children:"Углеводы"})]}),(0,x.jsxs)(et,{children:[(0,x.jsxs)(en,{children:[y?.jir," г"]}),(0,x.jsx)(er,{children:"Жиры"})]}),(0,x.jsxs)(et,{children:[(0,x.jsx)(en,{children:y?.weight}),(0,x.jsx)(er,{children:"Вес"})]})]})})]}),(0,x.jsx)(ea,{children:!1})]})]})]})})})}let eb=e=>e.stopPropagation();var ex=function(e){let{resolve:t,destroy:n,product:r,cartItem:i,closeSearchModal:o,restaurant:s}=e;(0,a.I0)(),(0,b.useRouter)();let{0:l,1:c}=(0,u.useState)(!0);(0,u.useEffect)(()=>{let e=()=>{t({stageCode:"cancel"}),c(!1),setTimeout(n,300)},i=r?.slug||r?.attributes?.slug;return window.history.pushState(i,i,`menu/${i}`),window.addEventListener("popstate",e,!1),()=>{window.removeEventListener("popstate",e)}},[]);let d=()=>window.history.back();return(0,x.jsx)(k,{onClick:d,isOpen:l,children:(0,x.jsx)(O,{isOpen:l,onClick:eb,children:(0,x.jsx)(ev,{type:"storefront",productId:r.id,cartItem:i,closeSearchModal:o,onClose:d,restaurant:s})})})};let ew="cubic-bezier(0.23, 1, 0.32, 1)",e_=(0,d.F4)(["from{opacity:0;}to{opacity:1;}"]),eC=d.ZP.div.withConfig({displayName:"styles__ModalMask",componentId:"sc-2elvoa-0"})(["position:fixed;inset:0;z-index:500;height:100%;background-color:#00000059;bottom:0;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;transition:all ","ms;opacity:",";"],e_,300,ew,300,300,e=>e.isOpen?"1":"0"),eS=(0,d.F4)(["from{transform:translate(-50%,100%);box-shadow:0px -4px 24px rgba(0,0,0,0.0);}to{transform:translate(-50%,-50%);box-shadow:0px -4px 24px rgba(0,0,0,0.08);}"]),eE=d.ZP.div.withConfig({displayName:"styles__WrapperModal",componentId:"sc-2elvoa-1"})(["display:flex;flex-direction:column;position:fixed;z-index:501;width:fit-content;min-width:560px;max-width:100vw;height:fit-content;top:50%;left:50%;padding:0;transform:translate(-50%,-50%);background:#ffffff;align-items:center;box-shadow:0px -4px 24px rgba(0,0,0,0.08);border-radius:32px;animation-name:",";animation-duration:","ms;animation-timing-function:",";transition:all ","ms;"],eS,300,ew,300);d.ZP.div.withConfig({displayName:"styles__ModalTitleWrapper",componentId:"sc-2elvoa-2"})(["display:flex;flex-direction:row;width:100%;justify-content:space-between;height:fit-content;margin-bottom:20px;& > div > span{display:flex;flex-direction:row;font-family:'Suisse Intl';font-style:normal;font-weight:500;font-size:18px;line-height:22px;display:flex;align-items:center;justify-content:center;text-align:center;}& > div{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:center;}"]),d.ZP.span.withConfig({displayName:"styles__ModalSubTitleWrapper",componentId:"sc-2elvoa-3"})(["text-indent:1em;font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;text-align:center;"]),d.ZP.button.withConfig({displayName:"styles__Button",componentId:"sc-2elvoa-4"})(["font-family:'Suisse Intl';font-style:normal;font-weight:400;font-size:14px;line-height:18px;text-align:center;color:#376f62;background:inherit;border:none;padding:0;cursor:pointer;outline:inherit;user-select:none;&:focus{background:inherit;}"]);let eT=d.ZP.div.withConfig({displayName:"styles__MainBlock",componentId:"sc-1rikxdq-0"})(["display:flex;justify-content:start;flex-direction:column;width:100%;height:fit-content;max-height:calc(100vh - 100px);border-radius:32px;"]),ek=d.ZP.div.withConfig({displayName:"styles__BackButton",componentId:"sc-1rikxdq-1"})(["position:fixed;top:0;right:0;width:64px;height:64px;display:flex;z-index:601;transition:all 0.2s ease-out;appearance:none;background:transparent;border:none;outline:none;cursor:pointer;svg{margin:auto;}"]),ej=d.ZP.div.withConfig({displayName:"styles__SelectCartItemHeader",componentId:"sc-1rikxdq-2"})(["width:100%;z-index:1;padding:16px 64px;"]),eO=d.ZP.div.withConfig({displayName:"styles__SelectCartItemTitle",componentId:"sc-1rikxdq-3"})(["font-size:28px;line-height:33px;font-weight:500;color:#000000;text-align:center;"]),eP=d.ZP.div.withConfig({displayName:"styles__CartItems",componentId:"sc-1rikxdq-4"})(["display:flex;flex-direction:column;row-gap:40px;padding:40px;overflow-y:auto;"]),eI=d.ZP.div.withConfig({displayName:"styles__CartItem",componentId:"sc-1rikxdq-5"})(["display:flex;justify-content:space-between;align-items:center;column-gap:30px;& + &{position:relative;:before{position:absolute;content:'';width:100%;height:0.5px;top:-20px;background-color:#d9d9d9;}}"]),eN=d.ZP.div.withConfig({displayName:"styles__ItemInfo",componentId:"sc-1rikxdq-6"})([""]),eD=d.ZP.div.withConfig({displayName:"styles__ItemTitle",componentId:"sc-1rikxdq-7"})(["display:flex;align-items:center;font-size:16px;line-height:20px;font-weight:500;cursor:pointer;color:'#212121';"]),eM=d.ZP.div.withConfig({displayName:"styles__ItemOptions",componentId:"sc-1rikxdq-8"})(["margin-top:4px;font-size:14px;line-height:18px;font-weight:400;color:#a8a8a8;"]),eA=d.ZP.div.withConfig({displayName:"styles__DeleteIconWrapper",componentId:"sc-1rikxdq-9"})(["min-width:24px;max-width:24px;display:flex;align-items:center;cursor:pointer;"]);function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eR=e=>{let{title:t,titleId:n,...r}=e;return u.createElement("svg",eL({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),t?u.createElement("title",{id:n},t):null,i||(i=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.26 5H16a3 3 0 0 0-3-3h-2a3 3 0 0 0-3 3H4a1 1 0 0 0 0 2h1v12a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V7h1a1 1 0 1 0 0-2h-3.74ZM17 7H7v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7Zm-7-2h4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1Z",fill:"#535F75"})))},eZ=n(29048);function ez(e){let{cartItems:t,onClose:n}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(eT,{children:[(0,x.jsx)(ek,{onClick:n,children:(0,x.jsx)(eZ.Z,{})}),(0,x.jsx)(ej,{children:(0,x.jsx)(eO,{children:"Какое блюдо удалить?"})}),(0,x.jsx)(eP,{children:t.map(e=>{let t=(()=>
29{let t=[],n=e?.variant?.title;n&&t.push(n);let r=e?.extras?.map(e=>e.title);return r?.length&&(t=[...t,...r]),t.join(" + ")})();return(0,x.jsxs)(eI,{onClick:()=>n({cartItem:e}),children:[(0,x.jsxs)(eN,{children:[(0,x.jsx)(eD,{children:e.product.title}),(t||e?.comment)&&(0,x.jsxs)(eM,{children:[t,t&&(0,x.jsx)("br",{}),e?.comment]})]}),(0,x.jsx)(eA,{children:(0,x.jsx)(eR,{})})]},String(e.id))})})]})})}let eF=e=>e.stopPropagation();var eB=function(e){let{resolve:t,destroy:n,cartItems:r}=e;(0,a.I0)();let{0:i,1:o}=(0,u.useState)(!0),s=(0,u.useCallback)(e=>{t({stageCode:e?.stageCode||"cancel",cartItem:e?.cartItem}),o(!1),setTimeout(n,300)},[t,n]);return(0,x.jsx)(eC,{onClick:()=>s({}),isOpen:i,children:(0,x.jsx)(eE,{isOpen:i,onClick:eF,children:(0,x.jsx)(ez,{cartItems:r,onClose:e=>s(e)})})})},eH=n(13174),e$=n(47041);function eU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eU(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let eG=((r={}).SET_CART="SET_CART",r.SET_CART_TYPE="SET_CART_TYPE",r.SET_CART_ITEM="SET_CART_ITEM",r.SET_CART_ITEMS="SET_CART_ITEMS",r.REMOVE_PRODUCT="REMOVE_PRODUCT",r.REMOVE_ITEM="REMOVE_ITEM",r.SET_OPTIONS="SET_OPTIONS",r.TOGGLE_OPTION="TOGGLE_OPTION",r.RESET_OPTIONS="RESET_OPTIONS",r.UPDATE_CART_ITEM_CHANGE_STATUS="UPDATE_CART_ITEM_CHANGE_STATUS",r.SET_LOADING="SET_LOADING",r),eV=e=>t=>{(0,e$.setCookie)("cartType",e,{maxAge:2592e3}),t(e6(e))},eq=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";arguments.length>4&&void 0!==arguments[4]&&arguments[4],arguments.length>5&&void 0!==arguments[5]&&arguments[5];let i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"default",s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"storefront",l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:"",d=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"",p=arguments.length>12&&void 0!==arguments[12]?arguments[12]:"";!t&&e?.variants?.[0]&&(t=e?.variants?.[0]);let f=(e?.price||0)/100,{title:h,sku:m}=e,g=a.h.getState().profile.user.userId;(0,c.Iq)({title:h,sku:m,price:f,qty:1,section:u,category:d,source:p},g);let y=eX({product:e,variant:t,extras:n,comment:r,complimentId:i,type:o,preorderPage:l});return(e,t)=>{let n;let{cart:{items:r},profile:i}=t(),a=r.find(e=>e.hash===y.hash);if(a){let e=(a?.amount||0)+1,t=[...a?.changes||[],{amount:e,createdAt:new Date().getTime()}];n=eY(eY({},a),{},{amount:e,changes:t}),y["recommendation-id"]&&(n["recommendation-id"]=y["recommendation-id"])}else n=eY(eY({},y),{},{amount:1,changes:[{amount:1,createdAt:new Date().getTime(),status:"created"}]});e("recommendation"===s?e5((0,eh.qS)(n,i,"cart",!1,o)):e5((0,eh.qS)(n,i,"storefront",!1,o))),e(e2(n))}},eW=(e,t)=>{let n=(0,e$.getCookie)("cartType")??"default";return async(r,i)=>{let o;let{cart:{items:a}}=i(),s=a.filter(e=>e.type===n).filter(t=>t.product.id===e.id);if(s?.length===1&&(o=s[0]),s?.length>1){let e=await r(eJ({createModal:t,cartItems:s}));o=e?.payload?.cartItem}if(!o)return null;r(eQ(o))}},eX=e=>{let{product:t,variant:n,extras:r,comment:i,complimentId:o,type:a="default",preorderPage:s}=e;return eY({hash:(0,eH.ny)({product:t,variant:n,extras:r,comment:i,"compliment-id":o,type:a}),type:a,product:t,changes:[],variant:n,extras:r,comment:i,"compliment-id":o,"preorder-page":s},t["recommendation-id"]&&{"recommendation-id":t["recommendation-id"]})},eK=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";arguments.length>2&&void 0!==arguments[2]&&arguments[2];let n=(e?.price||0)/100,r=ta(e.product.id),{title:i,sku:o}
29=e?.product,s=a.h.getState().profile.user.userId;return(0,c.Iq)({title:i,sku:o,price:n,qty:1,section:t,category:r,source:"Корзина"},s),(t,n)=>{let{cart:{items:r}}=n(),i=r.find(t=>t.hash===e.hash),o=e.amount>0?e.amount+1:1,a=[...i?.changes||[],{amount:o,createdAt:new Date().getTime(),status:"created"}],s=eY(eY({},i),{},{amount:o,changes:a});s["compliment-id"]&&t(eq(s.product,null,null)),s["compliment-id"]||t(e5(s)),t(e2(s))}},eJ=(0,s.hg)("OPEN_CART_ITEM_SELECT",async(e,t)=>{let{createModal:n,cartItems:r}=e,{getState:i}=t;return n(eB,{cartItems:r})}),eQ=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Корзина",n=(e?.price||0)/100,r=ta(e.product.id),{title:i,sku:o}=e?.product,s=a.h.getState().profile.user.userId;return(0,c.C3)({title:i,sku:o,price:n,qty:1,section:t,category:r},s),(t,n)=>{let{cart:{items:r}}=n(),i=r.find(t=>t.hash===e.hash),o=e.amount>1?e.amount-1:0,a=[...i?.changes||[],{amount:o,createdAt:new Date().getTime(),status:"created"}],s=eY(eY({},i),{},{amount:o,changes:a});t(e5(s)),t(e2(s))}},e0=(e,t)=>{let n=(e?.price||0)/100,r=e?.amount??1,i=ta(e.product.id),{title:o,sku:s}=e?.product,l=a.h.getState().profile.user.userId;return(0,c.C3)({title:o,sku:s,price:n,qty:r,section:t,category:i},l),async(t,n)=>{let{cart:{items:r}}=n(),i=r.find(t=>t.hash===e.hash),o=i?.changes||[];o.push({amount:0,createdAt:new Date().getTime(),status:"created"});let a=eY(eY({},i),{},{amount:0,changes:o});await t(e5(a)),await t(e2(a))}},e1=async(e,t,n,r)=>async(i,o)=>{let{cart:{items:a}}=o(),s=a.find(t=>t.hash===e.hash),l=s?.changes||[];l.push({variant:t,extras:n,comment:r,createdAt:new Date().getTime(),status:"created"});let c=eY(eY({},s),{},{variant:t,extras:n,comment:r,changes:l});await i(e5(c)),await i(e2(c))},e2=e=>(t,n)=>{let r=e?.changes?[...e.changes].sort((e,t)=>t.createdAt-e.createdAt)?.[0]:void 0;setTimeout(()=>{let{cart:{items:i}}=n(),o=i.find(t=>t.hash===e.hash),a=o?.changes,s=a?[...a].sort((e,t)=>e.createdAt-t.createdAt)[0]:void 0,l=a?[...a].sort((e,t)=>t.createdAt-e.createdAt)[0]:void 0;if(r===l){if("success"===l.status||a.find(e=>"pending"===e.status))return;if(o?.id){if(r?.variant||r?.extras||r?.comment){t(te(o,r.createdAt,"pending")),ti(e).then(e=>{t(te(o,r.createdAt,"success")),t(e2(o))}).catch(e=>{t(te(o,r.createdAt,"error"))});return}o?.amount<=0&&(t(te(o,r.createdAt,"pending")),to(o).then(n=>{t(e8(e))}).catch(e=>{t(te(o,r.createdAt,"error"))})),o?.amount>0&&(t(te(o,r.createdAt,"pending")),ti(o).then(e=>{t(te(o,r.createdAt,"success")),t(e2(o))}).catch(e=>{t(te(o,r.createdAt,"error"))}))}else{if(o?.amount<=0)return;t(te(o,s.createdAt,"pending")),(0,eH.aY)(o.product.id,o.variant,o.extras,o.comment,o?.["compliment-id"],o?.["preorder-page"]?.id,"",o?.["recommendation-id"]).then(n=>{let r=eY(eY({},o),{},{id:n.data.id,price:n.data.price,product:n.data.product,"recommendation-id":n.data["recommendation-id"]});t(te(e,s.createdAt,"success")),t(e5(r)),t(e2(r))}).catch(n=>{t(te(e,s.createdAt,"error"))})}}},500)},e4=e=>{let t=a.h.getState().cart,n=t?.items?.filter(t=>t.type===e);return n.length?e=>{n.forEach(t=>{to(t).then(n=>{e(e8(t))})})}:null},e3=e=>e.length?t=>{e.forEach(e=>{to(e).then(n=>{t(e8(e))})})}:null,e6=e=>({type:eG.SET_CART_TYPE,payload:e}),e5=e=>({type:eG.SET_CART_ITEM,payload:e}),e9=e=>{let t=e.map(e=>{let t=(0,eH.ny)(e);return e.hash=t,e});return{type:eG.SET_CART_ITEMS,payload:t}},e7=e=>({type:eG.SET_LOADING,payload:e}),e8=e=>{e?.price,e?.amount,ta(e.product.id);let{title:t,sku:n}=e?.product;return{type:eG.REMOVE_ITEM,payload:e}},te=(e,t,n)=>({type:eG.UPDATE_CART_ITEM_CHANGE_STATUS,payload:{item:e,createdAt:t,status:n}}),tt=e=>({type:eG.TOGGLE_OPTION,payload:e}),tn=(0,s.hg)("OPEN_PRODUCT",async(e,t)=>{let{createModal:n,product:r,preorderPage:i,cartItem:o,closeSearchModal:a,restaurant:s,cartType:l,type:c,section:u,categoryName:d}=e,{getState:p}=t;await n(S,{product:r,preorderPage:i,cartItem:o,closeSearchModal:a,restaurant:s,cartType:l,type:c,section:u,categoryName:d})}),tr=(0,s.hg)("OPEN_PRODUCT",async(e,t)=>{let{createModal:n,product:r,cartItem:i,closeSearchModal:o,restaurant:a}=e,{getState:s}=t;await n(ex,{product:r,cartItem:i,closeSearchModal:o,restaurant:a})}),ti=async e=>{let t=e?.variant?.id||"",n=e?.extras?.map(e=>`${e?.id}`)||[],r={method:"PATCH",body:JSON.stringify({type:(0,e$.getCookie)("cartType")??"default","extra-ids":n,"variant-id":`${t}`,comment:e.comment,amount:e.amount}),headers:{"Content-Type":"application/merge-patch+json",accept:"application/json"}};return(0,l.ZP)(`me/cart/items/${e.id}`,r).catch(e=>console.log(e))},to=async e=>(0,l.ZP)(`me/cart/items/${e.id}`,{method:"DELETE",headers:{accept:"*/*"}}).catch(e=>console.log(e)),ta=e=>{let{restaurants:t}
29=a.h.getState(),n=t?.categories||[];return n.find(t=>t.products.find(t=>t.id===e))?.title||null}},89757:function(e,t,n){"use strict";n.d(t,{h:function(){return D},I0:function(){return M},v9:function(){return A}});var r=n(14890),i=n(9473),o=n(27272),a=n(53894),s=n(4730),l=n(8307),c=n(15893),u=n(18386),d=n(47041);let p=["id"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let m=Number((0,d.getCookie)("deliveryRestaurantId")||"60")||null,g=Number((0,d.getCookie)("selfRestaurantId")||"60")||null,y=(0,d.getCookie)("deliveryType")||"delivery",v=(0,o.Lq)({isAuth:!1,codeSeconds:0,csrfToken:null,wishlist:[],deliveryIsoTime:null,deliveryForecastTime:0,isForecastTimeLoading:!1,deliveryRestaurantId:m,selfIsoTime:null,selfRestaurantId:g,deliveryType:y,autoTime:null,preorderDeliveryIsoTime:null,preorderSelfIsoTime:null,loading:!0,user:{firstname:"",birthDate:"",middleName:"",lastName:"",phone:"",email:"",gender:"",additionalRecipients:[],addresses:[],loyalty:{level:1,name:"Гость Кофемании",score:0,points:0}}},e=>{e.addCase(c.d.ADD_WISHLIST,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{wishlist:[...e.wishlist,n]})}),e.addCase(c.d.SET_WISHLIST,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{wishlist:n})}),e.addCase(c.d.REMOVE_WISHLIST,(e,t)=>{let{payload:n}=t,r=e.wishlist.filter(e=>e.id!==n);return h(h({},e),{},{wishlist:r})}),e.addCase(c.d.SIGN_IN,e=>h(h({},e),{},{isAuth:!0})),e.addCase(c.d.SIGN_OUT,e=>h(h({},e),{},{isAuth:!1})),e.addCase(c.d.SET_USER,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{user:h(h({},e.user),n)})}),e.addCase(c.d.ADD_ADDRESS,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{user:h(h({},e.user),{},{addresses:[...e.user.addresses,n]})})}),e.addCase(c.d.REMOVE_ADDRESS,(e,t)=>{let{payload:n}=t,r=e.user.addresses.filter(e=>e.id!==n);return h(h({},e),{},{user:h(h({},e.user),{},{addresses:r})})}),e.addCase(c.d.UPDATE_ADDRESS,(e,t)=>{let{payload:n}=t,{id:r}=n,i=(0,s.Z)(n,p),o=e.user.addresses.findIndex(e=>e.id===r);-1!==o&&(e.user.addresses[o]=h(h({},e.user.addresses[o]),i))}),e.addCase(u.aM.fulfilled,(e,t)=>{let{payload:n}=t;e.csrfToken=n}),e.addCase(c.d.SET_ADDITIONAL_RECIPIENTS,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{user:h(h({},e.user),{},{additionalRecipients:n})})}),e.addCase(c.d.ADD_ADDITIONAL_RECIPIENT,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{user:h(h({},e.user),{},{additionalRecipients:[...e.user.additionalRecipients,n]})})}),e.addCase(c.d.UPDATE_ADDITIONAL_RECIPIENT,(e,t)=>{let{payload:n}=t,r=[];return n?.id&&(r=e.user.additionalRecipients.map(e=>e.id===n.id?n:e)),h(h({},e),{},{user:h(h({},e.user),{},{additionalRecipients:r})})}),e.addCase(c.d.REMOVE_ADDITIONAL_RECIPIENT,(e,t)=>{let{payload:n}=t,r=e.user.additionalRecipients.filter(e=>e.id!==n);return h(h({},e),{},{user:h(h({},e.user),{},{additionalRecipients:r})})}),e.addCase(u.y$.fulfilled,(e,t)=>{let{address:n}=t.payload,r=[n,...e.user.addresses];e.user.addresses=r.map((e,t)=>0===t&&!0!==e.disabled?h(h({},e),{},{checked:!0,sort:Date.now()}):h(h({},e),{},{checked:!1}))}),e.addCase(u.Ro.fulfilled,(e,t)=>{let{addressId:n}=t.payload,r=e.user.addresses.filter(e=>e.id!==n).sort((e,t)=>t?.sort-e?.sort),i=!!r.find(e=>e?.checked);e.user.addresses=r.map((e,t)=>!1!==i||e.disabled||e.isOutOfZone?e:(i=!0,h(h({},e),{},{checked:!0,sort:Date.now()})))}),e.addCase(u.ju.pending,(e,t)=>{e.loading=!0}),e.addCase(u.ju.fulfilled,(e,t)=>{let{addresses:n}=t.payload;e.user.addresses=n.map(e=>e?.checked?h(h({},e),{},{sort:Date.now()}):e),e.loading=!1}),e.addCase(c.d.UPDATE_DELIVERY_TYPE,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{deliveryType:n})}),e.addCase(c.d.UPDATE_DELIVERY_TIME,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{deliveryIsoTime:void 0!==n.deliveryIsoTime?n.deliveryIsoTime:e.deliveryIsoTime,selfIsoTime:void 0!==n.selfIsoTime?n.selfIsoTime:e.selfIsoTime})}),e.addCase(c.d.UPDATE_PREORDER_DELIVERY_TIME,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{preorderDeliveryIsoTime:void 0!==n.preorderDeliveryIsoTime?n.preorderDeliveryIsoTime:e.preorderDeliveryIsoTime,preorderSelfIsoTime:void 0!==n.preorderSelfIsoTime?n.preorderSelfIsoTime:e.preorderSelfIsoTime})}),e.addCase(c.d.INIT_DELIVERY_SETTINGS,(e,t)=>{let{payload:n}=t;return h(h({},e),n)}),e.addCase(u.Fc.fulfilled,(e,t)=>{let{autoTime:n,deliveryIsoTime:r,selfIsoTime:i,deliveryRestaurantId:o,selfRestaurantId:a,deliveryType:s}=t.payload;return n?h(h(h(h(h(h({},e),n&&((s??e.deliveryType)==="delivery"?{deliveryIsoTime:null}:{selfIsoTime:null})),n&&{autoTime:n}),s&&{deliveryType:s}),Number.isInteger(o)&&{deliveryRestaurantId:o}),Number.isInteger(a)&&{selfRestaurantId:a}):h(h(h(h(h(h({},e),s&&{deliveryType:s}),Number.isInteger(o)&&{deliveryRestaurantId:o}),Number.isInteger(a)&&{selfRestaurantId:a}),r&&{deliveryIsoTime:r}),i&&{selfIsoTime:i})}),e.addCase(u.h0.fulfilled,(e,t)=>{let{deliveryRestaurantId:n,selfRestaurantId:r,deliveryType:i}=t.payload;Object.assign(e,{deliveryRestaurantId:n,selfRestaurantId:r,deliveryType:i})}),e.addCase(c.d.SET_FORECAST_TIME,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{deliveryForecastTime:n?.deliveryForecastTime||0})}),e.addCase(c.d.SET_IS_FORECAST_TIME_LOADING,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{isForecastTimeLoading:n?.isLoading||0})}),e.addCase(c.d.SET_LOADING,(e,t)=>{let{payload:n}=t;return h(h({},e),{},{loading:n})})});var b=n(16931);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?x(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let _={items:[],type:(()=>{switch((0,d.getCookie)("cartType")){case"preorder":return"preorder";case"catering":return"catering";default:return"default"}})(),options:{isNeedExtraBread:!1,isNeedCutlery:!1},deliveryCost:0,deliveryCostSetByDispatcher:!1,quantity:0,total:0,loading:!0},C={};var S=n(74832);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let k={modals:[],buttonModal:{id:"",isOpen:!0,content:null},alertModal:{mode:"warning",isOpen:!1,content:null},mobileAppsAlert:{isOpen:!1,height:60},weatherAlert:{isOpen:!1,content:null,height:56}};var j=n(9556);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let I=(0,o.Lq)({restaurants:[],categories:[],currenntDeliveryRestaurantId:3,loading:!0,curRestaurant:{id:0,title:"",slug:"",lat:0,lng:0,headImageUrl:"",headImageSmallUrl:"",description:"",shortDescription:"",keywords:"",address:"",metro:"",phone:"",innerId:0,availableForDelivery:!1,radius:0,changingTables:!1,displayInPickup:!1,isClosed:!1,closedDescription:"",isAirport:!1,location:"",terminal:"",isHidden:!1,schedule:{delivery:[],pickup:[]},company:{id:0,name:"","invoicebox-id":""},projects:[{id:0,title:"",description:"",logo:"","logo-small":"","logo-small-closed":""}],photos:[{"full-image-url":"","large-image-url":"","small-image-url":""}],distance:0,reservation:""},curStorefront:[]},e=>{e.addCase(j.gS.SET_STATE,(e,t)=>{let{payload:n}=t;return P(P({},e),{},{restaurants:n.restaurants||e.restaurants||[],categories:n.categories,curRestaurant:n.curRestaurant,curStorefront:n.curStorefront})}),e.addCase(j.gS.SET_CATEGORIES,(e,t)=>{let{payload:n}=t;return P(P({},e),{},{categories:n.categories})}),e.addCase(j.nj.pending,(e,t)=>{Object.assign(e,{loading:!0})}),e.addCase(j.nj.fulfilled,(e,t)=>{Object.assign(e,{restaurants:t.payload,loading:!1})}),e.addCase(j.yy.fulfilled,(e,t)=>{Object.assign(e,{setCurrenntDeliveryRestaurantId:t.payload.id})}),e.addCase(j.N7.fulfilled,(e,t)=>{Object.assign(e,{currenntDeliveryRestaurantId:t.payload})}),e.addCase(j.wI.fulfilled,(e,t)=>{Object.assign(e,{currenntDeliveryRestaurantId:t.payload})})}),N=(0,r.UY)({cart:function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,{type:n,payload:r}=arguments.length>1?arguments[1]:void 0;switch(n){case b.DP.SET_CART:return e=r,w(w({},t),{},{deliveryCost:void 0!==r.deliveryCost?r.deliveryCost:t.deliveryCost,deliveryCostSetByDispatcher:void 0!==r.deliveryCostSetByDispatcher?r.deliveryCostSetByDispatcher:t.deliveryCostSetByDispatcher,quantity:void 0!==r.quantity?r.quantity:t.quantity,total:void 0!==r.total?r.total:t.total});case b.DP.SET_CART_TYPE:return w(w({},t),{},{type:r});case b.DP.SET_CART_ITEM:{let n=(e=t.items).findIndex(e=>e.hash===r.hash);return -1!==n?e[n]=r:e.push(r),w(w({},t),{},{items:[...e]})}case b.DP.SET_CART_ITEMS:return e=r,w(w({},t),{},{items:[...e]});case b.DP.REMOVE_ITEM:{let n=(e=t.items).findIndex(e=>e.id===r.id);return e.splice(n,1),w(w({},t),{},{items:[...e]})}case b.DP.UPDATE_CART_ITEM_CHANGE_STATUS:return e=t.items,r.item,e.map(e=>{if(e?.changes&&Array.isArray(e.changes))return e.changes.map(e=>(e.createdAt===r.createdAt&&(e.status=r.status),e))}),w(w({},t),{},{items:[...e]});case b.DP.SET_OPTIONS:return w(w({},t),{},{options:r});case b.DP.TOGGLE_OPTION:return w(w({},t),{},{options:{isNeedExtraBread:"need-extra-bread"===r?!t.options.isNeedExtraBread:t.options.isNeedExtraBread,isNeedCutlery:"need-cutlery"===r?!t.options.isNeedCutlery:t.options.isNeedCutlery}});case b.DP.RESET_OPTIONS:return w(w({},t),{},{options:{isNeedExtraBread:!1,isNeedCutlery:!1}});case b.DP.SET_LOADING:return w(w({},t),{},{loading:r});default:return t}},ui:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,{type:t,payload:n}=arguments.length>1?arguments[1]:void 0;switch(t){case S.T9.OPEN_MODAL:return T(T({},e),{},{modals:[...e.modals,{id:e.modals.length,content:n.modal,className:n.modalClass}]});case S.T9.CLOSE_MODAL:let r=n.modalClass;if(r){let t=e.modals.filter(e=>e.className!==r);return T(T({},e),{},{modals:t})}return e.modals.pop(),T(T({},e),{},{modals:e.modals});case S.T9.SET_BUTTON_CONTENT:return T(T({},e),{},{buttonModal:T(T({},e.buttonModal),{},{id:n.id,content:n.content})});case S.T9.SHOW_BUTTON:return T(T({},e),{},{buttonModal:T(T({},e.buttonModal),{},{isOpen:!0})});case S.T9.HIDE_BUTTON:return T(T({},e),{},{buttonModal:T(T({},e.buttonModal),{},{isOpen:!1})});case S.T9.DESTROY_BUTTON:if(e.buttonModal.isOpen)return e;return T(T({},e),{},{buttonModal:{id:"",isOpen:!1,content:null}});case S.T9.OPEN_ALERT:return T(T({},e),{},{alertModal:T(T({},e.alertModal),{},{isOpen:!0})});case S.T9.HIDE_ALERT:return T(T({},e),{},{alertModal:T(T({},e.alertModal),{},{isOpen:!1})});case S.T9.DESTROY_ALERT:return T(T({},e),{},{alertModal:T(T({},e.alertModal),{},{isOpen:!1,content:null})});case S.T9.SET_ALERT:return T(T({},e),{},{alertModal:T(T({},e.alertModal),{},{isOpen:n.isOpen,mode:n.mode,content:n.content})});case S.T9.OPEN_MOBILE_APPS_ALERT:return T(T({},e),{}
29,{mobileAppsAlert:T(T({},e.mobileAppsAlert),{},{isOpen:!0})});case S.T9.CLOSE_MOBILE_APPS_ALERT:return T(T({},e),{},{mobileAppsAlert:T(T({},e.mobileAppsAlert),{},{isOpen:!1})});case S.T9.SET_WEATHER_ALERT:return T(T({},e),{},{weatherAlert:T(T({},e.weatherAlert),n)});case S.T9.DESTROY_WEATHER_ALERT:return T(T({},e),{},{weatherAlert:T(T({},e.weatherAlert),{},{isOpen:!1})});default:return e}},profile:v,restaurants:I,search:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,{type:t,payload:n}=arguments.length>1?arguments[1]:void 0;return e}});try{window&&Object.assign({},window.__PRELOADED_STATE__)}catch{}let D=(0,o.xC)({reducer:N,middleware:[a.Z],devTools:!1});try{delete window.__PRELOADED_STATE__}catch{}let M=()=>(0,i.I0)(),A=i.v9},18386:function(e,t,n){"use strict";n.d(t,{e0:function(){return eo},y$:function(){return J},zd:function(){return Y},Mp:function(){return N},gi:function(){return $},as:function(){return eh},Nn:function(){return eg},E8:function(){return O},Cx:function(){return T},SS:function(){return X},Xw:function(){return el},sB:function(){return q},GS:function(){return B},YR:function(){return U},Ri:function(){return es},Ro:function(){return Q},$f:function(){return D},Jg:function(){return V},Fc:function(){return ed},h0:function(){return ep},ju:function(){return en},aM:function(){return W},BY:function(){return j},K4:function(){return ef},av:function(){return R},Q5:function(){return F},zB:function(){return A},pw:function(){return ea},y3:function(){return z},L5:function(){return Z},Jp:function(){return em},$e:function(){return ec},SP:function(){return eu},Xn:function(){return G},LK:function(){return K}});var r=n(8307),i=n(27272),o=n(15893),a=n(39540),s=n(38580);async function l(){let e=this?.crypto||window?.crypto;return u.call(this,await e.subtle.generateKey({name:"AES-CBC",length:256},!0,["encrypt","decrypt"]))}async function c(e){return(this?.crypto||window?.crypto).subtle.importKey("raw",p(e),"AES-CBC",!0,["encrypt","decrypt"])}async function u(e){let t=this?.crypto||window?.crypto;return f(await t.subtle.exportKey("raw",e))}async function d(e,t,n){let r=new TextEncoder().encode(n),i=this?.crypto||window?.crypto;return f(await i.subtle.encrypt({name:"AES-CBC",iv:p(t)},await c.call(this,e),r))}function p(e){return Uint8Array.from(atob(e),e=>e.charCodeAt(0))}function f(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}var h=n(47041);n(16931);var m=n(9556),g=n(90102),y=n(73525),v=n(68179),b=n(50555),x=n(82229),w=n(13174),_=n(89757),C=n(83454);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let T=e=>{let{lat:t,lng:n,restaurantId:r}=e;return async e=>{if(void 0===t||void 0===n||!t||!n)return;e(k(!0));let i=new URLSearchParams({lat:t,lng:n,"restaurant-id":r}).toString(),o=await (0,a.ZP)(`channels/forecast-time?${i}`).then(t=>(setTimeout(()=>{e(k(!1))},1e3),t?.data)),s=0;return o&&(s=o?.minutes??0),await e(j({deliveryForecastTime:s})),s}},k=e=>({type:o.d.SET_IS_FORECAST_TIME_LOADING,payload:{isLoading:e}}),j=e=>{let{deliveryForecastTime:t}=e;return{type:o.d.SET_FORECAST_TIME,payload:{deliveryForecastTime:t}}},O=()=>async e=>await (0,a.ZP)("me/favorites").then(t=>{let n=t?.data?.map(e=>e);return e(F(n||[])),n}).catch(e=>console.log(e)),P=async e=>{let t=await (0,a.ZP)("me/favorites",{method:"POST",body:JSON.stringify({product:e,type:"default"})});return!!t?.data&&t.data},I=async e=>await (0,a.ZP)(`me/favorites/${e}`,{method:"DELETE",headers:{accept:"*/*"}}),N=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return async r=>{r(M(e,"add"));let i=_.h.getState().profile.user.userId;(0,v.OD)({title:e.title,sku:e.sku,price:(e?.price||0)/100,qty:1,section:t,category:n??e.category??""},i);let a=await P(e.id);return(console.log("addToFavoritesApiRequest - result ",a),a)?(r({type:o.d.ADD_WISHLIST,payload:a}),a):null}},D=e=>async t=>{t(M(e.product,"remove")),I(e.id),t({type:o.d.REMOVE_WISHLIST,payload:e.id})},M=(e,t)=>async n=>{let r=_.h.getState(),i=r.restaurants.categories;if(!i||!i.length)return;let o=i.findIndex(e=>0===e.id);if(-1===o)return;let a=i[o],s=[...a.products];"add"===t?s.find(t=>
29t.id===e.id)||s.push(E(E({},e),{},{isVisible:!0,isAvailable:(0,b._A)(e,r.profile),labels:(0,b.g7)(e,r.profile)})):"remove"===t&&(s=s.filter(t=>t.id!==e.id));let l=E(E({},a),{},{products:s}),c=[...i];c[o]=l,n((0,m.r4)(c))},A=()=>({type:o.d.SIGN_IN}),L=()=>((0,h.deleteCookie)("authToken"),(0,h.deleteCookie)("authTokenLoyalty"),{type:o.d.SIGN_OUT}),R=e=>({type:o.d.SET_USER,payload:e});async function Z(e){let t=E(E({},e),{},{"is-private-house":e?.private,title:e?.title||e?.label||e?.value,"public-part":e?.label||e?.title||e?.value});return(0,a.ZP)(`me/addresses/${e?.id}`,{method:"PATCH",body:JSON.stringify(t)})}let z=e=>({type:o.d.UPDATE_ADDRESS,payload:e}),F=e=>({type:o.d.SET_WISHLIST,payload:e}),B=()=>async e=>(0,a.ZP)("me/profile").then(t=>{if(!t?.data)return e(L()),null;{let n={firstname:t.data?.["first-name"]||t.data?.["last-name"],middleName:t.data?.["mid-name"],lastName:t.data?.["last-name"],birthDate:t.data?.["birth-date"],phone:t.data?.phone,userId:t.data?.["phone-hash"],email:t.data?.email,isEmailVarified:t.data?.["is-email-verified"],subscribeSms:t.data?.subscriptions.sms,subscribeNews:t.data?.subscriptions.news,subscribeClub:t.data?.subscriptions.club,subscribePromo:t.data?.subscriptions.promotions,subscribeDishes:t.data?.subscriptions.dishes,subscribeEmail:t.data?.["subscribe-email"],gender:t.data?.sex};return e(R(n)),e(A()),n}}),H=async e=>{let t=await (0,y.Kn)(e);return!!t&&{title:t?.value??"",label:t?.value??"","public-part":t?.value??"",lat:parseFloat(t?.lat)??0,lng:parseFloat(t?.lng)??0,city:t?.city,street:t?.street,dom:t?.house}},$=()=>async(e,t)=>{let n=[],{profile:{deliveryType:r}}=t();"delivery"===r&&e(ef(!0));let i=await (0,a.ZP)("me/addresses"),o=[],s=JSON.parse(String((0,h.getCookie)("addresses")||"[]"));i?.data&&(o=i?.data??[],o?.sort((e,t)=>t.id-e.id),s?.length&&(0,h.setCookie)("addresses","[]")),i?.data||(o=s);let l=await (0,a.ZP)("channels/global-delivery-zone").then(e=>{let t=e?.data?.[0];return Array.isArray(t?.coordinates)?t.coordinates.map(e=>[e.latitude,e.longitude]):[]});n=(await Promise.all(o.map(async(e,t,n)=>{let r=await H([e.lat,e.lng]);r&&Object.assign(e,r);let i=(0,g.Tg)(e),o=(0,g.eJ)(e,i),a=(0,g.Dm)(e),s=Number(localStorage.getItem("addressId"))||null,c=n?.[0]?.id,u=Number.isInteger(s)?s:c;return{id:e.id,city:e.city,street:a,house:e.dom,apartment:e.kvartira,private:e["is-private-house"],entrance:e.podezd,floor:e.etaj,intercom:e.domofon,comment:e.comment,title:i,lat:e.lat,lng:e.lng,label:o,sort:(t+1)*10,checked:e.id===u,disabled:!1,isOutOfZone:!(0,y.c9)(e.lat,e.lng,l)}}))).filter(e=>e?.title),e(ef(!1)),await e(en({addresses:n}))},U=()=>async e=>{await (0,a.ZP)("me/people").then(t=>{t?.data?(e(ei(t.data)),e(A())):e(L())})},Y=e=>async t=>{let n={method:"POST",body:JSON.stringify(e)};return await (0,a.ZP)("me/people",n)},G=e=>async t=>{let n={method:"PATCH",body:JSON.stringify(e)};return await (0,a.ZP)(`me/people/${e.id}`,n)},V=e=>async t=>{let n=await (0,a.ZP)(`me/people/${e}`,{method:"DELETE",headers:{accept:"*/*"}});return n?.status===204&&t(es(e)),n},q=(0,i.hg)("OPEN_PROFILE",async(e,t)=>{let{createModal:n,product:r,variantId:i,isAuth:o}=e,{getState:a,dispatch:l}=t,{profile:c}=a(),{pathname:u}=new URL(window.location.href),d=(u.includes("/menu"),["/carbon","/restaurants","/franchise"].some(e=>u.startsWith(e)));if((o??c?.isAuth)||d){window.location.href="https://coffeemania.ru/cabinet";return}let p=String((0,h.getCookie)("authErrorCode")??""),f=await n(e=>(0,s.Z)(E(E({},e),{},{product:r,variantId:i,initStageCode:p?"input-call-authorization-exceeded":void 0})));return await l($()),f?.stageCode==="success"&&ym(23457298,"reachGoal","login"),f}),W=(0,i.hg)("SET_CSRF_TOKEN",async e=>e);(0,i.hg)("GET_CODE",async e=>{let{type:t,phone:n}=e,r=await l(),i=function(){return f((this?.crypto||window?.crypto).getRandomValues(new Uint8Array(16)))}(),o=await d(r,i,n);return await fetch("/api/channels/2541d938b0a58946090d7abdde0d3890",{method:"POST",headers:{"Content-Type":"application/json",c5e9db381fb40bf1e7a8abd8e9158b0e:r,"3f69f5f7fec79fab87b904a700a24fd3":i,c5e9db381fb406f1e7a8abd8e9158b0e:o},body:JSON.stringify({phone:n,type:t})}),{status:!0,codeSeconds:60}});let X=(0,i.hg)("GET_CODE",async e=>{let{type:t,phone:n,token:r}=e,i=C.env.API_URL??"https://coffeemania.ru/api/v1"??"";try{let e=await fetch(`${i}/channels/auth-${t}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({phone:n,host:location.host,token:r})});if(e.ok)return{status:!0,codeSeconds:60};let o="";try{let t=await e.json();o=t?.errors?.[0]?.detail??""}catch{}return{status:!1,codeSeconds:0,statusCode:e.status,errorMessage:o}}catch(e){return console.error("getCodeByPhone error:",e),{status:!1,codeSeconds:0}}}),K=(0,i.hg)("GET_CODE",async e=>{let{phone:t,code:n}=e,r=C.env.API_URL??"https://coffeemania.ru/api/v1"??"",i=`${r}/auth`,o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:t,code:n})}).then(async e=>{let t=e.status;return 200===t?E({statusCode:t},await e.json()):{statusCode:t}});return o?.data?.token?{status:!0,codeSeconds:0,token:o.data.token}:(o?.error&&console.error(o.error),o?.statusCode===429)?{status:!1,codeSeconds:0,token:null,errorCode:"limit"}:{status:!1,codeSeconds:60,token:null}});(0,i.hg)("SET_ADDRESSES",async(e,t)=>{let{getState:n,dispatch:r}=t,{profile:{isAuth:i}}=n();return{addresses:er(i)}});let J=(0,i.hg)("ADD_ADDRESS",async(e,t)=>{let{address:n}=e,{getState:r,dispatch:i}=t,{profile:{isAuth:o}}=r(),{result:s,idList:l}=await ee([n],o);Number.isInteger(s?.[0].id)&&localStorage.setItem("addressId",String(s?.[0].id)),!1===Number.isInteger(s?.[0].id)&&localStorage.setItem("addressId",String(""));let c=await (0,a.ZP)("channels/global-delivery-zone").then(e=>{let t=e?.data?.[0];return Array.isArray(t?.coordinates)?t.coordinates.map(e=>[e.latitude,e.longitude]):[]}),u=s?.[0],d=(0,g.Tg)(u),p=(0,g.Tg)(u);return{address:{id:u.id,city:u.city,street:u.street,house:u.dom,apartment:u.kvartira,private:u["is-private-house"],entrance:u.podezd,floor:u.etaj,intercom:u.domofon,comment:u.comment,title:d,lat:u.lat,lng:u.lng,label:p,sort:Date.now(),checked:!0,disabled:!1,isOutOfZone:!(0,y.c9)(u.lat,u.lng,c)}}}),Q=(0,i.hg)("REMOVE_ADDRESS",async(e,t)=>{let{addressId:n}=e,{getState:r,dispatch:i}=t,{profile:{isAuth:o}}=r();return await et([n],o),{addressId:n}});async function ee(e,t){let n=[];if(t){let t=e.map(e=>(0,a.ZP)("me/addresses",{method:"POST",body:JSON.stringify({title:e?.label,"public-part":e?.label,city:e?.city,street:e?.street,dom:e?.dom||e?.house,lat:e?.lat,lng:e?.lng,podezd:e?.entrance||e?.podezd,etaj:e?.floor||e?.etaj,kvartira:e?.apartment||e?.kvartira,"is-
29private-house":e?.private||e?.["is-private-house"],domofon:e?.intercom||e?.domofon,comment:e?.comment})}).then(e=>e?.data));n=await Promise.all(t)}if(!t&&(n=e.map(e=>({id:e?.id||Date.now(),title:e?.label,city:e?.city,street:e?.street,dom:e?.dom,podezd:e?.podezd,kvartira:e?.kvartira,"is-private-house":e?.["is-private-house"],domofon:e?.domofon,etaj:e?.etaj,lat:e?.lat,lng:e?.lng})),n?.length)){let e=JSON.parse(String((0,h.getCookie)("addresses")||"[]"));(0,h.setCookie)("addresses",JSON.stringify([...n,...e]))}return{result:n,idList:e.map((e,t)=>({firstId:e.id,lastId:n?.[t]?.id}))}}async function et(e,t){let n=e.map(e=>(0,a.ZP)(`me/addresses/${e}`,{method:"DELETE"}));if(!t){let t=JSON.parse(String((0,h.getCookie)("addresses")||"[]")).filter(t=>!1===e.includes(t.id));(0,h.setCookie)("addresses",JSON.stringify(t))}return await Promise.all(n)}(0,i.hg)("SET_ADDRESSES",async e=>{let{addresses:t,type:n,isAuth:r=!0}=e,i=t.find(e=>e?.checked)?.id;if(Number.isInteger(i)&&localStorage.setItem("addressId",String(i)),!1===Number.isInteger(i)&&localStorage.setItem("addressId",String("")),"set"===n)return{addresses:t};let o=[];if(r&&(o=await (0,a.ZP)("me/addresses").then(e=>e.data||null)),r||(o=JSON.parse(String((0,h.getCookie)("addresses")||"[]"))),null===o)return{addresses:[]};let s=o.map(e=>e.id),l=t.filter(e=>e?.type==="del").map(e=>e.id),c=o.filter(e=>l.includes(e?.id)).map(e=>e.id);await et(c,r);let u=t.filter(e=>e?.type!=="del").filter(e=>{for(let t of o)if(t?.city===e?.city&&t?.street===e?.street&&t?.dom===e?.dom)return!0;return!1}),d=u.map(e=>e.id),p=t.filter(e=>e?.type!=="del").filter(e=>!d.includes(e.id)&&!1===s.includes(e.id)).map(e=>e.id),f=await ee(t.filter(e=>p.includes(e.id)),r),m=t.filter(e=>e?.type!=="del").filter(e=>!1===d.includes(e.id)).map(e=>{let t=f?.result?.find(t=>t.firstId===e.id);return t?E(E({},e),{},{id:t.lastId}):e}),g=m.find(e=>e.checked)?.id,y=m;if(!g&&Array.isArray(m)&&m.length&&(g=m?.[0]?.id,y=m.map(e=>e.id===g?E(E({},e),{},{checked:!0}):e)),u?.length){let e=u[0];for(let n of t)n.city===e.city&&n.street===e.street&&n.house===e.dom&&(g=n.id);y=m.map(e=>e.id===g?E(E({},e),{},{checked:!0}):e)}return g&&localStorage.setItem("addressId",g),{addresses:y}});let en=(0,i.hg)("SET_ADDRESSES",async e=>{let{addresses:t}=e,n=t.find(e=>e?.checked)?.id;return Number.isInteger(n)&&localStorage.setItem("addressId",String(n)),!1===Number.isInteger(n)&&localStorage.setItem("addressId",String("")),{addresses:t}});async function er(e){let t=[];if(e){let e=await (0,a.ZP)("me/addresses",{method:"GET"});Array.isArray(e?.data)&&(t=e?.data)}return e||(t=JSON.parse(String((0,h.getCookie)("addresses")||"[]"))),t}let ei=e=>({type:o.d.SET_ADDITIONAL_RECIPIENTS,payload:e}),eo=e=>({type:o.d.ADD_ADDITIONAL_RECIPIENT,payload:e}),ea=e=>({type:o.d.UPDATE_ADDITIONAL_RECIPIENT,payload:e}),es=e=>({type:o.d.REMOVE_ADDITIONAL_RECIPIENT,payload:e}),el=()=>{let e=(0,h.getCookie)("deliveryIsoTime")?String((0,h.getCookie)("deliveryIsoTime")):null;null===e&&(0,h.setCookie)("deliveryIsoTime","null"),e&&!["null","undefined"].includes(e)&&new Date(new Date(e)).getTime()-new Date().getTime()<33e5&&((0,h.setCookie)("deliveryIsoTime","null"),e=null),e&&"null"===e&&(e=null);let t=(0,h.getCookie)("selfIsoTime")?String((0,h.getCookie)("selfIsoTime")):null;null===t&&(0,h.setCookie)("selfIsoTime","null"),t&&!["null","undefined"].includes(t)&&new Date(new Date(t)).getTime()-new Date().getTime()<33e5&&((0,h.setCookie)("selfIsoTime","null"),t=null),t&&"null"===t&&(t=null);let n=(0,h.getCookie)("preorderDeliveryIsoTime")?String((0,h.getCookie)("preorderDeliveryIsoTime")):null;null===n&&(0,h.setCookie)("preorderDeliveryIsoTime","null"),n&&"null"!==n&&new Date(new Date(n)).getTime()-new Date().getTime()<33e5&&((0,h.setCookie)("preorderDeliveryIsoTime","null"),n=null),n&&"null"===n&&(n=null);let r=(0,h.getCookie)("preorderSelfIsoTime")?String((0,h.getCookie)("preorderSelfIsoTime")):null;null===r&&(0,h.setCookie)("preorderSelfIsoTime","null"),r&&"null"!==r&&new Date(new Date(r)).getTime()-new Date().getTime()<33e5&&((0,h.setCookie)("preorderSelfIsoTime","null"),r=null),r&&"null"===r&&(r=null);let i={deliveryType:(0,h.getCookie)("deliveryType")?String((0,h.getCookie)("deliveryType")):"delivery",deliveryRestaurantId:(0,h.getCookie)("deliveryRestaurantId")?Number((0,h.getCookie)("deliveryRestaurantId")):Number("60"),selfRestaurantId:(0,h.getCookie)("selfRestaurantId")?Number((0,h.getCookie)("selfRestaurantId")):Number("60"),deliveryIsoTime:e,selfIsoTime:t,autoTime:null,preorderDeliveryIsoTime:n,preorderSelfIsoTime:r};
29return Object.keys(i).forEach(e=>{let t=i[e],n=null===t?"null":String(t);(0,h.setCookie)(e,n,{maxAge:2592e3})}),{type:o.d.INIT_DELIVERY_SETTINGS,payload:i}},ec=e=>({type:o.d.UPDATE_DELIVERY_TIME,payload:e}),eu=e=>({type:o.d.UPDATE_PREORDER_DELIVERY_TIME,payload:e}),ed=(0,i.hg)("SAVE_DELIVERY_SETTINGS",async(e,t)=>{let n=t.getState(),r=["autoTime","deliveryType","deliveryRestaurantId","selfRestaurantId","deliveryIsoTime","selfIsoTime","preorderDeliveryIsoTime","preorderSelfIsoTime"],i=r.reduce((e,t)=>E(E({},e),{},{[`${t}`]:n[`${t}`]}),{});return e.autoTime&&("delivery"===(e.deliveryType??i.deliveryType)?e.deliveryIsoTime=null:e.selfIsoTime=null),r.forEach(t=>{let n=e[t],r=i[t];if(void 0===n||!(JSON.stringify(r)!==JSON.stringify(n)))return;let o=null===n?"null":String(n);(0,h.setCookie)(t,o,{maxAge:2592e3})}),e}),ep=(0,i.hg)("SAVE_DELIVERY_SETTINGS_START",async(e,t)=>e),ef=e=>({type:o.d.SET_LOADING,payload:e}),eh=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return async(n,r)=>{let{profile:i,cart:{items:o,type:a}}=r(),s=t||i.deliveryType;console.log("profile ",i),console.log("cart type ",a),console.log("cart items ",o);let l=o.filter(e=>{let t={product:e.product,type:"default"};return(0,b._A)(t,E(E({},i),{},{deliveryType:s}),"cart")}).filter(e=>e?.type===a).reverse(),c="self"===s?i.selfIsoTime:i.deliveryIsoTime??null,u=null===c&&null;u="default"===a&&"self"===s&&(0,w.AQ)(l,u);let d=null,p="self"===s?0:i.deliveryForecastTime;return console.log("time ",d=(0,x.$b)(u,{deliveryType:s,deliveryForecastTime:p},c,e)),d}},em=e=>async(t,n)=>{console.log("updateDeliverySettings - settings ",e);let r=e?.deliveryType,i=e?.selfRestaurantId,o=e?.deliveryRestaurantId,a=e?.deliveryIsoTime,s=e?.selfIsoTime,l=e?.preorderDeliveryIsoTime,c=e?.preorderSelfIsoTime,u=e?.autoTime;t(u?ed(E(E(E({autoTime:u},i&&{selfRestaurantId:i}),o&&{deliveryRestaurantId:o}),r&&{deliveryType:r})):ed(E(E(E(E(E(E(E({},a&&{deliveryIsoTime:a}),s&&{selfIsoTime:s}),l&&{preorderDeliveryIsoTime:l}),c&&{preorderSelfIsoTime:c}),i&&{selfRestaurantId:i}),o&&{deliveryRestaurantId:o}),r&&{deliveryType:r})))};function eg(){(0,h.deleteCookie)("authErrorCode")}},15893:function(e,t,n){"use strict";var r;n.d(t,{d:function(){return i}});let i=((r={}).ADD_WISHLIST="ADD_WISHLIST",r.REMOVE_WISHLIST="REMOVE_WISHLIST",r.SIGN_IN="SIGN_IN",r.SIGN_OUT="SIGN_OUT",r.CHECK_AUTH="CHECK_AUTH",r.SET_USER="SET_USER",r.SET_ADDRESSES="SET_ADDRESSES",r.ADD_ADDRESS="ADD_ADDRESS",r.REMOVE_ADDRESS="REMOVE_ADDRESS",r.UPDATE_ADDRESS="UPDATE_ADDRESS",r.SET_WISHLIST="SET_WISHLIST",r.SET_ADDITIONAL_RECIPIENTS="SET_ADDITIONAL_RECIPIENTS",r.ADD_ADDITIONAL_RECIPIENT="ADD_ADDITIONAL_RECIPIENT",r.UPDATE_ADDITIONAL_RECIPIENT="UPDATE_ADDITIONAL_RECIPIENT",r.REMOVE_ADDITIONAL_RECIPIENT="REMOVE_ADDITIONAL_RECIPIENT",r.INIT_DELIVERY_SETTINGS="INIT_DELIVERY_SETTINGS",r.UPDATE_DELIVERY_TYPE="UPDATE_DELIVERY_TYPE",r.UPDATE_DELIVERY_TIME="UPDATE_DELIVERY_TIME",r.UPDATE_PREORDER_DELIVERY_TIME="UPDATE_PREORDER_DELIVERY_TIME",r.SET_FORECAST_TIME="SET_FORECAST_TIME",r.SET_IS_FORECAST_TIME_LOADING="SET_IS_FORECAST_TIME_LOADING",r.SET_LOADING="SET_LOADING",r)},9556:function(e,t,n){"use strict";n.d(t,{FA:function(){return m},N7:function(){return h},gS:function(){return c},le:function(){return f},nj:function(){return d},r4:function(){return u},wI:function(){return g},yy:function(){return p}});var r,i=n(27272),o=n(47041),a=n(39540),s=n(50555),l=n(18386);let c=((r={}).SET_STATE="SET_STATE",r.SET_CATEGORIES="SET_CATEGORIES",r),u=e=>({type:c.SET_CATEGORIES,payload:{categories:e}});(0,i.hg)("GET_BANNERS",async()=>(await new Promise(e=>setTimeout(e,1500)),[]));let d=(0,i.hg)("GET_RESTAURANTS",async(e,t)=>{let{dispatch:n,getState:r}=t,i=await (0,a.ZP)("restaurants").then(e=>e?.data||[]);return n((0,l.K4)(!1)),i}),p=(0,i.hg)("SET_CURRENNT_DELIVERY_RESTARAUNT_ID",async e=>{let{id:t}=e;return{id:t}}),f=(0,i.hg)("GET_RESTAURANTS_BY_COORDS",async e=>{let{coords:t,date:n}=e,r=Object.entries({lat:t[0],lng:t[1]}).filter(e=>{let[,t]=e;return["number","string","boolean"].includes(typeof t)}).map(e=>{let[t,n]=e;return`${t}=${n}`}).join("&"),i=n?new URLSearchParams({date:n}).toString():null;return await (0,a.ZP)(`channels/delivery-costs-for-point?${r}${i?"&"+i:""}`).then(e=>e?.data||[])}),h=(0,i.hg)("SET_RESTAURANTS_BY_COORDS",async(e,t)=>{let{coords:n,date:r}=e,{getState:i}=t,{restaurants:{restaurants:s}}=i(),l=Object.entries({lat:n[0],lng:n[1]}).filter(e=>{let[,t]=e;return["number","string","boolean"].includes(typeof t)}).map(e=>{let[t,n]=e;return`${t}=${n}`}).join("&"),c=new URLSearchParams({date:r}).toString(),u=await (0,a.ZP)(`channels/delivery-costs-for-point?${l}${c?"&"+c:""}`).then(e=>e?.data||[]),d=(0,o.getCookie)("deliveryRestaurantId"),p=[];u.map((e,t)=>{let n=s?.filter(e=>e?.["available-for-delivery"]).find(t=>t?.["inner-id"]===e?.["department-number"]);n&&p.push(n)});let f=p?.[0]||null,h=p.map(e=>e.id);if(!isNaN(d)&&h.includes(parseInt(d)))return{restaurantId:parseInt(d),availableRestaurant:f};let m=Number("60");return{restaurantId:h?.[0]||m,availableRestaurant:f}}),m=(0,i.hg)("CREATE_FAVORITE_CATEGORY_BY_RESTAURANT",async(e,t)=>{let{categories:n}=e,{getState:r,dispatch:i}=t,{profile:o,profile:{loading:a},cart:{type:c}}=r(),u=n?.find(e=>0===e.id)?.products.map(e=>e.id);try{let e;let t=await i((0,l.E8)());t?.length&&(e=(0,s.zi)(t,n,o,"preorder"===c));let r=[...n];return u&&(r=r.slice(1)),e&&(r=[e,...r]),r}catch(e){console.error("Failed to call API (Favorites)",{error:e})}}),g=(0,i.hg)("GET_CATEGORIES_BY_RESTAURANT",async(e,t)=>{let{restaurantId:n}=e,{getState:r,dispatch:i}=t,{profile:o,restaurants:{restaurants:c}}=r();if(!Number.isInteger(n))return null;i((0,l.K4)(!0));try{let e=await (0,a.ZP)(`restaurants/${n}/storefront`);if(!e||!e.data)return null;let t=[];Array.isArray(e.data)&&(t=e?.data),Array.isArray(e.data?.categories)&&(t=e?.data.categories);let r=c.find(e=>e.id===n)||null;e.data?.restaurant&&(r=e?.data.restaurant);let l=(0,s.Nb)(t,o,!1,r),{payload:d}=await i(m({categories:l}));return i(u(d)),d}catch(e){console.error("Failed to call API (Favorites)",{error:e})}finally{i((0,l.K4)(!1))}})},74832:function(e,t,n){"use strict";n.d(t,{$m:function(){return f},Ah:function(){return s},K0:function(){return h},M6:function(){return d},Md:function(){return m},Mr:function(){return a},T9:function(){return o},br:function(){return p}});var r,i=n(389);let o=((r={}).OPEN_MODAL="OPEN_MODAL",r.CLOSE_MODAL="CLOSE_MODAL",r.OPEN_BUTTON="OPEN_BUTTON",r.CLOSE_BUTTON="CLOSE_BUTTON",r.SHOW_BUTTON="SHOW_BUTTON",r.HIDE_BUTTON="HIDE_BUTTON",r.SET_BUTTON_CONTENT="SET_BUTTON_CONTENT",r.DESTROY_BUTTON="DESTROY_BUTTON",r.OPEN_ALERT="OPEN_ALERT",r.CLOSE_ALERT="CLOSE_ALERT",r.HIDE_ALERT="HI
29DE_ALERT",r.DESTROY_ALERT="DESTROY_ALERT",r.SET_ALERT="SET_ALERT",r.OPEN_MOBILE_APPS_ALERT="OPEN_MOBILE_APPS_ALERT",r.CLOSE_MOBILE_APPS_ALERT="CLOSE_MOBILE_APPS_ALERT",r.SET_WEATHER_ALERT="SET_WEATHER_ALERT",r.DESTROY_WEATHER_ALERT="DESTROY_WEATHER_ALERT",r),a=e=>{let t=window.document.querySelector("html").style,n=window.document.body.style;return i.tq&&Object.assign(t,{overflow:"auto"}),Object.assign(n,{overflow:"auto"}),Object.assign(t,{width:"100%"}),{type:o.CLOSE_MODAL,payload:{modalClass:e}}},s=()=>e=>{e(l()),setTimeout(()=>{e(c())},300)},l=()=>({type:o.HIDE_BUTTON}),c=()=>({type:o.DESTROY_BUTTON}),u=()=>({type:o.HIDE_ALERT}),d=()=>e=>{e(u()),setTimeout(()=>e({type:o.DESTROY_ALERT}),300)},p=e=>({type:o.SET_ALERT,payload:e}),f=e=>t=>{t(p(e)),setTimeout(()=>t(d()),3e3)},h=e=>({type:o.SET_WEATHER_ALERT,payload:e}),m=()=>({type:o.DESTROY_WEATHER_ALERT})},39142:function(e,t){"use strict";let n={uhd:1980,widescreen:1280,desktop:1024,tablet:768},r=Object.keys(n).reduce((e,t)=>(e[t]=`(max-width: ${n[t]}px)`,e),{}),i={colors:{bg:"#ffffff",font:"#393939",link:"#a22428",border:"#979797",white:"#ffffff",gray:"#F3F1EB",grayDark:"#868686",black:"#272727",milky:"#dbd8d1",green:"#7DBF29",stroke:"#E7E4DF;"},media:{fullHD:"(max-width: 1999.98px)",superLarge:"(max-width: 1599.98px)",extraLarge:"(max-width: 1199.98px)",large:"(max-width: 991.98px)",medium:"(max-width: 767.98px)",small:"(max-width: 575.98px)"},exactMedia:{uhd:r.uhd,widescreen:r.widescreen,desktop:r.desktop,tablet:r.tablet},ui:{modals:[],buttonModal:{id:"",isOpen:!0,content:null},alertModal:{mode:"warning",isOpen:!1,content:null},mobileAppsAlert:{isOpen:!1,height:60},weatherAlert:{isOpen:!1,height:56,content:null}}};t.Z=i},83454:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(87756)}])},71344:function(){},24207:function(){},15663:function(){},12023:function(){},49970:function(e){e.exports={"wrapper-alert":"alert-authorization-exceeded_wrapper-alert__iED3x"}},77663:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},9008:function(e,t,n){e.exports=n(66484)},25675:function(e,t,n){e.exports=n(91381)},41664:function(e,t,n){e.exports=n(72096)},39332:function(e,t,n){e.exports=n(71227)},11163:function(e,t,n){e.exports=n(18326)},92703:function(e,t,n){"use strict";
29var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},51162:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case h:case f:case s:return e;default:return t}}case r:return t}}}(e)===f}},11805:function(e,t,n){"use strict";e.exports=n(51162)},76627:function(e,t,n){e.exports=n(53462)},53462:function(e,t,n){"use strict";var r,i=(r=n(67294))&&"object"==typeof r&&"default"in r?r.default:r,o=n(73935);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
29var l=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};function c(e,t,n){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=n;else{var r=e.createTextRange();r.collapse(!0),r.moveStart("character",t),r.moveEnd("character",n-t),r.select()}}var u={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};function d(e,t,n){var r="",i="",o=null,a=[];if(void 0===t&&(t="_"),null==n&&(n=u),!e||"string"!=typeof e)return{maskChar:t,formatChars:n,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var s=!1;return e.split("").forEach(function(e){s=!s&&"\\"===e||(s||!n[e]?(a.push(r.length),r.length===a.length-1&&(i+=e)):o=r.length+1,r+=e,!1)}),{maskChar:t,formatChars:n,prefix:i,mask:r,lastEditablePosition:o,permanents:a}}function p(e,t){return -1!==e.permanents.indexOf(t)}function f(e,t,n){var r=e.mask,i=e.formatChars;return!!n&&(p(e,t)?r[t]===n:new RegExp(i[r[t]]).test(n))}function h(e,t){return t.split("").every(function(t,n){return p(e,n)||!f(e,n,t)})}function m(e,t){var n=e.maskChar,r=e.prefix;if(!n){for(;t.length>r.length&&p(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var i=r.length,o=t.length;o>=r.length;o--){var a=t[o];if(!p(e,o)&&f(e,o,a)){i=o+1;break}}return i}function g(e,t){return m(e,t)===e.mask.length}function y(e,t){var n=e.maskChar,r=e.mask,i=e.prefix;if(!n){for((t=v(e,"",t,0)).length<i.length&&(t=i);t.length<r.length&&p(e,t.length);)t+=r[t.length];return t}if(t)return v(e,y(e,""),t,0);for(var o=0;o<r.length;o++)p(e,o)?t+=r[o]:t+=n;return t}function v(e,t,n,r){var i=e.mask,o=e.maskChar,a=e.prefix,s=n.split(""),l=g(e,t);return!o&&r>t.length&&(t+=i.slice(t.length,r)),s.every(function(n){for(var s,c;p(e,c=r)&&n!==i[c];){if(r>=t.length&&(t+=i[r]),s=r,o&&p(e,s)&&n===o)return!0;if(++r>=i.length)return!1}return!f(e,r,n)&&n!==o||(r<t.length?t=o||l||r<a.length?t.slice(0,r)+n+t.slice(r+1):y(e,t=t.slice(0,r)+n+t.slice(r)):o||(t+=n),++r<i.length)}),t}function b(e,t){for(var n=e.mask,r=t;r<n.length;++r)if(!p(e,r))return r;return null}function x(e){return e||0===e?e+"":""}function w(e){return"function"==typeof e}function _(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function C(e){return(_()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function S(e){(_()||clearTimeout)(e)}var E=function(e){function t(t){var n=e.call(this,t)||this;n.focused=!1,n.mounted=!1,n.previousSelection=null,n.selectionDeferId=null,n.saveSelectionLoopDeferId=null,n.saveSelectionLoop=function(){n.previousSelection=n.getSelection(),n.saveSelectionLoopDeferId=C(n.saveSelectionLoop)},n.runSaveSelectionLoop=function(){null===n.saveSelectionLoopDeferId&&n.saveSelectionLoop()},n.stopSaveSelectionLoop=function(){null!==n.saveSelectionLoopDeferId&&(S(n.saveSelectionLoopDeferId),n.saveSelectionLoopDeferId=null,n.previousSelection=null)},n.getInputDOMNode=function(){if(!n.mounted)return null;var e=o.findDOMNode(s(s(n))),t="undefined"!=typeof window&&e instanceof window.Element;if(e&&!t)return null;if("INPUT"!==e.nodeName&&(e=e.querySelector("input")),!e)throw Error("react-input-mask: inputComponent doesn't contain input node");return e},n.getInputValue=function(){var e=n.getInputDOMNode();return e?e.value:null},n.setInputValue=function(e){var t=n.getInputDOMNode();t&&(n.value=e,t.value=e)},n.setCursorToEnd=function(){var e=m(n.maskOptions,n.value),t=b(n.maskOptions,e);null!==t&&n.setCursorPosition(t)},n.setSelection=function(e,t,r){void 0===r&&(r={});var i=n.getInputDOMNode(),o=n.isFocused();i&&o&&(r.deferred||c(i,e,t),null!==n.selectionDeferId&&S(n.selectionDeferId),n.selectionDeferId=C(function(){n.selectionDeferId=null,c(i,e,t)}),n.previousSelection={start:e,end:t,length:Math.abs(t-e)})},n.getSelection=function(){return function(e){var t=0,n=0;if("selectionStart"in e&&"selectionEnd"in e)t=e.selectionStart,n=e.selectionEnd;else{var r=document.selection.createRange();r.parentElement()===e&&(t=-r.moveStart("character",-e.value.length),n=-r.moveEnd("character",-e.value.length))}return{start:t,end:n,length:n-t}}(n.getInputDOMNode())},n.getCursorPosition=function(){return n.getSelection().start},n.setCursorPosition=function(e){n.setSelection(e,e)},n.isFocused=function(){return n.focused},n.getBeforeMaskedValueChangeConfig=function(){var e=n.maskOptions,t=e.mask,r=e.maskChar,i=e.permanents,o=e.formatChars;return{mask:t,maskChar:r,permanents:i,alwaysShowMask:!!n.props.alwaysShowMask,formatChars:o}},n.isInputAutofilled=function(e,t,r,i){var o=n.getInputDOMNode();try{if(o.matches(":-webkit-autofill"))return!0}catch(e){}return!n.focused||i.end<r.length&&t.end===e.length},n.onChange=function(e){var t,r,i,o,a,l,c,u,d,h,m,g,x,_,C,S,E,T,k,j=s(s(n)).beforePasteState,O=s(s(n)).previousSelection,P=n.props.beforeMaskedValueChange,I=n.getInputValue(),N=n.value,D=n.getSelection();
29n.isInputAutofilled(I,D,N,O)&&(N=y(n.maskOptions,""),O={start:0,end:0,length:0}),j&&(O=j.selection,N=j.value,D={start:O.start+I.length,end:O.start+I.length,length:0},I=N.slice(0,O.start)+I+N.slice(O.end),n.beforePasteState=null);var M=(t=n.maskOptions,r=I,i=D,o=N,a=O,g=t.mask,x=t.prefix,_=t.lastEditablePosition,C=r,S="",E=0,T=0,k=Math.min(a.start,i.start),i.end>a.start?(l=S=C.slice(a.start,i.end),c=k,u=t.mask,d=t.maskChar,h=l.split(""),m=c,h.every(function(e){for(var n;p(t,n=c)&&e!==u[n];)if(++c>=u.length)return!1;return(f(t,c,e)||e===d)&&c++,c<u.length}),T=(E=c-m)?a.length:0):C.length<o.length&&(T=o.length-C.length),C=o,T&&(1!==T||a.length||(k=a.start===i.start?b(t,i.start):function(e,t){for(var n=t;0<=n;--n)if(!p(e,n))return n;return null}(t,i.start)),C=function(e,t,n,r){var i=n+r,o=e.maskChar,a=e.mask,s=e.prefix,l=t.split("");if(o)return l.map(function(t,r){return r<n||i<=r?t:p(e,r)?a[r]:o}).join("");for(var c=i;c<l.length;c++)p(e,c)&&(l[c]="");return n=Math.max(s.length,n),l.splice(n,i-n),y(e,t=l.join(""))}(t,C,k,T)),C=v(t,C,S,k),(k+=E)>=g.length?k=g.length:k<x.length&&!E?k=x.length:k>=x.length&&k<_&&E&&(k=b(t,k)),S||(S=null),{value:C=y(t,C),enteredString:S,selection:{start:k,end:k}}),A=M.enteredString,L=M.selection,R=M.value;if(w(P)){var Z=P({value:R,selection:L},{value:N,selection:O},A,n.getBeforeMaskedValueChangeConfig());R=Z.value,L=Z.selection}n.setInputValue(R),w(n.props.onChange)&&n.props.onChange(e),n.isWindowsPhoneBrowser?n.setSelection(L.start,L.end,{deferred:!0}):n.setSelection(L.start,L.end)},n.onFocus=function(e){var t=n.props.beforeMaskedValueChange,r=n.maskOptions,i=r.mask,o=r.prefix;if(n.focused=!0,n.mounted=!0,i){if(n.value)m(n.maskOptions,n.value)<n.maskOptions.mask.length&&n.setCursorToEnd();else{var a=y(n.maskOptions,o),s=y(n.maskOptions,a),l=m(n.maskOptions,s),c=b(n.maskOptions,l),u={start:c,end:c};if(w(t)){var d=t({value:s,selection:u},{value:n.value,selection:null},null,n.getBeforeMaskedValueChangeConfig());s=d.value,u=d.selection}var p=s!==n.getInputValue();p&&n.setInputValue(s),p&&w(n.props.onChange)&&n.props.onChange(e),n.setSelection(u.start,u.end)}n.runSaveSelectionLoop()}w(n.props.onFocus)&&n.props.onFocus(e)},n.onBlur=function(e){var t=n.props.beforeMaskedValueChange,r=n.maskOptions.mask;if(n.stopSaveSelectionLoop(),n.focused=!1,r&&!n.props.alwaysShowMask&&h(n.maskOptions,n.value)){var i="";w(t)&&(i=t({value:i,selection:null},{value:n.value,selection:n.previousSelection},null,n.getBeforeMaskedValueChangeConfig()).value);var o=i!==n.getInputValue();o&&n.setInputValue(i),o&&w(n.props.onChange)&&n.props.onChange(e)}w(n.props.onBlur)&&n.props.onBlur(e)},n.onMouseDown=function(e){!n.focused&&document.addEventListener&&(n.mouseDownX=e.clientX,n.mouseDownY=e.clientY,n.mouseDownTime=(new Date).getTime(),document.addEventListener("mouseup",function e(t){if(document.removeEventListener("mouseup",e),n.focused){var r=Math.max(Math.abs(t.clientX-n.mouseDownX),Math.abs(t.clientY-n.mouseDownY)),i=(new Date).getTime()-n.mouseDownTime;(r<=10&&i<=200||r<=5&&i<=300)&&n.setCursorToEnd()}})),w(n.props.onMouseDown)&&n.props.onMouseDown(e)},n.onPaste=function(e){w(n.props.onPaste)&&n.props.onPaste(e),e.defaultPrevented||(n.beforePasteState={value:n.getInputValue(),selection:n.getSelection()},n.setInputValue(""))},n.handleRef=function(e){null==n.props.children&&w(n.props.inputRef)&&n.props.inputRef(e)};var r=t.mask,i=t.maskChar,a=t.formatChars,l=t.alwaysShowMask,u=t.beforeMaskedValueChange,g=t.defaultValue,_=t.value;n.maskOptions=d(r,i,a),null==g&&(g=""),null==_&&(_=g);var E=x(_);if(n.maskOptions.mask&&(l||E)&&(E=y(n.maskOptions,E),w(u))){var T=t.value;null==t.value&&(T=g),E=u({value:E,selection:null},{value:T=x(T),selection:null},null,n.getBeforeMaskedValueChangeConfig()).value}return n.value=E,n}t.prototype=Object.create(e.prototype),function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(t.prototype.constructor=t,e);var n=t.prototype;return n.componentDidMount=function(){var e;this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=(e=navigator.userAgent,/windows/i.test(e)&&/phone/i.test(e)),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},n.componentDidUpdate=function(){var e=this.previousSelection,t=this.props,n=t.beforeMaskedValueChange,r=t.alwaysShowMask,i=t.mask,o=t.maskChar,a=t.formatChars,s=this.maskOptions,l=r||this.isFocused(),c=null!=this.props.value,u=c?x(this.props.value):this.value,p=e?e.start:null;if(this.maskOptions=d(i,o,a),this.maskOptions.mask){!s.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==s.mask;if(s.mask||c||(u=this.getInputValue()),(f||this.maskOptions.mask&&(u||l))&&(u=y(this.maskOptions,u)),f){var v=m(this.maskOptions,u);(null===p||v<p)&&(p=g(this.maskOptions,u)?v:b(this.maskOptions,v))}!this.maskOptions.mask||!h(this.maskOptions,u)||l||c&&this.props.value||(u="");var _={start:p,end:p};if(w(n)){var C=n({value:u,selection:_},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());u=C.value,_=C.selection}this.value=u;var S=this.getInputValue()!==this.value;S?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var E=!1;null!=_.start&&null!=_.end&&(E=!e||e.start!==_.start||e.end!==_.end),(E||S)&&this.setSelection(_.start,_.end)}else s.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&S(this.selectionDeferId),this.stopSaveSelectionLoop()},n.render=function(){var e,t=this.props,n=(t.mask,t.alwaysShowMask,t.maskChar,t.formatChars,t.inputRef,t.beforeMaskedValueChange,t.children),r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)0<=t.indexOf(n=o[r])||(i[n]=e[n]);return i}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(n){w(n)||l(!1);
29var o=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],s=a({},r);o.forEach(function(e){return delete s[e]}),e=n(s),o.filter(function(t){return null!=e.props[t]&&e.props[t]!==r[t]}).length&&l(!1)}else e=i.createElement("input",a({ref:this.handleRef},r));var c={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(r.disabled||r.readOnly||(c.onChange=this.onChange,c.onPaste=this.onPaste,c.onMouseDown=this.onMouseDown),null!=r.value&&(c.value=this.value)),e=i.cloneElement(e,c)},t}(i.Component);e.exports=E},74806:function(e,t,n){"use strict";n.d(t,{_y:function(){return a},zt:function(){return o}});var r=n(67294);n(8679);var i="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?r.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=r.createContext(null));i.Consumer;var o=i.Provider,a=i},680:function(e,t,n){"use strict";n.d(t,{Z0:function(){return l},dt:function(){return c},lq:function(){return s},wU:function(){return u}});var r=n(97582),i=n(67294),o=n(25687),a=n(82644);function s(e){(0,o.kG)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var l=(0,r.pi)((0,r.pi)({},a.Z0),{textComponent:i.Fragment});function c(e){return function(t){return e(i.Children.toArray(t))}}function u(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},79593:function(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");t.iY=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===o||e===u||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===l||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||void 0!==e.getModuleId)},t.kM=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case d:case h:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case r:return t}}}},71471:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.SuspenseList=f,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===o},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===i},t.isProfiler=function(e){return y(e)===s},t.isStrictMode=function(e){return y(e)===a},t.isSuspense=function(e){return y(e)===p},t.isSuspenseList=function(e){return y(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===p||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},82143:function(e,t,n){"use strict";e.exports=n(71471)},77088:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
29ise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.useReadOTP=void 0;let i=n(67294);t.useReadOTP=function(e,t={}){let n=i.useRef({});function o(){var e;null===(e=n.current.abortController)||void 0===e||e.abort(),n.current.timer&&clearTimeout(n.current.timer)}return i.useEffect(()=>{var i,a;if(!("OTPCredential"in window&&"undefined"!=typeof AbortController)){console.log("Not supported, exiting");return}if(!(null===(i=t.enabled)||void 0===i||i)){o();return}return(function(e){return r(this,void 0,void 0,function*(){let t=yield navigator.credentials.get({signal:e.signal,otp:{transport:["sms"]}});if(!t||!t.code)throw Error("Unable to read otp");return t.code})})(n.current.abortController=new AbortController).then(t=>{o(),e(t)}).catch(e=>{t.onError&&t.onError(e),o()}),n.current.timer=setTimeout(o,null!==(a=t.timeout)&&void 0!==a?a:6e4),o},[t.enabled]),o}},9473:function(e,t,n){"use strict";n.d(t,{zt:function(){return b},I0:function(){return _},v9:function(){return g}});var r=n(61688),i=n(52798),o=n(73935);let a=function(e){e()},s=()=>a;var l=n(67294);let c=Symbol.for(`react-redux-context-${l.version}`),u=globalThis,d=new Proxy({},new Proxy({},{get(e,t){let n;let r=((n=u[c])||(n=(0,l.createContext)(null),u[c]=n),n);return(e,...n)=>Reflect[t](r,...n)}}));function p(e=d){return function(){return(0,l.useContext)(e)}}let f=p(),h=()=>{throw Error("uSES not initialized!")},m=(e,t)=>e===t,g=function(e=d){let t=e===d?f:p(e);return function(e,n={}){let{equalityFn:r=m,stabilityCheck:i,noopCheck:o}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:s,getServerState:c,stabilityCheck:u,noopCheck:d}=t();(0,l.useRef)(!0);let p=(0,l.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,i]),f=h(s.addNestedSub,a.getState,c||a.getState,p,r);return(0,l.useDebugValue)(f),f}}();n(8679),n(72973);let y={notify(){},get:()=>[]},v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;var b=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){let a=(0,l.useMemo)(()=>{let t=function(e,t){let n;let r=y;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=e.subscribe(i),r=function(){let e=s(),t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}let a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return!!n},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=y)},getListeners:()=>r};return a}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),c=(0,l.useMemo)(()=>e.getState(),[e]);return v(()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,c]),l.createElement((t||d).Provider,{value:a},n)};function x(e=d){let t=e===d?f:p(e);return function(){let{store:e}=t();return e}}let w=x(),_=function(e=d){let t=e===d?w:x(e);return function(){return t().dispatch}}();h=i.useSyncExternalStoreWithSelector,r.useSyncExternalStore,a=o.unstable_batchedUpdates},88359:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},72973:function(e,t,n){"use strict";n(88359)},38168:function(e,t,n){"use strict";var r=n(25456),i=n(86459),o=(0,n(79075).Z)("telegram",function(e,t){var n=t.title;return(0,r.Z)(e,"telegram.url"),"https://telegram.me/share/url"+(0,i.Z)({url:e,text:n})},function(e){return{title:e.title}},{windowWidth:550,windowHeight:400});t.Z=o},12834:function(e,t,n){"use strict";var r=n(25456),i=n(86459),o=(0,n(79075).Z)("whatsapp",function(e,t){var n=t.title,o=t.separator;return(0,r.Z)(e,"whatsapp.url"),"https://"+(/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)?"api":"web")+".whatsapp.com/se
29nd"+(0,i.Z)({text:n?n+o+e:e})},function(e){return{title:e.title,separator:e.separator||" "}},{windowWidth:550,windowHeight:400});t.Z=o},79075:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,i=n(67294),o=n(93967),a=n.n(o),s=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},c=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openShareDialog=function(e){var n=t.props,r=n.onShareWindowClose,i=n.windowHeight,o=void 0===i?400:i,a=n.windowPosition,s=n.windowWidth,c=void 0===s?550:s;!function(e,t,n){var r=t.height,i=t.width,o=u(t,["height","width"]),a=l({height:r,width:i,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},o),s=window.open(e,"",Object.keys(a).map(function(e){return"".concat(e,"=").concat(a[e])}).join(", "));if(n)var c=window.setInterval(function(){try{(null===s||s.closed)&&(window.clearInterval(c),n(s))}catch(e){console.error(e)}},1e3)}(e,l({height:o,width:c},"windowCenter"===(void 0===a?"windowCenter":a)?{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-c/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-o/2}:{top:(window.screen.height-o)/2,left:(window.screen.width-c)/2}),r)},t.handleClick=function(e){var n,r,i;return n=void 0,r=void 0,i=function(){var t,n,r,i,o,a,s,l,u;return c(this,function(c){switch(c.label){case 0:var d;if(n=(t=this.props).beforeOnClick,r=t.disabled,i=t.networkLink,o=t.onClick,a=t.url,s=t.openShareDialogOnClick,l=i(a,t.opts),r)return[2];if(e.preventDefault(),!n||!((d=u=n())&&("object"==typeof d||"function"==typeof d)&&"function"==typeof d.then))return[3,2];return[4,u];case 1:c.sent(),c.label=2;case 2:return s&&this.openShareDialog(l),o&&o(e,l),[2]}})},new(r||(r=Promise))(function(e,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}l((i=i.apply(t,n||[])).next())})},t}return s(t,e),t.prototype.render=function(){var e=this.props,t=(e.beforeOnClick,e.children),n=e.className,r=e.disabled,o=e.disabledStyle,s=e.forwardedRef,c=(e.networkLink,e.networkName),d=(e.onShareWindowClose,e.openShareDialogOnClick,e.opts,e.resetButtonStyle),p=e.style,f=(e.url,e.windowHeight,e.windowPosition,e.windowWidth,u(e,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"])),h=a()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!r,disabled:!!r},n),m=d?l(l({backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",curs
29or:"pointer"},p),r&&o):l(l({},p),r&&o);return i.createElement("button",l({},f,{"aria-label":f["aria-label"]||c,className:h,onClick:this.handleClick,ref:s,style:m}),t)},t.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},t}(i.Component),p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},f=function(e,t,n,r){function o(o,a){var s=n(o),l=p({},o);return Object.keys(s).forEach(function(e){delete l[e]}),i.createElement(d,p({},r,l,{forwardedRef:a,networkName:e,networkLink:t,opts:n(o)}))}return o.displayName="ShareButton-".concat(e),(0,i.forwardRef)(o)}},25456:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r,i=(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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="AssertionError",n}return i(t,e),t}(Error);function a(e,t){if(!e)throw new o(t)}},86459:function(e,t,n){"use strict";function r(e){var t=Object.entries(e).filter(function(e){return null!=e[1]}).map(function(e){var t=e[0],n=e[1];return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(String(n)))});return t.length>0?"?".concat(t.join("&")):""}n.d(t,{Z:function(){return r}})},53894:function(e,t){"use strict";function n(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var r=n();r.withExtraArgument=n,t.Z=r},14890:function(e,t,n){"use strict";n.d(t,{MT:function(){return l},UY:function(){return c},md:function(){return d},qC:function(){return u}});var r=n(1413);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e,t,n){if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(i(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(i(1));return n(l)(e,t)}if("function"!=typeof e)throw Error(i(2));var r,a=e,c=t,u=[],d=u,p=!1;function f(){d===u&&(d=u.slice())}function h(){if(p)throw Error(i(3));return c}function m(e){if("function"!=typeof e)throw Error(i(4));if(p)throw Error(i(5));var t=!0;return f(),d.push(e),function(){if(t){if(p)throw Error(i(6));t=!1,f();var n=d.indexOf(e);d.splice(n,1),u=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(i(7));if(void 0===e.type)throw Error(i(8));if(p)throw Error(i(9));try{p=!0,c=a(c,e)}finally{p=!1}for(var t=u=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:s.INIT}),(r={dispatch:g,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw Error(i(10));a=e,g({type:s.REPLACE})}})[o]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(i(11));function t(){e.next&&e.next(h())}return t(),{unsubscribe:m(t)}}})[o]=function(){return this},e},r}function c(e){for(var t,n=Object.keys(e),r={},o=0;o<n.length;o++){var a=n[o];"function"==typeof e[a]&&(r[a]=e[a])}var l=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw Error(i(12));if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw Error(i(13))})}(r)}catch(e){t=e}return function(e,n){if(void 0===e&&(e={}),t)throw t;for(var o=!1,a={},s=0;s<l.length;s++){var c=l[s],u=r[c],d=e[c],p=u(d,n);if(void 0===p)throw n&&n.type,Error(i(14));a[c]=p,o=o||p!==d}return(o=o||l.length!==Object.keys(e).length)?a:e}}function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),o=function(){throw Error(i(15))},a={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(e){return e(a)});return o=u.apply(void 0,s)(n.dispatch),(0,r.Z)((0,r.Z)({},n),{},{dispatch:o})}}}},68697:function(e,t,n){"use strict";n.d(t,{P1:function(){return o}});var r="NOT_FOUND",i=function(e,t){return e===t},o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=0,s={memoizeOptions:void 0},l=i.pop();if("object"==typeof l&&(s=l,l=i.pop()),"function"!=typeof l)throw Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t.map(function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ")+"]");return t}(i),f=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),h=e(function(){for(var e=[],n=p.length,r=0;r<n;r++)e.push(p[r].apply(null,arguments));return t=f.apply(null,e)});return Object.assign(h,{resultFunc:l,memoizedResultFunc:f,dependencies:p,lastResult:function(){return t},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}(function(e,t){var n,o,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,l=a.maxSize,c=void 0===l?1:l,u=a.resultEqualityCheck,d=(n=void 0===s?i:s,function(e,t){if(null===e||null===t||e.length!==t.length)return!1;for(var r=e.length,i=0;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}),p=1===c?{get:function(e){return o&&d(o.key,e)?o.value:r},put:function(e,t){o={key:e,value:t}},getEntries:function(){return o?[o]:[]},clear:function(){o=void 0}}:function(e,t){var n=[];
29function i(e){var i=n.findIndex(function(n){return t(e,n.key)});if(i>-1){var o=n[i];return i>0&&(n.splice(i,1),n.unshift(o)),o.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,d);function f(){var t=p.get(arguments);if(t===r){if(t=e.apply(null,arguments),u){var n=p.getEntries().find(function(e){return u(e.value,t)});n&&(t=n.value)}p.put(arguments,t)}return t}return f.clearCache=function(){return p.clear()},f})},96774:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},57848:function(e,t,n){var r=n(18139);function i(e,t){var n,i,o,a=null;if(!e||"string"!=typeof e)return a;for(var s=r(e),l="function"==typeof t,c=0,u=s.length;c<u;c++)i=(n=s[c]).property,o=n.value,l?t(i,o,n):o&&(a||(a={}),a[i]=o);return a}e.exports=i,e.exports.default=i},87379:function(e,t,n){"use strict";n.d(t,{f6:function(){return ej},iv:function(){return ex},ZP:function(){return eN},F4:function(){return eI}});var r,i,o,a,s=n(79593),l=n(67294),c=n(96774),u=n.n(c),d=function(e){function t(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",i[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===O||2===O&&i(l,1)?"-webkit-"+l+l:l}if(0===O||2===O&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;
vendor: 15,099 bytes, line 29
29case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(C,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,a,s,c,u){for(var d,p=0,f=t;p<N;++p)switch(d=I[p].call(l,e,f,n,r,i,o,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?O=1:(O=2,D=e):O=0),s}function l(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<N){var l=a(-1,n,s,s,k,T,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var d=function e(n,s,l,d,p){for(var f,h,m,b,w,_=0,C=0,S=0,E=0,I=0,D=0,A=m=f=0,L=0,R=0,Z=0,z=0,F=l.length,B=F-1,H="",$="",U="",Y="";L<F;){if(h=l.charCodeAt(L),L===B&&0!==C+E+S+_&&(0!==C&&(h=47===C?10:47),E=S=_=0,F++,B++),0===C+E+S+_){if(L===B&&(0<R&&(H=H.replace(u,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(L)}h=59}switch(h){case 123:for(f=(H=H.trim()).charCodeAt(0),m=1,z=++L;L<F;){switch(h=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(L+1)){case 42:case 47:e:{for(A=L+1;A<B;++A)switch(l.charCodeAt(A)){case 47:if(42===h&&42===l.charCodeAt(A-1)&&L+2!==A){L=A+1;break e}break;case 10:if(47===h){L=A+1;break e}}L=A}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<B&&l.charCodeAt(L)!==h;);}if(0===m)break;L++}if(m=l.substring(z,L),0===f&&(f=(H=H.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<R&&(H=H.replace(u,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:R=s;break;default:R=P}if(z=(m=e(s,R,m,h,p+1)).length,0<N&&(w=a(3,m,R=t(P,H,Z),s,k,T,z,h,p,d),H=R.join(""),void 0!==w&&0===(z=(m=w.trim()).length)&&(h=0,m="")),0<z)switch(h){case 115:H=H.replace(x,o);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(g,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===d&&($+=m,m="")}else m=""}else m=e(s,t(s,H,Z),m,d,p+1);U+=m,m=Z=R=A=f=0,H="",h=l.charCodeAt(++L);break;case 125:case 59:if(1<(z=(H=(0<R?H.replace(u,""):H).trim()).length))switch(0===A&&(45===(f=H.charCodeAt(0))||96<f&&123>f)&&(z=(H=H.replace(" ",":")).length),0<N&&void 0!==(w=a(1,H,s,n,k,T,$.length,d,p,d))&&0===(z=(H=w.trim()).length)&&(H="\0\0"),f=H.charCodeAt(0),h=H.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){Y+=H+l.charAt(L);break}default:58!==H.charCodeAt(z-1)&&($+=r(H,f,h,H.charCodeAt(2)))}Z=R=A=f=0,H="",h=l.charCodeAt(++L)}}switch(h){case 13:case 10:47===C?C=0:0===1+f&&107!==d&&0<H.length&&(R=1,H+="\0"),0<N*M&&a(0,H,s,n,k,T,$.length,d,p,d),T=1,k++;break;case 59:case 125:if(0===C+E+S+_){T++;break}default:switch(T++,b=l.charAt(L),h){case 9:case 32:if(0===E+_+C)switch(I){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===E+C+_&&(R=Z=1,b="\f"+b);break;case 108:if(0===E+C+_+j&&0<A)switch(L-A){case 2:112===I&&58===l.charCodeAt(L-3)&&(j=I);case 8:111===D&&(j=D)}break;case 58:0===E+C+_&&(A=L);break;case 44:0===C+S+E+_&&(R=1,b+="\r");break;case 34:case 39:0===C&&(E=E===h?0:0===E?h:E);break;case 91:0===E+C+S&&_++;break;case 93:0===E+C+S&&_--;break;case 41:0===E+C+_&&S--;break;case 40:0===E+C+_&&(0===f&&(2*I+3*D==533||(f=1)),S++);break;case 64:0===C+S+E+_+A+m&&(m=1);break;case 42:case 47:if(!(0<E+_+S))switch(C){case 0:switch(2*h+3*l.charCodeAt(L+1)){case 235:C=47;break;case 220:z=L,C=42}break;case 42:47===h&&42===I&&z+2!==L&&(33===l.charCodeAt(z+2)&&($+=l.substring(z,L+1)),b="",C=0)}}0===C&&(H+=b)}D=I,I=h,L++}if(0<(z=$.length)){if(R=s,0<N&&void 0!==(w=a(2,$,R,n,k,T,z,d,p,d))&&0===($=w).length)return Y+$+U;if($=R.join(",")+"{"+$+"}",0!=O*j){switch(2!==O||i($,2)||(j=0),j){case 111:$=$.replace(v,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}j=0}}return Y+$+U}(P,s,n,0,0);return 0<N&&void 0!==(l=a(-2,d,s,s,k,T,d.length,0,0,0))&&(d=l),j=0,T=k=1,d}var c=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,_=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,T=1,k=1,j=0,O=1,P=[],I=[],N=0,D=null,M=0;return l.use=function e(t){switch(t){case void 0:case null:N=I.length=0;break;default:if("function"==typeof t)I[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},p={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,h=(r=function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},i={},function(e){return void 0===i[e]&&(i[e]=r(e)),i[e]}),m=n(8679),g=n.n(m),y=n(83454);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var b=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},x=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,s.kM)(e)},w=Object.freeze([]),_=Object.freeze({});function C(e){return"function"==typeof e}function S(e){return e.displayName||e.name||"Component"}function E(e){return e&&"string"==typeof e.styledComponentId}var T=void 0!==y&&(y.env.REACT_APP_SC_ATTR||y.env.SC_ATTR)||"data-styled",k="undefined"!=typeof window&&"HTMLElement"in window,j=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==y&&void 0!==y.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==y.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==y.env.REACT_APP_SC_DISABLE_SPEEDY&&y.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==y&&void 0!==y.env.SC_DISABLE_SPEEDY&&""!==y.env.SC_DISABLE_SPEEDY&&"false"!==y.env.SC_DISABLE_SPEEDY&&y.env.SC_DISABLE_SPEEDY);function O(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&O(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),I=new Map,N=new Map,D=1,M=function(e){if(I.has(e))return I.get(e);for(;N.has(D);)D++;var t=D++;return I.set(e,t),N.set(t,e),t},A=function(e,t){t>=D&&(D=t+1),I.set(e,t),N.set(t,e)},L="style["+T+'][data-styled-version="5.3.3"]',R=RegExp("^"+T+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Z=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},z=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(R);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(A(c,l),Z(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},F=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},B=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(T))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(T,"active"),r.setAttribute("data-styled-version","5.3.3");var a=F();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},H=function(){function e(e){var t=this.element=B(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}O(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=B(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Y=k,G={isServer:!k,useCSSOMInjection:!j},V=function(){function e(e,t,n){void 0===e&&(e=_),void 0===t&&(t={}),this.options=v({},G,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&Y&&(Y=!1,function(e){for(var t=document.querySelectorAll(L),n=0,r=t.length;n<r;n++){var i=t[n];
29i&&"active"!==i.getAttribute(T)&&(z(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return M(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(v({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,n,r;return this.tag||(this.tag=(t=(e=this.options).isServer,n=e.useCSSOMInjection,r=e.target,new P(t?new U(r):n?new H(r):new $(r))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(M(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(M(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(M(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o,a=(o=i,N.get(o));if(void 0!==a){var s=e.names.get(a),l=t.getGroup(i);if(s&&l&&s.size){var c=T+".g"+i+'[id="'+a+'"]',u="";void 0!==s&&s.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+l+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),q=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=W(t%52)+n;return(W(t%52)+n).replace(q,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},J=function(e){return K(5381,e)};function Q(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(C(n)&&!E(n))return!1}return!0}var ee=J("5.3.3"),et=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Q(e),this.componentId=t,this.baseHash=K(ee,t),this.baseStyle=n,V.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash){if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ev(this.rules,e,t,n).join(""),a=X(K(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}}else{for(var l=this.rules.length,c=K(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=ev(p,e,t,n),h=Array.isArray(f)?f.join(""):f;c=K(c,h+d),u+=h}}if(u){var m=X(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),en=/^\s*\/\/.*$/gm,er=[":","[",".","#"];function ei(e){var t,n,r,i,o=void 0===e?_:e,a=o.options,s=void 0===a?_:a,l=o.plugins,c=void 0===l?w:l,u=new d(s),p=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case -2:r.split("/*|*/}").forEach(t)}}}(function(e){p.push(e)}),h=function(e,r,o){return 0===r&&-1!==er.indexOf(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var l=e.replace(en,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,r=RegExp("\\"+(n=o)+"\\b","g"),i=RegExp("(\\"+n+"\\b){2,}"),u(a||!o?"":o,c)}return u.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,h))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),m.hash=c.length?c.reduce(function(e,t){return t.name||O(15),K(e,t.name)},5381).toString():"",m}var eo=l.createContext(),ea=(eo.Consumer,l.createContext()),es=(ea.Consumer,new V),el=ei();function ec(){return(0,l.useContext)(eo)||es}function eu(e){var t=(0,l.useState)(e.stylisPlugins),n=t[0],r=t[1],i=ec(),o=(0,l.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,l.useMemo)(function(){return ei({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return(0,l.useEffect)(function(){u()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]),l.createElement(eo.Provider,{value:o},l.createElement(ea.Provider,{value:a},e.children))}var ed=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=el);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return O(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=el),this.name+e.hash},e}(),ep=/([A-Z])/,ef=/([A-Z])/g,eh=/^ms-/,em=function(e){return"-"+e.toLowerCase()};function eg(e){return ep.test(e)?e.replace(ef,em).replace(eh,"-ms-"):e}var ey=function(e){return null==e||!1===e||""===e};function ev(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ev(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return ey(e)?"":E(e)?"."+e.styledComponentId:C(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:ev(e(t),t,n,r):e instanceof ed?n?(e.inject(n,r),e.getName(r)):e:x(e)?function e(t,n){var r,i=[];
29for(var o in t)t.hasOwnProperty(o)&&!ey(t[o])&&(Array.isArray(t[o])&&t[o].isCss||C(t[o])?i.push(eg(o)+":",t[o],";"):x(t[o])?i.push.apply(i,e(t[o],o)):i.push(eg(o)+": "+(null==(r=t[o])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||o in p?String(r).trim():r+"px")+";"));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString()}var eb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ex(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return C(e)||x(e)?eb(ev(b(w,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:eb(ev(b(e,n)))}var ew=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,e_=/(^-|-$)/g;function eC(e){return e.replace(ew,"-").replace(e_,"")}var eS=function(e){return X(J(e)>>>0)};function eE(e){return"string"==typeof e}var eT=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ek=l.createContext();function ej(e){var t=(0,l.useContext)(ek),n=(0,l.useMemo)(function(){var n;return(n=e.theme)?C(n)?n(t):Array.isArray(n)||"object"!=typeof n?O(8):t?v({},t,{},n):n:O(14)},[e.theme,t]);return e.children?l.createElement(ek.Provider,{value:n},e.children):null}ek.Consumer;var eO={},eP=function(e){return function e(t,n,r){if(void 0===r&&(r=_),!(0,s.iY)(n))return O(1,String(n));var i=function(){return t(n,r,ex.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,v({},r,{},i))},i.attrs=function(i){return e(t,n,v({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(function e(t,n,r){var i=E(t),o=!eE(t),a=n.attrs,s=void 0===a?w:a,c=n.componentId,u=void 0===c?(b=n.displayName,x=n.parentComponentId,eO[T="string"!=typeof b?"sc":eC(b)]=(eO[T]||0)+1,k=T+"-"+eS("5.3.3"+T+eO[T]),x?x+"-"+k:k):c,d=n.displayName,p=void 0===d?eE(t)?"styled."+t:"Styled("+S(t)+")":d,f=n.displayName&&n.componentId?eC(n.displayName)+"-"+n.componentId:n.componentId||u,m=i&&t.attrs?Array.prototype.concat(t.attrs,s).filter(Boolean):s,y=n.shouldForwardProp;i&&t.shouldForwardProp&&(y=n.shouldForwardProp?function(e,r,i){return t.shouldForwardProp(e,r,i
29)&&n.shouldForwardProp(e,r,i)}:t.shouldForwardProp);var b,x,T,k,j,O=new et(r,f,i?t.componentStyle:void 0),P=O.isStatic&&0===s.length,I=function(e,t){return function(e,t,n,r){var i,o,a,s,c,u,d,p=e.attrs,f=e.componentStyle,m=e.defaultProps,g=e.foldedComponentIds,y=e.shouldForwardProp,b=e.styledComponentId,x=e.target,w=(i=(0,l.useContext)(ek),void 0===(o=m)&&(o=_),void 0===(a=t.theme!==o.theme&&t.theme||i||o.theme||_)&&(a=_),s=v({},t,{theme:a}),c={},p.forEach(function(e){var t,n,r,i=e;for(t in C(i)&&(i=i(s)),i)s[t]=c[t]="className"===t?(n=c[t],r=i[t],n&&r?n+" "+r:n||r):i[t]}),[s,c]),S=w[0],E=w[1],T=(u=ec(),d=(0,l.useContext)(ea)||el,r?f.generateAndInjectStyles(_,u,d):f.generateAndInjectStyles(S,u,d)),k=E.$as||t.$as||E.as||t.as||x,j=eE(k),O=E!==t?v({},t,{},E):t,P={};for(var I in O)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?P.as=O[I]:(y?y(I,h,k):!j||h(I))&&(P[I]=O[I]));return t.style&&E.style!==t.style&&(P.style=v({},t.style,{},E.style)),P.className=Array.prototype.concat(g,b,T!==b?T:null,t.className,E.className).filter(Boolean).join(" "),P.ref=n,(0,l.createElement)(k,P)}(j,e,t,P)};return I.displayName=p,(j=l.forwardRef(I)).attrs=m,j.componentStyle=O,j.displayName=p,j.shouldForwardProp=y,j.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):w,j.styledComponentId=f,j.target=i?t.target:t,j.withComponent=function(t){var i=n.componentId,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(n,["componentId"]),a=i&&i+"-"+(eE(t)?t:eC(S(t)));return e(t,v({},o,{attrs:m,componentId:a}),r)},Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0;o<r.length;o++){var a=r[o];if(eT(a))for(var s in a)"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&function(t,n,r){var i=t[r];eT(n)&&eT(i)?e(i,n):t[r]=n}(t,a[s],s)}return t}({},t.defaultProps,e):e}}),j.toString=function(){return"."+j.styledComponentId},o&&g()(j,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),j},e)};function eI(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ex.apply(void 0,[e].concat(n)).join("");return new ed(eS(i),i)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){eP[e]=eP(e)}),(o=(function(e,t){this.rules=e,this.componentId=t,this.isStatic=Q(e),V.registerId(this.componentId+1)}).prototype).createStyles=function(e,t,n,r){var i=r(ev(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},o.removeStyles=function(e,t){t.clearRules(this.componentId+e)},o.renderStyles=function(e,t,n,r){e>2&&V.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},(a=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=F();return"<style "+[n&&'nonce="'+n+'"',T+'="true"','data-styled-version="5.3.3"'].filter(
29Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?O(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return O(2);var t,n=((t={})[T]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=F();return r&&(n.nonce=r),[l.createElement("style",v({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?O(2):l.createElement(eu,{sheet:this.instance},e)},a.interleaveWithNodeStream=function(e){return O(3)};var eN=eP},53250:function(e,t,n){"use strict";var r=n(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s(function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})},[e,n,t]),a(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},50139:function(e,t,n){"use strict";var r=n(67294),i=n(61688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var f=a(e,(d=c(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],d[1]);return l(function(){p.hasValue=!0,p.value=f},[f]),u(f),f}},61688:function(e,t,n){"use strict";e.exports=n(53250)},52798:function(e,t,n){"use strict";e.exports=n(50139)},70419:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(88110).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2696:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r.actionAsyncStorage}});let r=n(70419);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88110:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61701:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(88110).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
29dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(61701);function i(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93967:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}(n)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(n=(function(){return i}).apply(t,[]))&&(e.exports=n)}()},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},43144:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(83997);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.Z)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},73568:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}n.d(t,{Z:function(){return s}});var o=n(71002),a=n(97326);function s(e){var t=i();return function(){var n,i=r(e);return n=t?Reflect.construct(i,arguments,r(this).constructor):i.apply(this,arguments),function(e,t){if(t&&("object"==(0,o.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}(this,n)}}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(83997);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},32531:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}n.d(t,{Z:function(){return i}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4942);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?i(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},83997:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},71002:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},15566:function(e,t,n){"use strict";n.d(t,{s1:function(){return l}});var r=n(67294),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var a=[],s=!1,l=function(e){var t,n,l,c,u,d,p,f,h,m,g,y,v=(0,r.useRef)(null),b=e.onChallengeHidden,x=e.onChallengeVisible,w=e.onSuccess,_=e.onNetworkError,C=e.onTokenExpired,S=e.language,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["onChallengeHidden","onChallengeVisible","onSuccess","onNetworkError","onTokenExpired","language"]),T=(n=(t=o((0,r.useState)(),2))[0],l=t[1],(0,r.useEffect)(function(){if(void 0===n){void 0===window.__onSmartCaptchaReady&&(window.__onSmartCaptchaReady=function(){a.forEach(function(e){return e()})}),window.smartCaptcha&&l(window.smartCaptcha);var e,t,r,i,o,c,u=a.push(function(){return l(window.smartCaptcha)});return s||(e="https://smartcaptcha.yandexcloud.net/captcha.js?render=onload&onload=__onSmartCaptchaReady",void 0===t&&(t=null),void 0===r&&(r=null),void 0===i&&(i=!0),(o=document.createElement("script")).src=e,o.onload=t,o.onerror=r,o.type="text/javascript",c=function(){return document.body.appendChild(o)},i?c():window.addEventListener("load",c),s=!0),function(){a.splice(u,1)}}},[n]),n),k=o((0,r.useState)(),2),j=k[0],O=k[1],P=(0,r.useRef)({});return c={widgetId:j,smartCaptcha:T,onChallengeHidden:b,onChallengeVisible:x,onSuccess:w,onNetworkError:_,onTokenExpired:C},u=(0,r.useRef)({}),d=c.widgetId,p=c.smartCaptcha,f=c.onChallengeHidden,h=c.onChallengeVisible,m=c.onSuccess,g=c.onNetworkError,y=c.onTokenExpired,u.current={onChallengeHidden:f,onChallengeVisible:h,onSuccess:m,onNetworkError:g,onTokenExpired:y},(0,r.useEffect)(function(){if(p&&"number"==typeof d){var e=[p.subscribe(d,"challenge-visible",function(){var e,t;null===(t=(e=u.current).onChallengeVisible)||void 0===t||t.call(e)}),p.subscribe(d,"challenge-hidden",function(){var e,t;null===(t=(e=u.current).onChallengeHidden)||void 0===t||t.call(e)}),p.subscribe(d,"network-error",function(){var e,t;null===(t=(e=u.current).onNetworkError)||void 0===t||t.call(e)}),p.subscribe(d,"success",function(e){var t,n;null===(n=(t=u.current).onSuccess)||void 0===n||n.call(t,e)}),p.subscribe(d,"token-expired",function(){var e,t;null===(t=(e=u.current).onTokenExpired)||void 0===t||t.call(e)})];return function(){return e.forEach(function(e){return null==e?void 0:e()})}}},[d,p]),(0,r.useLayoutEffect)(function(){if(v.current&&T){var e=T.render(v.current,i(i({},E),{invisible:!0,hl:S}));return O(e),function(){null==T||T.destroy(e),O(void 0),P.current[e]=!0}}},[T,S,E.hideShield,E.shieldPosition,E.sitekey,E.test,E.webview]),(0,r.useEffect)(function(){T&&E.visible&&"number"==typeof j&&!P.current[j]&&T.execute(j)},[T,E.visible,j]),r.createElement("div",{ref:v,className:"smart-captcha"})}},25668:function(e,t,n){"use strict";function r(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);let e=n.slice(i,r).trim();
29(e||!o)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{P:function(){return i},Q:function(){return r}})},44301:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});let r=document.createElement("i");function i(e){let t="&"+e+";";r.innerHTML=t;let n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},23402:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(42761),i=n(75364);let o={tokenize:function(e,t,n){return function(t){return(0,i.xz)(t)?(0,r.f)(e,o,"linePrefix")(t):o(t)};function o(e){return null===e||(0,i.Ch)(e)?t(e):n(e)}},partial:!0}},42761:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(75364);function i(e,t,n,i){let o=i?i-1:Number.POSITIVE_INFINITY,a=0;return function(i){return(0,r.xz)(i)?(e.enter(n),function i(s){return(0,r.xz)(s)&&a++<o?(e.consume(s),i):(e.exit(n),t(s))}(i)):t(i)}}},75364:function(e,t,n){"use strict";n.d(t,{jv:function(){return r},H$:function(){return i},n9:function(){return o},Av:function(){return a},pY:function(){return s},AF:function(){return l},sR:function(){return c},Ch:function(){return u},z3:function(){return d},xz:function(){return p},Xh:function(){return f},B8:function(){return h}});let r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),o=m(/[#-'*+\--9=?A-Z^-~]/);function a(e){return null!==e&&(e<32||127===e)}let s=m(/\d/),l=m(/[\dA-Fa-f]/),c=m(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function p(e){return -2===e||-1===e||32===e}let f=m(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),h=m(/\s/);function m(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}},21905:function(e,t,n){"use strict";function r(e,t,n,r){let i;let o=e.length,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return i},d:function(){return r}})},62987:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(75364);function i(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},4663:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(21905);let i={}.hasOwnProperty;function o(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let o;let a=(i.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];if(s)for(o in s){i.call(a,o)||(a[o]=[]);let e=s[o];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);(0,r.d)(e,0,0,i)}(a[o],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}},80889:function(e,t,n){"use strict";function r(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCharCode(n)}n.d(t,{o:function(){return r}})},80788:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var r=n(44301),i=n(80889);let o=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function a(e){return e.replace(o,s)}function s(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;
29return(0,i.o)(n.slice(t?2:1),t?16:10)}return(0,r.T)(n)||e}},11098:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},63233:function(e,t,n){"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}n.d(t,{C:function(){return r}})},8307:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){var i;return i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===r(i)?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return i}})},4730:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},91634:function(e,t,n){"use strict";n.d(t,{dy:function(){return v},YP:function(){return b}});class r{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function i(e,t){let n={},i={},o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(i,e[o].normal);return new r(n,i,t)}r.prototype.property={},r.prototype.normal={},r.prototype.space=null;var o=n(93859),a=n(75729);let s={}.hasOwnProperty;function l(e){let t;let n={},i={};for(t in e.properties)if(s.call(e.properties,t)){let r=e.properties[t],s=new a.I(t,e.transform(e.attributes||{},t),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(s.mustUseProperty=!0),n[t]=s,i[(0,o.F)(t)]=t,i[(0,o.F)(s.attribute)]=t}return new r(n,i,e.space)}let c=l({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u=l({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function d(e,t){return t in e?e[t]:t}function p(e,t){return d(e,t.toLowerCase())}let f=l({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:p,properties:{xmlns:null,xmlnsXLink:null}});var h=n(47312);let m=l({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:h.booleanish,ariaAutoComplete:null,ariaBusy:h.booleanish,ariaChecked:h.booleanish,ariaColCount:h.number,ariaColIndex:h.number,ariaColSpan:h.number,ariaControls:h.spaceSeparated,ariaCurrent:null,ariaDescribedBy:h.spaceSeparated,ariaDetails:null,ariaDisabled:h.booleanish,ariaDropEffect:h.spaceSeparated,ariaErrorMessage:null,ariaExpanded:h.booleanish,ariaFlowTo:h.spaceSeparated,ariaGrabbed:h.booleanish,ariaHasPopup:null,ariaHidden:h.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:h.spaceSeparated,ariaLevel:h.number,ariaLive:null,ariaModal:h.booleanish,ariaMultiLine:h.booleanish,ariaMultiSelectable:h.booleanish,ariaOrientation:null,ariaOwns:h.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:h.number,ariaPressed:h.booleanish,ariaReadOnly:h.booleanish,ariaRelevant:null,ariaRequired:h.booleanish,ariaRoleDescription:h.spaceSeparated,ariaRowCount:h.number,ariaRowIndex:h.number,ariaRowSpan:h.number,ariaSelected:h.booleanish,ariaSetSize:h.number,ariaSort:null,ariaValueMax:h.number,ariaValueMin:h.number,ariaValueNow:h.number,ariaValueText:null,role:null}}),g=l({space:"html",attributes:{acceptcharset:"accept-charset",classname:"
29class",htmlfor:"for",httpequiv:"http-equiv"},transform:p,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:h.commaSeparated,acceptCharset:h.spaceSeparated,accessKey:h.spaceSeparated,action:null,allow:null,allowFullScreen:h.boolean,allowPaymentRequest:h.boolean,allowUserMedia:h.boolean,alt:null,as:null,async:h.boolean,autoCapitalize:null,autoComplete:h.spaceSeparated,autoFocus:h.boolean,autoPlay:h.boolean,blocking:h.spaceSeparated,capture:null,charSet:null,checked:h.boolean,cite:null,className:h.spaceSeparated,cols:h.number,colSpan:null,content:null,contentEditable:h.booleanish,controls:h.boolean,controlsList:h.spaceSeparated,coords:h.number|h.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:h.boolean,defer:h.boolean,dir:null,dirName:null,disabled:h.boolean,download:h.overloadedBoolean,draggable:h.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:h.boolean,formTarget:null,headers:h.spaceSeparated,height:h.number,hidden:h.boolean,high:h.number,href:null,hrefLang:null,htmlFor:h.spaceSeparated,httpEquiv:h.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:h.boolean,inputMode:null,integrity:null,is:null,isMap:h.boolean,itemId:null,itemProp:h.spaceSeparated,itemRef:h.spaceSeparated,itemScope:h.boolean,itemType:h.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:h.boolean,low:h.number,manifest:null,max:null,maxLength:h.number,media:null,method:null,min:null,minLength:h.number,multiple:h.boolean,muted:h.boolean,name:null,nonce:null,noModule:h.boolean,noValidate:h.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:h.boolean,optimum:h.number,pattern:null,ping:h.spaceSeparated,placeholder:null,playsInline:h.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:h.boolean,referrerPolicy:null,rel:h.spaceSeparated,required:h.boolean,reversed:h.boolean,rows:h.number,rowSpan:h.number,sandbox:h.spaceSeparated,scope:null,scoped:h.boolean,seamless:h.boolean,selected:h.boolean,shadowRootClonable:h.boolean,shadowRootDelegatesFocus:h.boolean,shadowRootMode:null,shape:null,size:h.number,sizes:null,slot:null,span:h.number,spellCheck:h.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:h.number,step:null,style:null,tabIndex:h.number,target:null,title:null,translate:null,type:null,typeMustMatch:h.boolean,useMap:null,value:h.booleanish,width:h.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:h.spaceSeparated,axis:null,background:null,bgColor:null,border:h.number,borderColor:null,bottomMargin:h.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:h.boolean,declare:h.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:h.number,leftMargin:h.number,link:null,longDesc:null,lowSrc:null,marginHeight:h.number,marginWidth:h.number,noResize:h.boolean,noHref:h.boolean,noShade:h.boolean,noWrap:h.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:h.number,rules:null,scheme:null,scrolling:h.booleanish,standby:null,summary:null,text:null,topMargin:h.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:h.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:h.boolean,disableRemotePlayback:h.boolean,prefix:null,property:null,results:h.number,security:null,unselectable:null}}),y=l({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
29dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:d,properties:{about:h.commaOrSpaceSeparated,accentHeight:h.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:h.number,amplitude:h.number,arabicForm:null,ascent:h.number,attributeName:null,attributeType:null,azimuth:h.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:h.number,by:null,calcMode:null,capHeight:h.number,className:h.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
29dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:h.number,diffuseConstant:h.number,direction:null,display:null,dur:null,divisor:h.number,dominantBaseline:null,download:h.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:h.number,enableBackground:null,end:null,event:null,exponent:h.number,externalResourcesRequired:null,fill:null,fillOpacity:h.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:h.commaSeparated,g2:h.commaSeparated,glyphName:h.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:h.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:h.number,horizOriginX:h.number,horizOriginY:h.number,id:null,ideographic:h.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:h.number,k:h.number,k1:h.number,k2:h.number,k3:h.number,k4:h.number,kernelMatrix:h.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:h.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:h.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:h.number,overlineThickness:h.number,paintOrder:null,panose1:null,path:null,pathLength:h.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:h.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:h.number,pointsAtY:h.number,pointsAtZ:h.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:h.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:h.commaOrSpaceSeparated,rev:h.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:h.commaOrSpaceSeparated,requiredFeatures:h.commaOrSpaceSeparated,requiredFonts:h.commaOrSpaceSeparated,requiredFormats:h.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,
29scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:h.number,specularExponent:h.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:h.number,strikethroughThickness:h.number,string:null,stroke:null,strokeDashArray:h.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:h.number,strokeOpacity:h.number,strokeWidth:null,style:null,surfaceScale:h.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:h.commaOrSpaceSeparated,tabIndex:h.number,tableValues:null,target:null,targetX:h.number,targetY:h.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:h.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:h.number,underlineThickness:h.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:h.number,values:null,vAlphabetic:h.number,vMathematical:h.number,vectorEffect:null,vHanging:h.number,vIdeographic:h.number,version:null,vertAdvY:h.number,vertOriginX:h.number,vertOriginY:h.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:h.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),v=i([u,c,f,m,g],"html"),b=i([u,c,f,m,y],"svg")},26103:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var r=n(93859),i=n(75729),o=n(49255);let a=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function c(e,t){let n=(0,r.F)(t),c=t,p=o.k;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&a.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(s,d);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!s.test(e)){let n=e.replace(l,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=i.I}return new p(c,t)}function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},93859:function(e,t,n){"use strict";function r(e){return e.toLowerCase()}n.d(t,{F:function(){return r}})},75729:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(49255),i=n(47312);let o=Object.keys(i);class a extends r.k{constructor(e,t,n,r){var a,s;let l=-1;if(super(e,t),r&&(this.space=r),"number"==typeof n)for(;++l<o.length;){let e=o[l];a=o[l],(s=(n&i[e])===i[e])&&(this[a]=s)}}}a.prototype.defined=!0},49255:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});class r{constructor(e,t){this.property=e,this.attribute=t}}r.prototype.space=null,r.prototype.boolean=!1,r.prototype.booleanish=!1,r.prototype.overloadedBoolean=!1,r.prototype.number=!1,r.prototype.commaSeparated=!1,r.prototype.spaceSeparated=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.mustUseProperty=!1,r.prototype.defined=!1},47312:function(e,t,n){"use strict";n.r(t),n.d(t,{boolean:function(){return i},booleanish:function(){return o},commaOrSpaceSeparated:function(){return u},commaSeparated:function(){return c},number:function(){return s},overloadedBoolean:function(){return a},spaceSeparated:function(){return l}});let r=0,i=d(),o=d(),a=d(),s=d(),l=d(),c=d(),u=d();function d(){return 2**++r}},72890:function(e,t,n){"use strict";n.d(t,{D:function(){return tw}});var r={};n.r(r),n.d(r,{attentionMarkers:function(){return ez},contentInitial:function(){return eD},disable:function(){return eF},document:function(){return eN},flow:function(){return eA},flowInitial:function(){return eM},insideSpan:function(){return eZ},string:function(){return eL},text:function(){return eR}});var i=n(67294),o=n(48738);function a(e){return e&&"object"==typeof e?"position"in e||"type"in e?l(e.position):"start"in e||"end"in e?l(e):"line"in e||"column"in e?s(e):"":""}function s(e){return c(e&&e.line)+":"+c(e&&e.column)}function l(e){return s(e&&e.start)+"-"+s(e&&e.end)}function c(e){return e&&"number"==typeof e?e:1}
29class u extends Error{constructor(e,t,n){let r=[null,null],i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){let e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=a(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}u.prototype.file="",u.prototype.name="",u.prototype.reason="",u.prototype.message="",u.prototype.stack="",u.prototype.fatal=null,u.prototype.column=null,u.prototype.line=null,u.prototype.source=null,u.prototype.ruleId=null,u.prototype.position=null;let d={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');p(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(p(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;p(e);let n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){let s=e.charCodeAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1)}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)p(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){p(e);let t=47===e.charCodeAt(0),n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else if(47===n)break;else n=47;if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function p(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function f(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let h=["history","path","basename","stem","extname","dirname"];class m{constructor(e){let t,n;t=e?"string"==typeof e||o(e)?{value:e}:f(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd="/",this.value,this.stored,this.result,this.map;let r=-1;for(;++r<h.length;){let e=h[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)h.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){f(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!f(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){let e=t.charCodeAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),y(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?d.dirname(this.path):void 0}set dirname(e){v(this.basename,"dirname"),this.path=d.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?d.basename(this.path):void 0}
29set basename(e){y(e,"basename"),g(e,"basename"),this.path=d.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?d.extname(this.path):void 0}set extname(e){if(g(e,"extname"),v(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=d.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?d.basename(this.path,this.extname):void 0}set stem(e){y(e,"stem"),g(e,"stem"),this.path=d.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){let r=new u(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}}function g(e,t){if(e&&e.includes(d.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+d.sep+"`")}function y(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function v(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function b(e){if(e)throw e}var x=n(94470);function w(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let _=(function e(){let t;let n=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(o,...a){let s=e[++n],l=-1;if(o){r(o);return}for(;++l<t.length;)(null===a[l]||void 0===a[l])&&(a[l]=t[l]);t=a,s?(function(e,t){let n;return function(...t){let o;let a=e.length>t.length;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),r=[],i={},a=-1;return s.data=function(e,n){return"string"==typeof e?2==arguments.length?(k("data",t),i[e]=n,s):C.call(i,e)&&i[e]||null:e?(k("data",t),i=e,s):i},s.Parser=void 0,s.Compiler=void 0,s.freeze=function(){if(t)return s;for(;++a<r.length;){let[e,...t]=r[a];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let i=e.call(s,...t);"function"==typeof i&&n.use(i)}return t=!0,a=Number.POSITIVE_INFINITY,s},s.attachers=r,s.use=function(e,...n){let o;if(k("use",t),null==e);else if("function"==typeof e)c(e,...n);else if("object"==typeof e)Array.isArray(e)?l(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return o&&(i.settings=Object.assign(i.settings||{},o)),s;function a(e){l(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)c(e);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;c(t,...n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function c(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(w(n[1])&&w(t)&&(t=x(!0,n[1],t)),n[1]=t):r.push([...arguments])}},s.parse=function(e){s.freeze();let t=P(e),n=s.Parser;return(E("parse",n),S(n,"parse"))?new n(String(t),t).parse():n(String(t),t)},s.stringify=function(e,t){s.freeze();let n=P(t),r=s.Compiler;return(T("stringify",r),j(e),S(r,"compile"))?new r(e,n).compile():r(e,n)},s.run=function(e,t,r){if(j(e),s.freeze(),r||"function"!=typeof t||(r=t,t=void 0),!r)return new Promise(i);function i(i,o){n.run(e,P(t),function(t,n,a){n=n||e,t?o(t):i?i(n):r(null,n,a)})}i(null,r)},s.runSync=function(e,t){let n,r;return s.run(e,t,function(e,t){b(e),n=t,r=!0}),O("runSync","run",r),n},s.process=function(e,t){if(s.freeze(),E("process",s.Parser),T("process",s.Compiler),!t)return new Promise(n);function n(n,r){let i=P(e);function a(e,i){e||!i?r(e):n?n(i):t(null,i)}s.run(s.parse(i),i,(e,t,n)=>{if(!e&&t&&n){let r=s.stringify(t,n);null==r||("string"==typeof r||o(r)?n.value=r:n.result=r),a(e,n)}else a(e)})}n(null,t)},s.processSync=function(e){let t;s.freeze(),E("processSync",s.Parser),T("processSync",s.Compiler);let n=P(e);return s.process(n,function(e){t=!0,b(e)}),O("processSync","process",t),n},s;function s(){let t=e(),n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(x(!0,{},i)),t}})().freeze(),C={}.hasOwnProperty;function S(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;
29for(t in e)if(C.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function E(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Parser`")}function T(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Compiler`")}function k(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function j(e){if(!w(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function O(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function P(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new m(e)}let I={};function N(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return D(e.children,t,n)}return Array.isArray(e)?D(e,t,n):""}function D(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=N(e[i],t,n);return r.join("")}var M=n(4663),A=n(42761),L=n(75364);let R={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,A.f)(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,L.Ch)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}};var Z=n(21905);let z={tokenize:function(e){let t,n,r;let i=this,o=[],a=0;return s;function s(t){if(a<o.length){let n=o[a];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(a);let s=r;for(;s<i.events.length;)i.events[s][1].end=Object.assign({},n),s++;return(0,Z.d)(i.events,o+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(a===o.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(F,u,d)(n)}function u(e){return t&&y(),g(a),p(e)}function d(e){return i.parser.lazy[i.now().line]=a!==o.length,r=i.now().offset,h(e)}function p(t){return i.containerState={},e.attempt(F,f,h)(t)}function f(e){return a++,o.push([i.currentConstruct,i.containerState]),p(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return(0,L.Ch)(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function m(e,o){let s=i.sliceStream(e);if(o&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(a),o=s;o<i.events.length;)i.events[o][1].end=Object.assign({},n),o++;(0,Z.d)(i.events,l+1,0,i.events.slice(s)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},F={tokenize:function(e,t,n){return(0,A.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var B=n(23402);function H(e){let t,n,r,i,o,a,s;let l={},c=-1;for(;++c<e.length;){for(;(c in l);)c=l[c];if(t=e[c],c&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[c-1][1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r;let i=e[t][1],o=e[t][2],a=t-1,s=[],l=i._tokenizer||o.parser[i.contentType](i.start),c=l.events,u=[],d={},p=-1,f=i,h=0,m=0,g=[0];for(;f;){for(;e[++a][1]!==f;);s.push(a),!f._tokenizer&&(n=o.sliceStream(f),f.next||n.push(null),r&&l.defineSki
29p(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=s.pop();u.unshift([n,n+t.length-1]),(0,Z.d)(e,n,2,t)}for(p=-1;++p<u.length;)d[h+u[p][0]]=h+u[p][1],h+=u[p][1]-u[p][0]-1;return d}(e,c)),c=l[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=e[r])[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(e[n][1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else break;n&&(t[1].end=Object.assign({},e[n][1].start),(o=e.slice(n,c)).unshift(t),(0,Z.d)(e,n,c-n+1,o))}}return!s}let $={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,L.Ch)(t)?e.check(U,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return H(e),e}},U={tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,A.f)(e,i,"linePrefix")};function i(i){if(null===i||(0,L.Ch)(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},Y={tokenize:function(e){let t=this,n=e.attempt(B.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,A.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt($,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},G={resolveAll:X()},V=W("string"),q=W("text");function W(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:X("text"===e?K:void 0)}}function X(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function K(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],o=t.sliceStream(i),a=o.length,s=-1,l=0;for(;a--;){let e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{a++;break}}if(l){let o={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-l,offset:i.end.offset-l,_index:i.start._index+a,_bufferIndex:a?s:i.start._bufferIndex+s},end:Object.assign({},i.end)};i.end=Object.assign({},o.start),i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}var J=n(63233);let Q={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){return e.enter("thematicBreak"),r=o,function o(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,L.xz)(n)?(0,A.f)(e,o,"whitespace")(n):o(n))}
29(a)):i>=3&&(null===a||(0,L.Ch)(a))?(e.exit("thematicBreak"),t(a)):n(a)}(o)}}},ee={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,L.pY)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Q,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,L.pY)(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(B.w,r.interrupt?n:l,e.attempt(et,u,c))}
29function l(e){return r.containerState.initialBlankLine=!0,o++,u(e)}function c(t){return(0,L.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(B.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,A.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,L.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(en,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,A.f)(e,e.attempt(ee,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},et={tokenize:function(e,t,n){let r=this;return(0,A.f)(e,function(e){let i=r.events[r.events.length-1];return!(0,L.xz)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},en={tokenize:function(e,t,n){let r=this;return(0,A.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},er={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,L.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,L.xz)(t)?(0,A.f)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(er,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ei(e,t,n,r,i,o,a,s,l){let c=l||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||(0,L.Av)(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,L.Ch)(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return!u&&(null===i||41===i||(0,L.z3)(i))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,h):41===i?(e.consume(i),u--,h):null===i||32===i||40===i||(0,L.Av)(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function eo(e,t,n,r,i,o){let a;let s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(0,L.Ch)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||(0,L.Ch)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!(0,L.xz)(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function ea(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):(0,L.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),
29(0,A.f)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||(0,L.Ch)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function es(e,t){let n;return function r(i){return(0,L.Ch)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,L.xz)(i)?(0,A.f)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var el=n(11098);let ec={tokenize:function(e,t,n){return function(t){return(0,L.z3)(t)?es(e,r)(t):n(t)};function r(t){return ea(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,L.xz)(t)?(0,A.f)(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,L.Ch)(e)?t(e):n(e)}},partial:!0},eu={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,A.f)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):(0,L.Ch)(n)?e.attempt(ed,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,L.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},ed={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,L.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,A.f)(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,L.Ch)(e)?i(e):n(e)}},partial:!0},ep={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,L.xz)(n)?(0,A.f)(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||(0,L.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},ef=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eh=["pre","script","style","textarea"],em={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(B.w,t,n)}},partial:!0},eg={tokenize:function(e,t,n){let r=this;return function(t){return(0,L.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ey={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ev={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};
29function a(t){return e.enter("codeFencedFence"),(0,L.xz)(t)?(0,A.f)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=s?(e.exit("codeFencedFenceSequence"),(0,L.xz)(i)?(0,A.f)(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||(0,L.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},a=0,s=0;return function(t){return function(t){let o=i.events[i.events.length-1];return a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),(0,L.xz)(i)?(0,A.f)(e,l,"whitespace")(i):l(i))}(t)}(t)};function l(o){return null===o||(0,L.Ch)(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(ey,u,h)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,L.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,L.xz)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,A.f)(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function c(t){return null===t||(0,L.Ch)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,L.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(o,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return a>0&&(0,L.xz)(t)?(0,A.f)(e,f,"linePrefix",a+1)(t):f(t)}function f(t){return null===t||(0,L.Ch)(t)?e.check(ey,u,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,L.Ch)(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var eb=n(44301);let ex={name:"characterReference",tokenize:function(e,t,n){let r,i;let o=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=L.H$,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=L.AF,c):(e.enter("characterReferenceValue"),r=7,i=L.pY,c(t))}function c(s){if(59===s&&a){let r=e.exit("characterReferenceValue");return i!==L.H$||(0,eb.T)(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<r?(e.consume(s),c):n(s)}}},ew={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,L.sR)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e_={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,A.f)(e,t,"linePrefix")}}},eC={name:"labelEnd",tokenize:function(e,t,n){let r,i;let o=this,a=o.events.length;for(;a--;)if(("labelImage"===o.events[a][1].type||"labelLink"===o.events[a][1].type)&&!o.events[a][1]._balanced){r=o.events[a][1];break}return function(t){return r?r._inactive?u(t):(i=o.parser.defined.includes((0,el.d)(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(eS,c,i?c:u)(t):91===t?e.attempt(eE,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(eT,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);let l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=(0,Z.V)(o,e.slice(r+1,r+s+3)),o=(0,Z.V)(o,[["enter",u,t]]),o=(0,Z.V)(o,(0,J.C)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=(0,Z.V)(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=(0,Z.V)(o,e.slice(i+1)),o=(0,Z.V)(o,[["exit",l,t]]),(0,Z.d)(e,r,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){let n=e[t][1];("labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type)&&(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},eS={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,L.z3)(t)?es(e,i)(t):i(t)}function i(t){return 41===t?c(t):ei(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return(0,L.z3)(t)?es(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?ea(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return(0,L.z3)(t)?es(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},eE={tokenize:function(e,t,n){let r=this;return function(t){return eo.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes((0,el.d)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},eT={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ek={name:"labelStartImage",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:eC.resolveAll};var ej=n(62987);let eO={name:"attention",tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=(0,ej.r)(i);return function(a){return n=a,e.enter("attentionSequence"),function a(s){if(s===n)return e.consume(s),a;let l=e.exit("attentionSequence"),c=(0,ej.r)(s),u=!c||2===c&&o||r.includes(s),d=!o||2===o&&c||r.includes(i);return l._open=!!(42===n?u:u&&(o||!d)),l._close=!!(42===n?d:d&&(c||!u)),t(s)}(a)}},resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
29n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);eP(d,-s),eP(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,Z.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,Z.V)(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=(0,Z.V)(l,(0,J.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=(0,Z.V)(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=(0,Z.V)(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,Z.d)(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function eP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let eI={name:"labelStartLink",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:eC.resolveAll},eN={42:ee,43:ee,45:ee,48:ee,49:ee,50:ee,51:ee,52:ee,53:ee,54:ee,55:ee,56:ee,57:ee,62:er},eD={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),eo.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return(r=(0,el.d)(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return(0,L.z3)(t)?es(e,s)(t):s(t)}function s(t){return ei(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(ec,c,c)(t)}function c(t){return(0,L.xz)(t)?(0,A.f)(e,u,"whitespace")(t):u(t)}function u(o){return null===o||(0,L.Ch)(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},eM={[-2]:eu,[-1]:eu,32:eu},eA={35:{name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||(0,L.z3)(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,L.Ch)(r)?(e.exit("atxHeading"),t(r)):(0,L.xz)(r)?(0,A.f)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,L.z3)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(i)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},(0,Z.d)(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:Q,45:[ep,Q],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,o,a,s;let l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,f):63===a?(e.consume(a),r=3,l.interrupt?t:N):(0,L.jv)(a)?(e.consume(a),o=String.fromCharCode(a),h):n(a)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,p):(0,L.jv)(i)?(e.consume(i),r=4,l.interrupt?t:N):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:N):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?l.interrupt?t:S:p:n(r)}function f(t){return(0,L.jv)(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}
29function h(a){if(null===a||47===a||62===a||(0,L.z3)(a)){let s=47===a,c=o.toLowerCase();return!s&&!i&&eh.includes(c)?(r=1,l.interrupt?t(a):S(a)):ef.includes(o.toLowerCase())?(r=6,s)?(e.consume(a),m):l.interrupt?t(a):S(a):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?function t(n){return(0,L.xz)(n)?(e.consume(n),t):_(n)}(a):g(a))}return 45===a||(0,L.H$)(a)?(e.consume(a),o+=String.fromCharCode(a),h):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),_):58===t||95===t||(0,L.jv)(t)?(e.consume(t),y):(0,L.xz)(t)?(e.consume(t),g):_(t)}function y(t){return 45===t||46===t||58===t||95===t||(0,L.H$)(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):(0,L.xz)(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):(0,L.xz)(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,L.z3)(n)?v(n):(e.consume(n),t)}(t)}function x(t){return t===s?(e.consume(t),s=null,w):null===t||(0,L.Ch)(t)?n(t):(e.consume(t),x)}function w(e){return 47===e||62===e||(0,L.xz)(e)?g(e):n(e)}function _(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||(0,L.Ch)(t)?S(t):(0,L.xz)(t)?(e.consume(t),C):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),j):60===t&&1===r?(e.consume(t),O):62===t&&4===r?(e.consume(t),D):63===t&&3===r?(e.consume(t),N):93===t&&5===r?(e.consume(t),I):(0,L.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(em,M,E)(t)):null===t||(0,L.Ch)(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),S)}function E(t){return e.check(eg,T,M)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),k}function k(t){return null===t||(0,L.Ch)(t)?E(t):(e.enter("htmlFlowData"),S(t))}function j(t){return 45===t?(e.consume(t),N):S(t)}function O(t){return 47===t?(e.consume(t),o="",P):S(t)}function P(t){if(62===t){let n=o.toLowerCase();return eh.includes(n)?(e.consume(t),D):S(t)}return(0,L.jv)(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):S(t)}function I(t){return 93===t?(e.consume(t),N):S(t)}function N(t){return 62===t?(e.consume(t),D):45===t&&2===r?(e.consume(t),N):S(t)}function D(t){return null===t||(0,L.Ch)(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:ep,95:Q,96:ev,126:ev},eL={38:ex,92:ew},eR={[-5]:e_,[-4]:e_,[-3]:e_,33:ek,38:ex,42:eO,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,L.jv)(t)?(e.consume(t),o):s(t)}function o(t){return 43===t||45===t||46===t||(0,L.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||(0,L.H$)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,L.Av)(r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),l):(0,L.n9)(t)?(e.consume(t),s):n(t)}function l(i){return(0,L.H$)(i)?function i(o){return 46===o?(e.consume(o),r=0,l):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||(0,L.H$)(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),v):(0,L.jv)(t)?(e.consume(t),_):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):(0,L.jv)(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):(0,L.Ch)(t)?(o=u,P(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?O(e):45===e?d(e):u(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):(0,L.Ch)(t)?(o=h,P(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?O(t):(0,L.Ch)(t)?(o=y,P(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):(0,L.Ch)(t)?(o=v,P(t)):(e.consume(t),v)}function b(e){return 62===e?O(e):v(e)}function x(t){return(0,L.jv)(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||(0,L.H$)(t)?(e.consume(t),w):function t(n){return(0,L.Ch)(n)?(o=t,P(n)):(0,L.xz)(n)?(e.consume(n),t):O(n)}(t)}function _(t){return 45===t||(0,L.H$)(t)?(e.consume(t),_):47===t||62===t||(0,L.z3)(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),O):58===t||95===t||(0,L.jv)(t)?(e.consume(t),S):(0,L.Ch)(t)?(o=C,P(t)):(0,L.xz)(t)?(e.consume(t),C):O(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,L.H$)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),E):(0,L.Ch)(n)?(o=t,P(n)):(0,L.xz)(n)?(e.consume(n),t):C(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,T):(0,L.Ch)(t)?(o=E,P(t)):(0,L.xz)(t)?(e.consume(t),E):(e.consume(t),k)}function T(t){return t===r?(e.consume(t),r=void 0,j):null===t?n(t):(0,L.Ch)(t)?(o=T,P(t)):(e.consume(t),T)}function k(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,L.z3)(t)?C(t):(e.consume(t),k)}function j(e){return 47===e||62===e||(0,L.z3)(e)?C(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return(0,L.xz)(t)?(0,A.f)(e,N,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),o(t)}}}],91:eI,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,L.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ew],93:eC,95:eO,96:{name:"codeText",tokenize:function(e,t,n){let r,i,o=0;
29return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),a):96===l?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",s(a))}(l)):(0,L.Ch)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,L.Ch)(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},eZ={null:[eO,G]},ez={null:[42,95]},eF={null:[]},eB=/[\0\t\n\r]/g;var eH=n(80889),e$=n(80788);let eU={}.hasOwnProperty,eY=function(e,t,n){let i,o,s,l;return"string"!=typeof t&&(n=t,t=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(x),autolinkProtocol:p,autolinkEmail:p,atxHeading:o(y),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:p,characterReference:p,codeFenced:o(g),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(g,s),codeText:o(function(){return{type:"inlineCode",value:""}},s),codeTextData:p,data:p,codeFlowValue:p,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(v),hardBreakTrailing:o(v),htmlFlow:o(b,s),htmlFlowData:p,htmlText:o(b,s),htmlTextData:p,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:s,link:o(x),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){n.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),n.expectingFirstListItemValue=void 0)},listOrdered:o(w,function(){n.expectingFirstListItemValue=!0}),listUnordered:o(w),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){n.referenceType="collapsed"},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(y),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:c(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:c(),autolinkEmail:function(e){f.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){f.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:c(),characterEscapeValue:f,characterReferenceMarkerHexadecimal:m,characterReferenceMarkerNumeric:m,characterReferenceValue:function(e){let t;let r=this.sliceSerialize(e),i=n.characterReferenceType;i?(t=(0,eH.o)(r,"characterReferenceMarkerNumeric"===i?10:16),n.characterReferenceType=void 0):t=(0,eb.T)(r);let o=this.stack.pop();o.value+=t,o.position.end=eG(e.end)},codeFenced:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n.flowCodeInside=void 0}),codeFencedFence:function(){!n.flowCodeInside&&(this.buffer(),n.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:f,codeIndented:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:f,data:f,definition:c(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,el.d)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:c(),hardBreakEscape:c(h),hardBreakTrailing:c(h),htmlFlow:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:f,htmlText:c(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:f,image:c(function(){let e=this.stack[this.stack.length-1];if(n.inReference){let t=n.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;n.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(n.inReference=!0,"link"===r.type){let t=e.children;r.children=t}else r.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=(0,e$.v)(t),n.identifier=(0,el.d)(t).toLowerCase()},lineEnding:function(e){let r=this.stack[this.stack.length-1];if(n.atHardBreak){r.children[r.children.length-1].position.end=eG(e.end),n.atHardBreak=void 0;return}!n.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(p.call(this,e),f.call(this,e))},link:c(function(){let e=this.stack[this.stack.length-1];if(n.inReference){let t=n.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;n.referenceType=void 0}),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=(0,el.d)(this.sliceSerialize(e)).toLowerCase(),n.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){n.inReference=void 0},setextHeading:c(function(){n.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){n.setextHeadingSlurpLineEnding=!0},strong:c(),thematicBreak:c()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(eU.call(t,n)){if("canContainEols"===n){let r=t[n];r&&e[n].push(...r)}else if("transforms"===n){let r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let n={type:"root",children:[]},o={stack:[n],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:d,setData:r,getData:i},a=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?a.push(c):c=function(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){let t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?l++:l--,a=void 0):"lineEndingBlank"===t[1].type?"enter"
29===t[0]&&(!r||a||l||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(s,0,["enter",r,t[2]]),s++,n++,o=void 0,a=!0)}}return e[t][1]._spread=c,n}(e,a.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];eU.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||eV).call(o,void 0,e[0])}for(n.position={start:eG(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:eG(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)n=t.transforms[c](n)||n;return n};function r(e,t){n[e]=t}function i(e){return n[e]}function o(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:eG(t.start)},e}function c(e){return function(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||eV).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+a({start:e.start,end:e.end})+"): it’s not open");return n.position.end=eG(e.end),n}function d(){return N(this.stack.pop(),"boolean"!=typeof I.includeImageAlt||I.includeImageAlt,"boolean"!=typeof I.includeHtml||I.includeHtml)}function p(e){let t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:eG(e.start)},t.children.push(n)),this.stack.push(n)}function f(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=eG(e.end)}function h(){n.atHardBreak=!0}function m(e){var t;t=e.type,n.characterReferenceType=t}function g(){return{type:"code",lang:null,meta:null,value:""}}function y(){return{type:"heading",depth:void 0,children:[]}}function v(){return{type:"break"}}function b(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function w(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(n)(function(e){for(;!H(e););return e}((function(e){let t={defined:[],lazy:{},constructs:(0,M.W)([r,...(e||{}).extensions||[]]),content:n(R),document:n(z),flow:n(Y),string:n(V),text:n(q)};return t;function n(e){return function(n){return function(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],s=[],l={consume:function(e){(0,L.Ch)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:h(function(e,t){m(e,t.from)}),check:h(f),interrupt:h(f,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o;let a=e[r];if("string"==typeof a)o=a;else switch(a){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":"	";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(a)}n=-2===a,i.push(o)}return i.join("")}(d(e),t)}
29,now:p,defineSkip:function(e){i[e.line]=e.column,g()},write:function(e){return(a=(0,Z.V)(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==a[a.length-1])?[]:(m(t,0),c.events=(0,J.C)(o,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,a)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function p(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function f(e,t){t.restore()}function h(e,t){return function(n,i,o){let a,u,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function h(e){return(a=e,u=0,0===e.length)?o:m(e[u])}function m(e){return function(n){return(f=function(){let e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,g()},from:i}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,y,v)(n)}}function y(t){return e(d,f),i}function v(e){return(f.restore(),++u<a.length)?m(a[u]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&(0,Z.d)(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(n).document().write((o=1,s="",l=!0,function(e,t,n){let r,a,c,u,d;let p=[];for(e=s+e.toString(t),c=0,s="",l&&(65279===e.charCodeAt(0)&&c++,l=void 0);c<e.length;){if(eB.lastIndex=c,u=(r=eB.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){s=e.slice(c);break}if(10===d&&c===u&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),c<u&&(p.push(e.slice(c,u)),o+=u-c),d){case 0:p.push(65533),o++;break;case 9:for(a=4*Math.ceil(o/4),p.push(-2);o++<a;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:i=!0,o=1}c=u+1}return n&&(i&&p.push(-5),s&&p.push(s),p.push(null)),p})(e,t,!0))))};function eG(e){return{line:e.line,column:e.column,offset:e.offset}}function eV(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+a({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+a({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+a({start:t.start,end:t.end})+") is still open")}function eq(e){Object.assign(this,{Parser:t=>eY(t,Object.assign({},this.data("settings"),e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))})}function eW(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),a="";if(37===o&&(0,L.H$)(e.charCodeAt(n+1))&&(0,L.H$)(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}var eX=n(21623),eK=n(3980);let eJ={}.hasOwnProperty;function eQ(e){return String(e||"").toUpperCase()}function e0(e,t){let n;let r=String(t.identifier).toUpperCase(),i=eW(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=o+1);let a=e.footnoteCounts[r],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function e1(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function e2(e){let t=e.spread;return null==t?e.children.length>1:t}function e4(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let e3={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:e0,footnote:function(e,t){let n=e.footnoteById,r=1;for(;(r in n);)r++;let i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},e0(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e1(e,t);let r={src:eW(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);let i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:eW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e1(e,t);let r={href:eW(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);let i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:eW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=e2(n[r])}return t}(n):e2(t),o={},a=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=(0,eK.Pk)(t.children[1]),a=(0,eK.rb)(t.children[t.children.length-1]);o.line&&a.line&&(r.position={start:o,end:a}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
29,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,s=-1,l=[];for(;++s<a;){let n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(t,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(e4(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(e4(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:e6,yaml:e6,definition:e6,footnoteDefinition:e6};function e6(){return null}let e5={}.hasOwnProperty;function e9(e,t){e.position&&(t.position=(0,eK.FK)(e))}function e7(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function e8(e,t,n){let r=t&&t.type;if(!r)throw Error("Expected node, got `"+t+"`");return e5.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:te(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){let n=t.data||{},r="value"in t&&!(e5.call(n,"hProperties")||e5.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:te(e,t)};return e.patch(t,r),e.applyData(t,r)}(e,t)}function te(e,t){let n=[];if("children"in t){let r=t.children,i=-1;for(;++i<r.length;){let o=e8(e,r[i],t);if(o){if(i&&"break"===r[i-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&"element"===o.type)){let e=o.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function tt(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function tn(e,t){let n=function(e,t){let n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...e3,...n.handlers},a.definition=function(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return(0,eX.Vn)(e,"definition",e=>{let n=eQ(e.identifier);n&&!eJ.call(t,n)&&(t[n]=e)}),function(e){let n=eQ(e);return n&&eJ.call(t,n)?t[n]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=e9,a.applyData=e7,a.one=function(e,t){return e8(a,e,t)},a.all=function(e){return te(a,e)},a.wrap=tt,a.augment=o,(0,eX.Vn)(e,"footnoteDefinition",e=>{let t=String(e.identifier).toUpperCase();e5.call(i,t)||(i[t]=e)}),a;function o(e,t){if(e&&"data"in e&&e.data){let n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){let n="type"in e?e:{position:e};!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column||(t.position={start:(0,eK.Pk)(n),end:(0,eK.rb)(n)})}return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),o(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),i=function(e){let t=[],n=-1;for(;++n<e.footnoteOrder.length;){let r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;let i=e.all(r),o=String(r.identifier).toUpperCase(),a=eW(o.toLowerCase()),s=0,l=[];for(;++s<=e.footnoteCounts[o];){let t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}let c=i[i.length-1];
29if(c&&"element"===c.type&&"p"===c.tagName){let e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);let u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}var tr=function(e,t){var n;return e&&"run"in e?(n,r,i)=>{e.run(tn(n,t),r,e=>{i(e)})}:(n=e||t,e=>tn(e,n))},ti=n(45697),to=n(91634);function ta(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{(0,eX.Vn)(t,"element",(t,n,r)=>{let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof n&&(i=!e.allowElement(t,n,r)),i&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var ts=n(82143),tl=n(26103);let tc={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var tu=n(50342),td=n(25668),tp=n(57848);let tf=["http","https","mailto","tel"];function th(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let r=t.indexOf(":");if(-1===r)return t;let i=-1;for(;++i<tf.length;){let e=tf[i];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return -1!==(i=t.indexOf("?"))&&r>i||-1!==(i=t.indexOf("#"))&&r>i?t:"javascript:void(0)"}let tm={}.hasOwnProperty,tg=new Set(["table","thead","tbody","tfoot","tr"]);function ty(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function tv(e,t){return t.toUpperCase()}let tb={}.hasOwnProperty,tx={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function tw(e){for(let t in tx)if(tb.call(tx,t)&&tb.call(e,t)){let e=tx[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete tx[t]}let t=_().use(eq).use(e.remarkPlugins||[]).use(tr,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(ta,e),n=new m;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},function e(t,n){let r;let o=[],a=-1;for(;++a<n.children.length;)"element"===(r=n.children[a]).type?o.push(function(t,n,r,o){let a;let s=t.options,l=void 0===s.transformLinkUri?th:s.transformLinkUri,c=t.schema,u=n.tagName,d={},p=c;if("html"===c.space&&"svg"===u&&(p=to.YP,t.schema=p),n.properties)for(a in n.properties)tm.call(n.properties,a)&&function(e,t,n,r){let i=(0,tl.s)(r.schema,t),o=n;null!=o&&o==o&&(Array.isArray(o)&&(o=i.commaSeparated?(0,td.P)(o):(0,tu.P)(o)),"style"===i.property&&"string"==typeof o&&(o=function(e){let t={};try{tp(e,function(e,n){t[("-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e).replace(/-([a-z])/g,tv)]=n})}catch{}return t}(o)),i.space&&i.property?e[tm.call(tc,i.property)?tc[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}(d,a,n.properties[a],t);("ol"===u||"ul"===u)&&t.listDepth++;let f=e(t,n);("ol"===u||"ul"===u)&&t.listDepth--,t.schema=c;let h=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},m=s.components&&tm.call(s.components,u)?s.components[u]:u,g="string"==typeof m||m===i.Fragment;if(!ts.isValidElementType(m))throw TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(d.key=r,"a"===u&&s.linkTarget&&(d.target="function"==typeof s.linkTarget?s.linkTarget(String(d.href||""),n.children,"string"==typeof d.title?d.title:null):s.linkTarget),"a"===u&&l&&(d.href=l(String(d.href||""),n.children,"string"==typeof d.title?d.title:null)),g||"code"!==u||"element"!==o.type||"pre"===o.tagName||(d.inline=!0),g||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(d.level=Number.parseInt(u.charAt(1),10)),"img"===u&&s.transformImageUri&&(d.src=s.transformImageUri(String(d.src||""),String(d.alt||""),"string"==typeof d.title?d.title:null)),!g&&"li"===u&&"element"===o.type){let e=function(e){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(n);d.checked=e&&e.properties?!!e.properties.checked:null,d.index=ty(o,n),d.ordered="ol"===o.tagName}return g||"ol"!==u&&"ul"!==u||(d.ordered="ol"===u,d.depth=t.listDepth),"td"!==u&&"th"!==u||(d.align&&(d.style||(d.style={}),d.style.textAlign=d.align,delete d.align),g||(d.isHeader="th"===u)),g||"tr"!==u||"element"!==o.type||(d.isHeader="thead"===o.tagName),s.sourcePos&&(d["data-sourcepos"]=[h.start.line,":",h.start.column,"-",h.end.line,":",h.end.column].map(String).join("")),!g&&s.rawSourcePos&&(d.sourcePosition=n.position),!g&&s.includeElementIndex&&(d.index=ty(o,n),d.siblingCount=ty(o)),g||(d.node=n),f.length>0?i.createElement(m,d,f):i.createElement(m,d)}(t,r,a,n)):"text"===r.type?"element"===n.type&&tg.has(n.tagName)&&function(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(r)||o.push(r.value):"raw"!==r.type||t.options.skipHtml||o.push(r.value);return o}({options:e,schema:to.dy,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}tw.propTypes={children:ti.string,className:ti.string,allowElement:ti.func,allowedElements:ti.arrayOf(ti.string),disallowedElements:ti.arrayOf(ti.string),unwrapDisallowed:ti.bool,remarkPlugins:ti.arrayOf(ti.oneOfType([ti.object,ti.func,ti.arrayOf(ti.oneOfType([ti.bool,ti.string,ti.object,ti.func,ti.arrayOf(ti.any)]))])),rehypePlugins:ti.arrayOf(ti.oneOfType([ti.object,ti.func,ti.arrayOf(ti.oneOfType([ti.bool,ti.string,ti.object,ti.func,ti.arrayOf(ti.any)]))])),sourcePos:ti.bool,rawSourcePos:ti.bool,ski
29pHtml:ti.bool,includeElementIndex:ti.bool,transformLinkUri:ti.oneOfType([ti.func,ti.bool]),linkTarget:ti.oneOfType([ti.func,ti.string]),transformImageUri:ti.func,components:ti.object}},2947:function(e,t,n){"use strict";n.d(t,{Ix:function(){return z},Am:function(){return P}});var r=n(67294),i=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r};!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
29.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
29}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
30`);var o=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,s=e=>"function"==typeof e,l=e=>a(e)||o(e),c=e=>a(e)||s(e)?e:null,u=(e,t)=>!1===e||o(e)&&e>0?e:t,d=e=>(0,r.isValidElement)(e)||a(e)||s(e)||o(e);function p({enter:e,exit:t,appendPosition:n=!1,collapse:i=!0,collapseDuration:o=300}){return function({children:a,position:s,preventExitTransition:l,done:c,nodeRef:u,isIn:d,playToast:p}){let f=n?`${e}--${s}`:e,h=n?`${t}--${s}`:t,m=(0,r.useRef)(0);return(0,r.useLayoutEffect)(()=>{let e=u.current,t=f.split(" "),n=r=>{r.target===u.current&&(p(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,r.useEffect)(()=>{let e=u.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n=300){let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}(e,c,o):c()};d||(l?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[d]),r.createElement(r.Fragment,null,a)}}function f(e,t){return{content:h(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function h(e,t,n=!1){return(0,r.isValidElement)(e)&&!a(e.type)?(0,r.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):s(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function m({delay:e,isRunning:t,closeToast:n,type:o="default",hide:a,className:l,controlledProgress:c,progress:u,rtl:d,isIn:p,theme:f}){let h=a||c&&0===u,m={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};c&&(m.transform=`scaleX(${u})`);let g=i("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),y=s(l)?l({rtl:d,type:o,defaultClassName:g}):i(g,l);return r.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},r.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}`}),r.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{p&&n()}}))}var g=1,y=()=>`${g++}`,v=new Map,b=[],x=new Set,w=e=>
30x.forEach(t=>t(e)),_=()=>v.size>0,C=(e,{containerId:t})=>{var n;return null==(n=v.get(t||1))?void 0:n.toasts.get(e)};function S(e,t){var n;if(t)return!!(null!=(n=v.get(t))&&n.isToastActive(e));let r=!1;return v.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function E(e,t){d(e)&&(_()||b.push({content:e,options:t}),v.forEach(n=>{n.buildToast(e,t)}))}function T(e,t){v.forEach(n=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==n.id||n.toggle(e,null==t?void 0:t.id)})}function k(e,t){return E(e,t),t.toastId}function j(e,t){return{...t,type:t&&t.type||e,toastId:t&&(a(t.toastId)||o(t.toastId))?t.toastId:y()}}function O(e){return(t,n)=>k(t,j(e,n))}function P(e,t){return k(e,j("default",t))}P.loading=(e,t)=>k(e,j("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),P.promise=function(e,{pending:t,error:n,success:r},i){let o;t&&(o=a(t)?P.loading(t,i):P.loading(t.render,{...i,...t}));let l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,n)=>{if(null==t){P.dismiss(o);return}let r={type:e,...l,...i,data:n},s=a(t)?{render:t}:t;return o?P.update(o,{...r,...s}):P(s.render,{...r,...s}),n},u=s(e)?e():e;return u.then(e=>c("success",r,e)).catch(e=>c("error",n,e)),u},P.success=O("success"),P.info=O("info"),P.error=O("error"),P.warning=O("warning"),P.warn=P.warning,P.dark=(e,t)=>k(e,j("default",{theme:"dark",...t})),P.dismiss=function(e){!function(e){if(!_()){b=b.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||l(e))v.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=v.get(e.containerId);t?t.removeToast(e.id):v.forEach(t=>{t.removeToast(e.id)})}}(e)},P.clearWaitingQueue=(e={})=>{v.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},P.isActive=S,P.update=(e,t={})=>{let n=C(e,t);if(n){let{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:y()};o.toastId!==e&&(o.staleId=e);let a=o.render||i;delete o.render,k(a,o)}},P.done=e=>{P.update(e,{progress:1})},P.onChange=function(e){return x.add(e),()=>{x.delete(e)}},P.play=e=>T(!0,e),P.pause=e=>T(!1,e);var I="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,N=({theme:e,type:t,isLoading:n,...i})=>r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...i}),D={info:function(e){return r.createElement(N,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(N,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(N,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(N,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}},M=e=>e in D,A=e=>{let{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:a,playToast:l}=function(e){var t,n;let[i,o]=(0,r.useState)(!1),[a,s]=(0,r.useState)(!1),l=(0,r.useRef)(null),c=(0,r.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:d,closeToast:p,onClick:f,closeOnClick:h}=e;function m(){o(!0)}function g(){o(!1)}function y(t){let n=l.current;if(c.canDrag&&n){c.didMove=!0,i&&g(),"x"===e.draggableDirection?c.delta=t.clientX-c.start:c.delta=t.clientY-c.start,c.start!==t.clientX&&(c.canCloseOnClick=!1);let r="x"===e.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`;n.style.transform=`translate3d(${r},0)`,n.style.opacity=`${1-Math.abs(c.delta/c.removalDistance)}`}}function b(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b);let t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance){s(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}t={id:e.toastId,containerId:e.containerId,fn:o},null==(n=v.get(t.containerId||1))||n.setToggle(t.id,t.fn),(0,r.useEffect)(()=>
30{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);let x={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){c.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",b);let n=l.current;c.canCloseOnClick=!0,c.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(c.start=t.clientX,c.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(c.start=t.clientY,c.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:r,left:i,right:o}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=o&&t.clientY>=n&&t.clientY<=r?g():m()}};return u&&d&&(x.onMouseEnter=g,e.stacked||(x.onMouseLeave=m)),h&&(x.onClick=e=>{f&&f(e),c.canCloseOnClick&&p(!0)}),{playToast:m,pauseToast:g,isRunning:i,preventExitTransition:a,toastRef:l,eventHandlers:x}}(e),{closeButton:c,children:u,autoClose:d,onClick:p,type:f,hideProgressBar:g,closeToast:y,transition:b,position:x,className:w,style:_,progressClassName:C,updateId:S,role:E,progress:T,rtl:k,toastId:j,deleteToast:O,isIn:P,isLoading:I,closeOnClick:N,theme:A,ariaLabel:L}=e,R=i("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":N}),Z=s(w)?w({rtl:k,position:x,type:f,defaultClassName:R}):i(R,w),z=function({theme:e,type:t,isLoading:n,icon:i}){let o=null,a={theme:e,type:t};return!1===i||(s(i)?o=i({...a,isLoading:n}):(0,r.isValidElement)(i)?o=(0,r.cloneElement)(i,a):n?o=D.spinner():M(t)&&(o=D[t](a))),o}(e),F=!!T||!d,B={closeToast:y,type:f,theme:A},H=null;return!1===c||(H=s(c)?c(B):(0,r.isValidElement)(c)?(0,r.cloneElement)(c,B):function({closeToast:e,theme:t,ariaLabel:n="close"}){return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(B)),r.createElement(b,{isIn:P,done:O,position:x,preventExitTransition:n,nodeRef:o,playToast:l},r.createElement("div",{id:j,tabIndex:0,onClick:p,"data-in":P,className:Z,...a,style:_,ref:o,...P&&{role:E,"aria-label":L}},null!=z&&r.createElement("div",{className:i("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},z),h(u,e,!t),H,!e.customProgressBar&&r.createElement(m,{...S&&!F?{key:`p-${S}`}:{},rtl:k,theme:A,delay:d,isRunning:t,isIn:P,closeToast:y,hide:g,type:f,className:C,controlledProgress:F,progress:T||0})))},L=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),R=p(L("bounce",!0));p(L("slide",!0)),p(L("zoom")),p(L("flip"));var Z={position:"top-right",transition:R,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function z(e){let t={...Z,...e},n=e.stacked,[a,l]=(0,r.useState)(!0),p=(0,r.useRef)(null),{getToastToRender:h,isToastActive:m,count:g}=function(e){var t;let n;let{subscribe:i,getSnapshot:a,setProps:s}=(0,r.useRef)((n=e.containerId||1,{subscribe(t){let r,i,a,s,l,p,h,m,g,y,x,_;let C=(r=1,i=0,a=[],s=[],l=e,p=new Map,h=new Set,m=()=>{s=Array.from(p.values()),h.forEach(e=>e())},g=({containerId:e,toastId:t,updateId:r})=>{let i=p.has(t)&&null==r;return(e?e!==n:1!==n)||i},y=e=>{var t,n;null==(n=null==(t=e.props)?void 0:t.onClose)||n.call(t,e.removalReason),e.isActive=!1},x=e=>{if(null==e)p.forEach(y);else{let t=p.get(e);t&&y(t)}m()},_=e=>{var t,n;let{toastId:r,updateId:i}=e.props,o=null==i;e.staleId&&p.delete(e.staleId),e.isActive=!0,p.set(r,e),m(),w(f(e,o?"added":"updated")),o&&(null==(n=(t=e.props).onOpen)||n.call(t))},{id:n,props:l,observe:e=>(h.add(e),()=>h.delete(e)),toggle:(e,t)=>
30{p.forEach(n=>{var r;(null==t||t===n.props.toastId)&&(null==(r=n.toggle)||r.call(n,e))})},removeToast:x,toasts:p,clearQueue:()=>{i-=a.length,a=[]},buildToast:(e,t)=>{if(g(t))return;let{toastId:n,updateId:s,data:h,staleId:y,delay:v}=t,b=null==s;b&&i++;let C={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:n,updateId:s,data:h,isIn:!1,className:c(t.className||l.toastClassName),progressClassName:c(t.progressClassName||l.progressClassName),autoClose:!t.isLoading&&u(t.autoClose,l.autoClose),closeToast(e){p.get(n).removalReason=e,x(n)},deleteToast(){let e=p.get(n);if(null!=e){if(w(f(e,"removed")),p.delete(n),--i<0&&(i=0),a.length>0){_(a.shift());return}m()}}};C.closeButton=l.closeButton,!1===t.closeButton||d(t.closeButton)?C.closeButton=t.closeButton:!0===t.closeButton&&(C.closeButton=!d(l.closeButton)||l.closeButton);let S={content:e,props:C,staleId:y};l.limit&&l.limit>0&&i>l.limit&&b?a.push(S):o(v)?setTimeout(()=>{_(S)},v):_(S)},setProps(e){l=e},setToggle:(e,t)=>{let n=p.get(e);n&&(n.toggle=t)},isToastActive:e=>{var t;return null==(t=p.get(e))?void 0:t.isActive},getSnapshot:()=>s});v.set(n,C);let S=C.observe(t);return b.forEach(e=>E(e.content,e.options)),b=[],()=>{S(),v.delete(n)}},setProps(e){var t;null==(t=v.get(n))||t.setProps(e)},getSnapshot(){var e;return null==(e=v.get(n))?void 0:e.getSnapshot()}})).current;s(e);let l=null==(t=(0,r.useSyncExternalStore)(i,a,a))?void 0:t.slice();return{getToastToRender:function(t){if(!l)return[];let n=new Map;return e.newestOnTop&&l.reverse(),l.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},isToastActive:S,count:null==l?void 0:l.length}}(t),{className:y,style:x,rtl:_,containerId:C,hotKeys:T}=t;function k(){n&&(l(!0),P.play())}return I(()=>{var e;if(n){let n=p.current.querySelectorAll('[data-in="true"]'),r=null==(e=t.position)?void 0:e.includes("top"),i=0,o=0;Array.from(n).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${a}`),e.dataset.pos||(e.dataset.pos=r?"top":"bot");let n=i*(a?.2:1)+(a?0:12*t);e.style.setProperty("--y",`${r?n:-1*n}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${1-(a?o:0)}`),i+=e.offsetHeight,o+=.025})}},[a,g,n]),(0,r.useEffect)(()=>{function e(e){var t;let n=p.current;T(e)&&(null==(t=n.querySelector('[tabIndex="0"]'))||t.focus(),l(!1),P.pause()),"Escape"===e.key&&(document.activeElement===n||null!=n&&n.contains(document.activeElement))&&(l(!0),P.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[T]),r.createElement("section",{ref:p,className:"Toastify",id:C,onMouseEnter:()=>{n&&(l(!1),P.pause())},onMouseLeave:k,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},h((e,t)=>{let o,a=t.length?{...x}:{...x,pointerEvents:"none"};return r.createElement("div",{tabIndex:-1,className:(o=i("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":_}),s(y)?y({position:e,rtl:_,defaultClassName:o}):i(o,c(y))),"data-stacked":n,style:a,key:`c-${e}`},t.map(({content:e,props:t})=>r.createElement(A,{...t,stacked:n,collapseAll:k,isIn:m(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}},50342:function(e,t,n){"use strict";function r(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{P:function(){return i},Q:function(){return r}})},94135:function(e,t,n){"use strict";n.d(t,{s5:function(){return u},pt:function(){return d},lI:function(){return y},xW:function(){return m},Rv:function(){return p},W_:function(){return a},tl:function(){return l},LW:function(){return c}});var r=n(13433),i=n(7185);function o(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&!0===n.auto){let a=(0,i.e)(e.el,`.${r[o]}`)[0];a||((a=(0,i.c)("div",r[o])).className=r[o],e.el.append(a)),n[o]=a,t[o]=a}}),n}function a(e){let{swiper:t,extendParams:n,on:r,emit:a}=e;function s(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e))?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n)?e:n}function l(e,n){let r=t.params.navigation;
30(e=(0,i.m)(e)).forEach(e=>{e&&(e.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))})}function c(){let{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop){l(n,!1),l(e,!1);return}l(n,t.isBeginning&&!t.params.rewind),l(e,t.isEnd&&!t.params.rewind)}function u(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),a("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),a("navigationNext"))}function p(){let e=t.params.navigation;if(t.params.navigation=o(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(e.nextEl||e.prevEl))return;let n=s(e.nextEl),r=s(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=(0,i.m)(n),r=(0,i.m)(r);let a=(n,r)=>{n&&n.addEventListener("click","next"===r?d:u),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach(e=>a(e,"next")),r.forEach(e=>a(e,"prev"))}function f(){let{nextEl:e,prevEl:n}=t.navigation;e=(0,i.m)(e),n=(0,i.m)(n);let r=(e,n)=>{e.removeEventListener("click","next"===n?d:u),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>
30r(e,"next")),n.forEach(e=>r(e,"prev"))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},r("init",()=>{!1===t.params.navigation.enabled?h():(p(),c())}),r("toEdge fromEdge lock unlock",()=>{c()}),r("destroy",()=>{f()}),r("enable disable",()=>{let{nextEl:e,prevEl:n}=t.navigation;if(e=(0,i.m)(e),n=(0,i.m)(n),t.enabled){c();return}[...e,...n].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),r("click",(e,n)=>{let{nextEl:r,prevEl:o}=t.navigation;r=(0,i.m)(r),o=(0,i.m)(o);let s=n.target,l=o.includes(s)||r.includes(s);if(t.isElement&&!l){let e=n.path||n.composedPath&&n.composedPath();e&&(l=e.find(e=>r.includes(e)||o.includes(e)))}if(t.params.navigation.hideOnClick&&!l){let e;if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),!0===e?a("navigationShow"):a("navigationHide"),[...r,...o].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});let h=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),p(),c()},disable:h,update:c,init:p,destroy:f})}function s(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function l(e){let t,{swiper:n,extendParams:r,on:a,emit:l}=e,c="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${c}-bullet`,bulletActiveClass:`${c}-bullet-active`,modifierClass:`${c}-`,currentClass:`${c}-current`,totalClass:`${c}-total`,hiddenClass:`${c}-hidden`,progressbarFillClass:`${c}-progressbar-fill`,progressbarOppositeClass:`${c}-progressbar-opposite`,clickableClass:`${c}-clickable`,lockClass:`${c}-lock`,horizontalClass:`${c}-horizontal`,verticalClass:`${c}-vertical`,paginationDisabledClass:`${c}-disabled`}}),n.pagination={el:null,bullets:[]};let u=0;function d(){return!n.params.pagination.el||!n.pagination.el||Array.isArray(n.pagination.el)&&0===n.pagination.el.length}function p(e,t){let{bulletActiveClass:r}=n.params.pagination;e&&(e=e[`${"prev"===t?"previous":"next"}ElementSibling`])&&(e.classList.add(`${r}-${t}`),(e=e[`${"prev"===t?"previous":"next"}ElementSibling`])&&e.classList.add(`${r}-${t}-${t}`))}function f(e){let t=e.target.closest(s(n.params.pagination.bulletClass));if(!t)return;e.preventDefault();let r=(0,i.h)(t)*n.params.slidesPerGroup;if(n.params.loop){var o,a,l;if(n.realIndex===r)return;let e=(o=n.realIndex,a=r,(o%=l=n.slides.length,(a%=l)===o+1)?"next":a===o-1?"previous":void 0);"next"===e?n.slideNext():"previous"===e?n.slidePrev():n.slideToLoop(r)}else n.slideTo(r)}function h(){let e,r;let o=n.rtl,a=n.params.pagination;if(d())return;let c=n.pagination.el;c=(0,i.m)(c);let f=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,h=n.params.loop?Math.ceil(f/n.params.slidesPerGroup):n.snapGrid.length;if(n.params.loop?(r=n.previousRealIndex||0,e=n.params.slidesPerGroup>1?Math.floor(n.realIndex/n.params.slidesPerGroup):n.realIndex):void 0!==n.snapIndex?(e=n.snapIndex,r=n.previousSnapIndex):(r=n.previousIndex||0,e=n.activeIndex||0),"bullets"===a.type&&n.pagination.bullets&&n.pagination.bullets.length>0){let s,l,d;let f=n.pagination.bullets;if(a.dynamicBullets&&(t=(0,i.f)(f[0],n.isHorizontal()?"width":"height",!0),c.forEach(e=>{e.style[n.isHorizontal()?"width":"height"]=`${t*(a.dynamicMainBullets+4)}px`}),a.dynamicMainBullets>1&&void 0!==r&&((u+=e-(r||0))>a.dynamicMainBullets-1?u=a.dynamicMainBullets-1:u<0&&(u=0)),d=((l=(s=Math.max(e-u,0))+(Math.min(f.length,a.dynamicMainBullets)-1))+s)/2),f.forEach(e
30=>{let t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${a.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),c.length>1)f.forEach(t=>{let r=(0,i.h)(t);r===e?t.classList.add(...a.bulletActiveClass.split(" ")):n.isElement&&t.setAttribute("part","bullet"),a.dynamicBullets&&(r>=s&&r<=l&&t.classList.add(...`${a.bulletActiveClass}-main`.split(" ")),r===s&&p(t,"prev"),r===l&&p(t,"next"))});else{let t=f[e];if(t&&t.classList.add(...a.bulletActiveClass.split(" ")),n.isElement&&f.forEach((t,n)=>{t.setAttribute("part",n===e?"bullet-active":"bullet")}),a.dynamicBullets){let e=f[s],t=f[l];for(let e=s;e<=l;e+=1)f[e]&&f[e].classList.add(...`${a.bulletActiveClass}-main`.split(" "));p(e,"prev"),p(t,"next")}}if(a.dynamicBullets){let e=Math.min(f.length,a.dynamicMainBullets+4),r=(t*e-t)/2-d*t,i=o?"right":"left";f.forEach(e=>{e.style[n.isHorizontal()?i:"top"]=`${r}px`})}}c.forEach((t,r)=>{if("fraction"===a.type&&(t.querySelectorAll(s(a.currentClass)).forEach(t=>{t.textContent=a.formatFractionCurrent(e+1)}),t.querySelectorAll(s(a.totalClass)).forEach(e=>{e.textContent=a.formatFractionTotal(h)})),"progressbar"===a.type){let r;r=a.progressbarOpposite?n.isHorizontal()?"vertical":"horizontal":n.isHorizontal()?"horizontal":"vertical";let i=(e+1)/h,o=1,l=1;"horizontal"===r?o=i:l=i,t.querySelectorAll(s(a.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${l})`,e.style.transitionDuration=`${n.params.speed}ms`})}"custom"===a.type&&a.renderCustom?(t.innerHTML=a.renderCustom(n,e+1,h),0===r&&l("paginationRender",t)):(0===r&&l("paginationRender",t),l("paginationUpdate",t)),n.params.watchOverflow&&n.enabled&&t.classList[n.isLocked?"add":"remove"](a.lockClass)})}function m(){let e=n.params.pagination;if(d())return;let t=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.grid&&n.params.grid.rows>1?n.slides.length/Math.ceil(n.params.grid.rows):n.slides.length,r=n.pagination.el;r=(0,i.m)(r);let o="";if("bullets"===e.type){let r=n.params.loop?Math.ceil(t/n.params.slidesPerGroup):n.snapGrid.length;n.params.freeMode&&n.params.freeMode.enabled&&r>t&&(r=t);for(let t=0;t<r;t+=1)e.renderBullet?o+=e.renderBullet.call(n,t,e.bulletClass):o+=`<${e.bulletElement} ${n.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(n,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(n,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),n.pagination.bullets=[],r.forEach(t=>{"custom"!==e.type&&(t.innerHTML=o||""),"bullets"===e.type&&n.pagination.bullets.push(...t.querySelectorAll(s(e.bulletClass)))}),"custom"!==e.type&&l("paginationRender",r[0])}function g(){let e;n.params.pagination=o(n,n.originalParams.pagination,n.params.pagination,{el:"swiper-pagination"});let t=n.params.pagination;t.el&&("string"==typeof t.el&&n.isElement&&(e=n.el.querySelector(t.el)),e||"string"!=typeof t.el||(e=[...document.querySelectorAll(t.el)]),e||(e=t.el),e&&0!==e.length&&(n.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(e)&&e.length>1&&(e=[...n.el.querySelectorAll(t.el)]).length>1&&(e=e.filter(e=>(0,i.a)(e,".swiper")[0]===n.el)[0]),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(n.pagination,{el:e}),(e=(0,i.m)(e)).forEach(e=>{"bullets"===t.type&&t.clickable&&e.classList.add(...(t.clickableClass||"").split(" ")),e.classList.add(t.modifierClass+t.type),e.classList.add(n.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.classList.add(`${t.modifierClass}${t.type}-dynamic`),u=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass),t.clickable&&e.addEventListener("click",f),n.enabled||e.classList.add(t.lockClass)})))}function y(){let e=n.params.pagination;if(d())return;let t=n.pagination.el;
30t&&(t=(0,i.m)(t)).forEach(t=>{t.classList.remove(e.hiddenClass),t.classList.remove(e.modifierClass+e.type),t.classList.remove(n.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(t.classList.remove(...(e.clickableClass||"").split(" ")),t.removeEventListener("click",f))}),n.pagination.bullets&&n.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}a("changeDirection",()=>{if(!n.pagination||!n.pagination.el)return;let e=n.params.pagination,{el:t}=n.pagination;(t=(0,i.m)(t)).forEach(t=>{t.classList.remove(e.horizontalClass,e.verticalClass),t.classList.add(n.isHorizontal()?e.horizontalClass:e.verticalClass)})}),a("init",()=>{!1===n.params.pagination.enabled?v():(g(),m(),h())}),a("activeIndexChange",()=>{void 0===n.snapIndex&&h()}),a("snapIndexChange",()=>{h()}),a("snapGridLengthChange",()=>{m(),h()}),a("destroy",()=>{y()}),a("enable disable",()=>{let{el:e}=n.pagination;e&&(e=(0,i.m)(e)).forEach(e=>e.classList[n.enabled?"remove":"add"](n.params.pagination.lockClass))}),a("lock unlock",()=>{h()}),a("click",(e,t)=>{let r=t.target,o=(0,i.m)(n.pagination.el);if(n.params.pagination.el&&n.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(n.params.pagination.bulletClass)){if(n.navigation&&(n.navigation.nextEl&&r===n.navigation.nextEl||n.navigation.prevEl&&r===n.navigation.prevEl))return;!0===o[0].classList.contains(n.params.pagination.hiddenClass)?l("paginationShow"):l("paginationHide"),o.forEach(e=>e.classList.toggle(n.params.pagination.hiddenClass))}});let v=()=>{n.el.classList.add(n.params.pagination.paginationDisabledClass);let{el:e}=n.pagination;e&&(e=(0,i.m)(e)).forEach(e=>e.classList.add(n.params.pagination.paginationDisabledClass)),y()};Object.assign(n.pagination,{enable:()=>{n.el.classList.remove(n.params.pagination.paginationDisabledClass);let{el:e}=n.pagination;e&&(e=(0,i.m)(e)).forEach(e=>e.classList.remove(n.params.pagination.paginationDisabledClass)),g(),m(),h()},disable:v,render:m,update:h,init:g,destroy:y})}function c(e){let t,n,a,l,{swiper:c,extendParams:u,on:d,emit:p}=e,f=(0,r.g)(),h=!1,m=null,g=null;function y(){if(!c.params.scrollbar.el||!c.scrollbar.el)return;let{scrollbar:e,rtlTranslate:t}=c,{dragEl:r,el:i}=e,o=c.params.scrollbar,s=c.params.loop?c.progressLoop:c.progress,l=n,u=(a-n)*s;t?(u=-u)>0?(l=n-u,u=0):-u+n>a&&(l=a+u):u<0?(l=n+u,u=0):u+n>a&&(l=a-u),c.isHorizontal()?(r.style.transform=`translate3d(${u}px, 0, 0)`,r.style.width=`${l}px`):(r.style.transform=`translate3d(0px, ${u}px, 0)`,r.style.height=`${l}px`),o.hide&&(clearTimeout(m),i.style.opacity=1,m=setTimeout(()=>{i.style.opacity=0,i.style.transitionDuration="400ms"},1e3))}function v(){if(!c.params.scrollbar.el||!c.scrollbar.el)return;let{scrollbar:e}=c,{dragEl:t,el:r}=e;t.style.width="",t.style.height="",a=c.isHorizontal()?r.offsetWidth:r.offsetHeight,l=c.size/(c.virtualSize+c.params.slidesOffsetBefore-(c.params.centeredSlides?c.snapGrid[0]:0)),n="auto"===c.params.scrollbar.dragSize?a*l:parseInt(c.params.scrollbar.dragSize,10),c.isHorizontal()?t.style.width=`${n}px`:t.style.height=`${n}px`,l>=1?r.style.display="none":r.style.display="",c.params.scrollbar.hide&&(r.style.opacity=0),c.params.watchOverflow&&c.enabled&&e.el.classList[c.isLocked?"add":"remove"](c.params.scrollbar.lockClass)}function b(e){return c.isHorizontal()?e.clientX:e.clientY}function x(e){let r;let{scrollbar:o,rtlTranslate:s}=c,{el:l}=o;r=Math.max(Math.min(r=(b(e)-(0,i.b)(l)[c.isHorizontal()?"left":"top"]-(null!==t?t:n/2))/(a-n),1),0),s&&(r=1-r);let u=c.minTranslate()+(c.maxTranslate()-c.minTranslate())*r;c.updateProgress(u),c.setTranslate(u),c.updateActiveIndex(),c.updateSlidesClasses()}function w(e){let n=c.params.scrollbar,{scrollbar:r,wrapperEl:i}=c,{el:o,dragEl:a}=r;h=!0,t=e.target===a?b(e)-e.target.getBoundingClientRect()[c.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.style.transitionDuration="100ms",a.style.transitionDuration="100ms",x(e),clearTimeout(g),o.style.transitionDuration="0ms",n.hide&&(o.style.opacity=1),c.params.cssMode&&(c.wrapperEl.style["scroll-snap-type"]="none"),p("scrollbarDragStart",e)}function _(e){let{scrollbar:t,wrapperEl:n}=c,{el:r,dragEl:i}=t;h&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,x(e),n.style.transitionDuration="0ms",r.style.transitionDuration="0ms",i.style.transitionDuration="0ms",p("scrollbarDragMove",e))}function C(e){let t=c.params.scrollbar,{scrollbar:n,wrapperEl:r}=c,{el:o}=n;h&&(h=!1,c.params.cssMode&&(c.wrapperEl.style["scroll-snap-type"]="",r.style.transitionDuration=""),t.hide&&(clearTimeout(g),g=(0,i.n)(()=>{o.style.opacity=0,o.style.transitionDuration="400ms"},1e3)),p("scrollbarDragEnd",e),t.snapOnRelease&&c.slideToClosest())}function S(e){let{scrollbar:t,params:n}=c,r=t.el;if(!r)return;let i=!!n.passiveListeners&&{passive:!1,capture:!1},o=!!n.passiveListeners&&{passive:!0,capture:!1};if(!r)return;let a="on"===e?"addEventListener":"removeEventListener";r[a]("pointerdown",w,i),f[a]("pointermove",_,i),f[a]("pointerup",C,o)}function E(){let e,t;let{scrollbar:n,el:r}=c;c.params.scrollbar=o(c,c.originalParams.scrollbar,c.params.scrollbar,{el:"swiper-scrollbar"});let a=c.params.scrollbar;if(a.el){if("string"==typeof a.el&&c.isElement&&(e=c.el.querySelector(a.el)),e||"string"!=typeof a.el)e||(e=a.el);else if(!(e=f.querySelectorAll(a.el)).length)return;c.params.uniqueNavElements&&"string"==typeof a.el&&e.length>1&&1===r.querySelectorAll(a.el).length&&(e=r.querySelector(a.el)),e.length>0&&(e=e[0]),e.classList.add(c.isHorizontal()?a.horizontalClass:a.verticalClass),!e||(t=e.querySelector(s(c.params.scrollbar.dragClass)))||(t=(0,i.c)("div",c.params.scrollbar.dragClass),e.append(t)),Object.assign(n,{el:e,dragEl:t}),!a.draggable||c.params.scrollbar.el&&c.scrollbar.el&&S("on"),e&&e.classList[c.enabled?"remove":"add"](...(0,i.i)(c.params.scrollbar.lockClass))}}function T(){let e=c.params.scrollbar,t=c.scrollbar.el;t&&t.classList.remove(...(0,i.i)(c.isHorizontal()?e.horizontalClass:e.verticalClass)),c.params.scrollbar.el&&c.scrollbar.el&&S("off")}u({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),c.scrollbar={el:null,dragEl:null},d("changeDirection",()=>{if(!c.scrollbar||!c.scrollbar.el)return;let e=c.params.scrollbar,{el:t}=c.scrollbar;
30(t=(0,i.m)(t)).forEach(t=>{t.classList.remove(e.horizontalClass,e.verticalClass),t.classList.add(c.isHorizontal()?e.horizontalClass:e.verticalClass)})}),d("init",()=>{!1===c.params.scrollbar.enabled?k():(E(),v(),y())}),d("update resize observerUpdate lock unlock changeDirection",()=>{v()}),d("setTranslate",()=>{y()}),d("setTransition",(e,t)=>{c.params.scrollbar.el&&c.scrollbar.el&&(c.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}),d("enable disable",()=>{let{el:e}=c.scrollbar;e&&e.classList[c.enabled?"remove":"add"](...(0,i.i)(c.params.scrollbar.lockClass))}),d("destroy",()=>{T()});let k=()=>{c.el.classList.add(...(0,i.i)(c.params.scrollbar.scrollbarDisabledClass)),c.scrollbar.el&&c.scrollbar.el.classList.add(...(0,i.i)(c.params.scrollbar.scrollbarDisabledClass)),T()};Object.assign(c.scrollbar,{enable:()=>{c.el.classList.remove(...(0,i.i)(c.params.scrollbar.scrollbarDisabledClass)),c.scrollbar.el&&c.scrollbar.el.classList.remove(...(0,i.i)(c.params.scrollbar.scrollbarDisabledClass)),E(),v(),y()},disable:k,updateSize:v,setTranslate:y,init:E,destroy:T})}function u(e){let t,n,{swiper:o,extendParams:a,on:l}=e;a({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),o.a11y={clicked:!1};let c=null,u=new Date().getTime();function d(e){let t=c;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function p(e){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function f(e){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function h(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("role",t)})}function m(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function g(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function y(e){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function v(e){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function b(e){if(13!==e.keyCode&&32!==e.keyCode)return;let t=o.params.a11y,n=e.target;if(!(o.pagination&&o.pagination.el&&(n===o.pagination.el||o.pagination.el.contains(e.target)))||e.target.matches(s(o.params.pagination.bulletClass))){if(o.navigation&&o.navigation.prevEl&&o.navigation.nextEl){let e=(0,i.m)(o.navigation.prevEl);(0,i.m)(o.navigation.nextEl).includes(n)&&(o.isEnd&&!o.params.loop||o.slideNext(),o.isEnd?d(t.lastSlideMessage):d(t.nextSlideMessage)),e.includes(n)&&(o.isBeginning&&!o.params.loop||o.slidePrev(),o.isBeginning?d(t.firstSlideMessage):d(t.prevSlideMessage))}o.pagination&&n.matches(s(o.params.pagination.bulletClass))&&n.click()}}function x(){return o.pagination&&o.pagination.bullets&&o.pagination.bullets.length}function w(){return x()&&o.params.pagination.clickable}let _=(e,t,n)=>{p(e),"BUTTON"!==e.tagName&&(h(e,"button"),e.addEventListener("keydown",b)),g(e,n),function(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},C=e=>{n&&n!==e.target&&!n.contains(e.target)&&(t=!0),o.a11y.clicked=!0},S=()=>{t=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{o.destroyed||(o.a11y.clicked=!1)})})},E=e=>{u=new Date().getTime()},T=e=>{if(o.a11y.clicked||!o.params.a11y.scrollOnFocus||new Date().getTime()-u<100)return;let r=e.target.closest(`.${o.params.slideClass}, swiper-slide`);if(!r||!o.slides.includes(r))return;n=r;let i=o.slides.indexOf(r)===o.activeIndex,a=o.params.watchSlidesProgress&&o.visibleSlides&&o.visibleSlides.includes(r);!i&&!a&&(e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(o.isHorizontal()?o.el.scrollLeft=0:o.el.scrollTop=0,requestAnimationFrame(()=>{t||(o.params.loop?o.slideToLoop(parseInt(r.getAttribute("data-swiper-slide-index")),0):o.slideTo(o.slides.indexOf(r),0),t=!1)})))},k=()=>{let e=o.params.a11y;e.itemRoleDescriptionMessage&&m(o.slides,e.itemRoleDescriptionMessage),e.slideRole&&h(o.slides,e.slideRole);
30let t=o.slides.length;e.slideLabelMessage&&o.slides.forEach((n,r)=>{let i=o.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):r;g(n,e.slideLabelMessage.replace(/\{\{index\}\}/,i+1).replace(/\{\{slidesLength\}\}/,t))})},j=()=>{let e=o.params.a11y;o.el.append(c);let t=o.el;e.containerRoleDescriptionMessage&&m(t,e.containerRoleDescriptionMessage),e.containerMessage&&g(t,e.containerMessage);let n=o.wrapperEl,a=e.id||n.getAttribute("id")||`swiper-wrapper-${"x".repeat(16).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`,s=o.params.autoplay&&o.params.autoplay.enabled?"off":"polite";!function(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("id",t)})}(n,a),function(e,t){(e=(0,i.m)(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(n,s),k();let{nextEl:l,prevEl:u}=o.navigation?o.navigation:{};l=(0,i.m)(l),u=(0,i.m)(u),l&&l.forEach(t=>_(t,a,e.nextSlideMessage)),u&&u.forEach(t=>_(t,a,e.prevSlideMessage)),w()&&(0,i.m)(o.pagination.el).forEach(e=>{e.addEventListener("keydown",b)}),(0,r.g)().addEventListener("visibilitychange",E),o.el.addEventListener("focus",T,!0),o.el.addEventListener("focus",T,!0),o.el.addEventListener("pointerdown",C,!0),o.el.addEventListener("pointerup",S,!0)};l("beforeInit",()=>{(c=(0,i.c)("span",o.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),c.setAttribute("aria-atomic","true")}),l("afterInit",()=>{o.params.a11y.enabled&&j()}),l("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{o.params.a11y.enabled&&k()}),l("fromEdge toEdge afterInit lock unlock",()=>{o.params.a11y.enabled&&function(){if(o.params.loop||o.params.rewind||!o.navigation)return;let{nextEl:e,prevEl:t}=o.navigation;t&&(o.isBeginning?(y(t),f(t)):(v(t),p(t))),e&&(o.isEnd?(y(e),f(e)):(v(e),p(e)))}()}),l("paginationUpdate",()=>{o.params.a11y.enabled&&function(){let e=o.params.a11y;x()&&o.pagination.bullets.forEach(t=>{o.params.pagination.clickable&&(p(t),o.params.pagination.renderBullet||(h(t,"button"),g(t,e.paginationBulletMessage.replace(/\{\{index\}\}/,(0,i.h)(t)+1)))),t.matches(s(o.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}()}),l("destroy",()=>{o.params.a11y.enabled&&function(){c&&c.remove();let{nextEl:e,prevEl:t}=o.navigation?o.navigation:{};e=(0,i.m)(e),t=(0,i.m)(t),e&&e.forEach(e=>e.removeEventListener("keydown",b)),t&&t.forEach(e=>e.removeEventListener("keydown",b)),w()&&(0,i.m)(o.pagination.el).forEach(e=>{e.removeEventListener("keydown",b)}),(0,r.g)().removeEventListener("visibilitychange",E),o.el&&"string"!=typeof o.el&&(o.el.removeEventListener("focus",T,!0),o.el.removeEventListener("pointerdown",C,!0),o.el.removeEventListener("pointerup",S,!0))}()})}function d(e){let t,n,i,o,a,s,l,c,u,d,{swiper:p,extendParams:f,on:h,emit:m,params:g}=e;p.autoplay={running:!1,paused:!1,timeLeft:0},f({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let y=g&&g.autoplay?g.autoplay.delay:3e3,v=g&&g.autoplay?g.autoplay.delay:3e3,b=new Date().getTime();function x(e){p&&!p.destroyed&&p.wrapperEl&&e.target===p.wrapperEl&&(p.wrapperEl.removeEventListener("transitionend",x),!d&&(!e.detail||!e.detail.bySwiperTouchMove)&&k())}let w=()=>{if(p.destroyed||!p.autoplay.running)return;p.autoplay.paused?o=!0:o&&(v=i,o=!1);let e=p.autoplay.paused?i:b+v-new Date().getTime();p.autoplay.timeLeft=e,m("autoplayTimeLeft",e,e/y),n=requestAnimationFrame(()=>{w()})},_=()=>{let e;if(e=p.virtual&&p.params.virtual.enabled?p.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:p.slides[p.activeIndex])return parseInt(e.getAttribute("data-swiper-autoplay"),10)},C=e=>{if(p.destroyed||!p.autoplay.running)return;cancelAnimationFrame(n),w();let r=void 0===e?p.params.autoplay.delay:e;y=p.params.autoplay.delay,v=p.params.autoplay.delay;let o=_();!Number.isNaN(o)&&o>0&&void 0===e&&(r=o,y=o,v=o),i=r;let a=p.params.speed,s=()=>{p&&!p.destroyed&&(p.params.autoplay.reverseDirection?!p.isBeginning||p.params.loop||p.params.rewind?(p.slidePrev(a,!0,!0),m("autoplay")):p.params.autoplay.stopOnLastSlide||(p.slideTo(p.slides.length-1,a,!0,!0),m("autoplay")):!p.isEnd||p.params.loop||p.params.rewind?(p.slideNext(a,!0,!0),m("autoplay")):p.params.autoplay.stopOnLastSlide||(p.slideTo(0,a,!0,!0),m("autoplay")),p.params.cssMode&&(b=new Date().getTime(),requestAnimationFrame(()=>{C()})))};return r>0?(clearTimeout(t),t=setTimeout(()=>{s()},r)):requestAnimationFrame(()=>{s()}),r},S=()=>{b=new Date().getTime(),p.autoplay.running=!0,C(),m("autoplayStart")},E=()=>
30{p.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),m("autoplayStop")},T=(e,n)=>{if(p.destroyed||!p.autoplay.running)return;clearTimeout(t),e||(u=!0);let r=()=>{m("autoplayPause"),p.params.autoplay.waitForTransition?p.wrapperEl.addEventListener("transitionend",x):k()};if(p.autoplay.paused=!0,n){c&&(i=p.params.autoplay.delay),c=!1,r();return}i=(i||p.params.autoplay.delay)-(new Date().getTime()-b),p.isEnd&&i<0&&!p.params.loop||(i<0&&(i=0),r())},k=()=>{p.isEnd&&i<0&&!p.params.loop||p.destroyed||!p.autoplay.running||(b=new Date().getTime(),u?(u=!1,C(i)):C(),p.autoplay.paused=!1,m("autoplayResume"))},j=()=>{if(p.destroyed||!p.autoplay.running)return;let e=(0,r.g)();"hidden"===e.visibilityState&&(u=!0,T(!0)),"visible"===e.visibilityState&&k()},O=e=>{"mouse"===e.pointerType&&(u=!0,d=!0,p.animating||p.autoplay.paused||T(!0))},P=e=>{"mouse"===e.pointerType&&(d=!1,p.autoplay.paused&&k())},I=()=>{p.params.autoplay.pauseOnMouseEnter&&(p.el.addEventListener("pointerenter",O),p.el.addEventListener("pointerleave",P))},N=()=>{p.el&&"string"!=typeof p.el&&(p.el.removeEventListener("pointerenter",O),p.el.removeEventListener("pointerleave",P))},D=()=>{(0,r.g)().addEventListener("visibilitychange",j)},M=()=>{(0,r.g)().removeEventListener("visibilitychange",j)};h("init",()=>{p.params.autoplay.enabled&&(I(),D(),S())}),h("destroy",()=>{N(),M(),p.autoplay.running&&E()}),h("_freeModeStaticRelease",()=>{(s||u)&&k()}),h("_freeModeNoMomentumRelease",()=>{p.params.autoplay.disableOnInteraction?E():T(!0,!0)}),h("beforeTransitionStart",(e,t,n)=>{!p.destroyed&&p.autoplay.running&&(n||!p.params.autoplay.disableOnInteraction?T(!0,!0):E())}),h("sliderFirstMove",()=>{if(!p.destroyed&&p.autoplay.running){if(p.params.autoplay.disableOnInteraction){E();return}a=!0,s=!1,u=!1,l=setTimeout(()=>{u=!0,s=!0,T(!0)},200)}}),h("touchEnd",()=>{if(!p.destroyed&&p.autoplay.running&&a){if(clearTimeout(l),clearTimeout(t),p.params.autoplay.disableOnInteraction){s=!1,a=!1;return}s&&p.params.cssMode&&k(),s=!1,a=!1}}),h("slideChange",()=>{!p.destroyed&&p.autoplay.running&&(c=!0)}),Object.assign(p.autoplay,{start:S,stop:E,pause:T,resume:k})}function p(e){let{swiper:t,extendParams:n,emit:r,once:o}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;let e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;let{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:(0,i.d)()})},onTouchEnd:function(e){let{currentPos:n}=e;if(t.params.cssMode)return;let{params:a,wrapperEl:s,rtlTranslate:l,snapGrid:c,touchEventsData:u}=t,d=(0,i.d)()-u.touchStartTime;if(n<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(n>-t.maxTranslate()){t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1);return}if(a.freeMode.momentum){let e,n;if(u.velocities.length>1){let e=u.velocities.pop(),n=u.velocities.pop(),r=e.position-n.position,o=e.time-n.time;t.velocity=r/o,t.velocity/=2,Math.abs(t.velocity)<a.freeMode.minimumVelocity&&(t.velocity=0),(o>150||(0,i.d)()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeMode.momentumVelocityRatio,u.velocities.length=0;let d=1e3*a.freeMode.momentumRatio,p=t.velocity*d,f=t.translate+p;l&&(f=-f);let h=!1,m=20*Math.abs(t.velocity)*a.freeMode.momentumBounceRatio;if(f<t.maxTranslate())a.freeMode.momentumBounce?(f+t.maxTranslate()<-m&&(f=t.maxTranslate()-m),e=t.maxTranslate(),h=!0,u.allowMomentumBounce=!0):f=t.maxTranslate(),a.loop&&a.centeredSlides&&(n=!0);else if(f>t.minTranslate())a.freeMode.momentumBounce?(f-t.minTranslate()>m&&(f=t.minTranslate()+m),e=t.minTranslate(),h=!0,u.allowMomentumBounce=!0):f=t.minTranslate(),a.loop&&a.centeredSlides&&(n=!0);else if(a.freeMode.sticky){let e;for(let t=0;t<c.length;t+=1)if(c[t]>-f){e=t;break}f=-(f=Math.abs(c[e]-f)<Math.abs(c[e-1]-f)||"next"===t.swipeDirection?c[e]:c[e-1])}if(n&&o("transitionEnd",()=>{t.loopFix()}
30),0!==t.velocity){if(d=l?Math.abs((-f-t.translate)/t.velocity):Math.abs((f-t.translate)/t.velocity),a.freeMode.sticky){let e=Math.abs((l?-f:f)-t.translate),n=t.slidesSizesGrid[t.activeIndex];d=e<n?a.speed:e<2*n?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky){t.slideToClosest();return}a.freeMode.momentumBounce&&h?(t.updateProgress(e),t.setTransition(d),t.setTranslate(f),t.transitionStart(!0,t.swipeDirection),t.animating=!0,(0,i.k)(s,()=>{t&&!t.destroyed&&u.allowMomentumBounce&&(r("momentumBounce"),t.setTransition(a.speed),setTimeout(()=>{t.setTranslate(e),(0,i.k)(s,()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(f),t.setTransition(d),t.setTranslate(f),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,(0,i.k)(s,()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(f),t.updateActiveIndex(),t.updateSlidesClasses()}else if(a.freeMode.sticky){t.slideToClosest();return}else a.freeMode&&r("_freeModeNoMomentumRelease");(!a.freeMode.momentum||d>=a.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}})}function f(e){let t;let{effect:n,swiper:r,on:i,setTranslate:o,setTransition:a,overwriteParams:s,perspective:l,recreateShadows:c,getEffectParams:u}=e;i("beforeInit",()=>{if(r.params.effect!==n)return;r.classNames.push(`${r.params.containerModifierClass}${n}`),l&&l()&&r.classNames.push(`${r.params.containerModifierClass}3d`);let e=s?s():{};Object.assign(r.params,e),Object.assign(r.originalParams,e)}),i("setTranslate",()=>{r.params.effect===n&&o()}),i("setTransition",(e,t)=>{r.params.effect===n&&a(t)}),i("transitionEnd",()=>{r.params.effect===n&&c&&u&&u().slideShadows&&(r.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),c())}),i("virtualUpdate",()=>{r.params.effect===n&&(r.slides.length||(t=!0),requestAnimationFrame(()=>{t&&r.slides&&r.slides.length&&(o(),t=!1)}))})}function h(e,t){let n=(0,i.g)(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function m(e){let{swiper:t,extendParams:n,on:r}=e;n({fadeEffect:{crossFade:!1}}),f({effect:"fade",swiper:t,on:r,setTranslate:()=>{let{slides:e}=t,n=t.params.fadeEffect;for(let r=0;r<e.length;r+=1){let e=t.slides[r],i=-e.swiperSlideOffset;t.params.virtualTranslate||(i-=t.translate);let o=0;t.isHorizontal()||(o=i,i=0);let a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),s=h(n,e);s.style.opacity=a,s.style.transform=`translate3d(${i}px, ${o}px, 0px)`}},setTransition:e=>{let n=t.slides.map(e=>(0,i.g)(e));n.forEach(t=>{t.style.transitionDuration=`${e}ms`}),function(e){let{swiper:t,duration:n,transformElements:r,allSlides:o}=e,{activeIndex:a}=t,s=e=>e.parentElement?e.parentElement:t.slides.filter(t=>t.shadowRoot&&t.shadowRoot===e.parentNode)[0];if(t.params.virtualTranslate&&0!==n){let e=!1;(o?r:r.filter(e=>{let n=e.classList.contains("swiper-slide-transform")?s(e):e;return t.getSlideIndex(n)===a})).forEach(n=>{(0,i.k)(n,()=>{if(e||!t||t.destroyed)return;e=!0,t.animating=!1;let n=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(n)})})}}({swiper:t,duration:e,transformElements:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function g(e,t,n){let r=`swiper-slide-shadow${n?`-${n}`:""}${e?` swiper-slide-shadow-${e}`:""}`,o=(0,i.g)(t),a=o.querySelector(`.${r.split(" ").join(".")}`);return a||(a=(0,i.c)("div",r.split(" ")),o.append(a)),a}function y(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),f({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{let{width:e,height:n,slides:r,slidesSizesGrid:o}=t,a=t.params.coverflowEffect,s=t.isHorizontal(),l=t.translate,c=s?-l+e/2:-l+n/2,u=s?a.rotate:-a.rotate,d=a.depth,p=(0,i.o)(t);for(let e=0,t=r.length;e<t;e+=1){let t=r[e],n=o[e],i=(c-t.swiperSlideOffset-n/2)/n,l="function"==typeof a.modifier?a.modifier(i):i*a.modifier,f=s?u*l:0,m=s?0:u*l,y=-d*Math.abs(l),v=a.stretch;"string"==typeof v&&-1!==v.indexOf("%")&&(v=parseFloat(a.stretch)/100*n);let b=s?0:v*l,x=s?v*l:0,w=1-(1-a.scale)*Math.abs(l);.001>Math.abs(x)&&(x=0),.001>Math.abs(b)&&(b=0),.001>Math.abs(y)&&(y=0),.001>Math.abs(f)&&(f=0),.001>Math.abs(m)&&(m=0),.001>Math.abs(w)&&(w=0);let _=`translate3d(${x}px,${b}px,${y}px)  rotateX(${p(m)}deg) rotateY(${p(f)}deg) scale(${w})`;if(h(a,t).style.transform=_,t.style.zIndex=-Math.abs(Math.round(l))+1,a.slideShadows){let e=s?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),n=s?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=g("coverflow",t,s?"left":"top")),n||(n=g("coverflow",t,s?"right":"bottom")),e&&(e.style.opacity=l>0?l:0),n&&(n.style.opacity=-l>0?-l:0)}}},setTransition:e=>{t.slides.map(e=>
30(0,i.g)(e)).forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}},13433:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0&&i(e[n],t[n])})}n.d(t,{a:function(){return l},g:function(){return a}});let o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){let e="undefined"!=typeof document?document:{};return i(e,o),e}let s={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){let e="undefined"!=typeof window?window:{};return i(e,s),e}},7185:function(e,t,n){"use strict";n.d(t,{a:function(){return _},b:function(){return y},c:function(){return g},d:function(){return s},e:function(){return f},f:function(){return S},g:function(){return p},h:function(){return w},i:function(){return i},j:function(){return l},k:function(){return C},m:function(){return E},n:function(){return a},o:function(){return T},p:function(){return x},q:function(){return b},r:function(){return v},s:function(){return u},t:function(){return d},u:function(){return m},v:function(){return h},w:function(){return function e(){let t=Object(arguments.length<=0?void 0:arguments[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){let i=r<0||arguments.length<=r?void 0:arguments[r];if(null!=i&&("undefined"!=typeof window&&void 0!==window.HTMLElement?!(i instanceof HTMLElement):!i||1!==i.nodeType&&11!==i.nodeType)){let r=Object.keys(Object(i)).filter(e=>0>n.indexOf(e));for(let n=0,o=r.length;n<o;n+=1){let o=r[n],a=Object.getOwnPropertyDescriptor(i,o);void 0!==a&&a.enumerable&&(c(t[o])&&c(i[o])?i[o].__swiper__?t[o]=i[o]:e(t[o],i[o]):!c(t[o])&&c(i[o])?(t[o]={},i[o].__swiper__?t[o]=i[o]:e(t[o],i[o])):t[o]=i[o])}}}return t}},x:function(){return o}});var r=n(13433);function i(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}function o(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}function a(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function s(){return Date.now()}function l(e,t){let n,i,o;void 0===t&&(t="x");let a=(0,r.a)(),s=function(e){let t;let n=(0,r.a)();return n.getComputedStyle&&(t=n.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return a.WebKitCSSMatrix?((i=s.transform||s.webkitTransform).split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new a.WebKitCSSMatrix("none"===i?"":i)):n=(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(i=a.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(i=a.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e,t,n){e.style.setProperty(t,n)}function d(e){let t,{swiper:n,targetPosition:i,side:o}=e,a=(0,r.a)(),s=-n.translate,l=null,c=n.params.speed;n.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(n.cssModeFrameID);let u=i>s?"next":"prev",d=(e,t)=>"next"===u&&e>=t||"prev"===u&&e<=t,p=()=>{t=new Date().getTime(),null===l&&(l=t);let e=s+(.5-Math.cos(Math.max(Math.min((t-l)/c,1),0)*Math.PI)/2)*(i-s);if(d(e,i)&&(e=i),n.wrapperEl.scrollTo({[o]:e}),d(e,i)){n.wrapperEl.style.overflow="hidden",n.wrapperEl.style.scrollSnapType="",setTimeout(()=>{n.wrapperEl.style.overflow="",n.wrapperEl.scrollTo({[o]:e})}),a.cancelAnimationFrame(n.cssModeFrameID);return}n.cssModeFrameID=a.requestAnimationFrame(p)};p()}function p(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){void 0===t&&(t="");let n=[...e.children];return(e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t)?n.filter(e=>e.matches(t)):n}function h(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):n}function m(e){try{console.warn(e);return}catch(e){}}function g(e,t){void 0===t&&(t=[]);let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:i(t)),n}function y(e){let t=(0,r.a)(),n=(0,r.g)(),i=e.getBoundingClientRect(),o=n.body,a=e.clientTop||o.clientTop||0,s=e.clientLeft||o.clientLeft||0,l=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;
30return{top:i.top+l-a,left:i.left+c-s}}function v(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function b(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function x(e,t){return(0,r.a)().getComputedStyle(e,null).getPropertyValue(t)}function w(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function _(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function C(e,t){t&&e.addEventListener("transitionend",function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))})}function S(e,t,n){let i=(0,r.a)();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function E(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function T(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}},2261:function(e,t,n){"use strict";let r,i,o;n.d(t,{tq:function(){return Y},o5:function(){return G}});var a=n(67294),s=n(13433),l=n(7185);function c(){return r||(r=function(){let e=(0,s.a)(),t=(0,s.g)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),r}function u(e){return void 0===e&&(e={}),i||(i=function(e){let{userAgent:t}=void 0===e?{}:e,n=c(),r=(0,s.a)(),i=r.navigator.platform,o=t||r.navigator.userAgent,a={ios:!1,android:!1},l=r.screen.width,u=r.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/),p=o.match(/(iPad).*OS\s([\d_]+)/),f=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!p&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="MacIntel"===i;return!p&&m&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${u}`)>=0&&((p=o.match(/(Version)\/([\d.]+)/))||(p=[0,1,"13_0_0"]),m=!1),d&&"Win32"!==i&&(a.os="android",a.android=!0),(p||h||f)&&(a.os="ios",a.ios=!0),a}(e)),i}let d=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},p=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},f=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&t.remove()})),t&&t.remove()}},h=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},m=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=[i-t];n.push(...Array.from({length:t}).map((e,t)=>i+r+t)),e.slides.forEach((t,r)=>{n.includes(t.column)&&h(e,r)});return}let o=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=o+t;r+=1){let t=(r%n+n)%n;(t<i||t>o)&&h(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(o+t,n-1);r+=1)r!==i&&(r>o||r<i)&&h(e,r)};function g(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e,{activeIndex:o,previousIndex:a}=t,s=r;if(s||(s=o>a?"next":o<a?"prev":"reset"),t.emit(`transition${i}`),n&&o!==a){if("reset"===s){t.emit(`slideResetTransition${i}`);return}t.emit(`slideChangeTransition${i}`),"next"===s?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}function y(e,t,n){let r=(0,s.a)(),{params:i}=e,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(n<=a)&&!(n>=r.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function v(e){let t=(0,s.g)(),n=e;n.originalEvent&&(n=n.originalEvent);let r=this.touchEventsData;if("pointerdown"===n.type){if(null!==r.pointerId&&r.pointerId!==n.pointerId)return;r.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(r.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type){y(this,n,n.targetTouches[0].pageX);return}let{params:i,touches:o,enabled:a}=this;if(!a||!i.simulateTouch&&"mouse"===n.pointerType||this.animating&&i.preventInteractionOnTransition)return;!this.animating&&i.cssMode&&i.loop&&this.loopFix();let c=n.target;if("wrapper"===i.touchEventsTarget&&!(0,l.v)(c,this.wrapperEl)||"which"in n&&3===n.which||"button"in n&&n.button>0||r.isTouched&&r.isMoved)return;let u=!!i.noSwipingClass&&""!==i.noSwipingClass,d=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&d&&(c=d[0]);let p=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(i.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===(0,s.g)()||n===(0,s.a)())return null;n.assignedSlot&&(n=n.assignedSlot);let r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(p,c):c.closest(p))){this.allowClick=!0;return}if(i.swipeHandler&&!c.closest(i.swipeHandler))return;o.currentX=n.pageX,o.currentY=n.pageY;let h=o.currentX,m=o.currentY;if(!y(this,n,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=m,r.touchStartTime=(0,l.d)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1);let g=!0;c.matches(r.focusableElements)&&(g=!1,"SELECT"===c.nodeName&&(r.isTouched=!1)),t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c&&t.activeElement.blur();let v=g&&this.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||v)&&!c.isContentEditable&&n.preventDefault(),i.freeMode&&i.freeMode.enabled&&this.freeMode&&this.animating&&!i.cssMode&&this.freeMode.onTouchStart(),this.emit
30("touchStart",n)}function b(e){let t,n;let r=(0,s.g)(),i=this.touchEventsData,{params:o,touches:a,rtlTranslate:c,enabled:u}=this;if(!u||!o.simulateTouch&&"mouse"===e.pointerType)return;let d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type&&(null!==i.touchId||d.pointerId!==i.pointerId))return;if("touchmove"===d.type){if(!(t=[...d.changedTouches].filter(e=>e.identifier===i.touchId)[0])||t.identifier!==i.touchId)return}else t=d;if(!i.isTouched){i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",d);return}let p=t.pageX,f=t.pageY;if(d.preventedByNestedSwiper){a.startX=p,a.startY=f;return}if(!this.allowTouchMove){d.target.matches(i.focusableElements)||(this.allowClick=!1),i.isTouched&&(Object.assign(a,{startX:p,startY:f,currentX:p,currentY:f}),i.touchStartTime=(0,l.d)());return}if(o.touchReleaseOnEdges&&!o.loop){if(this.isVertical()){if(f<a.startY&&this.translate<=this.maxTranslate()||f>a.startY&&this.translate>=this.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(p<a.startX&&this.translate<=this.maxTranslate()||p>a.startX&&this.translate>=this.minTranslate())return}if(r.activeElement&&d.target===r.activeElement&&d.target.matches(i.focusableElements)){i.isMoved=!0,this.allowClick=!1;return}i.allowTouchCallbacks&&this.emit("touchMove",d),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=p,a.currentY=f;let h=a.currentX-a.startX,m=a.currentY-a.startY;if(this.params.threshold&&Math.sqrt(h**2+m**2)<this.params.threshold)return;if(void 0===i.isScrolling){let e;this.isHorizontal()&&a.currentY===a.startY||this.isVertical()&&a.currentX===a.startX?i.isScrolling=!1:h*h+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(h))/Math.PI,i.isScrolling=this.isHorizontal()?e>o.touchAngle:90-e>o.touchAngle)}if(i.isScrolling&&this.emit("touchMoveOpposite",d),void 0===i.startMoving&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(i.startMoving=!0),i.isScrolling||"touchmove"===d.type&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;this.allowClick=!1,!o.cssMode&&d.cancelable&&d.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&d.stopPropagation();let g=this.isHorizontal()?h:m,y=this.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;o.oneWayMovement&&(g=Math.abs(g)*(c?1:-1),y=Math.abs(y)*(c?1:-1)),a.diff=g,g*=o.touchRatio,c&&(g=-g,y=-y);let v=this.touchesDirection;this.swipeDirection=g>0?"prev":"next",this.touchesDirection=y>0?"prev":"next";let b=this.params.loop&&!o.cssMode,x="next"===this.touchesDirection&&this.allowSlideNext||"prev"===this.touchesDirection&&this.allowSlidePrev;if(!i.isMoved){if(b&&x&&this.loopFix({direction:this.swipeDirection}),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});this.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,o.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",d)}if(new Date().getTime(),i.isMoved&&i.allowThresholdMove&&v!==this.touchesDirection&&b&&x&&Math.abs(g)>=1){Object.assign(a,{startX:p,startY:f,currentX:p,currentY:f,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}this.emit("sliderMove",d),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let w=!0,_=o.resistanceRatio;if(o.touchReleaseOnEdges&&(_=0),g>0?(b&&x&&!n&&i.allowThresholdMove&&i.currentTranslate>(o.centeredSlides?this.minTranslate()-this.slidesSizesGrid[this.activeIndex+1]-("auto"!==o.slidesPerView&&this.slides.length-o.slidesPerView>=2?this.slidesSizesGrid[this.activeIndex+1]+this.params.spaceBetween:0)-this.params.spaceBetween:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>this.minTranslate()&&(w=!1,o.resistance&&(i.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+i.startTranslate+g)**_))):g<0&&(b&&x&&!n&&i.allowThresholdMove&&i.currentTranslate<(o.centeredSlides?this.maxTranslate()+this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween+("auto"!==o.slidesPerView&&this.slides.length-o.slidesPerView>=2?this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween:0):this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===o.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),i.currentTranslate<this.maxTranslate()&&(w=!1,o.resistance&&(i.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-i.startTranslate-g)**_))),w&&(d.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),this.allowSlidePrev||this.allowSlideNext||(i.currentTranslate=i.startTranslate),o.threshold>0){if(Math.abs(g)>o.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,i.currentTranslate=i.startTranslate,a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{i.currentTranslate=i.startTranslate;return}}o.followFinger&&!o.cssMode&&((o.freeMode&&o.freeMode.enabled&&this.freeMode||o.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}function x(e){let t,n;let r=this,i=r.touchEventsData,o=e;if(o.originalEvent&&(o=o.originalEvent),"touchend"===o.type||"touchcancel"===o.type){if(!(t=[...o.changedTouches].filter(e=>e.identifier===i.touchId)[0])||t.identifier!==i.touchId)return}else{if(null!==i.touchId||o.pointerId!==i.pointerId)return;t=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(r.browser.isSafari||r.browser.isWebView)))return;i.pointerId=null,i.touchId=null;let{params:a,touches:s,rtlTranslate:c,slidesGrid:u,enabled:d}=r;
30if(!d||!a.simulateTouch&&"mouse"===o.pointerType)return;if(i.allowTouchCallbacks&&r.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&r.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(!0===r.allowSlideNext||!0===r.allowSlidePrev)&&r.setGrabCursor(!1);let p=(0,l.d)(),f=p-i.touchStartTime;if(r.allowClick){let e=o.path||o.composedPath&&o.composedPath();r.updateClickedSlide(e&&e[0]||o.target,e),r.emit("tap click",o),f<300&&p-i.lastClickTime<300&&r.emit("doubleTap doubleClick",o)}if(i.lastClickTime=(0,l.d)(),(0,l.n)(()=>{r.destroyed||(r.allowClick=!0)}),!i.isTouched||!i.isMoved||!r.swipeDirection||0===s.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,n=a.followFinger?c?r.translate:-r.translate:-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){r.freeMode.onTouchEnd({currentPos:n});return}let h=n>=-r.maxTranslate()&&!r.params.loop,m=0,g=r.slidesSizesGrid[0];for(let e=0;e<u.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==u[e+t]?(h||n>=u[e]&&n<u[e+t])&&(m=e,g=u[e+t]-u[e]):(h||n>=u[e])&&(m=e,g=u[u.length-1]-u[u.length-2])}let y=null,v=null;a.rewind&&(r.isBeginning?v=a.virtual&&a.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1:r.isEnd&&(y=0));let b=(n-u[m])/g,x=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){r.slideTo(r.activeIndex);return}"next"===r.swipeDirection&&(b>=a.longSwipesRatio?r.slideTo(a.rewind&&r.isEnd?y:m+x):r.slideTo(m)),"prev"===r.swipeDirection&&(b>1-a.longSwipesRatio?r.slideTo(m+x):null!==v&&b<0&&Math.abs(b)>a.longSwipesRatio?r.slideTo(v):r.slideTo(m))}else{if(!a.shortSwipes){r.slideTo(r.activeIndex);return}r.navigation&&(o.target===r.navigation.nextEl||o.target===r.navigation.prevEl)?o.target===r.navigation.nextEl?r.slideTo(m+x):r.slideTo(m):("next"===r.swipeDirection&&r.slideTo(null!==y?y:m+x),"prev"===r.swipeDirection&&r.slideTo(null!==v?v:m))}}function w(){let e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=a&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function _(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function C(){let{wrapperEl:e,rtlTranslate:t,enabled:n}=this;if(!n)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let r=this.maxTranslate()-this.minTranslate();(0===r?0:(this.translate-this.minTranslate())/r)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function S(e){f(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}function E(){!this.documentTouchHandlerProceeded&&(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}let T=(e,t)=>{let n=(0,s.g)(),{params:r,el:i,wrapperEl:o,device:a}=e,l=!!r.nested,c="on"===t?"addEventListener":"removeEventListener";i&&"string"!=typeof i&&(n[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),i[c]("touchstart",e.onTouchStart,{passive:!1}),i[c]("pointerdown",e.onTouchStart,{passive:!1}),n[c]("touchmove",e.onTouchMove,{passive:!1,capture:l}),n[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[c]("touchend",e.onTouchEnd,{passive:!0}),n[c]("pointerup",e.onTouchEnd,{passive:!0}),n[c]("pointercancel",e.onTouchEnd,{passive:!0}),n[c]("touchcancel",e.onTouchEnd,{passive:!0}),n[c]("pointerout",e.onTouchEnd,{passive:!0}),n[c]("pointerleave",e.onTouchEnd,{passive:!0}),n[c]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[c]("click",e.onClick,!0),r.cssMode&&o[c]("scroll",e.onScroll),r.updateOnWindowResize?e[t](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",w,!0):e[t]("observerUpdate",w,!0),i[c]("load",e.onLoad,{capture:!0}))},k=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var j={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
30spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let O={eventsEmitter:{on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;let i=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let n=this;return n.eventsListeners&&!n.destroyed&&n.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(){let e,t,n;let r=this;if(!r.eventsListeners||r.destroyed||!r.eventsListeners)return r;for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return"string"==typeof o[0]||Array.isArray(o[0])?(e=o[0],t=o.slice(1,o.length),n=r):(e=o[0].events,t=o[0].data,n=o[0].context||r),t.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(e=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(r=>{r.apply(n,[e,...t])}),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach(e=>{e.apply(n,t)})}),r}},update:{updateSize:function(){let e,t;let n=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:n.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:n.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt((0,l.p)(n,"padding-left")||0,10)-parseInt((0,l.p)(n,"padding-right")||0,10),t=t-parseInt((0,l.p)(n,"padding-top")||0,10)-parseInt((0,l.p)(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e;let t=this;function n(e,n){return parseFloat(e.getPropertyValue(t.getDirectionLabel(n))||0)}let r=t.params,{wrapperEl:i,slidesEl:o,size:a,rtlTranslate:s,wrongRTL:c}=t,u=t.virtual&&r.virtual.enabled,d=u?t.virtual.slides.length:t.slides.length,p=(0,l.e)(o,`.${t.params.slideClass}, swiper-slide`),f=u?t.virtual.slides.length:p.length,h=[],m=[],g=[],y=r.slidesOffsetBefore;"function"==typeof y&&(y=r.slidesOffsetBefore.call(t));let v=r.slidesOffsetAfter;"function"==typeof v&&(v=r.slidesOffsetAfter.call(t));let b=t.snapGrid.length,x=t.slidesGrid.length,w=r.spaceBetween,_=-y,C=0,S=0;if(void 0===a)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*a:"string"==typeof w&&(w=parseFloat(w)),t.virtualSize=-w,p.forEach(e
30=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),r.centeredSlides&&r.cssMode&&((0,l.s)(i,"--swiper-centered-offset-before",""),(0,l.s)(i,"--swiper-centered-offset-after",""));let E=r.grid&&r.grid.rows>1&&t.grid;E?t.grid.initSlides(p):t.grid&&t.grid.unsetSlides();let T="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length>0;for(let i=0;i<f;i+=1){let o;if(e=0,p[i]&&(o=p[i]),E&&t.grid.updateSlide(i,o,p),!p[i]||"none"!==(0,l.p)(o,"display")){if("auto"===r.slidesPerView){T&&(p[i].style[t.getDirectionLabel("width")]="");let a=getComputedStyle(o),s=o.style.transform,c=o.style.webkitTransform;if(s&&(o.style.transform="none"),c&&(o.style.webkitTransform="none"),r.roundLengths)e=t.isHorizontal()?(0,l.f)(o,"width",!0):(0,l.f)(o,"height",!0);else{let t=n(a,"width"),r=n(a,"padding-left"),i=n(a,"padding-right"),s=n(a,"margin-left"),l=n(a,"margin-right"),c=a.getPropertyValue("box-sizing");if(c&&"border-box"===c)e=t+s+l;else{let{clientWidth:n,offsetWidth:a}=o;e=t+r+i+s+l+(a-n)}}s&&(o.style.transform=s),c&&(o.style.webkitTransform=c),r.roundLengths&&(e=Math.floor(e))}else e=(a-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(e=Math.floor(e)),p[i]&&(p[i].style[t.getDirectionLabel("width")]=`${e}px`);p[i]&&(p[i].swiperSlideSize=e),g.push(e),r.centeredSlides?(_=_+e/2+C/2+w,0===C&&0!==i&&(_=_-a/2-w),0===i&&(_=_-a/2-w),.001>Math.abs(_)&&(_=0),r.roundLengths&&(_=Math.floor(_)),S%r.slidesPerGroup==0&&h.push(_),m.push(_)):(r.roundLengths&&(_=Math.floor(_)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup==0&&h.push(_),m.push(_),_=_+e+w),t.virtualSize+=e+w,C=e,S+=1}}if(t.virtualSize=Math.max(t.virtualSize,a)+v,s&&c&&("slide"===r.effect||"coverflow"===r.effect)&&(i.style.width=`${t.virtualSize+w}px`),r.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+w}px`),E&&t.grid.updateWrapperSize(e,h),!r.centeredSlides){let e=[];for(let n=0;n<h.length;n+=1){let i=h[n];r.roundLengths&&(i=Math.floor(i)),h[n]<=t.virtualSize-a&&e.push(i)}h=e,Math.floor(t.virtualSize-a)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-a)}if(u&&r.loop){let e=g[0]+w;if(r.slidesPerGroup>1){let n=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),i=e*r.slidesPerGroup;for(let e=0;e<n;e+=1)h.push(h[h.length-1]+i)}for(let n=0;n<t.virtual.slidesBefore+t.virtual.slidesAfter;n+=1)1===r.slidesPerGroup&&h.push(h[h.length-1]+e),m.push(m[m.length-1]+e),t.virtualSize+=e}if(0===h.length&&(h=[0]),0!==w){let e=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");p.filter((e,t)=>!r.cssMode||!!r.loop||t!==p.length-1).forEach(t=>{t.style[e]=`${w}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;g.forEach(t=>{e+=t+(w||0)});let t=(e-=w)-a;h=h.map(e=>e<=0?-y:e>t?t+v:e)}if(r.centerInsufficientSlides){let e=0;g.forEach(t=>{e+=t+(w||0)}),e-=w;let t=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(e+t<a){let n=(a-e-t)/2;h.forEach((e,t)=>{h[t]=e-n}),m.forEach((e,t)=>{m[t]=e+n})}}if(Object.assign(t,{slides:p,snapGrid:h,slidesGrid:m,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){(0,l.s)(i,"--swiper-centered-offset-before",`${-h[0]}px`),(0,l.s)(i,"--swiper-centered-offset-after",`${t.size/2-g[g.length-1]/2}px`);let e=-t.snapGrid[0],n=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+n)}if(f!==d&&t.emit("slidesLengthChange"),h.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==x&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!u&&!r.cssMode&&("slide"===r.effect||"fade"===r.effect)){let e=`${r.containerModifierClass}backface-hidden`,n=t.el.classList.contains(e);f<=r.maxBackfaceHiddenSlides?n||t.el.classList.add(e):n&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t;let n=this,r=[],i=n.virtual&&n.params.virtual.enabled,o=0;"number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed);let a=e=>i?n.slides[n.getSlideIndexByData(e)]:n.slides[e];if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>
301){if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(e=>{r.push(e)});else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){let e=n.activeIndex+t;if(e>n.slides.length&&!i)break;r.push(a(e))}}else r.push(a(n.activeIndex));for(t=0;t<r.length;t+=1)if(void 0!==r[t]){let e=r[t].offsetHeight;o=e>o?e:o}(o||0===o)&&(n.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(this.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-t-this.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);let t=this.params,{slides:n,rtlTranslate:r,snapGrid:i}=this;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();let o=-e;r&&(o=e),this.visibleSlidesIndexes=[],this.visibleSlides=[];let a=t.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*this.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<n.length;e+=1){let s=n[e],l=s.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(l-=n[0].swiperSlideOffset);let c=(o+(t.centeredSlides?this.minTranslate():0)-l)/(s.swiperSlideSize+a),u=(o-i[0]+(t.centeredSlides?this.minTranslate():0)-l)/(s.swiperSlideSize+a),p=-(o-l),f=p+this.slidesSizesGrid[e],h=p>=0&&p<=this.size-this.slidesSizesGrid[e],m=p>=0&&p<this.size-1||f>1&&f<=this.size||p<=0&&f>=this.size;m&&(this.visibleSlides.push(s),this.visibleSlidesIndexes.push(e)),d(s,m,t.slideVisibleClass),d(s,h,t.slideFullyVisibleClass),s.progress=r?-c:c,s.originalProgress=r?-u:u}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,n=this.maxTranslate()-this.minTranslate(),{progress:r,isBeginning:i,isEnd:o,progressLoop:a}=this,s=i,l=o;if(0===n)r=0,i=!0,o=!0;else{r=(e-this.minTranslate())/n;let t=1>Math.abs(e-this.minTranslate()),a=1>Math.abs(e-this.maxTranslate());i=t||r<=0,o=a||r>=1,t&&(r=0),a&&(r=1)}if(t.loop){let t=this.getSlideIndexByData(0),n=this.getSlideIndexByData(this.slides.length-1),r=this.slidesGrid[t],i=this.slidesGrid[n],o=this.slidesGrid[this.slidesGrid.length-1],s=Math.abs(e);(a=s>=r?(s-r)/o:(s+o-i)/o)>1&&(a-=1)}Object.assign(this,{progress:r,progressLoop:a,isBeginning:i,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),i&&
30!s&&this.emit("reachBeginning toEdge"),o&&!l&&this.emit("reachEnd toEdge"),(s&&!i||l&&!o)&&this.emit("fromEdge"),this.emit("progress",r)},updateSlidesClasses:function(){let e,t,n;let{slides:r,params:i,slidesEl:o,activeIndex:a}=this,s=this.virtual&&i.virtual.enabled,c=this.grid&&i.grid&&i.grid.rows>1,u=e=>(0,l.e)(o,`.${i.slideClass}${e}, swiper-slide${e}`)[0];if(s){if(i.loop){let t=a-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=u(`[data-swiper-slide-index="${t}"]`)}else e=u(`[data-swiper-slide-index="${a}"]`)}else c?(e=r.filter(e=>e.column===a)[0],n=r.filter(e=>e.column===a+1)[0],t=r.filter(e=>e.column===a-1)[0]):e=r[a];e&&!c&&(n=(0,l.q)(e,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!n&&(n=r[0]),t=(0,l.r)(e,`.${i.slideClass}, swiper-slide`)[0],i.loop),r.forEach(r=>{p(r,r===e,i.slideActiveClass),p(r,r===n,i.slideNextClass),p(r,r===t,i.slidePrevClass)}),this.emitSlidesClasses()},updateActiveIndex:function(e){let t,n;let r=this,i=r.rtlTranslate?r.translate:-r.translate,{snapGrid:o,params:a,activeIndex:s,realIndex:l,snapIndex:c}=r,u=e,d=e=>{let t=e-r.virtual.slidesBefore;return t<0&&(t=r.virtual.slides.length+t),t>=r.virtual.slides.length&&(t-=r.virtual.slides.length),t};if(void 0===u&&(u=function(e){let t;let{slidesGrid:n,params:r}=e,i=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<n.length;e+=1)void 0!==n[e+1]?i>=n[e]&&i<n[e+1]-(n[e+1]-n[e])/2?t=e:i>=n[e]&&i<n[e+1]&&(t=e+1):i>=n[e]&&(t=e);return r.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(r)),o.indexOf(i)>=0)t=o.indexOf(i);else{let e=Math.min(a.slidesPerGroupSkip,u);t=e+Math.floor((u-e)/a.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),u===s&&!r.params.loop){t!==c&&(r.snapIndex=t,r.emit("snapIndexChange"));return}if(u===s&&r.params.loop&&r.virtual&&r.params.virtual.enabled){r.realIndex=d(u);return}let p=r.grid&&a.grid&&a.grid.rows>1;if(r.virtual&&a.virtual.enabled&&a.loop)n=d(u);else if(p){let e=r.slides.filter(e=>e.column===u)[0],t=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(r.slides.indexOf(e),0)),n=Math.floor(t/a.grid.rows)}else if(r.slides[u]){let e=r.slides[u].getAttribute("data-swiper-slide-index");n=e?parseInt(e,10):u}else n=u;Object.assign(r,{previousSnapIndex:c,snapIndex:t,previousRealIndex:l,realIndex:n,previousIndex:s,activeIndex:u}),r.initialized&&m(r),r.emit("activeIndexChange"),r.emit("snapIndexChange"),(r.initialized||r.params.runCallbacksOnInit)&&(l!==n&&r.emit("realIndexChange"),r.emit("slideChange"))},updateClickedSlide:function(e,t){let n;let r=this.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&this.isElement&&t&&t.length>
301&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let o=!1;if(i){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===i){o=!0,n=e;break}}if(i&&o)this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=n;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}r.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");let{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let o=(0,l.j)(i,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){let{rtlTranslate:n,params:r,wrapperEl:i,progress:o}=this,a=0,s=0;this.isHorizontal()?a=n?-e:e:s=e,r.roundLengths&&(a=Math.floor(a),s=Math.floor(s)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?a:s,r.cssMode?i[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-a:-s:r.virtualTranslate||(this.isHorizontal()?a-=this.cssOverflowAdjustment():s-=this.cssOverflowAdjustment(),i.style.transform=`translate3d(${a}px, ${s}px, 0px)`);let l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==o&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,i){let o;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);let a=this,{params:s,wrapperEl:c}=a;if(a.animating&&s.preventInteractionOnTransition)return!1;let u=a.minTranslate(),d=a.maxTranslate();if(o=r&&e>u?u:r&&e<d?d:e,a.updateProgress(o),s.cssMode){let e=a.isHorizontal();if(0===t)c[e?"scrollLeft":"scrollTop"]=-o;else{if(!a.support.smoothScroll)return(0,l.t)({swiper:a,targetPosition:-o,side:e?"left":"top"}),!0;c.scrollTo({[e?"left":"top"]:-o,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(o),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(o),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=`${e}ms`,this.wrapperEl.style.transitionDelay=0===e?"0ms":""),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);let{params:n}=this;n.cssMode||(n.autoHeight&&this.updateAutoHeight(),g({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);let{params:n}=this;this.animating=!1,n.cssMode||(this.setTransition(0),g({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,n,r,i){let o;void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));let a=this,s=e;s<0&&(s=0);let{params:c,snapGrid:u,slidesGrid:d,previousIndex:p,activeIndex:f,rtlTranslate:h,wrapperEl:m,enabled:g}=a;if(!g&&!r&&!i||a.destroyed||a.animating&&c.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);let y=Math.min(a.params.slidesPerGroupSkip,s),v=y+Math.floor((s-y)/a.params.slidesPerGroup);v>=u.length&&(v=u.length-1);let b=-u[v];
30if(c.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){let t=-Math.floor(100*b),n=Math.floor(100*d[e]),r=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=n&&t<r-(r-n)/2?s=e:t>=n&&t<r&&(s=e+1):t>=n&&(s=e)}if(a.initialized&&s!==f&&(!a.allowSlideNext&&(h?b>a.translate&&b>a.minTranslate():b<a.translate&&b<a.minTranslate())||!a.allowSlidePrev&&b>a.translate&&b>a.maxTranslate()&&(f||0)!==s))return!1;if(s!==(p||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(b),o=s>f?"next":s<f?"prev":"reset",h&&-b===a.translate||!h&&b===a.translate)return a.updateActiveIndex(s),c.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==c.effect&&a.setTranslate(b),"reset"!==o&&(a.transitionStart(n,o),a.transitionEnd(n,o)),!1;if(c.cssMode){let e=a.isHorizontal(),n=h?b:-b;if(0===t){let t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),t&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=n})):m[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1})}else{if(!a.support.smoothScroll)return(0,l.t)({swiper:a,targetPosition:n,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(b),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,o),0===t?a.transitionEnd(n,o):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,o))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);let o=i.grid&&i.params.grid&&i.params.grid.rows>1,a=e;if(i.params.loop){if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){let t=a*i.params.grid.rows;e=i.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===t)[0].column}else e=i.getSlideIndexByData(a);let t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n}=i.params,s=i.params.slidesPerView;"auto"===s?s=i.slidesPerViewDynamic():(s=Math.ceil(parseFloat(i.params.slidesPerView,10)),n&&s%2==0&&(s+=1));let l=t-e<s;if(n&&(l=l||e<Math.ceil(s/2)),r&&n&&"auto"!==i.params.slidesPerView&&!o&&(l=!1),l){let r=n?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?i.realIndex:void 0})}if(o){let e=a*i.params.grid.rows;a=i.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0].column}else a=i.getSlideIndexByData(a)}}return requestAnimationFrame(()=>{i.slideTo(a,t,n,r)}),i},slideNext:function(e,t,n){void 0===t&&(t=!0);let r=this,{enabled:i,params:o,animating:a}=r;if(!i||r.destroyed)return r;void 0===e&&(e=r.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));let l=r.activeIndex<o.slidesPerGroupSkip?1:s,c=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);let r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;void 0===e&&(e=r.params.speed);let u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let p=d(s?r.translate:-r.translate),f=o.map(e=>d(e)),h=o[f.indexOf(p)-1];if(void 0===h&&i.cssMode){let e;o.forEach((t,n)=>{p>=t&&(e=n)}),void 0!==e&&(h=o[e>0?e-1:e])}let m=0;if(void 0!==h&&((m=a.indexOf(h))<0&&(m=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=Math.max(m=m-r.slidesPerViewDynamic("previous",!0)+1,0))),i.rewind&&r.isBeginning){let i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(m,e,t,n)}),!0):r.slideTo(m,e,t,n)},slideReset:function(e,t,n){if(void 0===t&&(t=!0),!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){if(void 0===t&&(t=!0),void 0===r&&(r=.5),this.destroyed)return;void 0===e&&(e=this.params.speed);let i=this.activeIndex,o=Math.min(this.params.slidesPerGroupSkip,i),a=o+Math.floor((i-o)/this.params.slidesPerGroup),s=this.rtlTranslate?this.translate:-this.translate;if(s>=this.snapGrid[a]){let e=this.snapGrid[a];s-e>(this.snapGrid[a+1]-e)*r&&(i+=this.params.slidesPerGroup)}else{let e=this.snapGrid[a-1];s-e<=(this.snapGrid[a]-e)*r&&(i-=this.params.slidesPerGroup)}return i=Math.min(i=Math.max(i,0),this.slidesGrid.length-1),this.slideTo(i,e,t,n)},slideToClickedSlide:function(){let e;let t=this;if(t.destroyed)return;let{params:n,slidesEl:r}=t,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex,a=t.isElement?"swiper-slide":`.${n.slideClass}`;if(n.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?o<t.loopedSlides-i/2||o>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=t.getSlideIndex((0,l.e)(r,`${a}[data-swiper-slide-index="${e}"]`)[0]),(0,l.n)(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=t.getSlideIndex((0,l.e)(r,`${a}[data-swiper-slide-index="${e}"]`)[0]),(0,l.n)(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}},loop:{loopCreate:function(e){let t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;let i=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(i?n.grid.rows:1),a=t.slides.length%o!=0,s=i&&t.slides.length%n.grid.rows!=0,c=e=>{for(let r=0;r<e;r+=1){let e=t.isElement?(0,l.c)("swiper-slide",[n.slideBlankClass]):(0,l.c)("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(e)}};a?n.loopAddBlankSlides?(c(o-t.slides.length%o),t.recalcSlides(),t.updateSlides()):(0,l.u)("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
30not function properly. You need to add more slides (or make duplicates, or empty slides)"):s&&(n.loopAddBlankSlides?(c(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides()):(0,l.u)("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),(0,l.e)(r,`.${n.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,byController:a,byMousewheel:s}=void 0===e?{}:e,c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");let{slides:u,allowSlidePrev:d,allowSlideNext:p,slidesEl:f,params:h}=c,{centeredSlides:m}=h;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&h.virtual.enabled){n&&(h.centeredSlides||0!==c.snapIndex?h.centeredSlides&&c.snapIndex<h.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=p,c.emit("loopFix");return}let g=h.slidesPerView;"auto"===g?g=c.slidesPerViewDynamic():(g=Math.ceil(parseFloat(h.slidesPerView,10)),m&&g%2==0&&(g+=1));let y=h.slidesPerGroupAuto?g:h.slidesPerGroup,v=y;v%y!=0&&(v+=y-v%y),v+=h.loopAdditionalSlides,c.loopedSlides=v;let b=c.grid&&h.grid&&h.grid.rows>1;u.length<g+v?(0,l.u)("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===h.grid.fill&&(0,l.u)("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let x=[],w=[],_=c.activeIndex;void 0===o?o=c.getSlideIndex(u.filter(e=>e.classList.contains(h.slideActiveClass))[0]):_=o;let C="next"===r||!r,S="prev"===r||!r,E=0,T=0,k=b?Math.ceil(u.length/h.grid.rows):u.length,j=(b?u[o].column:o)+(m&&void 0===i?-g/2+.5:0);if(j<v){E=Math.max(v-j,y);for(let e=0;e<v-j;e+=1){let t=e-Math.floor(e/k)*k;if(b){let e=k-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&x.push(t)}else x.push(k-t-1)}}else if(j+g>k-v){T=Math.max(j-(k-2*v),y);for(let e=0;e<T;e+=1){let t=e-Math.floor(e/k)*k;b?u.forEach((e,n)=>{e.column===t&&w.push(n)}):w.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),S&&x.forEach(e=>{u[e].swiperLoopMoveDOM=!0,f.prepend(u[e]),u[e].swiperLoopMoveDOM=!1}),C&&w.forEach(e=>{u[e].swiperLoopMoveDOM=!0,f.append(u[e]),u[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===h.slidesPerView?c.updateSlides():b&&(x.length>0&&S||w.length>0&&C)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),h.watchSlidesProgress&&c.updateSlidesOffset(),n){if(x.length>0&&S){if(void 0===t){let e=c.slidesGrid[_],t=c.slidesGrid[_+E]-e;s?c.setTranslate(c.translate-t):(c.slideTo(_+Math.ceil(E),0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(i){let e=b?x.length/h.grid.rows:x.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(w.length>0&&C){if(void 0===t){let e=c.slidesGrid[_],t=c.slidesGrid[_-T]-e;s?c.setTranslate(c.translate-t):(c.slideTo(_-T,0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{let e=b?w.length/h.grid.rows:w.length;c.slideTo(c.activeIndex-e,0,!1,!0)}}}if(c.allowSlidePrev=d,c.allowSlideNext=p,c.controller&&c.controller.control&&!a){let e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&n})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===h.slidesPerView&&n})}c.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let n=[];
30this.slides.forEach(e=>{n[void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),n.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let{params:e}=this;this.onTouchStart=v.bind(this),this.onTouchMove=b.bind(this),this.onTouchEnd=x.bind(this),this.onDocumentTouchStart=E.bind(this),e.cssMode&&(this.onScroll=C.bind(this)),this.onClick=_.bind(this),this.onLoad=S.bind(this),T(this,"on")},detachEvents:function(){T(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;let a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;let s=(a in o?o[a]:void 0)||e.originalParams,c=k(e,r),u=k(e,s),d=e.params.grabCursor,p=s.grabCursor,f=r.enabled;c&&!u?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(i.classList.add(`${r.containerModifierClass}grid`),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===r.grid.fill)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!p?e.unsetGrabCursor():!d&&p&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===s[t])return;let n=r[t]&&r[t].enabled,i=s[t]&&s[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});let h=s.direction&&s.direction!==r.direction,m=r.loop&&(s.slidesPerView!==r.slidesPerView||h),g=r.loop;h&&n&&e.changeDirection(),(0,l.w)(e.params,s);let y=e.params.enabled,v=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",s),n&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&v?(e.loopCreate(t),e.updateSlides()):g&&!v&&e.loopDestroy()),e.emit("breakpoint",s)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1,i=(0,s.a)(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:o*parseFloat(e.substr(1)),point:e}:{value:e,point:e});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){let{point:o,value:s}=a[e];"window"===t?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=o):s<=n.clientWidth&&(r=o)}return r||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:n}=t;if(n){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*n;this.isLocked=this.size>t}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:n,el:r,device:i}=this,o=function(e,t){let n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:i.android},{ios:i.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),r.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},P={};class I{constructor(){let e,t;for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=(0,l.w)({},t),e&&!t.el&&(t.el=e);let a=(0,s.g)();if(t.el&&"string"==typeof t.el&&a.querySelectorAll(t.el).length>1){let e=[];return a.querySelectorAll(t.el).forEach(n=>{let r=(0,l.w)({},t,{el:n});e.push(new I(r))}),e}let d=this;d.__swiper__=!0,d.support=c(),d.device=u({userAgent:t.userAgent}),d.browser=(o||(o=function(){let e=(0,s.a)(),t=u(),n=!1;function r(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(r()){let t=String(e.navigator.userAgent);if(t.includes("Version/")){let[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));
30n=e<16||16===e&&r<2}}let i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r(),a=o||i&&t.ios;return{isSafari:n||o,needPerspectiveFix:n,need3dFix:a,isWebView:i}}()),o),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],t.modules&&Array.isArray(t.modules)&&d.modules.push(...t.modules);let p={};d.modules.forEach(e=>{var n;e({params:t,swiper:d,extendParams:(n=t,function(e){void 0===e&&(e={});let t=Object.keys(e)[0],r=e[t];if("object"!=typeof r||null===r||(!0===n[t]&&(n[t]={enabled:!0}),"navigation"===t&&n[t]&&n[t].enabled&&!n[t].prevEl&&!n[t].nextEl&&(n[t].auto=!0),["pagination","scrollbar"].indexOf(t)>=0&&n[t]&&n[t].enabled&&!n[t].el&&(n[t].auto=!0),!(t in n&&"enabled"in r))){(0,l.w)(p,e);return}"object"!=typeof n[t]||"enabled"in n[t]||(n[t].enabled=!0),n[t]||(n[t]={enabled:!1}),(0,l.w)(p,e)}),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});let f=(0,l.w)({},j,p);return d.params=(0,l.w)({},f,P,t),d.originalParams=(0,l.w)({},d.params),d.passedParams=(0,l.w)({}
30,t),d.params&&d.params.on&&Object.keys(d.params.on).forEach(e=>{d.on(e,d.params.on[e])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===d.params.direction,isVertical:()=>"vertical"===d.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=(0,l.e)(t,`.${n.slideClass}, swiper-slide`),i=(0,l.h)(r[0]);return(0,l.h)(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=(0,l.e)(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let n=this.minTranslate(),r=(this.maxTranslate()-n)*e+n;this.translateTo(r,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this,l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=r[s]?Math.ceil(r[s].swiperSlideSize):0;for(let n=s+1;n<r.length;n+=1)r[n]&&!e&&(t+=Math.ceil(r[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=s-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=s+1;e<r.length;e+=1)(t?i[e]+o[e]-i[s]<a:i[e]-i[s]<a)&&(l+=1);else for(let e=s-1;e>=0;e-=1)i[s]-i[e]<a&&(l+=1);return l}update(){let e;let t=this;if(!t||t.destroyed)return;let{snapGrid:n,params:r}=t;function i(){let e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}if(r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&f(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if(("auto"===r.slidesPerView||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){let n=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;e=t.slideTo(n.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);let n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${n}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEac
30h(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):(0,l.e)(n,r())[0];return!i&&t.params.createElements&&(i=(0,l.c)("div",t.params.wrapperClass),n.append(i),(0,l.e)(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===(0,l.p)(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===(0,l.p)(n,"direction")),wrongRTL:"-webkit-box"===(0,l.p)(i,"display")}),!0}init(e){let t=this;if(t.initialized||!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();let n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?f(t,e):e.addEventListener("load",e=>{f(t,e.target)})}),m(t),t.initialized=!0,m(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);let n=this,{params:r,el:i,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),(0,l.x)(n)),n.destroyed=!0),null}static extendDefaults(e){(0,l.w)(P,e)}static get extendedDefaults(){return P}static get defaults(){return j}static installModule(e){I.prototype.__modules__||(I.prototype.__modules__=[]);let t=I.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>I.installModule(e)):I.installModule(e),I}}Object.keys(O).forEach(e=>{Object.keys(O[e]).forEach(t=>{I.prototype[t]=O[e][t]})}),I.use([function(e){let{swiper:t,on:n,emit:r}=e,i=(0,s.a)(),o=null,a=null,l=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},c=()=>{t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver(e=>{a=i.requestAnimationFrame(()=>{let{width:n,height:r}=t,i=n,o=r;e.forEach(e=>{let{contentBoxSize:n,contentRect:r,target:a}=e;a&&a!==t.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)}),(i!==n||o!==r)&&l()})})).observe(t.el)},u=()=>{a&&i.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null)},d=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&void 0!==i.ResizeObserver){c();return}i.addEventListener("resize",l),i.addEventListener("orientationchange",d)}),n("destroy",()=>{u(),i.removeEventListener("resize",l),i.removeEventListener("orientationchange",d)})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e,o=[],a=(0,s.a)(),c=function(e,n){void 0===n&&(n={});let r=new(a.MutationObserver||a.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length){i("observerUpdate",e[0]);return}let n=function(){i("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),o.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",()=>{if(t.params.observer){if(t.params.observeParents){let e=(0,l.a)(t.hostEl);for(let t=0;t<e.length;t+=1)c(e[t])}c(t.hostEl,{childList:t.params.observeSlideChildren}),c(t.wrapperEl,{attributes:!1})}}),r("destroy",()=>
30{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]);let N=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function D(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function M(e,t){let n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>n.indexOf(e)).forEach(n=>{void 0===e[n]?e[n]=t[n]:D(t[n])&&D(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:M(e[n],t[n]):e[n]=t[n]})}function A(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function L(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function R(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function Z(e){void 0===e&&(e="");let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{0>n.indexOf(e)&&n.push(e)}),n.join(" ")}let z=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function B(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function H(e,t){return"undefined"==typeof window?(0,a.useEffect)(e,t):(0,a.useLayoutEffect)(e,t)}let $=(0,a.createContext)(null),U=(0,a.createContext)(null),Y=(0,a.forwardRef)(function(e,t){var n;let{className:r,tag:i="div",wrapperTag:o="div",children:s,onSwiper:l,...c}=void 0===e?{}:e,u=!1,[d,p]=(0,a.useState)("swiper"),[f,h]=(0,a.useState)(null),[m,g]=(0,a.useState)(!1),y=(0,a.useRef)(!1),v=(0,a.useRef)(null),b=(0,a.useRef)(null),x=(0,a.useRef)(null),w=(0,a.useRef)(null),_=(0,a.useRef)(null),C=(0,a.useRef)(null),S=(0,a.useRef)(null),E=(0,a.useRef)(null),{params:T,passedParams:k,rest:O,events:P}=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!0);let n={on:{}},r={},i={};M(n,j),n._emitClasses=!0,n.init=!1;let o={},a=N.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({}
30,e)).forEach(s=>{void 0!==e[s]&&(a.indexOf(s)>=0?D(e[s])?(n[s]={},i[s]={},M(n[s],e[s]),M(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"==typeof e[s]?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:o[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]}),{params:n,passedParams:i,rest:o,events:r}}(c),{slides:$,slots:Y}=function(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return a.Children.toArray(e).forEach(e=>{if(B(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){let r=function e(t){let n=[];return a.Children.toArray(t).forEach(t=>{B(t)?n.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>n.push(e))}),n}(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n["container-end"].push(e)}else n["container-end"].push(e)}),{slides:t,slots:n}}(s),G=()=>{g(!m)};Object.assign(T.on,{_containerClasses(e,t){p(t)}});let V=()=>{Object.assign(T.on,P),u=!0;let e={...T};if(delete e.wrapperClass,b.current=new I(e),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=$;let e={cache:!1,slides:$,renderExternal:h,renderExternalUpdate:!1};M(b.current.params.virtual,e),M(b.current.originalParams.virtual,e)}};v.current||V(),b.current&&b.current.on("_beforeBreakpoint",G);let q=()=>{!u&&P&&b.current&&Object.keys(P).forEach(e=>{b.current.on(e,P[e])})},W=()=>{P&&b.current&&Object.keys(P).forEach(e=>{b.current.off(e,P[e])})};return(0,a.useEffect)(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",G)}),(0,a.useEffect)(()=>{!y.current&&b.current&&(b.current.emitSlidesClasses(),y.current=!0)}),H(()=>
30{if(t&&(t.current=v.current),v.current)return b.current.destroyed&&V(),function(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:o,scrollbarEl:a,swiper:s}=e;A(t)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),L(t)&&o&&(s.params.pagination.el=o,s.originalParams.pagination.el=o),R(t)&&a&&(s.params.scrollbar.el=a,s.originalParams.scrollbar.el=a),s.init(n)}({el:v.current,nextEl:_.current,prevEl:C.current,paginationEl:S.current,scrollbarEl:E.current,swiper:b.current},T),l&&!b.current.destroyed&&l(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),H(()=>{q();let e=function(e,t,n,r,i){let o=[];if(!t)return o;let a=e=>{0>o.indexOf(e)&&o.push(e)};if(n&&r){let e=r.map(i),t=n.map(i);e.join("")!==t.join("")&&a("children"),r.length!==n.length&&a("children")}return N.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t){if(D(e[n])&&D(t[n])){let r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}
30),i.forEach(r=>{e[n][r]!==t[n][r]&&a(n)}))}else e[n]!==t[n]&&a(n)}}),o}(k,x.current,$,w.current,e=>e.key);return x.current=k,w.current=$,e.length&&b.current&&!b.current.destroyed&&function(e){let t,n,r,i,o,a,s,l,{swiper:c,slides:u,passedParams:d,changedParams:p,nextEl:f,prevEl:h,scrollbarEl:m,paginationEl:g}=e,y=p.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:v,pagination:b,navigation:x,scrollbar:w,virtual:_,thumbs:C}=c;p.includes("thumbs")&&d.thumbs&&d.thumbs.swiper&&v.thumbs&&!v.thumbs.swiper&&(t=!0),p.includes("controller")&&d.controller&&d.controller.control&&v.controller&&!v.controller.control&&(n=!0),p.includes("pagination")&&d.pagination&&(d.pagination.el||g)&&(v.pagination||!1===v.pagination)&&b&&!b.el&&(r=!0),p.includes("scrollbar")&&d.scrollbar&&(d.scrollbar.el||m)&&(v.scrollbar||!1===v.scrollbar)&&w&&!w.el&&(i=!0),p.includes("navigation")&&d.navigation&&(d.navigation.prevEl||h)&&(d.navigation.nextEl||f)&&(v.navigation||!1===v.navigation)&&x&&!x.prevEl&&!x.nextEl&&(o=!0);let S=e=>{c[e]&&(c[e].destroy(),"navigation"===e?(c.isElement&&(c[e].prevEl.remove(),c[e].nextEl.remove()),v[e].prevEl=void 0,v[e].nextEl=void 0,c[e].prevEl=void 0,c[e].nextEl=void 0):(c.isElement&&c[e].el.remove(),v[e].el=void 0,c[e].el=void 0))};p.includes("loop")&&c.isElement&&(v.loop&&!d.loop?a=!0:!v.loop&&d.loop?s=!0:l=!0),y.forEach(e=>{if(D(v[e])&&D(d[e]))Object.assign(v[e],d[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in d[e]&&!d[e].enabled&&S(e);else{let t=d[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&S(e):v[e]=d[e]}}),y.includes("controller")&&!n&&c.controller&&c.controller.control&&v.controller&&v.controller.control&&(c.controller.control=v.controller.control),p.includes("children")&&u&&_&&v.virtual.enabled?(_.slides=u,_.update(!0)):p.includes("virtual")&&_&&v.virtual.enabled&&(u&&(_.slides=u),_.update(!0)),p.includes("children")&&u&&v.loop&&(l=!0),t&&C.init()&&C.update(!0),n&&(c.controller.control=v.controller.control),r&&(c.isElement&&(!g||"string"==typeof g)&&((g=document.createElement("div")).classList.add("swiper-pagination"),g.part.add("pagination"),c.el.appendChild(g)),g&&(v.pagination.el=g),b.init(),b.render(),b.update()),i&&(c.isElement&&(!m||"string"==typeof m)&&((m=document.createElement("div")).classList.add("swiper-scrollbar"),m.part.add("scrollbar"),c.el.appendChild(m)),m&&(v.scrollbar.el=m),w.init(),w.updateSize(),w.setTranslate()),o&&(c.isElement&&(f&&"string"!=typeof f||((f=document.createElement("div")).classList.add("swiper-button-next"),f.innerHTML=c.hostEl.constructor.nextButtonSvg,f.part.add("button-next"),c.el.appendChild(f)),h&&"string"!=typeof h||((h=document.createElement("div")).classList.add("swiper-button-prev"),h.innerHTML=c.hostEl.constructor.prevButtonSvg,h.part.add("button-prev"),c.el.appendChild(h))),f&&(v.navigation.nextEl=f),h&&(v.navigation.prevEl=h),x.init(),x.update()),p.includes("allowSlideNext")&&(c.allowSlideNext=d.allowSlideNext),p.includes("allowSlidePrev")&&(c.allowSlidePrev=d.allowSlidePrev),p.includes("direction")&&c.changeDirection(d.direction,!1),(a||l)&&c.loopDestroy(),(s||l)&&c.loopCreate(),c.update()}({swiper:b.current,slides:$,passedParams:k,changedParams:e,nextEl:_.current,prevEl:C.current,scrollbarEl:E.current,paginationEl:S.current}),()=>{W()}}),H(()=>{z(b.current)},[f]),a.createElement(i,F({ref:v,className:Z(`${d}${r?` ${r}`:""}`)},O),a.createElement(U.Provider,{value:b.current},Y["container-start"],a.createElement(o,{className:(void 0===(n=T.wrapperClass)&&(n=""),n)?n.includes("swiper-wrapper")?n:`swiper-wrapper ${n}`:"swiper-wrapper"},Y["wrapper-start"],T.virtual?function(e,t,n){if(!n)return null;let r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:s}=n,l=e.params.loop?-t.length:0,c=e.params.loop?2*t.length:t.length,u=[];for(let e=l;e<c;e+=1)e>=o&&e<=s&&u.push(t[r(e)]);return u.map((t,n)=>a.cloneElement(t,{swiper:e,style:i,key:t.props.virtualIndex||t.key||`slide-${n}`}))}(b.current,$,f):$.map((e,t)=>a.cloneElement(e,{swiper:b.current,swiperSlideIndex:t})),Y["wrapper-end"]),A(T)&&a.createElement(a.Fragment,null,a.createElement("div",{ref:C,className:"swiper-button-prev"}),a.createElement("div",{ref:_,className:"swiper-button-next"})),R(T)&&a.createElement("div",{ref:E,className:"swiper-scrollbar"}),L(T)&&a.createElement("div",{ref:S,className:"swiper-pagination"}),Y["container-end"]))});Y.displayName="Swiper";let G=(0,a.forwardRef)(function(e,t){let{tag:n="div",children:r,className:i="",swiper:o,zoom:s,lazy:l,virtualIndex:c,swiperSlideIndex:u,...d}=void 0===e?{}:e,p=(0,a.useRef)(null),[f,h]=(0,a.useState)("swiper-slide"),[m,g]=(0,a.useState)(!1);function y(e,t,n){t===p.current&&h(n)}H(()=>
30{if(void 0!==u&&(p.current.swiperSlideIndex=u),t&&(t.current=p.current),p.current&&o){if(o.destroyed){"swiper-slide"!==f&&h("swiper-slide");return}return o.on("_slideClass",y),()=>{o&&o.off("_slideClass",y)}}}),H(()=>{o&&p.current&&!o.destroyed&&h(o.getSlideClasses(p.current))},[o]);let v={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>"function"==typeof r?r(v):r;return a.createElement(n,F({ref:p,className:Z(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":c,onLoad:()=>{g(!0)}},d),s&&a.createElement($.Provider,{value:v},a.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof s?s:void 0},b(),l&&!m&&a.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&a.createElement($.Provider,{value:v},b(),l&&!m&&a.createElement("div",{className:"swiper-lazy-preloader"})))});G.displayName="SwiperSlide"},97582:function(e,t,n){"use strict";n.d(t,{ZT:function(){return i},_T:function(){return a},ev:function(){return s},pi:function(){return o}});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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},96093:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=function(e){if(null==e)return o;if("string"==typeof e)return i(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1})}(e):i(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("function"==typeof e)return i(e);throw Error("Expected function, string, or object as test")};function i(e){return function(t,...n){return!!(t&&"object"==typeof t&&"type"in t&&e.call(this,t,...n))}}function o(){return!0}},3980:function(e,t,n){"use strict";n.d(t,{FK:function(){return o},Pk:function(){return r},rb:function(){return i}});let r=a("start"),i=a("end");function o(e){return{start:r(e),end:i(e)}}function a(e){return function(t){let n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}},20557:function(e,t,n){"use strict";n.d(t,{S4:function(){return i}});var r=n(96093);let i=function(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null);let o=(0,r.O)(t),a=i?-1:1;(function e(r,s,l){let c=r&&"object"==typeof r?r:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return u;function u(){var c;let u,d,p,f=[];if((!t||o(r,s,l[l.length-1]||null))&&!1===(f=Array.isArray(c=n(r,l))?c:"number"==typeof c?[!0,c]:[c])[0])return f;if(r.children&&"skip"!==f[0])for(d=(i?r.children.length:-1)+a,p=l.concat(r);d>-1&&d<r.children.length;){if(!1===(u=e(r.children[d],d,p)())[0])return u;d="number"==typeof u[1]?u[1]:d+a}return f}})(e,void 0,[])()}},21623:function(e,t,n){"use strict";n.d(t,{Vn:function(){return i}});var r=n(20557);let i=function(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),(0,r.S4)(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},i)}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(39927),t(6840),t(18326)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.