@unchainedshop/admin-ui 4.0.5 → 4.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/express.d.ts +1 -2
  2. package/dist/express.js +6 -17
  3. package/dist/fastify.d.ts +7 -1
  4. package/dist/fastify.js +49 -1
  5. package/dist/types.d.ts +6 -0
  6. package/dist/types.js +2 -0
  7. package/dist/utils.d.ts +1 -0
  8. package/dist/utils.js +16 -0
  9. package/out/403/index.html +2 -2
  10. package/out/404/index.html +2 -2
  11. package/out/404.html +2 -2
  12. package/out/423/index.html +2 -2
  13. package/out/500/index.html +2 -2
  14. package/out/_next/static/chunks/pages/{_app-ba345670df74b00f.js → _app-bc655329e5bfa9cf.js} +1 -1
  15. package/out/_next/static/css/2caf454856e177ce.css +1 -0
  16. package/out/_offline/index.html +2 -2
  17. package/out/account/forgot-password/index.html +2 -2
  18. package/out/account/index.html +2 -2
  19. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  20. package/out/assortments/index.html +2 -2
  21. package/out/assortments/new/index.html +2 -2
  22. package/out/country/CountryDetailPage/index.html +2 -2
  23. package/out/country/index.html +2 -2
  24. package/out/country/new/index.html +2 -2
  25. package/out/currency/CurrencyDetailPage/index.html +2 -2
  26. package/out/currency/index.html +2 -2
  27. package/out/currency/new/index.html +2 -2
  28. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  29. package/out/delivery-provider/index.html +2 -2
  30. package/out/delivery-provider/new/index.html +2 -2
  31. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  32. package/out/enrollments/index.html +2 -2
  33. package/out/events/EventDetailPage/index.html +2 -2
  34. package/out/events/index.html +2 -2
  35. package/out/external/index.html +2 -2
  36. package/out/filters/FilterDetailPage/index.html +2 -2
  37. package/out/filters/index.html +2 -2
  38. package/out/filters/new/index.html +2 -2
  39. package/out/index.html +2 -2
  40. package/out/index.old/index.html +2 -2
  41. package/out/language/LanguageDetailPage/index.html +2 -2
  42. package/out/language/index.html +2 -2
  43. package/out/language/new/index.html +2 -2
  44. package/out/log-in/index.html +2 -2
  45. package/out/orders/OrderDetailPage/index.html +2 -2
  46. package/out/orders/index.html +2 -2
  47. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  48. package/out/payment-provider/index.html +2 -2
  49. package/out/payment-provider/new/index.html +2 -2
  50. package/out/products/ProductDetailPage/index.html +2 -2
  51. package/out/products/index.html +2 -2
  52. package/out/products/new/index.html +2 -2
  53. package/out/quotations/QuotationDetailPage/index.html +2 -2
  54. package/out/quotations/index.html +2 -2
  55. package/out/reset-password/index.html +2 -2
  56. package/out/sign-up/index.html +2 -2
  57. package/out/tokens/TokenDetailPage/index.html +2 -2
  58. package/out/tokens/index.html +2 -2
  59. package/out/users/UserDetailPage/index.html +2 -2
  60. package/out/users/index.html +2 -2
  61. package/out/users/new/index.html +2 -2
  62. package/out/verify-email/index.html +2 -2
  63. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  64. package/out/warehousing-provider/index.html +2 -2
  65. package/out/warehousing-provider/new/index.html +2 -2
  66. package/out/works/WorkDetailPage/index.html +2 -2
  67. package/out/works/index.html +2 -2
  68. package/out/works/management/index.html +2 -2
  69. package/package.json +4 -4
  70. package/out/_next/static/css/0bfd96538b917a40.css +0 -1
  71. /package/out/_next/static/{Sv_KuVmVLVQT4sp6oaKx7 → hCVjB7qq4WvM2EZ9I7h06}/_buildManifest.js +0 -0
  72. /package/out/_next/static/{Sv_KuVmVLVQT4sp6oaKx7 → hCVjB7qq4WvM2EZ9I7h06}/_ssgManifest.js +0 -0
@@ -5,7 +5,7 @@ Error message: ${w(t)}`,cause:t}),this[u]=!0,this.value=e}static isInstance(e){r
5
5
  ]))`;continue}else if("$"===n[e]){i+=`($|(?=[\r
6
6
  ]))`;continue}}if(r.s&&"."===n[e]){i+=o?`${n[e]}\r
7
7
  `:`[${n[e]}\r
8
- ]`;continue}i+=n[e],"\\"===n[e]?a=!0:o&&"]"===n[e]?o=!1:o||"["!==n[e]||(o=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}let tc=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};var td={code:"0",name:"text",parse:e=>{if("string"!=typeof e)throw Error('"text" parts expect a string value.');return{type:"text",value:e}}},tf={code:"3",name:"error",parse:e=>{if("string"!=typeof e)throw Error('"error" parts expect a string value.');return{type:"error",value:e}}},th={code:"4",name:"assistant_message",parse:e=>{if(null==e||"object"!=typeof e||!("id"in e)||!("role"in e)||!("content"in e)||"string"!=typeof e.id||"string"!=typeof e.role||"assistant"!==e.role||!Array.isArray(e.content)||!e.content.every(e=>null!=e&&"object"==typeof e&&"type"in e&&"text"===e.type&&"text"in e&&null!=e.text&&"object"==typeof e.text&&"value"in e.text&&"string"==typeof e.text.value))throw Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},tp={code:"5",name:"assistant_control_data",parse:e=>{if(null==e||"object"!=typeof e||!("threadId"in e)||!("messageId"in e)||"string"!=typeof e.threadId||"string"!=typeof e.messageId)throw Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},tm={code:"6",name:"data_message",parse:e=>{if(null==e||"object"!=typeof e||!("role"in e)||!("data"in e)||"string"!=typeof e.role||"data"!==e.role)throw Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},tg=[td,tf,th,tp,tm],t_={[td.code]:td,[tf.code]:tf,[th.code]:th,[tp.code]:tp,[tm.code]:tm};td.name,td.code,tf.name,tf.code,th.name,th.code,tp.name,tp.code,tm.name,tm.code;var ty=tg.map(e=>e.code),tv=[{code:"0",name:"text",parse:e=>{if("string"!=typeof e)throw Error('"text" parts expect a string value.');return{type:"text",value:e}}},{code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw Error('"data" parts expect an array value.');return{type:"data",value:e}}},{code:"3",name:"error",parse:e=>{if("string"!=typeof e)throw Error('"error" parts expect a string value.');return{type:"error",value:e}}},{code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},{code:"9",name:"tool_call",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("toolName"in e)||"string"!=typeof e.toolName||!("args"in e)||"object"!=typeof e.args)throw Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},{code:"a",name:"tool_result",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("result"in e))throw Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},{code:"b",name:"tool_call_streaming_start",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("toolName"in e)||"string"!=typeof e.toolName)throw Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},{code:"c",name:"tool_call_delta",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("argsTextDelta"in e)||"string"!=typeof e.argsTextDelta)throw Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},{code:"d",name:"finish_message",parse:e=>{if(null==e||"object"!=typeof e||!("finishReason"in e)||"string"!=typeof e.finishReason)throw Error('"finish_message" parts expect an object with a "finishReason" property.');let t={finishReason:e.finishReason};return"usage"in e&&null!=e.usage&&"object"==typeof e.usage&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:"number"==typeof e.usage.promptTokens?e.usage.promptTokens:Number.NaN,completionTokens:"number"==typeof e.usage.completionTokens?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:t}}},{code:"e",name:"finish_step",parse:e=>{if(null==e||"object"!=typeof e||!("finishReason"in e)||"string"!=typeof e.finishReason)throw Error('"finish_step" parts expect an object with a "finishReason" property.');let t={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&null!=e.usage&&"object"==typeof e.usage&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:"number"==typeof e.usage.promptTokens?e.usage.promptTokens:Number.NaN,completionTokens:"number"==typeof e.usage.completionTokens?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&"boolean"==typeof e.isContinued&&(t.isContinued=e.isContinued),{type:"finish_step",value:t}}},{code:"f",name:"start_step",parse:e=>{if(null==e||"object"!=typeof e||!("messageId"in e)||"string"!=typeof e.messageId)throw Error('"start_step" parts expect an object with an "id" property.');return{type:"start_step",value:{messageId:e.messageId}}}},{code:"g",name:"reasoning",parse:e=>{if("string"!=typeof e)throw Error('"reasoning" parts expect a string value.');return{type:"reasoning",value:e}}},{code:"h",name:"source",parse:e=>{if(null==e||"object"!=typeof e)throw Error('"source" parts expect a Source object.');return{type:"source",value:e}}},{code:"i",name:"redacted_reasoning",parse:e=>{if(null==e||"object"!=typeof e||!("data"in e)||"string"!=typeof e.data)throw Error('"redacted_reasoning" parts expect an object with a "data" property.');return{type:"redacted_reasoning",value:{data:e.data}}}},{code:"j",name:"reasoning_signature",parse:e=>{if(null==e||"object"!=typeof e||!("signature"in e)||"string"!=typeof e.signature)throw Error('"reasoning_signature" parts expect an object with a "signature" property.');return{type:"reasoning_signature",value:{signature:e.signature}}}},{code:"k",name:"file",parse:e=>{if(null==e||"object"!=typeof e||!("data"in e)||"string"!=typeof e.data||!("mimeType"in e)||"string"!=typeof e.mimeType)throw Error('"file" parts expect an object with a "data" and "mimeType" property.');return{type:"file",value:e}}}],tb=Object.fromEntries(tv.map(e=>[e.code,e]));Object.fromEntries(tv.map(e=>[e.name,e.code]));var tw=tv.map(e=>e.code),tE=e=>{let t=e.indexOf(":");if(-1===t)throw Error("Failed to parse stream string. No separator found.");let r=e.slice(0,t);if(!tw.includes(r))throw Error(`Failed to parse stream string. Invalid code ${r}.`);let n=JSON.parse(e.slice(t+1));return tb[r].parse(n)};async function tk({stream:e,onTextPart:t,onReasoningPart:r,onReasoningSignaturePart:n,onRedactedReasoningPart:i,onSourcePart:a,onFilePart:o,onDataPart:s,onErrorPart:l,onToolCallStreamingStartPart:u,onToolCallDeltaPart:c,onToolCallPart:d,onToolResultPart:f,onMessageAnnotationsPart:h,onFinishMessagePart:p,onFinishStepPart:m,onStartStepPart:g}){let _=e.getReader(),y=new TextDecoder,v=[],b=0;for(;;){let{value:e}=await _.read();if(e&&(v.push(e),b+=e.length,10!==e[e.length-1]))continue;if(0===v.length)break;let w=function(e,t){let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return e.length=0,r}(v,b);for(let{type:e,value:_}of(b=0,y.decode(w,{stream:!0}).split("\n").filter(e=>""!==e).map(tE)))switch(e){case"text":await (null==t?void 0:t(_));break;case"reasoning":await (null==r?void 0:r(_));break;case"reasoning_signature":await (null==n?void 0:n(_));break;case"redacted_reasoning":await (null==i?void 0:i(_));break;case"file":await (null==o?void 0:o(_));break;case"source":await (null==a?void 0:a(_));break;case"data":await (null==s?void 0:s(_));break;case"error":await (null==l?void 0:l(_));break;case"message_annotations":await (null==h?void 0:h(_));break;case"tool_call_streaming_start":await (null==u?void 0:u(_));break;case"tool_call_delta":await (null==c?void 0:c(_));break;case"tool_call":await (null==d?void 0:d(_));break;case"tool_result":await (null==f?void 0:f(_));break;case"finish_message":await (null==p?void 0:p(_));break;case"finish_step":await (null==m?void 0:m(_));break;case"start_step":await (null==g?void 0:g(_));break;default:throw Error(`Unknown stream part type: ${e}`)}}}async function tT({stream:e,update:t,onToolCall:r,onFinish:n,generateId:i=G,getCurrentDate:a=()=>new Date,lastMessage:o}){var s,l;let u,c,d,f=(null==o?void 0:o.role)==="assistant",h=f?1+(null!=(l=null==(s=o.toolInvocations)?void 0:s.reduce((e,t)=>{var r;return Math.max(e,null!=(r=t.step)?r:0)},0))?l:0):0,p=f?structuredClone(o):{id:i(),createdAt:a(),role:"assistant",content:"",parts:[]};function m(e,t){let r=p.parts.find(t=>"tool-invocation"===t.type&&t.toolInvocation.toolCallId===e);null!=r?r.toolInvocation=t:p.parts.push({type:"tool-invocation",toolInvocation:t})}let g=[],_=f?null==o?void 0:o.annotations:void 0,y={},v={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},b="unknown";function w(){let e=[...g];(null==_?void 0:_.length)&&(p.annotations=_),t({message:{...structuredClone(p),revisionId:i()},data:e,replaceLastMessage:f})}await tk({stream:e,onTextPart(e){null==u?(u={type:"text",text:e},p.parts.push(u)):u.text+=e,p.content+=e,w()},onReasoningPart(e){var t;null==d?(d={type:"text",text:e},null!=c&&c.details.push(d)):d.text+=e,null==c?(c={type:"reasoning",reasoning:e,details:[d]},p.parts.push(c)):c.reasoning+=e,p.reasoning=(null!=(t=p.reasoning)?t:"")+e,w()},onReasoningSignaturePart(e){null!=d&&(d.signature=e.signature)},onRedactedReasoningPart(e){null==c&&(c={type:"reasoning",reasoning:"",details:[]},p.parts.push(c)),c.details.push({type:"redacted",data:e.data}),d=void 0,w()},onFilePart(e){p.parts.push({type:"file",mimeType:e.mimeType,data:e.data}),w()},onSourcePart(e){p.parts.push({type:"source",source:e}),w()},onToolCallStreamingStartPart(e){null==p.toolInvocations&&(p.toolInvocations=[]),y[e.toolCallId]={text:"",step:h,toolName:e.toolName,index:p.toolInvocations.length};let t={state:"partial-call",step:h,toolCallId:e.toolCallId,toolName:e.toolName,args:void 0};p.toolInvocations.push(t),m(e.toolCallId,t),w()},onToolCallDeltaPart(e){let t=y[e.toolCallId];t.text+=e.argsTextDelta;let{value:r}=function(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=Z({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=Z({text:function(e){let t=["ROOT"],r=-1,n=null;function i(e,i,a){switch(e){case'"':r=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":r=i,n=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":r=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":r=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function a(e,n){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":r=n,t.pop()}}function o(e,n){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=n,t.pop()}}for(let s=0;s<e.length;s++){let l=e[s];switch(t[t.length-1]){case"ROOT":i(l,s,"FINISH");break;case"INSIDE_OBJECT_START":switch(l){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":r=s,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===l&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":i(l,s,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":a(l,s);break;case"INSIDE_STRING":switch(l){case'"':t.pop(),r=s;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:r=s}break;case"INSIDE_ARRAY_START":"]"===l?(r=s,t.pop()):(r=s,i(l,s,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(l){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=s,t.pop();break;default:r=s}break;case"INSIDE_ARRAY_AFTER_COMMA":i(l,s,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),r=s;break;case"INSIDE_NUMBER":switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=s;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,s);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,s);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(n,s+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?r=s:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?a(l,s):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s))}}}let s=e.slice(0,r+1);for(let r=t.length-1;r>=0;r--)switch(t[r]){case"INSIDE_STRING":s+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":s+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":s+="]";break;case"INSIDE_LITERAL":{let t=e.substring(n,e.length);"true".startsWith(t)?s+="true".slice(t.length):"false".startsWith(t)?s+="false".slice(t.length):"null".startsWith(t)&&(s+="null".slice(t.length))}}return s}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}(t.text),n={state:"partial-call",step:t.step,toolCallId:e.toolCallId,toolName:t.toolName,args:r};p.toolInvocations[t.index]=n,m(e.toolCallId,n),w()},async onToolCallPart(e){let t={state:"call",step:h,...e};if(null!=y[e.toolCallId]?p.toolInvocations[y[e.toolCallId].index]=t:(null==p.toolInvocations&&(p.toolInvocations=[]),p.toolInvocations.push(t)),m(e.toolCallId,t),w(),r){let t=await r({toolCall:e});if(null!=t){let r={state:"result",step:h,...e,result:t};p.toolInvocations[p.toolInvocations.length-1]=r,m(e.toolCallId,r),w()}}},onToolResultPart(e){let t=p.toolInvocations;if(null==t)throw Error("tool_result must be preceded by a tool_call");let r=t.findIndex(t=>t.toolCallId===e.toolCallId);if(-1===r)throw Error("tool_result must be preceded by a tool_call with the same toolCallId");let n={...t[r],state:"result",...e};t[r]=n,m(e.toolCallId,n),w()},onDataPart(e){g.push(...e),w()},onMessageAnnotationsPart(e){null==_?_=[...e]:_.push(...e),w()},onFinishStepPart(e){h+=1,u=e.isContinued?u:void 0,c=void 0,d=void 0},onStartStepPart(e){f||(p.id=e.messageId),p.parts.push({type:"step-start"}),w()},onFinishMessagePart(e){b=e.finishReason,null!=e.usage&&(v=function({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}(e.usage))},onErrorPart(e){throw Error(e)}}),null==n||n({message:p,finishReason:b,usage:v})}async function tS({stream:e,onTextPart:t}){let r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){let{done:e,value:n}=await r.read();if(e)break;await t(n)}}async function tx({stream:e,update:t,onFinish:r,getCurrentDate:n=()=>new Date,generateId:i=G}){let a={type:"text",text:""},o={id:i(),createdAt:n(),role:"assistant",content:"",parts:[a]};await tS({stream:e,onTextPart:e=>{o.content+=e,a.text+=e,t({message:{...o},data:[],replaceLastMessage:!1})}}),null==r||r(o,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"})}var tA=()=>fetch;async function tI({api:e,body:t,streamProtocol:r="data",credentials:n,headers:i,abortController:a,restoreMessagesOnFailure:o,onResponse:s,onUpdate:l,onFinish:u,onToolCall:c,generateId:d,fetch:f=tA(),lastMessage:h,requestType:p="generate"}){var m,g,_;let y="resume"===p?f(`${e}?chatId=${t.id}`,{method:"GET",headers:{"Content-Type":"application/json",...i},signal:null==(m=null==a?void 0:a())?void 0:m.signal,credentials:n}):f(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...i},signal:null==(g=null==a?void 0:a())?void 0:g.signal,credentials:n}),v=await y.catch(e=>{throw o(),e});if(s)try{await s(v)}catch(e){throw e}if(!v.ok)throw o(),Error(null!=(_=await v.text())?_:"Failed to fetch the chat response.");if(!v.body)throw Error("The response body is empty.");switch(r){case"text":return void await tx({stream:v.body,update:l,onFinish:u,generateId:d});case"data":return void await tT({stream:v.body,update:l,lastMessage:h,onToolCall:c,onFinish({message:e,finishReason:t,usage:r}){u&&null!=e&&u(e,{usage:r,finishReason:t})},generateId:d});default:throw Error(`Unknown stream protocol: ${r}`)}}function tO(e){return null==e?void 0:e.reduce((e,t)=>{var r;return Math.max(e,null!=(r=t.step)?r:0)},0)}function tN(e){var t;return null!=(t=e.parts)?t:[...e.toolInvocations?e.toolInvocations.map(e=>({type:"tool-invocation",toolInvocation:e})):[],...e.reasoning?[{type:"reasoning",reasoning:e.reasoning,details:[{type:"text",text:e.reasoning}]}]:[],...e.content?[{type:"text",text:e.content}]:[]]}function tD(e){return e.map(e=>({...e,parts:tN(e)}))}async function tC(e){if(!e)return[];if(globalThis.FileList&&e instanceof globalThis.FileList)return Promise.all(Array.from(e).map(async e=>{let{name:t,type:r}=e;return{name:t,contentType:r,url:await new Promise((t,r)=>{let n=new FileReader;n.onload=e=>{var r;t(null==(r=e.target)?void 0:r.result)},n.onerror=e=>r(e),n.readAsDataURL(e)})}}));if(Array.isArray(e))return e;throw Error("Invalid attachments type")}function tP(e){if("assistant"!==e.role)return!1;let t=e.parts.reduce((e,t,r)=>"step-start"===t.type?r:e,-1),r=e.parts.slice(t+1).filter(e=>"tool-invocation"===e.type);return r.length>0&&r.every(e=>"result"in e.toolInvocation)}Symbol.for("vercel.ai.schema");var tL=r(38806),tR=Object.prototype.hasOwnProperty;let tM=new WeakMap,tF=()=>{},tj=tF(),tB=Object,tU=e=>e===tj,tV=e=>"function"==typeof e,tz=(e,t)=>({...e,...t}),tq=e=>tV(e.then),tH={},tG={},tW="undefined",tK=typeof window!=tW,tZ=typeof document!=tW,tQ=tK&&"Deno"in window,t$=()=>tK&&typeof window.requestAnimationFrame!=tW,tY=(e,t)=>{let r=tM.get(e);return[()=>!tU(t)&&e.get(t)||tH,n=>{if(!tU(t)){let i=e.get(t);t in tG||(tG[t]=i),r[5](t,tz(i,n),i||tH)}},r[6],()=>!tU(t)&&t in tG?tG[t]:!tU(t)&&e.get(t)||tH]},tJ=!0,[tX,t0]=tK&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[tF,tF],t1={initFocus:e=>(tZ&&document.addEventListener("visibilitychange",e),tX("focus",e),()=>{tZ&&document.removeEventListener("visibilitychange",e),t0("focus",e)}),initReconnect:e=>{let t=()=>{tJ=!0,e()},r=()=>{tJ=!1};return tX("online",t),tX("offline",r),()=>{t0("online",t),t0("offline",r)}}},t2=!p.useId,t5=!tK||tQ,t3=e=>t$()?window.requestAnimationFrame(e):setTimeout(e,1),t4=t5?p.useEffect:p.useLayoutEffect,t6="undefined"!=typeof navigator&&navigator.connection,t9=!t5&&t6&&(["slow-2g","2g"].includes(t6.effectiveType)||t6.saveData),t8=new WeakMap,t7=(e,t)=>tB.prototype.toString.call(e)===`[object ${t}]`,re=0,rt=e=>{let t,r,n=typeof e,i=t7(e,"Date"),a=t7(e,"RegExp"),o=t7(e,"Object");if(tB(e)!==e||i||a)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=t8.get(e))return t;if(t=++re+"~",t8.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=rt(e[r])+",";t8.set(e,t)}if(o){t="#";let n=tB.keys(e).sort();for(;!tU(r=n.pop());)tU(e[r])||(t+=r+":"+rt(e[r])+",");t8.set(e,t)}}return t},rr=e=>{if(tV(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?rt(e):"",t]},rn=0,ri=()=>++rn;async function ra(...e){let[t,r,n,i]=e,a=tz({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,s=a.rollbackOnError,l=a.optimisticData,u=e=>"function"==typeof s?s(e):!1!==s,c=a.throwOnError;if(tV(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(d))}return d(r);async function d(r){let i,[s]=rr(r);if(!s)return;let[d,f]=tY(t,s),[h,p,m,g]=tM.get(t),_=()=>{let e=h[s];return(tV(a.revalidate)?a.revalidate(d().data,r):!1!==a.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return _();let y=n,v=ri();p[s]=[v,0];let b=!tU(l),w=d(),E=w.data,k=w._c,T=tU(k)?E:k;if(b&&f({data:l=tV(l)?l(T,E):l,_c:T}),tV(y))try{y=y(T)}catch(e){i=e}if(y&&tq(y)){if(y=await y.catch(e=>{i=e}),v!==p[s][0]){if(i)throw i;return y}i&&b&&u(i)&&(o=!0,f({data:T,_c:tj}))}if(o&&!i&&(tV(o)?f({data:o(y,T),error:tj,_c:tj}):f({data:y,error:tj,_c:tj})),p[s][1]=ri(),Promise.resolve(_()).then(()=>{f({_c:tj})}),i){if(c)throw i;return}return y}}let ro=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},rs=(e,t)=>{if(!tM.has(e)){let r=tz(t1,t),n=Object.create(null),i=ra.bind(tj,e),a=tF,o=Object.create(null),s=(e,t)=>{let r=o[e]||[];return o[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);let i=o[t];if(i)for(let e of i)e(r,n)},u=()=>{if(!tM.has(e)&&(tM.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,l,s]),!t5)){let t=r.initFocus(setTimeout.bind(tj,ro.bind(tj,n,0))),i=r.initReconnect(setTimeout.bind(tj,ro.bind(tj,n,1)));a=()=>{t&&t(),i&&i(),tM.delete(e)}}};return u(),[e,i,u,a]}return[e,tM.get(e)[4]]},[rl,ru]=rs(new Map),rc=tz({onLoadingSlow:tF,onSuccess:tF,onError:tF,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(tU(a)||!(o>a))&&setTimeout(n,s,i)},onDiscarded:tF,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:t9?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:t9?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(tR.call(t,n)&&++i&&!tR.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:rl,mutate:ru,fallback:{}},{isOnline:()=>tJ,isVisible:()=>{let e=tZ&&document.visibilityState;return tU(e)||"hidden"!==e}}),rd=(e,t)=>{let r=tz(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:o}=t;n&&a&&(r.use=n.concat(a)),i&&o&&(r.fallback=tz(i,o))}return r},rf=(0,p.createContext)({}),rh=tK&&window.__SWR_DEVTOOLS_USE__,rp=rh?window.__SWR_DEVTOOLS_USE__:[],rm=e=>tV(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],rg=()=>tz(rc,(0,p.useContext)(rf)),r_=rp.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=rr(t),[,,,i]=tM.get(rl);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return tU(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),ry=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};rh&&(window.__SWR_DEVTOOLS_REACT__=p);let rv=()=>{},rb=rv();new WeakMap;let rw=p.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),rE={dedupe:!0};tB.defineProperty(e=>{let{value:t}=e,r=(0,p.useContext)(rf),n=tV(t),i=(0,p.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,p.useMemo)(()=>n?i:rd(r,i),[n,r,i]),o=i&&i.provider,s=(0,p.useRef)(tj);o&&!s.current&&(s.current=rs(o(a.cache||rl),i));let l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),t4(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,p.createElement)(rf.Provider,tz(e,{value:a}))},"defaultValue",{value:rc});let rk=(a=(e,t,r)=>{let{cache:n,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:f}=r,[h,m,g,_]=tM.get(n),[y,v]=rr(e),b=(0,p.useRef)(!1),w=(0,p.useRef)(!1),E=(0,p.useRef)(y),k=(0,p.useRef)(t),T=(0,p.useRef)(r),S=()=>T.current,x=()=>S().isVisible()&&S().isOnline(),[A,I,O,N]=tY(n,y),D=(0,p.useRef)({}).current,C=tU(o)?tU(r.fallback)?tj:r.fallback[y]:o,P=(e,t)=>{for(let r in D)if("data"===r){if(!i(e[r],t[r])&&(!tU(e[r])||!i(z,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},L=(0,p.useMemo)(()=>{let e=!!y&&!!t&&(tU(s)?!S().isPaused()&&!a&&!1!==l:s),r=t=>{let r=tz(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=A(),i=N(),o=r(n),u=n===i?o:r(i),c=o;return[()=>{let e=r(A());return P(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>u]},[n,y]),R=(0,tL.useSyncExternalStore)((0,p.useCallback)(e=>O(y,(t,r)=>{P(r,t)||e()}),[n,y]),L[0],L[1]),M=!b.current,F=h[y]&&h[y].length>0,j=R.data,B=tU(j)?C&&tq(C)?rw(C):C:j,U=R.error,V=(0,p.useRef)(B),z=f?tU(j)?tU(V.current)?B:V.current:j:B,q=(!F||!!tU(U))&&(M&&!tU(s)?s:!S().isPaused()&&(a?!tU(B)&&l:tU(B)||l)),H=!!(y&&t&&M&&q),G=tU(R.isValidating)?H:R.isValidating,W=tU(R.isLoading)?H:R.isLoading,K=(0,p.useCallback)(async e=>{let t,n,a=k.current;if(!y||!a||w.current||S().isPaused())return!1;let o=!0,s=e||{},l=!g[y]||!s.dedupe,u=()=>t2?!w.current&&y===E.current&&b.current:y===E.current,c={isValidating:!1,isLoading:!1},d=()=>{I(c)},f=()=>{let e=g[y];e&&e[1]===n&&delete g[y]},p={isValidating:!0};tU(A().data)&&(p.isLoading=!0);try{if(l&&(I(p),r.loadingTimeout&&tU(A().data)&&setTimeout(()=>{o&&u()&&S().onLoadingSlow(y,r)},r.loadingTimeout),g[y]=[a(v),ri()]),[t,n]=g[y],t=await t,l&&setTimeout(f,r.dedupingInterval),!g[y]||g[y][1]!==n)return l&&u()&&S().onDiscarded(y),!1;c.error=tj;let e=m[y];if(!tU(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return d(),l&&u()&&S().onDiscarded(y),!1;let s=A().data;c.data=i(s,t)?s:t,l&&u()&&S().onSuccess(t,y,r)}catch(r){f();let e=S(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,l&&u()&&(e.onError(r,y,e),(!0===t||tV(t)&&t(r))&&(!S().revalidateOnFocus||!S().revalidateOnReconnect||x())&&e.onErrorRetry(r,y,e,e=>{let t=h[y];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,d(),!0},[y,n]),Z=(0,p.useCallback)((...e)=>ra(n,E.current,...e),[]);if(t4(()=>{k.current=t,T.current=r,tU(j)||(V.current=j)}),t4(()=>{if(!y)return;let e=K.bind(tj,rE),t=0;S().revalidateOnFocus&&(t=Date.now()+S().focusThrottleInterval);let r=ry(y,h,(r,n={})=>{if(0==r){let r=Date.now();S().revalidateOnFocus&&r>t&&x()&&(t=r+S().focusThrottleInterval,e())}else if(1==r)S().revalidateOnReconnect&&x()&&e();else if(2==r)return K();else if(3==r)return K(n)});return w.current=!1,E.current=y,b.current=!0,I({_k:v}),q&&(tU(B)||t5?e():t3(e)),()=>{w.current=!0,r()}},[y]),t4(()=>{let e;function t(){let t=tV(u)?u(A().data):u;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!A().error&&(c||S().isVisible())&&(d||S().isOnline())?K(rE).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[u,c,d,y]),(0,p.useDebugValue)(z),a&&tU(B)&&y){if(!t2&&t5)throw Error("Fallback data is required when using Suspense in SSR.");k.current=t,T.current=r,w.current=!1;let e=_[y];if(tU(e)||rw(Z(e)),tU(U)){let e=K(rE);tU(z)||(e.status="fulfilled",e.value=!0),rw(e)}else throw U}return{mutate:Z,get data(){return D.data=!0,z},get error(){return D.error=!0,U},get isValidating(){return D.isValidating=!0,G},get isLoading(){return D.isLoading=!0,W}}},function(...e){let t=rg(),[r,n,i]=rm(e),o=rd(t,i),s=a,{use:l}=o,u=(l||[]).concat(r_);for(let e=u.length;e--;)s=u[e](s);return s(r,n||o.fetcher||null,o)});var rT=r(66253);function rS(e,t){return null!=t?rT(e,t):e}var rx=r(16619),rA=r(58011);let rI=e=>{let t=new DataTransfer;return e.forEach(e=>t.items.add(e)),t.files},rO=()=>{let e=(0,p.useRef)(!1),{messages:t,input:r,handleInputChange:n,handleSubmit:i,isLoading:a,error:o,status:s,setMessages:l,stop:u,reload:c,append:d}=function({api:e="/api/chat",id:t,initialMessages:r,initialInput:n="",sendExtraMessageFields:i,onToolCall:a,experimental_prepareRequestBody:o,maxSteps:s=1,streamProtocol:l="data",onResponse:u,onFinish:c,onError:d,credentials:f,headers:h,body:m,generateId:g=G,fetch:_,keepLastMessageOnError:y=!0,experimental_throttle:v}={}){let[b]=(0,p.useState)(g),w=null!=t?t:b,E="string"==typeof e?[e,w]:w,k=function(e){let[t,r]=(0,p.useState)(e);return(0,p.useEffect)(()=>{!function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if("object"!=typeof t&&"object"!=typeof r)return t===r;if(t.constructor!==r.constructor)return!1;if(t instanceof Date&&r instanceof Date)return t.getTime()===r.getTime();if(Array.isArray(t)){if(t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],r[n]))return!1;return!0}let n=Object.keys(t),i=Object.keys(r);if(n.length!==i.length)return!1;for(let a of n)if(!i.includes(a)||!e(t[a],r[a]))return!1;return!0}(e,t)&&r(e)},[e,t]),t}(null!=r?r:[]),{data:T,mutate:S}=rk([E,"messages"],null,{fallbackData:(0,p.useMemo)(()=>tD(k),[k])}),x=(0,p.useRef)(T||[]);(0,p.useEffect)(()=>{x.current=T||[]},[T]);let{data:A,mutate:I}=rk([E,"streamData"],null),O=(0,p.useRef)(A);(0,p.useEffect)(()=>{O.current=A},[A]);let{data:N="ready",mutate:D}=rk([E,"status"],null),{data:C,mutate:P}=rk([E,"error"],null),L=(0,p.useRef)(null),R=(0,p.useRef)({credentials:f,headers:h,body:m});(0,p.useEffect)(()=>{R.current={credentials:f,headers:h,body:m}},[f,h,m]);let M=(0,p.useCallback)(async(t,r="generate")=>{var n,f;D("submitted"),P(void 0);let h=tD(t.messages),p=h.length,m=tO(null==(n=h[h.length-1])?void 0:n.toolInvocations);try{L.current=new AbortController;let n=rS(S,v),s=rS(I,v),d=x.current;n(h,!1);let p=i?h:h.map(({role:e,content:t,experimental_attachments:r,data:n,annotations:i,toolInvocations:a,parts:o})=>({role:e,content:t,...void 0!==r&&{experimental_attachments:r},...void 0!==n&&{data:n},...void 0!==i&&{annotations:i},...void 0!==a&&{toolInvocations:a},...void 0!==o&&{parts:o}})),m=O.current;await tI({api:e,body:null!=(f=null==o?void 0:o({id:w,messages:h,requestData:t.data,requestBody:t.body}))?f:{id:w,messages:p,data:t.data,...R.current.body,...t.body},streamProtocol:l,credentials:R.current.credentials,headers:{...R.current.headers,...t.headers},abortController:()=>L.current,restoreMessagesOnFailure(){y||n(d,!1)},onResponse:u,onUpdate({message:e,data:t,replaceLastMessage:r}){D("streaming"),n([...r?h.slice(0,h.length-1):h,e],!1),(null==t?void 0:t.length)&&s([...null!=m?m:[],...t],!1)},onToolCall:a,onFinish:c,generateId:g,fetch:_,lastMessage:h[h.length-1],requestType:r}),L.current=null,D("ready")}catch(e){if("AbortError"===e.name)return L.current=null,D("ready"),null;d&&e instanceof Error&&d(e),P(e),D("error")}let b=x.current;(function({originalMaxToolInvocationStep:e,originalMessageCount:t,maxSteps:r,messages:n}){var i;let a=n[n.length-1];return r>1&&null!=a&&(n.length>t||tO(a.toolInvocations)!==e)&&tP(a)&&(null!=(i=tO(a.toolInvocations))?i:0)<r})({originalMaxToolInvocationStep:m,originalMessageCount:p,maxSteps:s,messages:b})&&await M({messages:b})},[S,D,e,R,u,c,d,P,I,O,l,i,o,a,s,x,L,g,_,y,v,w]),F=(0,p.useCallback)(async(e,{data:t,headers:r,body:n,experimental_attachments:i=e.experimental_attachments}={})=>{var a,o;let s=await tC(i);return M({messages:x.current.concat({...e,id:null!=(a=e.id)?a:g(),createdAt:null!=(o=e.createdAt)?o:new Date,experimental_attachments:s.length>0?s:void 0,parts:tN(e)}),headers:r,body:n,data:t})},[M,g]),j=(0,p.useCallback)(async({data:e,headers:t,body:r}={})=>{let n=x.current;return 0===n.length?null:M({messages:"assistant"===n[n.length-1].role?n.slice(0,-1):n,headers:t,body:r,data:e})},[M]),B=(0,p.useCallback)(()=>{L.current&&(L.current.abort(),L.current=null)},[]),U=(0,p.useCallback)(async()=>{M({messages:x.current},"resume")},[M]),V=(0,p.useCallback)(e=>{"function"==typeof e&&(e=e(x.current));let t=tD(e);S(t,!1),x.current=t},[S]),z=(0,p.useCallback)(e=>{"function"==typeof e&&(e=e(O.current)),I(e,!1),O.current=e},[I]),[q,H]=(0,p.useState)(n),W=(0,p.useCallback)(async(e,t={},r)=>{var n;if(null==(n=null==e?void 0:e.preventDefault)||n.call(e),!q&&!t.allowEmptySubmit)return;r&&(R.current={...R.current,...r});let i=await tC(t.experimental_attachments);M({messages:x.current.concat({id:g(),createdAt:new Date,role:"user",content:q,experimental_attachments:i.length>0?i:void 0,parts:[{type:"text",text:q}]}),headers:t.headers,body:t.body,data:t.data}),H("")},[q,g,M]),K=(0,p.useCallback)(({toolCallId:e,result:t})=>{let r=x.current;!function({messages:e,toolCallId:t,toolResult:r}){var n;let i=e[e.length-1],a=i.parts.find(e=>"tool-invocation"===e.type&&e.toolInvocation.toolCallId===t);if(null==a)return;let o={...a.toolInvocation,state:"result",result:r};a.toolInvocation=o,i.toolInvocations=null==(n=i.toolInvocations)?void 0:n.map(e=>e.toolCallId===t?o:e)}({messages:r,toolCallId:e,toolResult:t}),S([...r.slice(0,r.length-1),{...r[r.length-1]}],!1),"submitted"!==N&&"streaming"!==N&&tP(r[r.length-1])&&M({messages:r})},[S,N,M]);return{messages:null!=T?T:[],id:w,setMessages:V,data:A,setData:z,error:C,append:F,reload:j,stop:B,experimental_resume:U,input:q,setInput:H,handleInputChange:e=>{H(e.target.value)},handleSubmit:W,isLoading:"submitted"===N||"streaming"===N,status:N,addToolResult:K}}({streamProtocol:"data",maxSteps:5,credentials:"include",api:"http://localhost:3010/chat",initialMessages:rx.K.loadMessages(),onError:e=>{var t;if(console.error("Chat error:",e),null==(t=e.message)?void 0:t.includes("fetch")){let e={id:"error-".concat(Date.now()),role:"assistant",content:"\uD83D\uDEAB **Connection Error**\n\nCannot connect to the chat API server at `localhost:4010`.\n\n**This app uses static export mode, so API routes are disabled.**\n\n**To enable chat functionality:**\n1. Start the proper chat API server on localhost:4010\n2. The server should implement the AI SDK streaming format\n3. Include tool calling for product management\n\n**Current status:**\n- Chat interface: ✅ Ready\n- Backend integration: ❌ Required\n\n*Please set up the backend chat service to use this feature.*"};l(t=>[...t,e])}}});return(0,p.useEffect)(()=>{rx.K.saveMessages(t)},[t]),{messages:t,input:r,handleInputChange:n,handleSubmit:async(e,t)=>{e.preventDefault(),t&&(null==t?void 0:t.length)>0?await i(e,{experimental_attachments:rI(t)}):await i(e)},isLoading:a,error:o,status:s,clearHistory:()=>{l([]),rx.K.clearMessages(),e.current=!1},stop:u,addInterruptionMessage:e=>{let t=rA.W.createInterruptionMessage(e);l(e=>[...e,t])},reload:c}}},16619:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});let n="copilot-chat-history",i={loadMessages(){try{let e=localStorage.getItem(n);return(e?JSON.parse(e):[]).filter(e=>"assistant"!==e.role||!e.parts||!e.parts.some(e=>"tool-invocation"===e.type&&e.toolInvocation&&(!e.toolInvocation.result||"call"===e.toolInvocation.state)))}catch(e){return console.error("Error loading chat history:",e),[]}},saveMessages(e){if(e&&0!==e.length)try{localStorage.setItem(n,JSON.stringify(e))}catch(e){console.error("Error saving chat history:",e)}},clearMessages(){try{localStorage.removeItem(n)}catch(e){console.error("Error clearing chat history:",e)}}}},17070:(e,t,r)=>{"use strict";r.d(t,{D_:()=>o,cM:()=>l,ep:()=>s,tQ:()=>u});var n=r(4902),i=r(80593),a={};function o(e,t){a[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,r,o,s;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,i.v[t]||r]})),sizes:(0,n.__assign)({print:null==(e=a.print)?void 0:e.call(a),parser:null==(t=a.parser)?void 0:t.call(a),canonicalStringify:null==(r=a.canonicalStringify)?void 0:r.call(a),links:function e(t){var r;return t?(0,n.__spreadArray)((0,n.__spreadArray)([null==(r=null==t?void 0:t.getMemoryInternals)?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(f):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:h(this.queryManager.documentTransform)}},null==(s=(o=this.cache).getMemoryInternals)?void 0:s.call(o))}}:void 0,l=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,n.__assign)((0,n.__assign)({},c.apply(this)),{addTypenameDocumentTransform:h(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:d(this.storeReader.executeSelectionSet),executeSubSelectedArray:d(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:d(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:d(null==e?void 0:e.findFragmentSpreads),lookup:d(null==e?void 0:e.lookup),transform:d(null==e?void 0:e.transform)}})}:void 0,u=!1!==globalThis.__DEV__?c:void 0;function c(){return{cache:{fragmentQueryDocuments:d(this.getFragmentDoc)}}}function d(e){return e&&"dirtyKey"in e?e.size:void 0}function f(e){return null!=e}function h(e){return(function e(t){return t?(0,n.__spreadArray)((0,n.__spreadArray)([d(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(f):[]})(e).map(function(e){return{cache:e}})}},17318:(e,t,r)=>{"use strict";r.d(t,{Sf:()=>p,V1:()=>_,no:()=>h,vA:()=>y});var n=r(4902),i="Invariant Violation",a=Object.setPrototypeOf,o=void 0===a?function(e,t){return e.__proto__=t,e}:a,s=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,o(n,t.prototype),n}return(0,n.__extends)(t,e),t}(Error);function l(e,t){if(!e)throw new s(t)}var u=["debug","log","warn","error","silent"],c=u.indexOf("log");function d(e){return function(){if(u.indexOf(e)>=c)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(l||(l={}));var f=r(84918);function h(e){try{return e()}catch(e){}}let p=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return global})||h(function(){return h.constructor("return this")()});var m=r(62091);function g(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=w(i))||(t=E(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var _=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||l(e,w(t,r)||E(t,r))},{debug:g(l.debug),log:g(l.log),warn:g(l.warn),error:g(l.error)});function y(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new s(w(e,t)||E(e,t))}var v=Symbol.for("ApolloErrorMessageHandler_"+f.r);function b(e){if("string"==typeof e)return e;try{return(0,m.p)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function w(e,t){if(void 0===t&&(t=[]),e)return p[v]&&p[v](e,t.map(b))}function E(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:f.r,message:e,args:t.map(b)})))}globalThis.__DEV__},18659:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},18877:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(4902),i=r(79760);function a(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,n.__assign)((0,n.__assign)({},e&&e.variables),t.variables))})}},19124:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4902),i=r(77262),a=r(20583),o=r(87560),s=n.__importDefault(r(31774)),l=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.RelativeTimeFormat must be called with 'new'");return(0,a.InitializeRelativeTimeFormat)(this,t,r,{getInternalSlots:s.default,availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale})}return e.prototype.format=function(e,t){if("object"!=typeof this)throw TypeError("format was called on a non-object");if(!(0,s.default)(this).initializedRelativeTimeFormat)throw TypeError("format was called on a invalid context");return(0,o.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:s.default}).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(e,t){if("object"!=typeof this)throw TypeError("formatToParts was called on a non-object");if(!(0,s.default)(this).initializedRelativeTimeFormat)throw TypeError("formatToParts was called on a invalid context");return(0,o.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:s.default})},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw TypeError("resolvedOptions was called on a non-object");var e=(0,s.default)(this);if(!e.initializedRelativeTimeFormat)throw TypeError("resolvedOptions was called on a invalid context");return{locale:e.locale,style:e.style,numeric:e.numeric,numberingSystem:e.numberingSystem}},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,o=i.locale,s=new Intl.Locale(o).minimize().toString();e.localeData[o]=e.localeData[s]=a,e.availableLocales.add(s),e.availableLocales.add(o),e.__defaultLocale||(e.__defaultLocale=s)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e}();t.default=l;try{"undefined"!=typeof Symbol&&Object.defineProperty(l.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},19221:(e,t,r)=>{"use strict";r.d(t,{a:()=>u});var n=r(4902),i=r(20996),a=r(45813),o=r(68922),s=r(71211),l=r(58851);function u(e,t,r,u){var d=t.data,f=(0,n.__rest)(t,["data"]),h=r.data,p=(0,n.__rest)(r,["data"]);return(0,i.A)(f,p)&&function e(t,r,n,a){if(r===n)return!0;var u=new Set;return t.selections.every(function(t){if(u.has(t)||(u.add(t),!(0,s.MS)(t,a.variables)||c(t)))return!0;if((0,l.dt)(t)){var d=(0,l.ue)(t),f=r&&r[d],h=n&&n[d],p=t.selectionSet;if(!p)return(0,i.A)(f,h);var m=Array.isArray(f),g=Array.isArray(h);if(m!==g)return!1;if(m&&g){var _=f.length;if(h.length!==_)return!1;for(var y=0;y<_;++y)if(!e(p,f[y],h[y],a))return!1;return!0}return e(p,f,h,a)}var v=(0,o.HQ)(t,a.fragmentMap);if(v)return!!c(v)||e(v.selectionSet,r,n,a)})}((0,a.Vn)(e).selectionSet,d,h,{fragmentMap:(0,o.JG)((0,a.zK)(e)),variables:u})}function c(e){return!!e.directives&&e.directives.some(d)}function d(e){return"nonreactive"===e.name.value}},20583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializeRelativeTimeFormat=function(e,t,r,o){var s=o.getInternalSlots,l=o.availableLocales,u=o.relevantExtensionKeys,c=o.localeData,d=o.getDefaultLocale,f=s(e);f.initializedRelativeTimeFormat=!0;var h=(0,n.CanonicalizeLocaleList)(t),p=Object.create(null),m=(0,n.CoerceOptionsToObject)(r);p.localeMatcher=(0,n.GetOption)(m,"localeMatcher","string",["best fit","lookup"],"best fit");var g=(0,n.GetOption)(m,"numberingSystem","string",void 0,void 0);if(void 0!==g&&!a.test(g))throw RangeError("Invalid numbering system ".concat(g));p.nu=g;var _=(0,i.ResolveLocale)(l,h,p,u,c,d),y=_.locale,v=_.nu;f.locale=y,f.style=(0,n.GetOption)(m,"style","string",["long","narrow","short"],"long"),f.numeric=(0,n.GetOption)(m,"numeric","string",["always","auto"],"always");var b=c[_.dataLocale];return(0,n.invariant)(!!b,"Missing locale data for ".concat(_.dataLocale)),f.fields=b,f.numberFormat=(0,n.createMemoizedNumberFormat)(t),f.pluralRules=(0,n.createMemoizedPluralRules)(t),f.numberingSystem=v,e};var n=r(77262),i=r(83792),a=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i},20996:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,L:()=>s});let{toString:n,hasOwnProperty:i}=Object.prototype,a=Function.prototype.toString,o=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;let o=n.call(t);if(o!==n.call(r))return!1;switch(o){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(f(t,r))return!0;let n=u(t),a=u(r),o=n.length;if(o!==a.length)return!1;for(let e=0;e<o;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<o;++i){let a=n[i];if(!e(t[a],r[a]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(f(t,r))return!0;let n=t.entries(),i="[object Map]"===o;for(;;){let t=n.next();if(t.done)break;let[a,o]=t.value;if(!r.has(a)||i&&!e(o,r.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=a.call(t);if(e!==a.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,d)}}return!1}(e,t)}finally{o.clear()}}let l=s;function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}let d="{ [native code] }";function f(e,t){let r=o.get(e);if(r){if(r.has(t))return!0}else o.set(e,r=new Set);return r.add(t),!1}},21500:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(93957);function i(e){var t;return!1!==globalThis.__DEV__&&(t=new Set([e])).forEach(function(e){(0,n.U)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.U)(e[r])&&t.add(e[r])})}),e}},22249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingularRelativeTimeUnit=function(e){if((0,n.invariant)("String"===(0,n.Type)(e),"unit must be a string"),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw RangeError("invalid unit");return e};var n=r(77262)},23045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializePluralRules=function(e,t,r,a){var o=a.availableLocales,s=a.relevantExtensionKeys,l=a.localeData,u=a.getDefaultLocale,c=a.getInternalSlots,d=(0,n.CanonicalizeLocaleList)(t),f=Object.create(null),h=(0,n.CoerceOptionsToObject)(r),p=c(e);return p.initializedPluralRules=!0,f.localeMatcher=(0,n.GetOption)(h,"localeMatcher","string",["best fit","lookup"],"best fit"),p.locale=(0,i.ResolveLocale)(o,d,f,s,l,u).locale,p.type=(0,n.GetOption)(h,"type","string",["cardinal","ordinal"],"cardinal"),(0,n.SetNumberFormatDigitOptions)(p,h,0,3,"standard"),e};var n=r(77262),i=r(83792)},23520:(e,t,r)=>{"use strict";var n=r(97225),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?o:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var o=c(r);d&&(o=o.concat(d(r)));for(var s=l(t),m=l(r),g=0;g<o.length;++g){var _=o[g];if(!a[_]&&!(n&&n[_])&&!(m&&m[_])&&!(s&&s[_])){var y=f(r,_);try{u(t,_,y)}catch(e){}}}}return t}},26352:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a});var n=r(14232),i=r(44727);function a(e){let t=(0,n.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},26382:(e,t,r)=>{"use strict";r.d(t,{$x:()=>o,Ei:()=>l,IF:()=>a,O4:()=>n,Zo:()=>s});var n,i=r(4902);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),o=function(e){function t(t,r,i,a){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,a)||this}return(0,i.__extends)(t,e),t}(a),s=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.__extends)(t,e),t}(a)},26593:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(96427),i=r(79350),a=r(54431);function o(){let e=(0,n._)(["\n query ShopInfo {\n shopInfo {\n _id\n version\n language {\n _id\n isoCode\n name\n }\n country {\n _id\n isoCode\n flagEmoji\n name\n defaultCurrency {\n _id\n isoCode\n }\n }\n chatEnabled\n adminUiConfig {\n singleSignOnURL\n externalLinks {\n href\n title\n target\n }\n customProperties {\n entityName\n inlineFragment\n }\n }\n }\n }\n"]);return o=function(){return e},e}let s=(0,i.J1)(o()),l=()=>{let{data:e,loading:t,error:r}=(0,a.IT)(s,{fetchPolicy:"cache-first"});return{shopInfo:null==e?void 0:e.shopInfo,loading:t,error:r}}},26828:(e,t,r)=>{"use strict";r.d(t,{M:()=>s});var n,i=r(95682),a=r(80593),o=r(17070),s=Object.assign(function(e){return JSON.stringify(e,l)},{reset:function(){n=new i.V(a.v.canonicalStringify||1e3)}});function l(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var i=Object.keys(t);if(i.every(u))return t;var a=JSON.stringify(i),o=n.get(a);if(!o){i.sort();var s=JSON.stringify(i);o=n.get(s)||i,n.set(a,o),n.set(s,o)}var l=Object.create(r);return o.forEach(function(e){l[e]=t[e]}),l}}return t}function u(e,t,r){return 0===t||r[t-1]<=e}!1!==globalThis.__DEV__&&(0,o.D_)("canonicalStringify",function(){return n.size}),s.reset()},27721:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(14232),i=r(26352);let a=function(e){let t=(0,i.Y)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},28327:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(14232),i=r(94517),a=r(87082),o=r(27721);function s(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.useRef)(null),[r,s]=(0,n.useState)(!1),l=(0,a.L)(),u=(0,o._)(()=>{t.current=null,s(!1),l.dispose()}),c=(0,o._)(e=>{if(l.dispose(),null===t.current){t.current=e.currentTarget,s(!0);{let r=(0,i.T)(e.currentTarget);l.addEventListener(r,"pointerup",u,!1),l.addEventListener(r,"pointermove",e=>{if(t.current){var r,n;let i,a;s((i=e.width/2,a=e.height/2,r={top:e.clientY-a,right:e.clientX+i,bottom:e.clientY+a,left:e.clientX-i},n=t.current.getBoundingClientRect(),!(!r||!n||r.right<n.left||r.left>n.right||r.bottom<n.top||r.top>n.bottom)))}},!1),l.addEventListener(r,"pointercancel",u,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}},29429:(e,t,r)=>{"use strict";var n=r(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},31026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(14232);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(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)},31774:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},32439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(72687),i=r(63732),a=r(37876),o=i._(r(14232)),s=n._(r(98477)),l=n._(r(89836)),u=r(84915),c=r(26904),d=r(90072);r(60546);let f=r(98265),h=n._(r(83829)),p=r(31026),m={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 g(e,t,r,n,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function _(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:m,unoptimized:y,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:E,setShowAltText:k,sizesInput:T,onLoad:S,onError:x,...A}=e,I=(0,o.useCallback)(e=>{e&&(x&&(e.src=e.src),e.complete&&g(e,h,b,w,E,y,T))},[r,h,b,w,E,x,y,T]),O=(0,p.useMergedRef)(t,I);return(0,a.jsx)("img",{...A,..._(f),loading:m,width:l,height:s,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:O,onLoad:e=>{g(e.currentTarget,h,b,w,E,y,T)},onError:e=>{k(!0),"empty"!==h&&E(!0),x&&x(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,..._(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(f.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:a}},[n]),{onLoad:s,onLoadingComplete:l}=e,p=(0,o.useRef)(s);(0,o.useEffect)(()=>{p.current=s},[s]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[_,b]=(0,o.useState)(!1),[w,E]=(0,o.useState)(!1),{props:k,meta:T}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:_,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...k,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:E,sizesInput:e.sizes,ref:t}),T.priority?(0,a.jsx)(v,{isAppRouter:!r,imgAttributes:k}):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)},32482:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function i(e){return n(e)&&"tagName"in e}function a(e){return i(e)&&"accessKey"in e}function o(e){return i(e)&&"tabIndex"in e}function s(e){return i(e)&&"style"in e}function l(e){return a(e)&&"IFRAME"===e.nodeName}function u(e){return a(e)&&"INPUT"===e.nodeName}function c(e){return a(e)&&"LABEL"===e.nodeName}function d(e){return a(e)&&"FIELDSET"===e.nodeName}function f(e){return a(e)&&"LEGEND"===e.nodeName}function h(e){return!!i(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}r.d(t,{A3:()=>u,Er:()=>d,Gu:()=>l,H5:()=>h,Jb:()=>f,Lk:()=>o,Ll:()=>n,kS:()=>c,pv:()=>s,sb:()=>a})},35518:(e,t,r)=>{"use strict";r.d(t,{U:()=>y,y:()=>b});var n=r(4902),i=r(17318),a=r(20996),o=r(66434),s=r(45813),l=r(79760),u=r(54962),c=r(53975),d=r(15072),f=r(36974),h=r(83070),p=r(19221),m=r(63965),g=Object.assign,_=Object.hasOwnProperty,y=function(e){function t(r){var i=r.queryManager,a=r.queryInfo,o=r.options,l=this,u=t.inactiveOnCreation.getValue();(l=e.call(this,function(e){u&&(i.queries.set(l.queryId,a),u=!1);try{var t=e._subscription._observer;t&&!t.error&&(t.error=v)}catch(e){}var r=!l.observers.size;l.observers.add(e);var n=l.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(l.maskResult(n.result)),r&&l.reobserve().catch(function(){}),function(){l.observers.delete(e)&&!l.observers.size&&l.tearDownQuery()}})||this).observers=new Set,l.subscriptions=new Set,l.dirty=!1,l.queryInfo=a,l.queryManager=i,l.waitForOwnResult=w(o.fetchPolicy),l.isTornDown=!1,l.subscribeToMore=l.subscribeToMore.bind(l),l.maskResult=l.maskResult.bind(l);var c=i.defaultOptions.watchQuery,d=(void 0===c?{}:c).fetchPolicy,f=void 0===d?"cache-first":d,h=o.fetchPolicy,p=void 0===h?f:h,m=o.initialFetchPolicy,g=void 0===m?"standby"===p?f:p:m;l.options=(0,n.__assign)((0,n.__assign)({},o),{initialFetchPolicy:g,fetchPolicy:p}),l.queryId=a.queryId||i.generateQueryId();var _=(0,s.Vu)(l.query);return l.queryName=_&&_.name&&_.name.value,l}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||o.pT.ready,i=(0,n.__assign)((0,n.__assign)({},t),{loading:(0,o.bi)(r),networkStatus:r}),s=this.options.fetchPolicy,l=void 0===s?"cache-first":s;if(w(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),(0,a.L)(i.data,{})&&(i.data=void 0),u.complete?(delete i.partial,u.complete&&i.networkStatus===o.pT.loading&&("cache-first"===l||"cache-only"===l)&&(i.networkStatus=o.pT.ready,i.loading=!1)):i.partial=!0,i.networkStatus===o.pT.ready&&(i.error||i.errors)&&(i.networkStatus=o.pT.error),!1===globalThis.__DEV__||u.complete||this.options.partialRefetch||i.loading||i.data||i.error||b(u.missing)}return e&&this.updateLastResult(i),i},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,i=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!(0,p.a)(i,this.last.result,e,this.variables):!(0,a.L)(this.last.result,e))||t&&!(0,a.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,a.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0};if("no-cache"===this.options.fetchPolicy?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&_.call(e,"variables")){var l=(0,s.AT)(this.query),u=l.variableDefinitions;u&&u.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||i.V1.warn(21,e,(null==(t=l.name)?void 0:t.value)||l)}return e&&!(0,a.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.__assign)((0,n.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,o.pT.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e.query?e:(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,n.__assign)((0,n.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var a=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var s=this.queryInfo,l=s.networkStatus;s.networkStatus=o.pT.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=null==e?void 0:e.updateQuery,d="no-cache"!==this.options.fetchPolicy;return d||(0,i.V1)(c,22),this.queryManager.fetchQuery(a,r,o.pT.fetchMore).then(function(i){if(t.queryManager.removeQuery(a),s.networkStatus===o.pT.fetchMore&&(s.networkStatus=l),d)t.queryManager.cache.batch({update:function(n){var a=e.updateQuery;a?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return a(e,{fetchMoreResult:i.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:i.data})},onWatchUpdated:function(e){u.add(e.query)}});else{var f=t.getLast("result"),h=c(f.data,{fetchMoreResult:i.data,variables:r.variables});t.reportResult((0,n.__assign)((0,n.__assign)({},f),{networkStatus:l,loading:(0,o.bi)(l),data:h}),t.variables)}return t.maskResult(i)}).finally(function(){d&&!u.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var i=e.updateQuery;i&&t.updateQuery(function(e,t){return i(e,(0,n.__assign)({subscriptionData:r},t))})},error:function(t){if(e.onError)return void e.onError(t);!1!==globalThis.__DEV__&&i.V1.error(23,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,l.o)(this.options,e||{});g(this.options,t)},t.prototype.setVariables=function(e){return(0,a.L)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},o.pT.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,i=r.complete,a=e(n,{variables:this.variables,complete:!!i,previousData:n});a&&(t.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,a=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:a}):"variables-changed"===e?t.fetchPolicy=a:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){var n=this.queryManager.getOrCreateQuery(this.queryId);return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,i.V1)(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,o.bi)(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?a():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},o.pT.poll).then(a,a))},a=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};a()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,a.L)(t,this.last.variables)&&(r=void 0),this.last=(0,n.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,u.m)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===o.pT.refetch||t===o.pT.fetchMore||t===o.pT.poll,s=this.options.variables,u=this.options.fetchPolicy,c=(0,l.o)(this.options,e||{}),d=i?c:g(this.options,c),f=this.transformDocument(d.query);this.lastQuery=f,!i&&(this.updatePolling(),e&&e.variables&&!(0,a.L)(e.variables,s)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===u||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===t&&(t=o.pT.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=w(d.fetchPolicy));var p=function(){r.concast===y&&(r.waitForOwnResult=!1)},m=d.variables&&(0,n.__assign)({},d.variables),_=this.fetch(d,t,f),y=_.concast,v=_.fromLink,b={next:function(e){(0,a.L)(r.variables,m)&&(p(),r.reportResult(e,m))},error:function(e){(0,a.L)(r.variables,m)&&((0,h.Mn)(e)||(e=new h.K4({networkError:e})),p(),r.reportError(e,m))}};return i||!v&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=b),y.addObserver(b),y},t.prototype.reobserve=function(e,t){var r;return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),r},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&(0,c.w)(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=(0,n.__assign)((0,n.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:o.pT.error,loading:!1});this.updateLastResult(r,t),(0,c.w)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,n.__assign)((0,n.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!(0,o.bi)(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,n):t}}):this.reobserve()},t.inactiveOnCreation=new m.DX,t}(d.c);function v(e){!1!==globalThis.__DEV__&&i.V1.error(25,e.message,e.stack)}function b(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.V1.debug(26,e)}function w(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,f.r)(y)},35785:(e,t,r)=>{"use strict";r.d(t,{E:()=>i,c:()=>n});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},36607:(e,t,r)=>{"use strict";r.d(t,{M:()=>d});var n=r(12473),i=r(82505),a=r(86962),o=r(14232);let s=!1,l=0;function u(e){"touch"===e.pointerType&&(s=!0,setTimeout(()=>{s=!1},50))}function c(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",u),l++,()=>{--l>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:l,isDisabled:u}=e,[d,f]=(0,o.useState)(!1),h=(0,o.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,o.useEffect)(c,[]);let{addGlobalListener:p,removeAllGlobalListeners:m}=(0,n.A)(),{hoverProps:g,triggerHoverEnd:_}=(0,o.useMemo)(()=>{let e=(e,o)=>{if(h.pointerType=o,u||"touch"===o||h.isHovered||!e.currentTarget.contains(e.target))return;h.isHovered=!0;let s=e.currentTarget;h.target=s,p((0,i.TW)(e.target),"pointerover",e=>{h.isHovered&&h.target&&!(0,a.sD)(h.target,e.target)&&n(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:o}),r&&r(!0),f(!0)},n=(e,t)=>{let n=h.target;h.pointerType="",h.target=null,"touch"!==t&&h.isHovered&&n&&(h.isHovered=!1,m(),l&&l({type:"hoverend",target:n,pointerType:t}),r&&r(!1),f(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=t=>{s&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!u&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}),{hoverProps:o,triggerHoverEnd:n}},[t,r,l,u,h,p,m]);return(0,o.useEffect)(()=>{u&&_({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:g,isHovered:d}}},36898:(e,t,r)=>{"use strict";function n(){}r.d(t,{C:()=>i});class i{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},36974:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(15072),i=r(80542);function a(e){function t(t){Object.defineProperty(e,t,{value:n.c})}return i.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},37154:(e,t,r)=>{"use strict";r.d(t,{HM:()=>o,JF:()=>s,SP:()=>c,bN:()=>f,yU:()=>d});var n=r(4902),i=r(14232),a=r(83933);function o(e){var t;if(void 0===t&&(t=Error),!e)throw new t("[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var s=(0,n.__assign)((0,n.__assign)({},a.JF),{textComponent:i.Fragment}),l={key:42},u=function(e){return i.isValidElement(e)?i.createElement(i.Fragment,l,e):e},c=function(e){var t;return null!=(t=i.Children.map(e,u))?t:[]};function d(e){return function(t){return e(i.Children.toArray(t))}}function f(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a<i;a++){var o=r[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}},37478:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>o,Ci:()=>l,FX:()=>h,mK:()=>s,oE:()=>p,v6:()=>f});var n=r(14232),i=r(1147),a=r(92815),o=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(o||{}),s=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(s||{});function l(){let e,t,r=(e=(0,n.useRef)([]),t=(0,n.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]),function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];if(!n.every(e=>null==e))return e.current=n,t});return(0,n.useCallback)(e=>(function(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:o,visible:s=!0,name:l,mergeRefs:f}=e;f=null!=f?f:c;let h=d(r,t);if(s)return u(h,n,i,l,f);let p=null!=o?o:0;if(2&p){let{static:e=!1,...t}=h;if(e)return u(t,n,i,l,f)}if(1&p){let{unmount:e=!0,...t}=h;return(0,a.Y)(+!e,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},n,i,l,f)})}return u(h,n,i,l,f)})({mergeRefs:r,...e}),[r])}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:s=r,children:l,refName:u="ref",...c}=m(e,["unmount","static"]),f=void 0!==e.ref?{[u]:e.ref}:{},h="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let g={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(g["data-headlessui-state"]=r.join(" "),r))g["data-".concat(e)]=""}if(s===n.Fragment&&(Object.keys(p(c)).length>0||Object.keys(p(g)).length>0))if(!(0,n.isValidElement)(h)||Array.isArray(h)&&h.length>1){if(Object.keys(p(c)).length>0)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(a,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(p(c)).concat(Object.keys(p(g))).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"))}else{var _;let e=h.props,t=null==e?void 0:e.className,r="function"==typeof t?function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0,i.x)(t(...r),c.className)}:(0,i.x)(t,c.className),a=d(h.props,p(m(c,["ref"])));for(let e in g)e in a&&delete g[e];return(0,n.cloneElement)(h,Object.assign({},a,g,f,{ref:o((_=h,n.version.split(".")[0]>="19"?_.props.ref:_.ref),f.ref)},r?{className:r}:{}))}return(0,n.createElement)(s,Object.assign({},m(c,["ref"]),s!==n.Fragment&&f,s!==n.Fragment&&g),h)}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])for(let e in i)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(i[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in i)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(let r of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];for(let e in i)Object.assign(n,{[e](){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let t of i[e])null==t||t(...r)}});return n}function h(e){var t;return Object.assign((0,n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function p(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},37510:(e,t,r)=>{"use strict";r.d(t,{D$:()=>d,KG:()=>n});var n,i,a=r(17318),o=r(95682),s=r(80593),l=r(17070);function u(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function c(e){i||(i=new o.A(s.v.parser||1e3));var t,r,l,u=i.get(e);if(u)return u;(0,a.V1)(!!e&&!!e.kind,70,e);for(var c=[],d=[],f=[],h=[],p=0,m=e.definitions;p<m.length;p++){var g=m[p];if("FragmentDefinition"===g.kind){c.push(g);continue}if("OperationDefinition"===g.kind)switch(g.operation){case"query":d.push(g);break;case"mutation":f.push(g);break;case"subscription":h.push(g)}}(0,a.V1)(!c.length||d.length||f.length||h.length,71),(0,a.V1)(d.length+f.length+h.length<=1,72,e,d.length,h.length,f.length),r=d.length?n.Query:n.Mutation,d.length||f.length||(r=n.Subscription);var _=d.length?d:f.length?f:h;(0,a.V1)(1===_.length,73,e,_.length);var y=_[0];t=y.variableDefinitions||[];var v={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:r,variables:t};return i.set(e,v),v}function d(e,t){var r=c(e),n=u(t),i=u(r.type);(0,a.V1)(r.type===t,74,n,n,i)}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={})),c.resetCache=function(){i=void 0},!1!==globalThis.__DEV__&&(0,l.D_)("parser",function(){return i?i.size:0})},38806:(e,t,r)=>{"use strict";e.exports=r(29429)},39668:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});let n=()=>Object.create(null),{forEach:i,slice:a}=Array.prototype,{hasOwnProperty:o}=Object.prototype;class s{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),o.call(t,"data")?t.data:t.data=this.makeData(a.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(a.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new s(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},40720:(e,t,r)=>{"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{_:()=>n})},41597:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z"}))})},41863:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232),i=r(72891);let a=()=>(0,n.useContext)(i.A)},42343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(14232),i=r(74754),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:a}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),o.set(r,t),t}(r);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[h,c,(0,n.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)},44185:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(32482);function i(e){let t=e.parentElement,r=null;for(;t&&!n.Er(t);)n.Jb(t)&&(r=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(n.Jb(t))return!1;t=t.previousElementSibling}return!0}(r))&&i}},44727:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(14232),i=r(66077);let a=(e,t)=>{i._.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},45105:(e,t,r)=>{e.exports=r(87195)},45284:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%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='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},45813:(e,t,r)=>{"use strict";r.d(t,{AT:()=>u,E4:()=>c,Vn:()=>d,Vu:()=>o,n4:()=>s,sw:()=>a,wY:()=>f,zK:()=>l});var n=r(17318),i=r(58851);function a(e){(0,n.V1)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n.vA)(89,e.kind);return e});return(0,n.V1)(t.length<=1,90,t.length),e}function o(e){return a(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=o(e);return(0,n.V1)(t&&"query"===t.operation,91),t}function c(e){(0,n.V1)("Document"===e.kind,92),(0,n.V1)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,n.V1)("FragmentDefinition"===t.kind,94),t}function d(e){a(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var o=i[r];if("OperationDefinition"===o.kind){var s=o.operation;if("query"===s||"mutation"===s||"subscription"===s)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw(0,n.vA)(95)}function f(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)}),t}},46740:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext({customProperties:{},hydrateFragment:(e,t)=>null})},47334:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{var t,r,n,i,a,o,s,l,u,c,d,f,h;return e?(null==e?void 0:e.username)?e.username:(null==e||null==(t=e.profile)?void 0:t.displayName)?null==e||null==(r=e.profile)?void 0:r.displayName:(null==e||null==(i=e.profile)||null==(n=i.address)?void 0:n.firstName)||(null==e||null==(o=e.profile)||null==(a=o.address)?void 0:a.firstName)?"".concat(null==e||null==(l=e.profile)||null==(s=l.address)?void 0:s.lastName," ").concat(null==e||null==(c=e.profile)||null==(u=c.address)?void 0:u.lastName):(null==e?void 0:e.name)?e.name:e.isGuest?null==e||null==(h=e.primaryEmail)||null==(f=h.address)||null==(d=f.split("."))?void 0:d[0]:null:null}},47518:(e,t,r)=>{"use strict";r.d(t,{OC:()=>i,yo:()=>a});var n=r(7743);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,a=null,o=-1;for(let t=0;t<e.length;++t){let s=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(s);l!==s.length&&(a=null!=(r=a)?r:t,o=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=a)?t:0,o+1)}function a(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),a=1===i.length,o=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),s=r.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!a||e.length>70||c||o||s),f="",h=a&&(0,n.i0)(e.charCodeAt(0));return(d&&!h||o)&&(f+="\n"),f+=r,(d||c)&&(f+="\n"),'"""'+f+'"""'}},48143:(e,t,r)=>{"use strict";let n;r.d(t,{L:()=>t2});var i,a=r(14232),o=r(94410),s=r.n(o),l=r(69964),u=r.n(l),c=r(4902),d=r(17318),f=r(15072),h=r(45813);function p(e,t){return t?t(e):f.c.of()}function m(e){return"function"==typeof e?new _(e):e}function g(e){return e.request.length<=1}var _=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return f.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(m).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i,a=m(r),o=m(n||new e(p));return Object.assign(new e(g(a)&&g(o)?function(e){return t(e)?a.request(e)||f.c.of():o.request(e)||f.c.of()}:function(e,r){return t(e)?a.request(e,r)||f.c.of():o.request(e,r)||f.c.of()}),{left:a,right:o})},e.execute=function(e,t){var r,n,i,a,o;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw(0,d.vA)(46,i)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?(0,h.n4)(n.query)||void 0:""),a=n,o=(0,c.__assign)({},i),Object.defineProperty(a,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?(0,c.__assign)((0,c.__assign)({},o),e(o)):(0,c.__assign)((0,c.__assign)({},o),e)}}),Object.defineProperty(a,"getContext",{enumerable:!1,value:function(){return(0,c.__assign)({},o)}}),a))||f.c.of()},e.concat=function(t,r){var n,i=m(t);if(g(i))return!1!==globalThis.__DEV__&&d.V1.warn(38,i),i;var a=m(r);return Object.assign(new e(g(a)?function(e){return i.request(e,function(e){return a.request(e)||f.c.of()})||f.c.of()}:function(e,t){return i.request(e,function(e){return a.request(e,t)||f.c.of()})||f.c.of()}),{left:i,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(p)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,d.vA)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),y=r(71211),v=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,d.vA)(42,t,e.message);throw n.parseError=e,n}return r},b=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},w=r(80542);function E(e){var t={next:function(){return e.read()}};return w.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var k=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},T=r(83070),S=r(93957),x=r(35785),A=Object.prototype.hasOwnProperty;function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return O(e)}function O(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new D,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var N=function(e,t,r){return this.merge(e[r],t[r])},D=function(){function e(e){void 0===e&&(e=N),this.reconciler=e,this.isObject=S.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return(0,S.U)(t)&&(0,S.U)(e)?(Object.keys(t).forEach(function(i){if(A.call(e,i)){var a=e[i];if(t[i]!==a){var o=r.reconciler.apply(r,(0,c.__spreadArray)([e,t,i],n,!1));o!==a&&((e=r.shallowCopyForMerge(e))[i]=o)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,S.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,c.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function C(e){return"incremental"in e}function P(e,t){var r=e,n=new D;return C(t)&&(0,x.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}r=n.merge(r,t)}),r}var L=Object.prototype.hasOwnProperty;function R(e,t){e.status>=300&&k(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var M=function(e){if(!e&&"undefined"==typeof fetch)throw(0,d.vA)(40)},F=r(47518);let j=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function B(e){return U[e.charCodeAt(0)]}let U=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var V=r(74968);let z={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>q(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=G("(",q(e.variableDefinitions,", "),")"),r=q([e.operation,q([e.name,t]),q(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+G(" = ",r)+G(" ",q(n," "))},SelectionSet:{leave:({selections:e})=>H(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=G("",e,": ")+t,o=a+G("(",q(r,", "),")");return o.length>80&&(o=a+G("(\n",W(q(r,"\n")),"\n)")),q([o,q(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+G(" ",q(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>q(["...",G("on ",e),q(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${G("(",q(r,", "),")")} on ${t} ${G("",q(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,F.yo)(e):`"${e.replace(j,B)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+q(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+q(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+G("(",q(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>G("",e,"\n")+q(["schema",q(t," "),H(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>G("",e,"\n")+q(["scalar",t,q(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>G("",e,"\n")+q(["type",t,G("implements ",q(r," & ")),q(n," "),H(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>G("",e,"\n")+t+(K(r)?G("(\n",W(q(r,"\n")),"\n)"):G("(",q(r,", "),")"))+": "+n+G(" ",q(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>G("",e,"\n")+q([t+": "+r,G("= ",n),q(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>G("",e,"\n")+q(["interface",t,G("implements ",q(r," & ")),q(n," "),H(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>G("",e,"\n")+q(["union",t,q(r," "),G("= ",q(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>G("",e,"\n")+q(["enum",t,q(r," "),H(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>G("",e,"\n")+q([t,q(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>G("",e,"\n")+q(["input",t,q(r," "),H(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>G("",e,"\n")+"directive @"+t+(K(r)?G("(\n",W(q(r,"\n")),"\n)"):G("(",q(r,", "),")"))+(n?" repeatable":"")+" on "+q(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>q(["extend schema",q(e," "),H(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>q(["extend scalar",e,q(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>q(["extend type",e,G("implements ",q(t," & ")),q(r," "),H(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>q(["extend interface",e,G("implements ",q(t," & ")),q(r," "),H(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>q(["extend union",e,q(t," "),G("= ",q(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>q(["extend enum",e,q(t," "),H(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>q(["extend input",e,q(t," "),H(r)]," ")}};function q(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function H(e){return G("{\n",W(q(e,"\n")),"\n}")}function G(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function W(e){return G(" ",e.replace(/\n/g,"\n "))}function K(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var Z=r(95682),Q=r(80593),$=r(17070),Y=Object.assign(function(e){var t=i.get(e);return t||(t=(0,V.YR)(e,z),i.set(e,t)),t},{reset:function(){i=new Z.A(Q.v.print||2e3)}});Y.reset(),!1!==globalThis.__DEV__&&(0,$.D_)("print",function(){return i?i.size:0});var J={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},X=function(e,t){return t(e)};function ee(e){return new f.c(function(t){t.error(e)})}var et=r(94587),er=r(58851),en=r(68922),ei={kind:et.b.FIELD,name:{kind:et.b.NAME,value:"__typename"}};function ea(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function eo(e,t){(0,h.sw)(t);for(var r,n,i,a,o=ea(""),s=ea(""),l=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,x.c)(r)){if(r.kind===et.b.OPERATION_DEFINITION)return o(r.name&&r.name.value);if(r.kind===et.b.FRAGMENT_DEFINITION)return s(r.name.value)}return!1!==globalThis.__DEV__&&d.V1.error(97),null},u=0,f=t.definitions.length-1;f>=0;--f)t.definitions[f].kind===et.b.OPERATION_DEFINITION&&++u;var p=(r=e,n=new Map,i=new Map,r.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&i.set(e.test,e))}),function(e){var t=n.get(e.name.value);return!t&&i.size&&i.forEach(function(r,n){n(e)&&(t=r)}),t}),m=function(e){return(0,x.E)(e)&&e.map(p).some(function(e){return e&&e.remove})},g=new Map,_=!1,y={enter:function(e){if(m(e.directives))return _=!0,null}},v=(0,V.YR)(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var a=l(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(m(e.directives))return _=!0,null;var a=l(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){g.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===g.get(JSON.stringify(n))?e:u>0&&e.selectionSet.selections.every(function(e){return e.kind===et.b.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,_=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return _=!0,null}}});if(!_)return t;var b=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){b(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},w=new Set;v.definitions.forEach(function(e){e.kind===et.b.OPERATION_DEFINITION?b(o(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){w.add(e)}):e.kind!==et.b.FRAGMENT_DEFINITION||0!==u||s(e.name.value).removed||w.add(e.name.value)}),w.forEach(function(e){b(s(e)).fragmentSpreads.forEach(function(e){w.add(e)})});var E={enter:function(e){var t;if(t=e.name.value,!w.has(t)||s(t).removed)return null}};return a=(0,V.YR)(v,{FragmentSpread:E,FragmentDefinition:E,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=b(o(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,c.__assign)((0,c.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===et.b.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,h.Vu)(a)||(0,h.E4)(a),(0,en.JG)((0,h.zK)(a)))?a:null}var es=Object.assign(function(e){return(0,V.YR)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==et.b.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return(0,er.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,er.dt)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,c.__assign)((0,c.__assign)({},e),{selections:(0,c.__spreadArray)((0,c.__spreadArray)([],n,!0),[ei],!1)})}}}})},{added:function(e){return e===ei}});function el(e){return(0,h.sw)(e),eo([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var eu=(0,d.no)(function(){return fetch}),ec=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,a=void 0===i?X:i,o=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,u=e.includeUnusedVariables,p=void 0!==u&&u,m=(0,c.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&M(n||eu);var g={http:{includeExtensions:o,preserveHeaderCase:s},options:m.fetchOptions,credentials:m.credentials,headers:m.headers};return new _(function(e){var t,i,o,s,u,m,_=b(e,r),x=e.getContext(),A={};if(x.clientAwareness){var I=x.clientAwareness,O=I.name,N=I.version;O&&(A["apollographql-client-name"]=O),N&&(A["apollographql-client-version"]=N)}var D=(0,c.__assign)((0,c.__assign)({},A),x.headers),C={http:x.http,options:x.fetchOptions,credentials:x.credentials,headers:D};if((0,y.d8)(["client"],e.query)){var P=el(e.query);if(!P)return ee(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=P}var M=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach(function(e){i=(0,c.__assign)((0,c.__assign)((0,c.__assign)({},i),e.options),{headers:(0,c.__assign)((0,c.__assign)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),a=(0,c.__assign)((0,c.__assign)({},a),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,a.preserveHeaderCase));var o=e.operationName,s=e.extensions,l=e.variables,u=e.query,d={operationName:o,variables:l};return a.includeExtensions&&(d.extensions=s),a.includeQuery&&(d.query=t(u,Y)),{options:i,body:d}}(e,a,J,g,C),F=M.options,j=M.body;j.variables&&!p&&(t=j.variables,i=e.query,o=(0,c.__assign)({},t),s=new Set(Object.keys(t)),(0,V.YR)(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&s.delete(e.name.value)}}),s.forEach(function(e){delete o[e]}),j.variables=o),F.signal||"undefined"==typeof AbortController||(F.signal=(m=new AbortController).signal);var B="OperationDefinition"===(u=(0,h.Vn)(e.query)).kind&&"subscription"===u.operation,U=(0,y.d8)(["defer"],e.query);if(l&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(F.method="GET"),U||B){F.headers=F.headers||{};var z="multipart/mixed;";B&&U&&!1!==globalThis.__DEV__&&d.V1.warn(41),B?z+="boundary=graphql;subscriptionSpec=1.0,application/json":U&&(z+="deferSpec=20220824,application/json"),F.headers.accept=z}if("GET"===F.method){var q=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=v(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var a=void 0;try{a=v(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",a)}var o="",s=e,l=e.indexOf("#");-1!==l&&(o=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+o}}(_,j),H=q.newURI,G=q.parseError;if(G)return ee(G);_=H}else try{F.body=v(j,"Payload")}catch(e){return ee(e)}return new f.c(function(t){var r=n||(0,d.no)(function(){return fetch})||eu,i=t.next.bind(t);return r(_,F).then(function(t){e.setContext({response:t});var r,n=null==(r=t.headers)?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?function(e,t){return(0,c.__awaiter)(this,void 0,void 0,function(){var r,n,i,a,o,s,l,u,d,f,h,p,m,g,_,y,v,b,k,x,A,I,O;return(0,c.__generator)(this,function(N){switch(N.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null==(O=e.headers)?void 0:O.get("content-type"),i="boundary=",a=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o="\r\n--".concat(a),s="",l=function(e){var t,r,n,i,a,o,s=e;if(e.body&&(s=e.body),t=s,w.uJ&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return E(s.getReader());if(s.stream)return E(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),a=!1,o={next:function(){return a?Promise.resolve({value:void 0,done:!0}):(a=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},w.uJ&&(o[Symbol.asyncIterator]=function(){return this}),o;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],a=[];function o(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){n=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",o),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])})}};return w.uJ&&(u[Symbol.asyncIterator]=function(){return this}),u}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),u=!0,N.label=1;case 1:if(!u)return[3,3];return[4,l.next()];case 2:for(f=(d=N.sent()).value,h=d.done,p="string"==typeof f?f:r.decode(f),m=s.length-o.length+1,u=!h,s+=p,g=s.indexOf(o,m);g>-1;){if(_=void 0,_=(A=[s.slice(0,g),s.slice(g+o.length)])[0],s=A[1],y=_.indexOf("\r\n\r\n"),(v=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(_.slice(0,y))["content-type"])&&-1===v.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(b=_.slice(y)){if(Object.keys(k=R(e,b)).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k)if((0,S.U)(k)&&"payload"in k){if(x={},"payload"in k){if(1===Object.keys(k).length&&null===k.payload)return[2];x=(0,c.__assign)({},k.payload)}"errors"in k&&(x=(0,c.__assign)((0,c.__assign)({},x),{extensions:(0,c.__assign)((0,c.__assign)({},"extensions"in x?x.extensions:null),((I={})[T.K$]=k.errors,I))})),t(x)}else t(k);else if(1===Object.keys(k).length&&"hasNext"in k&&!k.hasNext)return[2]}g=s.indexOf(o)}return[3,1];case 3:return[2]}})})}(t,i):(function(t){return t.text().then(function(e){return R(t,e)}).then(function(r){return Array.isArray(r)||L.call(r,"data")||L.call(r,"errors")||k(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})})(t).then(i)}).then(function(){m=void 0,t.complete()}).catch(function(e){m=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){m&&m.abort()}})})},ed=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,ec(t).request)||this;return r.options=t,r}return(0,c.__extends)(t,e),t}(_),ef=_.execute,eh=r(84918),ep=r(20996),em=r(26828),eg=r(39668),e_=r(99853),ey=r(63965);function ev(e){return e}var eb=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=w.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(ev,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new eg.b(w.et);this.performWork=(0,ey.LV)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,d.V1)(Array.isArray(n),77),r.lookupArray(n)},max:Q.v["documentTransform.cache"],cache:e_.l})}},e.prototype.performWork=function(e){return(0,h.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}();function ew(e,t,r){return new f.c(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}function eE(e){var t=ek(e);return(0,x.E)(t)}function ek(e){var t=(0,x.E)(e.errors)?e.errors.slice(0):[];return C(e)&&(0,x.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var eT=r(18659),eS=r(53975),ex=r(36974);function eA(e){return e&&"function"==typeof e.then}var eI=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,eS.w)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,eS.w)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?eA(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,eS.w)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new f.c(t)]),eA(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,c.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(f.c);(0,ex.r)(eI);var eO=r(35518),eN=r(66434),eD=new(w.et?WeakMap:Map);function eC(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return eD.set(e,(eD.get(e)+1)%1e15),r.apply(this,arguments)})}var eP=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;eD.has(r)||(eD.set(r,0),eC(r,"evict"),eC(r,"modify"),eC(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||eN.pT.loading;return this.variables&&this.networkStatus!==eN.pT.loading&&!(0,ep.L)(this.variables,e.variables)&&(t=eN.pT.setVariables),(0,ep.L)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,ep.L)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),(0,ep.L)(n&&n.result,e&&e.result)||null==(r=this.observableQuery)||r.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,c.__assign)((0,c.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,ep.L)(n,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===eD.get(this.cache)&&(0,ep.L)(t,r.variables)&&(0,ep.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,a=this,o=new D,s=(0,x.E)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&(0,x.E)(e.incremental)){var l=P(this.getDiff().result,e);e.data=l}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(eL(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(a.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),a.lastWrite={result:e,variables:r.variables,dmCount:eD.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var o=a.getDiffOptions(r.variables),s=i.diff(o);!a.stopped&&(0,ep.L)(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=eN.pT.ready},e.prototype.markError=function(e){var t;return this.networkStatus=eN.pT.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function eL(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!eE(e);return!n&&r&&e.data&&(n=!0),n}var eR=r(21500),eM=w.et?WeakMap:Map,eF=w.En?WeakSet:Set,ej=new ey.DX,eB=!1;function eU(){eB||(eB=!0,!1!==globalThis.__DEV__&&d.V1.warn(52))}function eV(e,t,r){return ej.withValue(!0,function(){var n=function e(t,r,n,i,a){var o,s=n.knownChanged,l=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var u=0,c=Array.from(t.entries());u<c.length;u++){var f=c[u],h=f[0],p=f[1];if(null===p){l[h]=null;continue}var m=e(p,r,n,i,!1!==globalThis.__DEV__?"".concat(a||"","[").concat(h,"]"):void 0);s.has(m)&&s.add(l),l[h]=m}return s.has(l)?l:t}for(var g=0,_=r.selections;g<_.length;g++){var v=_[g],b=void 0;if(i&&s.add(l),v.kind===et.b.FIELD){var w=(0,er.ue)(v),E=v.selectionSet;if(void 0===(b=l[w]||t[w]))continue;if(E&&null!==b){var m=e(t[w],E,n,i,!1!==globalThis.__DEV__?"".concat(a||"",".").concat(w):void 0);s.has(m)&&(b=m)}!1===globalThis.__DEV__&&(l[w]=b),!1!==globalThis.__DEV__&&(!i||"__typename"===w||(null==(o=Object.getOwnPropertyDescriptor(l,w))?void 0:o.value)?(delete l[w],l[w]=b):Object.defineProperty(l,w,function(e,t,r,n,i){var a=function(){return ej.getValue()||(!1!==globalThis.__DEV__&&d.V1.warn(48,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}(w,b,a||"",n.operationName,n.operationType)))}if(v.kind===et.b.INLINE_FRAGMENT&&(!v.typeCondition||n.cache.fragmentMatches(v,t.__typename))&&(b=e(t,v.selectionSet,n,i,a)),v.kind===et.b.FRAGMENT_SPREAD){var k=v.name.value,T=n.fragmentMap[k]||(n.fragmentMap[k]=n.cache.lookupFragment(k));(0,d.V1)(T,47,k);var S=(0,y.s7)(v);"mask"!==S&&(b=e(t,T.selectionSet,n,"migrate"===S,a))}s.has(b)&&s.add(l)}return"__typename"in t&&!("__typename"in l)&&(l.__typename=t.__typename),Object.keys(l).length!==Object.keys(t).length&&s.add(l),s.has(l)?l:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,eR.G)(n),n})}function ez(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&eU(),e;var i=t.definitions.filter(function(e){return e.kind===et.b.FRAGMENT_DEFINITION});void 0===n&&((0,d.V1)(1===i.length,49,i.length),n=i[0].name.value);var a=i.find(function(e){return e.name.value===n});return((0,d.V1)(!!a,50,n),null==e||(0,ep.A)(e,{}))?e:eV(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:(0,en.JG)((0,h.zK)(t)),cache:r,mutableTargets:new eM,knownChanged:new eF})}var eq=Object.prototype.hasOwnProperty,eH=Object.create(null),eG=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Z.A(Q.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new eg.b(!1),this.noCacheWarningsByQueryId=new Set;var r=new eb(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,d.vA)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,c.__awaiter)(this,arguments,void 0,function(e){var t,r,n,i,a,o,s,l=e.mutation,u=e.variables,f=e.optimisticResponse,h=e.updateQueries,p=e.refetchQueries,m=void 0===p?[]:p,g=e.awaitRefetchQueries,_=void 0!==g&&g,y=e.update,v=e.onQueryUpdated,b=e.fetchPolicy,w=void 0===b?(null==(o=this.defaultOptions.mutate)?void 0:o.fetchPolicy)||"network-only":b,E=e.errorPolicy,k=void 0===E?(null==(s=this.defaultOptions.mutate)?void 0:s.errorPolicy)||"none":E,S=e.keepRootFields,x=e.context;return(0,c.__generator)(this,function(e){switch(e.label){case 0:if((0,d.V1)(l,28),(0,d.V1)("network-only"===w||"no-cache"===w,29),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,u=this.getVariables(l,u),!r)return[3,2];return[4,this.localState.addExportedVariables(l,u,x)];case 1:u=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:u,loading:!0,error:null}),i=f&&this.markMutationOptimistic(f,{mutationId:t,document:l,variables:u,fetchPolicy:w,errorPolicy:k,context:x,updateQueries:h,update:y,keepRootFields:S}),this.broadcastQueries(),a=this,[2,new Promise(function(e,r){return ew(a.getObservableFromLink(l,(0,c.__assign)((0,c.__assign)({},x),{optimisticResponse:i?f:void 0}),u,{},!1),function(e){if(eE(e)&&"none"===k)throw new T.K4({graphQLErrors:ek(e)});n&&(n.loading=!1,n.error=null);var r=(0,c.__assign)({},e);return"function"==typeof m&&(m=m(r)),"ignore"===k&&eE(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:l,variables:u,fetchPolicy:w,errorPolicy:k,context:x,update:y,updateQueries:h,awaitRefetchQueries:_,refetchQueries:m,removeOptimistic:i?t:void 0,onQueryUpdated:v,keepRootFields:S})}).subscribe({next:function(r){a.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,c.__assign)((0,c.__assign)({},r),{data:a.maskOperation({document:l,data:r.data,fetchPolicy:w,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),i&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof T.K4?e:new T.K4({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&eL(n,e.errorPolicy)){if(C(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),C(n)&&(0,x.E)(n.incremental)){var o=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;o.result&&(s=P(o.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(s&&eq.call(l,s)){var u=l[s],c=r.queries.get(a),d=c.document,f=c.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),m=p.result;if(p.complete&&m){var g=u(m,{mutationResult:n,queryName:d&&(0,h.n4)(d)||void 0,queryVariables:f});g&&i.push({result:g,dataId:"ROOT_QUERY",query:d,variables:f})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var o,s=e.update,l=!(C(o=n)||"hasNext"in o&&"data"in o)||C(n)&&!n.hasNext;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(n=(0,c.__assign)((0,c.__assign)({},n),{data:u.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}l&&s(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return u.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:eH}):e;return n!==eH&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,c.__assign)((0,c.__assign)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&d.V1.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,y.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,y.d8)(["nonreactive"],e),nonReactiveQuery:((0,h.sw)(e),(0,V.YR)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,c.__assign)((0,c.__assign)({},e),{directives:(0,c.__spreadArray)((0,c.__spreadArray)([],e.directives||[],!0),[{kind:et.b.DIRECTIVE,name:{kind:et.b.NAME,value:"nonreactive"}}],!1)})}})),clientQuery:this.localState.clientQuery(e),serverQuery:eo([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,h.wY)((0,h.Vu)(e)),asQuery:(0,c.__assign)((0,c.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,c.__assign)((0,c.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,c.__assign)((0,c.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,c.__assign)((0,c.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new eP(this),n=new eO.U({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,eO.U.inactiveOnCreation.getValue()||this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,d.V1)(e.query,30),(0,d.V1)("Document"===e.query.kind,31),(0,d.V1)(!e.returnPartialData,32),(0,d.V1)(!e.pollInterval,33);var n=this.transform(e.query);return this.fetchQuery(t,(0,c.__assign)((0,c.__assign)({},e),{query:n})).then(function(i){return i&&(0,c.__assign)((0,c.__assign)({},i),{data:r.maskOperation({document:n,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,d.vA)(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=eN.pT.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)n.set(e,e),i.set(e,!1);else if((0,er.Kc)(e)){var r=Y(t.transform(e));n.set(r,(0,h.n4)(e)),i.set(r,!1)}else(0,S.U)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void r.set(n,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&i.has(s)||o&&i.has(Y(o)))&&(r.set(n,a),s&&i.set(s,!0),o&&i.set(Y(o),!0))}}),a.size&&a.forEach(function(e){var n=(0,eT.v)("legacyOneTimeQuery"),i=t.getOrCreateQuery(n).init({document:e.query,variables:e.variables}),a=new eO.U({queryManager:t,queryInfo:i,options:(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"network-only"})});(0,d.V1)(a.queryId===n),i.setObservableQuery(a),r.set(n,a)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(e,t){if(!e){var r=n.get(t);r?!1!==globalThis.__DEV__&&d.V1.warn(35,r):!1!==globalThis.__DEV__&&d.V1.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var a=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=void 0===a?"none":a,s=e.context,l=void 0===s?{}:s,u=e.extensions,c=void 0===u?{}:u;r=this.transform(r),n=this.getVariables(r,n);var d=function(e){return t.getObservableFromLink(r,l,e,c).map(function(n){"no-cache"!==i&&(eL(n,o)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=eE(n),s=(0,T.uR)(n);if(a||s){var l={};if(a&&(l.graphQLErrors=n.errors),s&&(l.protocolErrors=n.extensions[T.K$]),"none"===o||s)throw new T.K4(l)}return"ignore"===o&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,l).then(d);return new f.c(function(e){var t=null;return h.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var a,o,s=this;void 0===i&&(i=null!=(a=null==t?void 0:t.queryDeduplication)?a:this.queryDeduplication);var l=this.getDocumentInfo(e),u=l.serverQuery,d=l.clientQuery;if(u){var p=this.inFlightLinkObservables,m=this.link,g={query:u,variables:r,operationName:(0,h.n4)(u)||void 0,context:this.prepareContext((0,c.__assign)((0,c.__assign)({},t),{forceFetch:!i})),extensions:n};if(t=g.context,i){var _=Y(u),y=(0,em.M)(r),v=p.lookup(_,y);if(!(o=v.observable)){var b=new eI([ef(m,g)]);o=v.observable=b,b.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?b.beforeNext(e):p.remove(_,y)})}}else o=new eI([ef(m,g)])}else o=new eI([f.c.of({data:{}})]),t=this.prepareContext(t);return d&&(o=ew(o,function(e){return s.localState.runResolvers({document:d,remoteResult:e,context:t,variables:r})})),o},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return ew(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=ek(a),s=o.length>0,l=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===l)throw e.markError(new T.K4({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var u={data:a.data,loading:!1,networkStatus:eN.pT.ready};return s&&"none"===l&&(u.data=void 0),s&&"ignore"!==l&&(u.errors=o,u.networkStatus=eN.pT.error),u},function(t){var r=(0,T.Mn)(t)?t:new T.K4({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,a,o=this;void 0===r&&(r=eN.pT.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),l=this.defaultOptions.watchQuery,u=t.fetchPolicy,c=void 0===u?l&&l.fetchPolicy||"cache-first":u,d=t.errorPolicy,f=void 0===d?l&&l.errorPolicy||"none":d,h=t.returnPartialData,p=t.notifyOnNetworkStatusChange,m=t.context,g=Object.assign({},t,{query:n,variables:s,fetchPolicy:c,errorPolicy:f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==p&&p,context:void 0===m?{}:m}),_=function(n){g.variables=n;var i=o.fetchQueryByPolicy(e,g,r);return"standby"!==g.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},y=function(){return o.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){y(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports)i=new eI(this.localState.addExportedVariables(g.query,g.variables,g.context).then(_).then(function(e){return e.sources})),a=!0;else{var v=_(g.variables);a=v.fromLink,i=new eI(v.sources)}return i.promise.then(y,y),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?(0,eT.v)("refetchQueries"):void 0:o,l=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var c=new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof eP&&e.watcher.observableQuery;if(n){if(l){u.delete(n.queryId);var i=l(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&c.set(n,i),i}null!==l&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;l&&(o||(o=t.cache.diff(i.queryInfo.getDiffOptions())),n=l(i,o,a)),l&&!0!==n||(n=i.refetch()),!1!==n&&c.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),c},e.prototype.maskOperation=function(e){var t,r,n,i=e.document,a=e.data;if(!1!==globalThis.__DEV__){var o=e.fetchPolicy,s=e.id,l=null==(t=(0,h.Vu)(i))?void 0:t.operation,u=(null!=(r=null==l?void 0:l[0])?r:"o")+s;!this.dataMasking||"no-cache"!==o||(0,en.s6)(i)||this.noCacheWarningsByQueryId.has(u)||(this.noCacheWarningsByQueryId.add(u),!1!==globalThis.__DEV__&&d.V1.warn(37,null!=(n=(0,h.n4)(i))?n:"Unnamed ".concat(null!=l?l:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&eU(),e;var n,i=(0,h.Vu)(t);return((0,d.V1)(i,51),null==e)?e:eV(e,i.selectionSet,{operationType:i.operation,operationName:null==(n=i.name)?void 0:n.value,fragmentMap:(0,en.JG)((0,h.zK)(t)),cache:r,mutableTargets:new eM,knownChanged:new eF})}(a,i,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?ez(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,u=t.returnPartialData,d=t.context,h=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:a,networkStatus:r});var m=function(){return e.getDiff()},g=function(t,r){void 0===r&&(r=e.networkStatus||eN.pT.loading);var o=t.result;!1===globalThis.__DEV__||u||(0,ep.L)(o,{})||(0,eO.y)(t.missing);var s=function(e){return f.c.of((0,c.__assign)({data:e,loading:(0,eN.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return o&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:o},context:d,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===l&&r===eN.pT.refetch&&Array.isArray(t.missing)?s(void 0):s(o)},_="no-cache"===o?0:r===eN.pT.refetch&&"merge"!==s?1:2,y=function(){return n.getResultsFromLink(e,_,{query:i,variables:a,context:d,fetchPolicy:o,errorPolicy:l})},v=h&&"number"==typeof p&&p!==r&&(0,eN.bi)(r);switch(o){default:case"cache-first":var b=m();if(b.complete)return{fromLink:!1,sources:[g(b,e.markReady())]};if(u||v)return{fromLink:!0,sources:[g(b),y()]};return{fromLink:!0,sources:[y()]};case"cache-and-network":var b=m();if(b.complete||u||v)return{fromLink:!0,sources:[g(b),y()]};return{fromLink:!0,sources:[y()]};case"cache-only":return{fromLink:!1,sources:[g(m(),e.markReady())]};case"network-only":if(v)return{fromLink:!0,sources:[g(m()),y()]};return{fromLink:!0,sources:[y()]};case"no-cache":if(v)return{fromLink:!0,sources:[g(e.getDiff()),y()]};return{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new eP(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,c.__assign)((0,c.__assign)((0,c.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function eW(e){return e.kind===et.b.FIELD||e.kind===et.b.FRAGMENT_SPREAD||e.kind===et.b.INLINE_FRAGMENT}function eK(e){return(e.kind===Kind.VARIABLE||e.kind===Kind.INT||e.kind===Kind.FLOAT||e.kind===Kind.STRING||e.kind===Kind.BOOLEAN||e.kind===Kind.NULL||e.kind===Kind.ENUM||e.kind===Kind.LIST||e.kind===Kind.OBJECT)&&(e.kind===Kind.LIST?e.values.some(eK):e.kind===Kind.OBJECT?e.fields.some(e=>eK(e.value)):e.kind!==Kind.VARIABLE)}var eZ=new ey.DX,eQ=new WeakMap;function e$(e){var t=eQ.get(e);return t||eQ.set(e,t={vars:new Set,dep:(0,ey.yN)()}),t}function eY(e){e$(e).vars.forEach(function(t){return t.forgetCache(e)})}function eJ(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){var t;e$(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=eZ.getValue();s&&(i(s),e$(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),e$(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var eX=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=I(t.resolvers,e)}):this.resolvers=I(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,c.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return(0,c.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,o).then(function(e){return(0,c.__assign)((0,c.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,y.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return el(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,c.__assign)((0,c.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,c.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,c.__generator)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,c.__assign)((0,c.__assign)({},t),e.exportedVariables)})]:[2,(0,c.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,V.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return V.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===(0,h.Vn)(e).operation?e:(0,V.YR)(e,{OperationDefinition:{enter:function(e){return(0,c.__assign)((0,c.__assign)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,c.__awaiter)(this,arguments,void 0,function(e,t,r,n,i,a){var o,s,l,u,d,f,p,m,g,_;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),(0,c.__generator)(this,function(y){return o=(0,h.Vn)(e),s=(0,h.zK)(e),l=(0,en.JG)(s),u=this.collectSelectionsToResolve(o,l),f=(d=o.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",p=this,m=p.cache,g=p.client,_={fragmentMap:l,context:(0,c.__assign)((0,c.__assign)({},r),{cache:m,client:g}),variables:n,fragmentMatcher:i,defaultOperationType:f,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,!1,t,_).then(function(e){return{result:e,exportedVariables:_.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,c.__awaiter)(this,void 0,void 0,function(){var i,a,o,s,l,u=this;return(0,c.__generator)(this,function(f){return i=n.fragmentMap,a=n.context,o=n.variables,s=[r],l=function(e){return(0,c.__awaiter)(u,void 0,void 0,function(){var l,u;return(0,c.__generator)(this,function(c){return(t||n.selectionsToResolve.has(e))&&(0,y.MS)(e,o)?(0,er.dt)(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[(0,er.ue)(e)]=t,r))})]:((0,er.kd)(e)?l=e:(l=i[e.name.value],(0,d.V1)(l,19,e.name.value)),l&&l.typeCondition&&(u=l.typeCondition.name.value,n.fragmentMatcher(r,u,a)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return O(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,c.__awaiter)(this,void 0,void 0,function(){var i,a,o,s,l,u,d,f,h,p=this;return(0,c.__generator)(this,function(c){return r?(i=n.variables,s=(a=e.name.value)!==(o=(0,er.ue)(e)),u=Promise.resolve(l=r[o]||r[a]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=r.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(h=f[s?a:o])&&(u=Promise.resolve(eZ.withValue(this.cache,h,[r,(0,er.MB)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then(function(r){if(void 0===r&&(r=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,a,o=null!=(a=null==(i=e.directives)?void 0:i.some(function(e){return"client"===e.name.value}))&&a;return Array.isArray(r)?p.resolveSubSelectedArray(e,t||o,r,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||o,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var a=new Set;n.set(i,a),(0,V.YR)(i,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&eW(e)&&a.add(e)})},FragmentSpread:function(n,i,o,s,l){var u=t[n.name.value];(0,d.V1)(u,20,n.name.value);var c=e(u);c.size>0&&(l.forEach(function(e){r(e)&&eW(e)&&a.add(e)}),a.add(n),c.forEach(function(e){a.add(e)}))}})}return n.get(i)}(e)},e}(),e0=r(18877),e1=!1,e2=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,d.vA)(16);var n=e.uri,i=e.credentials,a=e.headers,o=e.cache,s=e.documentTransform,l=e.ssrMode,u=void 0!==l&&l,f=e.ssrForceFetchDelay,h=void 0===f?0:f,p=e.connectToDevTools,m=e.queryDeduplication,g=void 0===m||m,y=e.defaultOptions,v=e.defaultContext,b=e.assumeImmutableResults,w=void 0===b?o.assumeImmutableResults:b,E=e.resolvers,k=e.typeDefs,T=e.fragmentMatcher,S=e.name,x=e.version,A=e.devtools,I=e.dataMasking,O=e.link;O||(O=n?new ed({uri:n,credentials:i,headers:a}):_.empty()),this.link=O,this.cache=o,this.disableNetworkFetches=u||h>0,this.queryDeduplication=g,this.defaultOptions=y||Object.create(null),this.typeDefs=k,this.devtoolsConfig=(0,c.__assign)((0,c.__assign)({},A),{enabled:null!=(t=null==A?void 0:A.enabled)?t:p}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),h&&setTimeout(function(){return r.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=eh.r,this.localState=new eX({cache:o,client:this,resolvers:E,fragmentMatcher:T}),this.queryManager=new eG({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:s,queryDeduplication:g,ssrMode:u,dataMasking:!!I,clientAwareness:{name:S,version:x},localState:this.localState,assumeImmutableResults:w,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!e1&&!1!==globalThis.__DEV__&&(e1=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&d.V1.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,e0.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,e0.l)(this.defaultOptions.query,e)),(0,d.V1)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,e0.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return(0,c.__assign)((0,c.__assign)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,c.__assign)((0,c.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ef(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&d.V1.debug(18,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();function e5(e){return new _(function(t,r){return new f.c(function(n){var i,a,o;try{i=r(t).subscribe({next:function(i){if(i.errors?o=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}):(0,T.uR)(i)&&(o=e({protocolErrors:i.extensions[T.K$],response:i,operation:t,forward:r})),o){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){o||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}!1!==globalThis.__DEV__&&(e2.prototype.getMemoryInternals=$.ep),!function(e){function t(t){var r=e.call(this)||this;return r.link=e5(t),r}(0,c.__extends)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(_);var e3=r(19221),e4=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,ey.LV)(en.ct,{max:Q.v["cache.fragmentQueryDocuments"]||1e3,cache:e_.l})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,c.__assign)((0,c.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,a=e.from,o=e.optimistic,s=(0,c.__rest)(e,["fragment","fragmentName","from","optimistic"]),l=this.getFragmentDoc(n,i),u=void 0===a||"string"==typeof a?a:this.identify(a),p=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var m=i||(0,h.E4)(n).name.value;u||!1===globalThis.__DEV__||d.V1.warn(1,m)}var g=(0,c.__assign)((0,c.__assign)({},s),{returnPartialData:!0,id:u,query:l,optimistic:void 0===o||o});return new f.c(function(a){return r.watch((0,c.__assign)((0,c.__assign)({},g),{immediate:!0,callback:function(o){var s=p?ez(o.result,n,r,i):o.result;if(!(t&&(0,e3.a)(l,{data:t.result},{data:s},e.variables))){var u={data:s,complete:!!o.complete};o.missing&&(u.missing=O(o.missing.map(function(e){return e.missing}))),t=(0,c.__assign)((0,c.__assign)({},o),{result:s}),a.next(u)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,c.__assign)((0,c.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,c.__rest)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,c.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,c.__assign)((0,c.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,c.__assign)((0,c.__assign)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(e4.prototype.getMemoryInternals=$.tQ);var e6=function(e){function t(r,n,i,a){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)(o={})[s.path[l]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,c.__extends)(t,e),t}(Error),e9=r(79760),e8=Object.prototype.hasOwnProperty;function e7(e){return null==e}function te(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=e7(n)?e7(i)?void 0:{_id:i}:{id:n}),e7(n)&&!e7(i)&&(n=i),!e7(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var tt={dataIdFromObject:te,addTypename:!0,resultCaching:!0,canonizeResults:!1};function tr(e){var t=e.canonizeResults;return void 0===t?tt.canonizeResults:t}var tn=/^[_a-z][_0-9a-z]*/i;function ti(e){var t=e.match(tn);return t?t[0]:e}function ta(e){return(0,S.U)(e)&&!(0,er.A_)(e)&&!(0,x.c)(e)}function to(e,t){var r=(0,en.JG)((0,h.zK)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var ts=Object.create(null),tl=function(){return ts},tu=Object.create(null),tc=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,eR.G)((0,er.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,er.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,er.WU)(e);if((0,er.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,er.WU)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,c.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),e8.call(this.data,e)){var r=this.data[e];if(r&&e8.call(r,t))return r[t]}return"__typename"===t&&e8.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof th?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),e8.call(this.data,e))?this.data[e]:this instanceof th?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,er.A_)(e)&&(e=e.__ref),(0,er.A_)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,d.V1)("string"==typeof r,2);var o=new D(tm).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=ti(e);t===e||n.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||n instanceof th||delete o[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,o=!0,s={DELETE:ts,INVALIDATE:tu,isReference:er.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,er.WU)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(l){var u=ti(l),f=n[l];if(void 0!==f){var h="function"==typeof t?t:t[l]||t[u];if(h){var p=h===tl?ts:h((0,eR.G)(f),(0,c.__assign)((0,c.__assign)({},s),{fieldName:u,storeFieldName:l,storage:r.getStorage(e,l)}));if(p===tu)r.group.dirty(e,l);else if(p===ts&&(p=void 0),p!==f&&(i[l]=p,a=!0,f=p,!1!==globalThis.__DEV__)){var m=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&d.V1.warn(3,e),!0};if((0,er.A_)(p))m(p);else if(Array.isArray(p))for(var g=!1,_=void 0,y=0,v=p;y<v.length;y++){var b=v[y];if((0,er.A_)(b)){if(g=!0,m(b))break}else"object"==typeof b&&b&&r.policies.identify(b)[0]&&(_=b);if(g&&void 0!==_){!1!==globalThis.__DEV__&&d.V1.warn(4,_);break}}}}void 0!==f&&(o=!1)}}),a)return this.merge(e,i),o&&(this instanceof th?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=tl,n):tl)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(e8.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof th&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){e8.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&e8.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,c.__rest)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof th?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){e8.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof th;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!e8.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,er.A_)(e)&&(t[e.__ref]=!0),(0,S.U)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,S.U)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),td=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,ey.yN)():null,this.keyMaker=new eg.b(w.et)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=ti(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function tf(e,t){tg(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,a=e.call(this,r,new td(void 0===n||n))||this;return a.stump=new tp(a),a.storageTrie=new eg.b(w.et),i&&a.replace(i),a}return(0,c.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(tc||(tc={}));var th=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return(0,c.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,ep.L)(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,c.__assign)((0,c.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return e8.call(this.data,t)?(0,c.__assign)((0,c.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(tc),tp=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new td(t.group.caching,t.group))||this}return(0,c.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(th);function tm(e,t,r){var n=e[r],i=t[r];return(0,ep.L)(n,i)?n:i}function tg(e){return!!(e instanceof tc&&e.group.caching)}var t_=function(){function e(){this.known=new(w.En?WeakSet:Set),this.pool=new eg.b(w.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,S.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,S.U)(e)){var t=(0,S.U)(e)?(0,x.c)(e)?e.slice(0):(0,c.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,S.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var l=o.length;s.sorted.forEach(function(r){o.push(t.admit(e[r]))});var i=this.pool.lookupArray(o);if(!i.object){var u=i.object=Object.create(a);this.known.add(u),s.sorted.forEach(function(e,t){u[e]=o[l+t]}),!1!==globalThis.__DEV__&&Object.freeze(u)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function ty(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var tv=function(){function e(e){var t=this;this.knownResults=new(w.et?WeakMap:Map),this.config=(0,e9.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:tr(e)}),this.canon=e.canon||new t_,this.executeSelectionSet=(0,ey.LV)(function(e){var r,n=e.context.canonizeResults,i=ty(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,c.__assign)((0,c.__assign)({},a),{result:t.canon.admit(a.result)}):a:(tf(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||Q.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:ty,makeCacheKey:function(e,t,r,n){if(tg(r.store))return r.store.makeCacheKey(e,(0,er.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,ey.LV)(function(e){return tf(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||Q.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(tg(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new t_},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=e.variables,o=e.returnPartialData,s=e.canonizeResults,l=void 0===s?this.config.canonizeResults:s,u=this.config.cache.policies;a=(0,c.__assign)((0,c.__assign)({},(0,h.wY)((0,h.AT)(n))),a);var d=(0,er.WU)(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:(0,h.Vn)(n).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,c.__assign)({store:r,query:n,policies:u,variables:a,varString:(0,em.M)(a),canonizeResults:l},to(n,this.config.fragments))});if(f.missing&&(t=[new e6(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,n,a)],!(void 0===o||o)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(tg(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,o=e.context;if((0,er.A_)(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=o.variables,l=o.policies,u=o.store.getFieldValue(i,"__typename"),c=[],f=new D;function h(e,r){var n;return e.missing&&(t=f.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof u&&!l.rootIdsByTypename[u]&&c.push({__typename:u});var p=new Set(n.selections);p.forEach(function(e){var n,m;if((0,y.MS)(e,s))if((0,er.dt)(e)){var g=l.readField({fieldName:e.name.value,field:e,variables:o.variables,from:i},o),_=(0,er.ue)(e);void 0===g?es.added(e)||(t=f.merge(t,((n={})[_]="Can't find field '".concat(e.name.value,"' on ").concat((0,er.A_)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,x.c)(g)?g.length>0&&(g=h(r.executeSubSelectedArray({field:e,array:g,enclosingRef:a,context:o}),_)):e.selectionSet?null!=g&&(g=h(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:(0,er.A_)(g)?g:a,context:o}),_)):o.canonizeResults&&(g=r.canon.pass(g)),void 0!==g&&c.push(((m={})[_]=g,m))}else{var v=(0,en.HQ)(e,o.lookupFragment);if(!v&&e.kind===et.b.FRAGMENT_SPREAD)throw(0,d.vA)(10,e.name.value);v&&l.fragmentMatches(v,u)&&v.selectionSet.selections.forEach(p.add,p)}});var m={result:O(c),missing:t},g=o.canonizeResults?this.canon.admit(m):(0,eR.G)(m);return g.result&&this.knownResults.set(g.result,n),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s=new D;function l(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,x.c)(e)?l(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:o}),t):n.selectionSet?l(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,er.A_)(e)?e:a,context:o}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,S.U)(r)&&((0,d.V1)(!(0,er.A_)(r),11,(0,er.A_)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(o.store,n,e),e)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),tb=r(54962),tw=r(62091),tE=Object.create(null);function tk(e){var t=JSON.stringify(e);return tE[t]||(tE[t]=Object.create(null))}function tT(e){var t=tk(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=tx(e,function(e){var i=tI(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&e8.call(t,e[0])&&(i=tI(t,e,tA)),(0,d.V1)(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function tS(e){var t=tk(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=JSON.stringify(tx(e,function(e){var r=e[0],a=r.charAt(0);if("@"===a){if(n&&(0,x.E)(n.directives)){var o=r.slice(1),s=n.directives.find(function(e){return e.name.value===o}),l=s&&(0,er.MB)(s,i);return l&&tI(l,e.slice(1))}return}if("$"===a){var u=r.slice(1);if(i&&e8.call(i,u)){var c=e.slice(0);return c[0]=u,tI(i,c)}return}if(t)return tI(t,e)}));return(t||"{}"!==o)&&(a+=":"+o),a})}function tx(e,t){var r=new D;return(function e(t){var r=tk(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,a){(0,x.c)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,x.c)(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e},Object.create(null))}function tA(e,t){return e[t]}function tI(e,t,r){return r=r||tA,function e(t){return(0,S.U)(t)?(0,x.c)(t)?t.map(e):tx(Object.keys(t).sort(),function(e){return tI(t,e)}):t}(t.reduce(function e(t,n){return(0,x.c)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function tO(e){return void 0!==e.args?e.args:e.field?(0,er.MB)(e.field,e.variables):null}var tN=function(){},tD=function(e,t){return t.fieldName},tC=function(e,t,r){return(0,r.mergeObjects)(e,t)},tP=function(e,t){return t},tL=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,c.__assign)({dataIdFromObject:te},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o=t&&t.storeObject||e,s=(0,c.__assign)((0,c.__assign)({},t),{typename:a,storeObject:o,readField:t&&t.readField||function(){var e=tM(arguments,o);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),l=a&&this.getTypePolicy(a),u=l&&l.keyFn||this.config.dataIdFromObject;return ej.withValue(!0,function(){for(;u;){var t=u((0,c.__assign)((0,c.__assign)({},e),o),s);if((0,x.c)(t))u=tT(t);else{n=t;break}}}),n=n?String(n):void 0,s.keyObject?[n,s.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,o=n.subscriptionType,s=(0,c.__rest)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),o&&t.setRootTypename("Subscription",r),e8.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?tC:!1===t?tP:e.merge}o(n,t.merge),n.keyFn=!1===i?tN:(0,x.c)(i)?tT(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;n.keyFn=!1===s?tD:(0,x.c)(s)?tS(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),o(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||tD)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,d.V1)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(tn);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!e8.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,c.__rest)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},u=!!(r&&this.fuzzySubtypes.size),c=!1,f=0;f<s.length;++f){var h=s[f];if(h.has(a))return o.has(a)||(c&&!1!==globalThis.__DEV__&&d.V1.warn(7,t,a),o.add(a)),!0;h.forEach(l),u&&f===s.length-1&&function e(t,r,n){return!!(0,S.U)(r)&&((0,x.c)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,er.dt)(t)&&(0,y.MS)(t,n)){var i=(0,er.ue)(t);return e8.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(u=!1,c=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&l(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=tO(e);a;){var l=a(s,o);if((0,x.c)(l))a=tS(l);else{t=l||n;break}}return(void 0===t&&(t=e.field?(0,er.Ii)(e.field,e.variables):(0,er.o5)(n,tO(e))),!1===t)?n:n===ti(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=ti(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a,!1),l=s&&s.read;if(l){var u=tR(this,r,e,t,t.store.getStorage((0,er.A_)(r)?r.__ref:r,i));return eZ.withValue(this.cache,l,[o,u])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===tC?tF(n.store)(e,t):s===tP?t:(n.overwrite&&(e=void 0),s(e,t,tR(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||Object.create(null))))},e}();function tR(e,t,r,n,i){var a=e.getStoreFieldName(r),o=ti(a),s=r.variables||n.variables,l=n.store,u=l.toReference,c=l.canRead;return{args:tO(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:er.A_,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(tM(arguments,t,s),n)},mergeObjects:tF(n.store)}}function tM(e,t,r){var n,i=e[0],a=e[1],o=e.length;return"string"==typeof i?n={fieldName:i,from:o>1?a:t}:(n=(0,c.__assign)({},i),e8.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&d.V1.warn(8,(0,tw.p)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function tF(e){return function(t,r){if((0,x.c)(t)||(0,x.c)(r))throw(0,d.vA)(9);if((0,S.U)(t)&&(0,S.U)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,er.A_)(t)&&ta(r))return e.merge(t.__ref,r),t;if(ta(t)&&(0,er.A_)(r))return e.merge(t,r.__ref),r;if(ta(t)&&ta(r))return(0,c.__assign)((0,c.__assign)({},t),r)}return r}}function tj(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,c.__assign)((0,c.__assign)({},e),{clientOnly:t,deferred:r})),i}var tB=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,l=(0,h.Vu)(n),u=new D;o=(0,c.__assign)((0,c.__assign)({},(0,h.wY)(l)),o);var f=(0,c.__assign)((0,c.__assign)({store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:o,varString:(0,em.M)(o)},to(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:f});if(!(0,er.A_)(p))throw(0,d.vA)(12,i);return f.incomingById.forEach(function(t,n){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=(0,er.WU)(n);if(a&&a.map.size){var l=r.applyMerges(a,s,i,f);if((0,er.A_)(l))return;i=l}if(!1!==globalThis.__DEV__&&!f.overwrite){var u=Object.create(null);o.forEach(function(e){e.selectionSet&&(u[e.name.value]=!0)});var h=function(e){var t=a&&a.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==u[ti(e)]||h(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(a){var o=i(t);if(!(!o||(0,er.A_)(a)||(0,ep.L)(a,o)||Object.keys(a).every(function(e){return void 0!==n.getFieldValue(o,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=ti(r),u="".concat(s,".").concat(l);if(!tH.has(u)){tH.add(u);var f=[];(0,x.c)(a)||(0,x.c)(o)||[a,o].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||f.includes(t)||f.push(t)}),!1!==globalThis.__DEV__&&d.V1.warn(15,l,s,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",u,(0,c.__assign)({},a),(0,c.__assign)({},o))}}}}(s,i,e,f.store)})}e.merge(n,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,l=Object.create(null),u=r&&s.rootTypenamesById[r]||(0,er.D$)(n,i,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof u&&(l.__typename=u);var f=function(){var e=tM(arguments,l,a.variables);if((0,er.A_)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=s.readField((0,c.__assign)((0,c.__assign)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return s.readField(e,a)},h=new Set;this.flattenFields(i,n,a,u).forEach(function(e,r){var i,a=n[(0,er.ue)(r)];if(h.add(r),void 0!==a){var c=s.getStoreFieldName({typename:u,fieldName:r.name.value,field:r,variables:e.variables}),p=tV(o,c),m=t.processFieldValue(a,r,r.selectionSet?tj(e,!1,!1):e,p),g=void 0;r.selectionSet&&((0,er.A_)(m)||ta(m))&&(g=f("__typename",m));var _=s.getMergeFunction(u,r.name.value,g);_?p.info={field:r,typename:u,merge:_}:tq(o,c),l=e.merge(l,((i={})[c]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||es.added(r)||s.getReadFunction(u,r.name.value)||!1===globalThis.__DEV__||d.V1.error(13,(0,er.ue)(r),n)});try{var p=s.identify(n,{typename:u,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:l,readField:f}),m=p[0],g=p[1];r=r||m,g&&(l=a.merge(l,g))}catch(e){if(!r)throw e}if("string"==typeof r){var _=(0,er.WU)(r),y=a.written[r]||(a.written[r]=[]);if(y.indexOf(i)>=0||(y.push(i),this.reader&&this.reader.isFresh(n,_,i,a)))return _;var v=a.incomingById.get(r);return v?(v.storeObject=a.merge(v.storeObject,l),v.mergeTree=function e(t,r){if(t===r||!r||tz(r))return t;if(!t||tz(t))return r;var n=t.info&&r.info?(0,c.__assign)((0,c.__assign)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var o=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),o.delete(n)}),o.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(v.mergeTree,o),h.forEach(function(e){return v.fieldNodeSet.add(e)})):a.incomingById.set(r,{storeObject:l,mergeTree:tz(o)?void 0:o,fieldNodeSet:h}),_}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,x.c)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,tV(n,a));return tq(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,tb.m)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,er.D$)(t,e,r.fragmentMap));var i=new Map,a=this.cache.policies,o=new eg.b(!1);return!function e(s,l){var u=o.lookup(s,l.clientOnly,l.deferred);u.visited||(u.visited=!0,s.selections.forEach(function(o){if((0,y.MS)(o,r.variables)){var s=l.clientOnly,u=l.deferred;if(!(s&&u)&&(0,x.E)(o.directives)&&o.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=(0,er.MB)(e,r.variables);n&&!1===n.if||(u=!0)}}),(0,er.dt)(o)){var c=i.get(o);c&&(s=s&&c.clientOnly,u=u&&c.deferred),i.set(o,tj(r,s,u))}else{var f=(0,en.HQ)(o,r.lookupFragment);if(!f&&o.kind===et.b.FRAGMENT_SPREAD)throw(0,d.vA)(14,o.name.value);f&&a.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,tj(r,s,u))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var a=this;if(e.map.size&&!(0,er.A_)(r)){var o,s,l=!(0,x.c)(r)&&((0,er.A_)(t)||ta(t))?t:void 0,u=r;l&&!i&&(i=[(0,er.A_)(l)?l.__ref:l]);var f=function(e,t){return(0,x.c)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=f(l,t),o=f(u,t);if(void 0!==o){i&&i.push(t);var c=a.applyMerges(e,r,o,n,i);c!==o&&(s=s||new Map).set(t,c),i&&(0,d.V1)(i.pop()===t)}}),s&&(r=(0,x.c)(u)?u.slice(0):(0,c.__assign)({},u),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(o=n.store).getStorage.apply(o,i)):r},e}(),tU=[];function tV(e,t){var r=e.map;return r.has(t)||r.set(t,tU.pop()||{map:new Map}),r.get(t)}function tz(e){return!e||!(e.info||e.map.size)}function tq(e,t){var r=e.map,n=r.get(t);n&&tz(n)&&(tU.push(n),r.delete(t))}var tH=new Set,tG=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new eb(es),n.assumeImmutableResults=!0,n.makeVar=eJ,n.txCount=0,r=t,n.config=(0,e9.o)(tt,r),n.addTypename=!!n.config.addTypename,n.policies=new tL({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,c.__extends)(t,e),t.prototype.init=function(){var e=this.data=new tc.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new tB(this,this.storeReader=new tv({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:tr(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,ey.LV)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||Q.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(tg(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,(0,em.M)({optimistic:n,id:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,c.__assign)((0,c.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof e6)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(e8.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,c.__assign)((0,c.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||(t=this,e$(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&eY(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){em.M.reset(),Y.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,er.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&d.V1.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(e8.call(e,"id"))return!1;e=(0,c.__assign)((0,c.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),em.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),eY(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,o=e.removeOptimistic,s=e.onWatchUpdated,l=function(e){var i=r.data,a=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=a}},u=new Set;return s&&!this.txCount&&this.broadcastWatches((0,c.__assign)((0,c.__assign)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),s&&u.size?(this.broadcastWatches((0,c.__assign)((0,c.__assign)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,ep.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(e4);!1!==globalThis.__DEV__&&(tG.prototype.getMemoryInternals=$.cM);let tW=JSON.parse('{"Product":["ConfigurableProduct","SimpleProduct","BundleProduct","PlanProduct","TokenizedProduct"],"OrderDiscountable":["OrderGlobalDiscount","OrderPaymentDiscount","OrderDeliveryDiscount","OrderItemDiscount"],"OrderDelivery":["OrderDeliveryPickUp","OrderDeliveryShipping"],"OrderPayment":["OrderPaymentInvoice","OrderPaymentCard","OrderPaymentGeneric"]}');function tK(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,r){var n=r.args,i=e?e.slice(0):[];if(t)if(n)for(var a=n.offset,o=void 0===a?0:a,s=0;s<t.length;++s)i[o+s]=t[s];else i.push.apply(i,t);return i}}}var tZ=null;let tQ={...{Query:{fields:{assortments:{...tK(["includeLeaves","includeInactive","tags","queryString","slugs","limit"])},products:{...tK(["includeDrafts","tags","queryString","sort","limit"])},product:{keyArgs:["productId","slug"],fields:{reviews:tK()}},user:{keyArgs:["userId"],fields:{reviews:tK()}},countries:{...tK(["includeInactive","queryString","sort","limit"])},currencies:{...tK(["includeInactive","queryString","sort","limit"])},enrollments:{...tK(["queryString","status","sort","limit"])},quotations:{...tK(["queryString","sort","limit"])},workQueue:{...tK(["status","types","created","queryString","limit"])},languages:{...tK(["includeInactive","queryString","sort","limit"])},events:{...tK(["types","queryString","sort","limit"])},users:{...tK(["includeGuests","queryString","emailVerified","lastLogin","limit"])},filters:{...tK(["queryString","includeInactive","sort","limit"])},orders:{...tK(["includeCarts","queryString","sort","limit"])}}}},keyFields:e=>(null==e?void 0:e._id)&&(null==e?void 0:e.__typename)?"".concat(null==e?void 0:e.__typename,":").concat(null==e?void 0:e._id):(null==e?void 0:e.id)&&(null==e?void 0:e.__typename)?"".concat(e.__typename,":").concat(e.id):null},t$=e=>new tG({typePolicies:tQ,possibleTypes:tW}),tY=["accept-language","pragma","user-agent","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-forwarded-server","x-mapihttpcapability","x-real-ip","x-user-identity","host","cookie","authorization"],tJ=(e,t)=>({headers:{...Object.fromEntries(Object.entries(e).filter(e=>{let[t]=e;return tY.includes(null==t?void 0:t.toLowerCase())})),"accept-language":(null==e?void 0:e.forceLocale)||t}}),tX=()=>"http://localhost:4010/graphql",t0=e=>{var t;let{headers:r={},locale:n}=e,i=(t=(e,t)=>{let{headers:i={}}=t;return tJ({...r,...i},n)},new _(function(e,r){var n=(0,c.__rest)(e,[]);return new f.c(function(i){var a,o=!1;return Promise.resolve(n).then(function(r){return t(r,e.getContext())}).then(e.setContext).then(function(){o||(a=r(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})),a=new ed({uri:tX(),credentials:"include",includeExtensions:!0}),o=e5(e=>{let{response:t,graphQLErrors:r,networkError:n,operation:i,forward:a}=e;r&&r.forEach(e=>{let{message:t,locations:r,path:n,extensions:a}=e;console.error("[GraphQL error]: Message: ".concat(t,", Location: ").concat(JSON.stringify(r),", Path: ").concat(n,", Extensions: ").concat(JSON.stringify(a),", Operation: ").concat(i.operationName))}),n&&console.error("[Network error]: ".concat(n,", Operation: ").concat(i.operationName))}),s=t$(n);return new e2({connectToDevTools:!0,defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",errorPolicy:"all"},mutate:{errorPolicy:"all"}},ssrMode:!1,link:_.from([o,i,a].filter(Boolean)),cache:s})},t1=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,{headers:t={},locale:r=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null!=n?n:t0({headers:t,locale:r});if(e){let t=i.extract(),r=s()(e,t,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!u()(e,t)))]});i.cache.restore(r)}return n=i,i};function t2(e){let{endpoint:t=null,...r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null==e?void 0:e.__APOLLO_STATE__;return(0,a.useMemo)(()=>t1(n,{...r}),[n,t])}},48230:(e,t,r)=>{e.exports=r(81639)},51485:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(37876),i=r(15039),a=r.n(i);let o=e=>{let{children:t,className:r=""}=e;return(0,n.jsx)("div",{className:"sm:max-w-full",children:(0,n.jsx)("div",{className:a()("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",r),children:t})})}},53021:()=>{},53279:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(4902),i=r(98149),a=r(74769),o=r(10143);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var l=function(){function e(t,r,a,l){void 0===r&&(r=e.defaultLocale);var u,c,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 r=t.reduce(function(e,t){return e.length&&t.type===o.TT.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,o.hN)(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.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=l||{},h=(f.formatters,(0,n.__rest)(f,["formatters"]));this.ast=e.__parse(t,(0,n.__assign)((0,n.__assign)({},h),{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=(u=e.formats,a?Object.keys(u).reduce(function(e,t){var r,i;return e[t]=(r=u[t],(i=a[t])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=(0,n.__assign)((0,n.__assign)({},r[t]),i[t]||{}),e},{})):r),e},(0,n.__assign)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:s(c.number),strategy:i.W.variadic}),getDateTimeFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:s(c.dateTime),strategy:i.W.variadic}),getPluralRules:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:s(c.pluralRules),strategy:i.W.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=a.qg,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}()},53657:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(72687),i=r(84915),a=r(32439),o=n._(r(83829));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.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,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=a.Image},53719:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{let{src:t,width:r,quality:n=75}=e;return t?"".concat(t,"?w=").concat(r,"&q=").concat(n):"/no-image.jpg"}},53757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluralRules=void 0;var n=r(4902),i=r(77262),a=r(23045),o=r(56392),s=n.__importDefault(r(57929));function l(e,t){if(!(e instanceof c))throw TypeError("Method Intl.PluralRules.prototype.".concat(t," called on incompatible receiver ").concat(String(e)))}function u(e,t,r,n){var i=n.IntegerDigits,a=n.NumberOfFractionDigits,o=n.FractionDigits;return c.localeData[e].fn(a?"".concat(i,".").concat(o):i,"ordinal"===t)}var c=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.PluralRules must be called with 'new'");return(0,a.InitializePluralRules)(this,t,r,{availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale,getInternalSlots:s.default})}return e.prototype.resolvedOptions=function(){l(this,"resolvedOptions");var t=Object.create(null),r=(0,s.default)(this);return t.locale=r.locale,t.type=r.type,["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(e){var n=r[e];void 0!==n&&(t[e]=n)}),t.pluralCategories=n.__spreadArray([],e.localeData[t.locale].categories[t.type],!0),t},e.prototype.select=function(e){l(this,"select");var t=(0,i.ToNumber)(e);return(0,o.ResolvePlural)(this,t,{getInternalSlots:s.default,PluralRuleSelect:u})},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,o=i.locale;e.localeData[o]=a,e.availableLocales.add(o),e.__defaultLocale||(e.__defaultLocale=o)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=[],e.polyfilled=!0,e}();t.PluralRules=c;try{"undefined"!=typeof Symbol&&Object.defineProperty(c.prototype,Symbol.toStringTag,{value:"Intl.PluralRules",writable:!1,enumerable:!1,configurable:!0});try{Object.defineProperty(c,"length",{value:0,writable:!1,enumerable:!1,configurable:!0})}catch(e){}Object.defineProperty(c.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c,"name",{value:"PluralRules",writable:!1,enumerable:!1,configurable:!0})}catch(e){}},53975:(e,t,r)=>{"use strict";function n(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}r.d(t,{w:()=>n})},54431:(e,t,r)=>{"use strict";r.d(t,{IT:()=>x});var n=r(4902),i=r(17318),a=r(60427),o=r.t(a,2),s=r(80542),l=!1,u=o.useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||l||n===t()||(l=!0,!1!==globalThis.__DEV__&&i.V1.error(68));var o=a.useState({inst:{value:n,getSnapshot:t}}),u=o[0].inst,d=o[1];return s.JR?a.useLayoutEffect(function(){Object.assign(u,{value:n,getSnapshot:t}),c(u)&&d({inst:u})},[e,n,t]):Object.assign(u,{value:n,getSnapshot:t}),a.useEffect(function(){return c(u)&&d({inst:u}),e(function(){c(u)&&d({inst:u})})},[e]),n};function c(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var d=r(20996),f=r(18877),h=r(94852),p=r(83070),m=r(35518),g=r(66434),_=r(37510),y=r(67994),v=r(79760),b=r(35785),w=r(21500),E=Symbol.for("apollo.hook.wrappers"),k=Object.prototype.hasOwnProperty;function T(){}var S=Symbol();function x(e,t){var r,n,i,a;return void 0===t&&(t=Object.create(null)),(r=A,(a=(i=(n=(0,y.m)(t&&t.client).queryManager)&&n[E])&&i.useQuery)?a(r):r)(e,t)}function A(e,t){var r,i,o,s,l,c,f,p,v,b,w,E,x,A,R,M,F,j,B,U,V,z,q,H,G,W,K,Z,Q,$,Y,J,X,ee,et,er,en,ei,ea,eo,es,el,eu,ec,ed,ef=(r=e,i=t,b=(0,y.m)(i.client),E=!!(w=a.useContext((0,h.l)()).renderPromises),x=b.disableNetworkFetches,A=!1!==i.ssr&&!i.skip,R=i.partialRefetch,M=(o=b,s=r,l=i,c=E,void 0===l&&(l={}),f=l.skip,p=(l.ssr,l.onCompleted,l.onError,l.defaultOptions),v=(0,n.__rest)(l,["skip","ssr","onCompleted","onError","defaultOptions"]),function(e){var t=Object.assign(v,{query:s});return c&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t.fetchPolicy="cache-first"),t.variables||(t.variables={}),f?(t.initialFetchPolicy=t.initialFetchPolicy||t.fetchPolicy||D(p,o.defaultOptions),t.fetchPolicy="standby"):t.fetchPolicy||(t.fetchPolicy=(null==e?void 0:e.options.initialFetchPolicy)||D(p,o.defaultOptions)),t}),B=(j=(F=function(e,t,r,i,o){function s(n){var a;return(0,_.D$)(t,_.KG.Query),{client:e,query:t,observable:i&&i.getSSRObservable(o())||m.U.inactiveOnCreation.withValue(!i,function(){return e.watchQuery(I(void 0,e,r,o()))}),resultData:{previousData:null==(a=null==n?void 0:n.resultData.current)?void 0:a.data}}}var l=a.useState(s),u=l[0],c=l[1];function d(e){Object.assign(u.observable,((t={})[S]=e,t));var t,r,i=u.resultData;c((0,n.__assign)((0,n.__assign)({},u),{query:e.query,resultData:Object.assign(i,{previousData:(null==(r=i.current)?void 0:r.data)||i.previousData,current:void 0})}))}if(e!==u.client||t!==u.query){var f=s(u);return c(f),[f,d]}return[u,d]}(b,r,i,w,M))[0]).observable,U=j.resultData,V=F[1],z=M(B),q=U,H=B,G=b,W=i,K=z,H[S]&&!(0,d.L)(H[S],K)&&(H.reobserve(I(H,G,W,K)),q.previousData=(null==(Z=q.current)?void 0:Z.data)||q.previousData,q.current=void 0),H[S]=K,Q=a.useMemo(function(){var e;return{refetch:(e=B).refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[B]),$=B,Y=w,J=A,Y&&J&&(Y.registerSSRObservable($),$.getCurrentResult().loading&&Y.addObservableQueryPromise($)),{result:(X=U,ee=B,et=b,er=i,en=z,ei=x,ea=R,eo=E,es={onCompleted:i.onCompleted||T,onError:i.onError||T},el=a.useRef(es),a.useEffect(function(){el.current=es}),eu=(eo||ei)&&!1===er.ssr&&!er.skip?P:er.skip||"standby"===en.fetchPolicy?L:void 0,ec=X.previousData,ed=a.useMemo(function(){return eu&&C(eu,ec,ee,et)},[et,ee,eu,ec]),u(a.useCallback(function(e){if(eo)return function(){};var t=function(){var t=X.current,r=ee.getCurrentResult();t&&t.loading===r.loading&&t.networkStatus===r.networkStatus&&(0,d.L)(t.data,r.data)||O(r,X,ee,et,ea,e,el.current)},r=function(i){if(n.current.unsubscribe(),n.current=ee.resubscribeAfterError(t,r),!k.call(i,"graphQLErrors"))throw i;var a=X.current;(!a||a&&a.loading||!(0,d.L)(i,a.error))&&O({data:a&&a.data,error:i,loading:!1,networkStatus:g.pT.error},X,ee,et,ea,e,el.current)},n={current:ee.subscribe(t,r)};return function(){setTimeout(function(){return n.current.unsubscribe()})}},[ei,eo,ee,X,ea,et]),function(){return ed||N(X,ee,el.current,ea,et)},function(){return ed||N(X,ee,el.current,ea,et)})),obsQueryFields:Q,observable:B,resultData:U,client:b,onQueryExecuted:V}),eh=ef.result,ep=ef.obsQueryFields;return a.useMemo(function(){return(0,n.__assign)((0,n.__assign)({},eh),ep)},[eh,ep])}function I(e,t,r,n){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),r.defaultOptions&&i.push(r.defaultOptions),i.push((0,v.o)(e&&e.options,n)),i.reduce(f.l)}function O(e,t,r,a,o,s,l){var u,c,d,f=t.current;f&&f.data&&(t.previousData=f.data),!e.error&&(0,b.E)(e.errors)&&(e.error=new p.K4({graphQLErrors:e.errors})),t.current=C((u=e,c=r,d=o,u.partial&&d&&!u.loading&&(!u.data||0===Object.keys(u.data).length)&&"cache-only"!==c.options.fetchPolicy?(c.refetch(),(0,n.__assign)((0,n.__assign)({},u),{loading:!0,networkStatus:g.pT.refetch})):u),t.previousData,r,a),s(),function(e,t,r){if(!e.loading){var n,a=(n=e,(0,b.E)(n.errors)?new p.K4({graphQLErrors:n.errors}):n.error);Promise.resolve().then(function(){a?r.onError(a):e.data&&t!==e.networkStatus&&e.networkStatus===g.pT.ready&&r.onCompleted(e.data)}).catch(function(e){!1!==globalThis.__DEV__&&i.V1.warn(e)})}}(e,null==f?void 0:f.networkStatus,l)}function N(e,t,r,n,i){return e.current||O(t.getCurrentResult(),e,t,i,n,function(){},r),e.current}function D(e,t){var r;return(null==e?void 0:e.fetchPolicy)||(null==(r=null==t?void 0:t.watchQuery)?void 0:r.fetchPolicy)||"cache-first"}function C(e,t,r,i){var a=e.data,o=(e.partial,(0,n.__rest)(e,["data","partial"]));return(0,n.__assign)((0,n.__assign)({data:a},o),{client:i,observable:r,variables:r.variables,called:e!==P&&e!==L,previousData:t})}var P=(0,w.G)({loading:!0,data:void 0,error:void 0,networkStatus:g.pT.loading}),L=(0,w.G)({loading:!1,data:void 0,error:void 0,networkStatus:g.pT.ready})},54587:(e,t,r)=>{e.exports=r(53657)},54962:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var a=Object.create(Object.getPrototypeOf(t));return r.set(t,a),Object.keys(t).forEach(function(n){a[n]=e(t[n],r)}),a;default:return t}}(e)}},56186:(e,t,r)=>{"use strict";r.d(t,{Ho:()=>c,OC:()=>o,hr:()=>l,pg:()=>u,sb:()=>d,uo:()=>s});var n,i=r(4902);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(n||(n={}));var a=function(e){function t(r,n,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return(0,i.__extends)(t,e),t}(Error),o=function(e){function t(t,r){return e.call(this,n.UNSUPPORTED_FORMATTER,t,r)||this}return(0,i.__extends)(t,e),t}(a),s=function(e){function t(t,r){return e.call(this,n.INVALID_CONFIG,t,r)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,n.MISSING_DATA,t,r)||this}return(0,i.__extends)(t,e),t}(a),u=function(e){function t(t,r,i){var a=e.call(this,n.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),i)||this;return a.locale=r,a}return(0,i.__extends)(t,e),t}(a),c=function(e){function t(t,r,n,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return a.descriptor=n,a.locale=r,a}return(0,i.__extends)(t,e),t}(u),d=function(e){function t(t,r){var i=e.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", 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)?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.__extends)(t,e),t}(a)},56392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolvePlural=function(e,t,r){var a=r.getInternalSlots,o=r.PluralRuleSelect,s=a(e);if((0,n.invariant)("Object"===(0,n.Type)(s),"pl has to be an object"),(0,n.invariant)("initializedPluralRules"in s,"pluralrules must be initialized"),!t.isFinite())return"other";var l=s.locale,u=s.type,c=(0,n.FormatNumericToString)(s,t).formattedString;return o(l,u,t,(0,i.GetOperands)(c))};var n=r(77262),i=r(89356)},57929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},58011:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n={createInterruptionMessage:e=>({id:"interruption-".concat(Date.now()),role:"assistant",content:"⚠️ **Operation Interrupted**\n\nThe current operation was stopped by user request.\n\n**Status at interruption:**\n- Current phase: ".concat({submitted:"request processing",streaming:"response generation",error:"error handling",ready:"idle state"}[e]||e,"\n- Remaining tasks may not have been completed\n- You can start a new request at any time\n\n*The system is ready for your next command.*")}),hasIncompleteToolInvocations:e=>"assistant"===e.role&&!!e.parts&&e.parts.some(e=>"tool-invocation"===e.type&&e.toolInvocation&&(!e.toolInvocation.result||"call"===e.toolInvocation.state)),filterCompleteMessages(e){return e.filter(e=>!this.hasIncompleteToolInvocations(e))}}},58287:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{U:()=>n})},58851:(e,t,r)=>{"use strict";r.d(t,{A_:()=>l,D$:()=>function e(t,r,n){for(var i,o=0,s=r.selections;o<s.length;o++){var l=s[o];if(_(l)){if("__typename"===l.name.value)return t[g(l)]}else i?i.push(l):i=[l]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var u=0,c=i;u<c.length;u++){var l=c[u],d=e(t,(0,a.HQ)(l,n).selectionSet,n);if("string"==typeof d)return d}},Ii:()=>d,J:()=>c,Kc:()=>u,MB:()=>m,WU:()=>s,dt:()=>_,kd:()=>y,o5:()=>p,ue:()=>g});var n=r(17318),i=r(93957),a=r(68922),o=r(26828);function s(e){return{__ref:String(e)}}function l(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var a={};r.fields.map(function(e){return c(a,e.name,e.value,i)}),e[t.value]=a}else if("Variable"===r.kind){var o=(i||{})[r.name.value];e[t.value]=o}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return c(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,n.vA)(96,t.value,r.kind)}function d(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,a=n.value;return c(r[e.name.value],i,a,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return c(n,r,i,t)})),p(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],h=o.M,p=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(h(i),")")}var a=e;if(t){var o=h(t);a+="(".concat(o,")")}return r&&Object.keys(r).forEach(function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@".concat(e,"(").concat(h(r[e]),")"):a+="@".concat(e))}),a},{setStringify:function(e){var t=h;return h=e,t}});function m(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return c(r,e.name,e.value,t)}),r}return null}function g(e){return e.alias?e.alias.value:e.name.value}function _(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}},60427:(e,t,r)=>{"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(14232))},60621:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))})},61282:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))})},62048:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var n=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(n||{})},62091:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(18659);function i(e,t){void 0===t&&(t=0);var r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}},63333:(e,t,r)=>{"use strict";r.d(t,{P:()=>s,a:()=>o});var n=r(14232),i=r(27721);let a=Symbol();function o(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[a]:t})}function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=(0,n.useRef)(t);(0,n.useEffect)(()=>{o.current=t},[t]);let s=(0,i._)(e=>{for(let t of o.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:s}},63402:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(37876),i=r(48230),a=r.n(i),o=r(77742),s=r(51485);let l=e=>{let{error:t=null,resetError:r=null}=e,{formatMessage:i}=(0,o.A)();return(0,n.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h2",{className:"text-center text-3xl text-slate-900 dark:text-slate-200",children:i({id:"internal_server_error",defaultMessage:"500 Internal Server Error"})})}),(0,n.jsx)(s.A,{children:(0,n.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,n.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,n.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-rose-600 dark:text-rose-400",children:i({id:"error_500",defaultMessage:"500 Error"})}),(0,n.jsx)("p",{className:"mt-2 text-base text-slate-500 dark:text-slate-400",children:i({id:"internal_server_error_message",defaultMessage:"Sorry, something went wrong on our end. We are working to fix this."})}),(null==t?void 0:t.message)&&(0,n.jsxs)("details",{className:"mt-4 text-left",children:[(0,n.jsx)("summary",{className:"cursor-pointer text-sm text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-300",children:i({id:"show_error_details",defaultMessage:"Show error details"})}),(0,n.jsx)("pre",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400 whitespace-pre-wrap break-all",children:null==t?void 0:t.message})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,n.jsxs)(a(),{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),i({id:"back_to_home",defaultMessage:"Back to Home"})]}),r&&(0,n.jsxs)("button",{type:"button",onClick:r,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-slate-100 dark:bg-slate-700 dark:border-slate-600 py-2 px-4 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:outline-hidden focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-slate-500 dark:text-slate-400 group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),i({id:"try_again",defaultMessage:"Try Again"})]})]})]})})]})})}},63724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},63965:(e,t,r)=>{"use strict";let n;r.d(t,{DX:()=>f,yN:()=>L,LV:()=>F});var i=r(39668),a=r(36898);let o=null,s={},l=1;function u(e){try{return e()}catch(e){}}let c="@wry/context:Slot",d=u(()=>globalThis)||u(()=>global)||Object.create(null),f=d[c]||Array[c]||function(e){try{Object.defineProperty(d,c,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=o;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===s)break;return e!==o&&(o.slots[this.id]=t),!0}return o&&(o.slots[this.id]=s),!1}getValue(){if(this.hasValue())return o.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},a=o;o={parent:a,slots:i};try{return t.apply(n,r)}finally{o=a}}static bind(e){let t=o;return function(){let r=o;try{return o=t,e.apply(this,arguments)}finally{o=r}}}static noContext(e,t,r){if(!o)return e.apply(r,t);{let n=o;try{return o=null,e.apply(r,t)}finally{o=n}}}}),{bind:h,noContext:p}=f,m=new f,{hasOwnProperty:g}=Object.prototype,_=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function y(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let v=[];function b(e,t){if(!e)throw Error(t||"assertion failure")}function w(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function E(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class k{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++k.count}peek(){if(1===this.value.length&&!x(this))return T(this),this.value[0]}recompute(e){var t,r,n;return b(!this.recomputing,"already recomputing"),T(this),x(this)?(t=this,r=e,D(t),m.withValue(t,S,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{y(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,x(n)||function(e){A(e,O)}(n)),E(t.value)):E(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,A(e,I),y(this))}dispose(){this.setDirty(),D(this),A(this,(e,t)=>{e.setDirty(),C(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=v.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(_(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),v.push(this.deps),this.deps=null)}}function T(e){let t=m.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),x(e)?I(t,e):O(t,e),t}function S(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!w(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function x(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}k.count=0;function A(e,t){let r=e.parents.size;if(r){let n=_(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function I(e,t){b(e.childValues.has(t)),b(x(t));let r=!x(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=v.pop()||new Set;e.dirtyChildren.add(t),r&&A(e,I)}function O(e,t){b(e.childValues.has(t)),b(!x(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):w(r,t.value)||e.setDirty(),N(e,t),x(e)||A(e,O)}function N(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(v.length<100&&v.push(r),e.dirtyChildren=null))}function D(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{C(e,r)}),e.forgetDeps(),b(null===e.dirtyChildren)}function C(e,t){t.parents.delete(e),e.childValues.delete(t),N(e,t)}let P={setDirty:!0,dispose:!0,forget:!0};function L(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=m.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(y(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&g.call(P,r)?r:"setDirty";_(n).forEach(e=>e[i]()),t.delete(e),y(n)}},n}function R(...e){return(n||(n=new i.b("function"==typeof WeakMap))).lookupArray(e)}let M=new Set;function F(e,{max:t=65536,keyArgs:r,makeCacheKey:n=R,normalizeResult:i,subscribe:o,cache:s=a.C}=Object.create(null)){let l="function"==typeof s?new s(t,e=>e.dispose()):s,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=l.get(t);a||(l.set(t,a=new k(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>l.delete(t));let s=a.recompute(Array.prototype.slice.call(arguments));return l.set(t,a),M.add(l),m.hasValue()||(M.forEach(e=>e.clean()),M.clear()),s};function c(e){let t=e&&l.get(e);t&&t.setDirty()}function d(e){let t=e&&l.get(e);if(t)return t.peek()}function f(e){return!!e&&l.delete(e)}return Object.defineProperty(u,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:l}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=d,u.peek=function(){return d(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}},66077:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r);class o{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let s=new o},66253:e=>{e.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let a=Date.now(),o=t-(a-n);o<=0?(n=a,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},o)}}},66434:(e,t,r)=>{"use strict";var n;function i(e){return!!e&&e<7}r.d(t,{bi:()=>i,pT:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},67056:(e,t,r)=>{"use strict";var n=r(82909).hp;let i=void 0!==n,a=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function s(e,t,r){null==r&&null!==t&&"object"==typeof t&&(r=t,t=void 0),i&&n.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let s=JSON.parse(e,t);if(null===s||"object"!=typeof s)return s;let u=r&&r.protoAction||"error",c=r&&r.constructorAction||"error";if("ignore"===u&&"ignore"===c)return s;if("ignore"!==u&&"ignore"!==c){if(!1===a.test(e)&&!1===o.test(e))return s}else if("ignore"!==u&&"ignore"===c){if(!1===a.test(e))return s}else if(!1===o.test(e))return s;return l(s,{protoAction:u,constructorAction:c,safe:r&&r.safe})}function l(e,{protoAction:t="error",constructorAction:r="error",safe:n}={}){let i=[e];for(;i.length;){let e=i;for(let a of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(a,"__proto__")){if(!0===n)return null;if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete a.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(a,"constructor")&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype")){if(!0===n)return null;if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete a.constructor}for(let e in a){let t=a[e];t&&"object"==typeof t&&i.push(t)}}}return e}function u(e,t,r){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return s(e,t,r)}finally{Error.stackTraceLimit=n}}e.exports=u,e.exports.default=u,e.exports.parse=u,e.exports.safeParse=function(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return s(e,t,{safe:!0})}catch(e){return null}finally{Error.stackTraceLimit=r}},e.exports.scan=l},67994:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(17318),i=r(60427),a=r(94852);function o(e){var t=i.useContext((0,a.l)()),r=e||t.client;return(0,n.V1)(!!r,58),r}},68922:(e,t,r)=>{"use strict";r.d(t,{HQ:()=>l,JG:()=>s,ct:()=>o,s6:()=>u});var n=r(4902),i=r(17318),a=r(74968);function o(e,t){var r=t,a=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i.vA)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&a.push(e)}),void 0===r&&((0,i.V1)(1===a.length,86,a.length),r=a[0].name.value),(0,n.__assign)((0,n.__assign)({},e),{definitions:(0,n.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function l(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.V1)(n,87,r),n||null;default:return null}}function u(e){var t=!0;return(0,a.YR)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return a.sP}}),t}},69368:(e,t,r)=>{"use strict";var n=r(53757);(0,r(90600).shouldPolyfill)()&&Object.defineProperty(Intl,"PluralRules",{value:n.PluralRules,writable:!0,enumerable:!1,configurable:!0})},69964:(e,t,r)=>{e=r.nmd(e);var n,i,a="__lodash_hash_undefined__",o="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",h="[object Number]",p="[object Object]",m="[object Promise]",g="[object RegExp]",_="[object Set]",y="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[o]=T[s]=T[b]=T[l]=T[w]=T[u]=T[c]=T[d]=T[f]=T[h]=T[p]=T[g]=T[_]=T[y]=T[v]=!1;var S="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,A=S||x||Function("return this")(),I=t&&!t.nodeType&&t,O=I&&e&&!e.nodeType&&e,N=O&&O.exports===I,D=N&&S.process,C=function(){try{return D&&D.binding&&D.binding("util")}catch(e){}}(),P=C&&C.isTypedArray;function L(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function R(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var M=Array.prototype,F=Function.prototype,j=Object.prototype,B=A["__core-js_shared__"],U=F.toString,V=j.hasOwnProperty,z=function(){var e=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),q=j.toString,H=RegExp("^"+U.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=N?A.Buffer:void 0,W=A.Symbol,K=A.Uint8Array,Z=j.propertyIsEnumerable,Q=M.splice,$=W?W.toStringTag:void 0,Y=Object.getOwnPropertySymbols,J=G?G.isBuffer:void 0,X=(n=Object.keys,i=Object,function(e){return n(i(e))}),ee=eT(A,"DataView"),et=eT(A,"Map"),er=eT(A,"Promise"),en=eT(A,"Set"),ei=eT(A,"WeakMap"),ea=eT(Object,"create"),eo=eA(ee),es=eA(et),el=eA(er),eu=eA(en),ec=eA(ei),ed=W?W.prototype:void 0,ef=ed?ed.valueOf:void 0;function eh(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ep(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new em;++t<r;)this.add(e[t])}function e_(e){var t=this.__data__=new ep(e);this.size=t.size}function ey(e,t){for(var r=e.length;r--;)if(eI(e[r][0],t))return r;return -1}function ev(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?function(e){var t=V.call(e,$),r=e[$];try{e[$]=void 0;var n=!0}catch(e){}var i=q.call(e);return n&&(t?e[$]=r:delete e[$]),i}(e):(t=e,q.call(t))}function eb(e){return eR(e)&&ev(e)==o}function ew(e,t,r,n,i,a){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,d=!0,f=2&r?new eg:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var h=e[c],p=t[c];if(n)var m=o?n(p,h,c,t,e,a):n(h,p,c,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(h===e||i(h,e,r,n,a)))return f.push(t)})){d=!1;break}}else if(!(h===p||i(h,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function eE(e){var t;return t=eF(e),eN(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eS(e))}function ek(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function eT(e,t){var r,n=null==e?void 0:e[t];return!(!eL(n)||(r=n,z&&z in r))&&(eC(n)?H:E).test(eA(n))?n:void 0}eh.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},eh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},eh.prototype.get=function(e){var t=this.__data__;if(ea){var r=t[e];return r===a?void 0:r}return V.call(t,e)?t[e]:void 0},eh.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:V.call(t,e)},eh.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ea&&void 0===t?a:t,this},ep.prototype.clear=function(){this.__data__=[],this.size=0},ep.prototype.delete=function(e){var t=this.__data__,r=ey(t,e);return!(r<0)&&(r==t.length-1?t.pop():Q.call(t,r,1),--this.size,!0)},ep.prototype.get=function(e){var t=this.__data__,r=ey(t,e);return r<0?void 0:t[r][1]},ep.prototype.has=function(e){return ey(this.__data__,e)>-1},ep.prototype.set=function(e,t){var r=this.__data__,n=ey(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(et||ep),string:new eh}},em.prototype.delete=function(e){var t=ek(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return ek(this,e).get(e)},em.prototype.has=function(e){return ek(this,e).has(e)},em.prototype.set=function(e,t){var r=ek(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},eg.prototype.add=eg.prototype.push=function(e){return this.__data__.set(e,a),this},eg.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.clear=function(){this.__data__=new ep,this.size=0},e_.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},e_.prototype.get=function(e){return this.__data__.get(e)},e_.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ep){var n=r.__data__;if(!et||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new em(n)}return r.set(e,t),this.size=r.size,this};var eS=Y?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}(Y(e=Object(e)),function(t){return Z.call(e,t)})}:function(){return[]},ex=ev;function eA(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eI(e,t){return e===t||e!=e&&t!=t}(ee&&ex(new ee(new ArrayBuffer(1)))!=w||et&&ex(new et)!=f||er&&ex(er.resolve())!=m||en&&ex(new en)!=_||ei&&ex(new ei)!=v)&&(ex=function(e){var t=ev(e),r=t==p?e.constructor:void 0,n=r?eA(r):"";if(n)switch(n){case eo:return w;case es:return f;case el:return m;case eu:return _;case ec:return v}return t});var eO=eb(function(){return arguments}())?eb:function(e){return eR(e)&&V.call(e,"callee")&&!Z.call(e,"callee")},eN=Array.isArray,eD=J||function(){return!1};function eC(e){if(!eL(e))return!1;var t=ev(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eP(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eL(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eR(e){return null!=e&&"object"==typeof e}var eM=P?function(e){return P(e)}:function(e){return eR(e)&&eP(e.length)&&!!T[ev(e)]};function eF(e){return null!=e&&eP(e.length)&&!eC(e)?function(e,t){var r,n,i=eN(e),a=!i&&eO(e),o=!i&&!a&&eD(e),s=!i&&!a&&!o&&eM(e),l=i||a||o||s,u=l?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var d in e){V.call(e,d)&&!(l&&("length"==d||o&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(r=d,(n=null==(n=c)?0x1fffffffffffff:n)&&("number"==typeof r||k.test(r))&&r>-1&&r%1==0&&r<n)))&&u.push(d)}return u}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||j))return X(e);var t,r,n=[];for(var i in Object(e))V.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}e.exports=function(e,t){return function e(t,r,n,i,a){return t===r||(null!=t&&null!=r&&(eR(t)||eR(r))?function(e,t,r,n,i,a){var d=eN(e),m=eN(t),v=d?s:ex(e),E=m?s:ex(t);v=v==o?p:v,E=E==o?p:E;var k=v==p,T=E==p,S=v==E;if(S&&eD(e)){if(!eD(t))return!1;d=!0,k=!1}if(S&&!k)return a||(a=new e_),d||eM(e)?ew(e,t,r,n,i,a):function(e,t,r,n,i,a,o){switch(r){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case b:if(e.byteLength!=t.byteLength||!a(new K(e),new K(t)))break;return!0;case l:case u:case h:return eI(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var s=L;case _:var d=1&n;if(s||(s=R),e.size!=t.size&&!d)break;var p=o.get(e);if(p)return p==t;n|=2,o.set(e,t);var m=ew(s(e),s(t),n,i,a,o);return o.delete(e),m;case"[object Symbol]":if(ef)return ef.call(e)==ef.call(t)}return!1}(e,t,v,r,n,i,a);if(!(1&r)){var x=k&&V.call(e,"__wrapped__"),A=T&&V.call(t,"__wrapped__");if(x||A){var I=x?e.value():e,O=A?t.value():t;return a||(a=new e_),i(I,O,r,n,a)}}return!!S&&(a||(a=new e_),function(e,t,r,n,i,a){var o=1&r,s=eE(e),l=s.length;if(l!=eE(t).length&&!o)return!1;for(var u=l;u--;){var c=s[u];if(!(o?c in t:V.call(t,c)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var h=o;++u<l;){var p=e[c=s[u]],m=t[c];if(n)var g=o?n(m,p,c,t,e,a):n(p,m,c,e,t,a);if(!(void 0===g?p===m||i(p,m,r,n,a):g)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var _=e.constructor,y=t.constructor;_!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof y&&y instanceof y)&&(f=!1)}return a.delete(e),a.delete(t),f}(e,t,r,n,i,a))}(t,r,n,i,e,a):t!=t&&r!=r)}(e,t)}},70097:(e,t,r)=>{"use strict";r.d(t,{e:()=>function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=setTimeout(...t);return r.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let a={current:!0};return(0,n._)(()=>{a.current&&t[0]()}),r.add(()=>{a.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}});var n=r(40720)},70789:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case a:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===o||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_)},t.typeOf=w},71211:(e,t,r)=>{"use strict";r.d(t,{MS:()=>o,d8:()=>s,f2:()=>l,s7:()=>u});var n=r(17318),i=r(74968),a=r(94587);function o(e,t){var r,i,a=e.directives;return!a||!a.length||(i=[],(r=a)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,a=e.name.value;(0,n.V1)(r&&1===r.length,79,a);var o=r[0];(0,n.V1)(o.name&&"if"===o.name.value,80,a);var s=o.value;(0,n.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,a),i.push({directive:e,ifArgument:o})}}),i).every(function(e){var r=e.directive,i=e.ifArgument,a=!1;return"Variable"===i.value.kind?(a=t&&t[i.value.name.value],(0,n.V1)(void 0!==a,78,r.name.value)):a=i.value.value,"skip"===r.name.value?!a:a})}function s(e,t,r){var n=new Set(e),a=n.size;return(0,i.YR)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.sP}}),r?!n.size:n.size<a}function l(e){return e&&s(["client","export"],e,!0)}function u(e){var t,r,i=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!i)return"mask";var o=null==(r=i.arguments)?void 0:r.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&o&&(o.value.kind===a.b.VARIABLE?!1!==globalThis.__DEV__&&n.V1.warn(82):o.value.kind!==a.b.STRING?!1!==globalThis.__DEV__&&n.V1.warn(83):"migrate"!==o.value.value&&!1!==globalThis.__DEV__&&n.V1.warn(84,o.value.value)),o&&"value"in o.value&&"migrate"===o.value.value)?"migrate":"unmask"}},72238:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))})},72539:(e,t,r)=>{"use strict";var n=r(4902).__importDefault(r(19124));(0,r(94745).shouldPolyfill)()&&Object.defineProperty(Intl,"RelativeTimeFormat",{value:n.default,writable:!0,enumerable:!1,configurable:!0})},72891:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext({isAdmin:()=>!1,hasRole:()=>!1})},74769:(e,t,r)=>{"use strict";r.d(t,{ZE:()=>i,Im:()=>c,tv:()=>f,Tu:()=>v,eW:()=>u,oF:()=>d,N1:()=>y,N6:()=>m,jA:()=>g,Jp:()=>p,xm:()=>_,Qh:()=>h,qg:()=>X});var n,i,a,o,s,l=r(4902);function u(e){return e.type===i.literal}function c(e){return e.type===i.argument}function d(e){return e.type===i.number}function f(e){return e.type===i.date}function h(e){return e.type===i.time}function p(e){return e.type===i.select}function m(e){return e.type===i.plural}function g(e){return e.type===i.pound}function _(e){return e.type===i.tag}function y(e){return!!(e&&"object"==typeof e&&e.type===a.number)}function v(e){return!!(e&&"object"==typeof e&&e.type===a.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(a||(a={}));var b=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[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,k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,T=/^(@+)?(\+|#+)?[rs]?$/g,S=/(\*)(0+)|(#+)(0+)|(0+)/g,x=/^(0+)$/;function A(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(T,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.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 O(e){var t=I(e);return t||{}}var N={"001":["H","h"],419:["h","H","hB","hb"],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"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],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"],CW:["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","H","hB","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"],FO:["H","h"],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"],GL:["H","h"],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"],HU:["H","h"],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","K","h"],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:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],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"],MT:["H","h"],MU:["H","h"],MV:["H","h"],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"],NO:["H","h"],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","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","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"],RW:["H","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"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","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"],VN:["H","h"],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"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["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"]},D=new RegExp("^".concat(b.source,"*")),C=new RegExp("".concat(b.source,"*$"));function P(e,t){return{start:e,end:t}}var L=!!String.prototype.startsWith&&"_a".startsWith("a",1),R=!!String.fromCodePoint,M=!!Object.fromEntries,F=!!String.prototype.codePointAt,j=!!String.prototype.trimStart,B=!!String.prototype.trimEnd,U=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},V=!0;try{V=(null==(o=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:o[0])==="a"}catch(e){V=!1}var z=L?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},q=R?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0;i>a;){if((e=t[a++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},H=M?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],a=n[1];t[i]=a}return t},G=F?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},W=j?function(e){return e.trimStart()}:function(e){return e.replace(D,"")},K=B?function(e){return e.trimEnd()}:function(e){return e.replace(C,"")};function Z(e,t){return new RegExp(e,t)}if(V){var Q=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");s=function(e,t){var r;return Q.lastIndex=t,null!=(r=Q.exec(e)[1])?r:""}}else s=function(e,t){for(var r=[];;){var n,i=G(e,t);if(void 0===i||J(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return q.apply(void 0,r)};var $=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,r){for(var a=[];!this.isEOF();){var o=this.char();if(123===o){var s=this.parseArgument(e,r);if(s.err)return s;a.push(s.val)}else if(125===o&&e>0)break;else if(35===o&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),a.push({type:i.pound,location:P(l,this.clonePosition())})}else if(60!==o||this.ignoreTag||47!==this.peek())if(60===o&&!this.ignoreTag&&Y(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;a.push(s.val)}else if(!r)return this.error(n.UNMATCHED_CLOSING_TAG,P(this.clonePosition(),this.clonePosition()));else break}return{val:a,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(a,"/>"),location:P(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(n.INVALID_TAG,P(r,this.clonePosition()));var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(n.UNCLOSED_TAG,P(r,this.clonePosition()));if(this.isEOF()||!Y(this.char()))return this.error(n.INVALID_TAG,P(l,this.clonePosition()));var u=this.clonePosition();return a!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,P(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:i.tag,value:a,children:s,location:P(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,P(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 r=this.clonePosition(),n="";;){var a=this.tryParseQuote(t);if(a){n+=a;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var l=P(r,this.clonePosition());return{val:{type:i.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Y(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(),"'";case 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 r=this.char();if(39===r)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return q.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),q(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,P(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(n.MALFORMED_ARGUMENT,P(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:a,location:P(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition()));return this.parseArgumentOptions(e,t,a,r);default:return this.error(n.MALFORMED_ARGUMENT,P(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=s(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:P(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,o){var s,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(c){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,P(u,d));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var m=K(p.val);if(0===m.length)return this.error(n.EXPECT_ARGUMENT_STYLE,P(this.clonePosition(),this.clonePosition()));f={style:m,styleLocation:P(h,this.clonePosition())}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var _=P(o,this.clonePosition());if(f&&z(null==f?void 0:f.style,"::",0)){var y=W(f.style.slice(2));if("number"===c){var p=this.parseNumberSkeletonFromString(y,f.styleLocation);if(p.err)return p;return{val:{type:i.number,value:r,location:_,style:p.val},err:null}}if(0===y.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,_);var v,b=y;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(N[t||""]||N[n||""]||N["".concat(n,"-001")]||N["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)r+="a";for(;o-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(y,this.locale));var m={type:a.dateTime,pattern:b,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},b.replace(w,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?"long":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?i.date:i.time,value:r,location:_,style:m},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:r,location:_,style:null!=(s=null==f?void 0:f.style)?s:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,P(E,(0,l.__assign)({},E)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),T=0;if("select"!==c&&"offset"===k.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),k=this.parseIdentifierIfPossible(),T=p.val}var S=this.tryParsePluralOrSelectOptions(e,c,t,k);if(S.err)return S;var g=this.tryParseArgumentClose(o);if(g.err)return g;var x=P(o,this.clonePosition());if("select"===c)return{val:{type:i.select,value:r,options:H(S.val),location:x},err:null};return{val:{type:i.plural,value:r,options:H(S.val),offset:T,pluralType:"plural"===c?"cardinal":"ordinal",location:x},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,P(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,P(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 r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,P(r,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 r=[];try{r=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}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],o=i.slice(1),s=0;s<o.length;s++)if(0===o[s].length)throw Error("Invalid number skeleton");r.push({stem:a,options:o})}return r}(e)}catch(e){return this.error(n.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.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=n.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,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),O(t))},{}));continue;case"engineering":t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),O(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(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(S,function(e,r,n,i,a,o){if(r)t.minimumIntegerDigits=n.length;else if(i&&a)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(x.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(k.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(k,function(e,r,n,i,a,o){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,l.__assign)((0,l.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,l.__assign)((0,l.__assign)({},t),A(i)));continue}if(T.test(n.stem)){t=(0,l.__assign)((0,l.__assign)({},t),A(n.stem));continue}var a=I(n.stem);a&&(t=(0,l.__assign)((0,l.__assign)({},t),a));var o=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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!x.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);o&&(t=(0,l.__assign)((0,l.__assign)({},t),o))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var a,o=!1,s=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=P(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,P(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(h);if(m.err)return m;s.push([u,{value:p.val,location:P(h,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(a=this.parseIdentifierIfPossible()).value,c=a.location}return 0===s.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,P(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(n.MISSING_OTHER_CLAUSE,P(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=P(n,this.clonePosition());return i?U(a*=r)?{val:a,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=G(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(z(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(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!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()&&J(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Y(e){return e>=97&&e<=122||e>=65&&e<=90}function J(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function X(e,t){void 0===t&&(t={});var r=new $(e,t=(0,l.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,p(t)||m(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else d(t)&&y(t.style)||(f(t)||h(t))&&v(t.style)?delete t.style.location:_(t)&&e(t.children)})}(r.val),r.val}},74968:(e,t,r)=>{"use strict";r.d(t,{YR:()=>l,sP:()=>s});var n=r(58287),i=r(77016),a=r(86158),o=r(94587);let s=Object.freeze({});function l(e,t,r=a.aD){let u,c,d,f=new Map;for(let e of Object.values(o.b))f.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let h=Array.isArray(e),p=[e],m=-1,g=[],_=e,y=[],v=[];do{var b,w,E;let e,o=++m===p.length,l=o&&0!==g.length;if(o){if(c=0===v.length?void 0:y[y.length-1],_=d,d=v.pop(),l)if(h){_=_.slice();let e=0;for(let[t,r]of g){let n=t-e;null===r?(_.splice(n,1),e++):_[n]=r}}else for(let[e,t]of(_={..._},g))_[e]=t;m=u.index,p=u.keys,g=u.edits,h=u.inArray,u=u.prev}else if(d){if(null==(_=d[c=h?m:p[m]]))continue;y.push(c)}if(!Array.isArray(_)){(0,a.Ll)(_)||(0,n.U)(!1,`Invalid AST Node: ${(0,i.N)(_)}.`);let r=o?null==(b=f.get(_.kind))?void 0:b.leave:null==(w=f.get(_.kind))?void 0:w.enter;if((e=null==r?void 0:r.call(t,_,c,d,y,v))===s)break;if(!1===e){if(!o){y.pop();continue}}else if(void 0!==e&&(g.push([c,e]),!o))if((0,a.Ll)(e))_=e;else{y.pop();continue}}void 0===e&&l&&g.push([c,_]),o?y.pop():(u={inArray:h,index:m,keys:p,edits:g,prev:u},p=(h=Array.isArray(_))?_:null!=(E=r[_.kind])?E:[],m=-1,g=[],d&&v.push(d),d=_)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e}},77016:(e,t,r)=>{"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var i=t,a=n;if(0===i.length)return"[]";if(a.length>2)return"[Array]";let r=Math.min(10,i.length),o=i.length-r,s=[];for(let t=0;t<r;++t)s.push(e(i[t],a));return 1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`),"["+s.join(", ")+"]"}var o=t,s=n;let l=Object.entries(o);return 0===l.length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+l.map(([t,r])=>t+": "+e(r,s)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{N:()=>n})},77262:(e,t,r)=>{"use strict";function n(e){return Intl.getCanonicalLocales(e)}function i(e,t){var r=t.zoneNames,n=t.uppercaseLinks,i=e.toUpperCase(),a=r.reduce(function(e,t){return e[t.toUpperCase()]=t,e},{}),o=n[i]||a[i];return"Etc/UTC"===o||"Etc/GMT"===o?"UTC":o}r.r(t),r.d(t,{ApplyUnsignedRoundingMode:()=>tC,ArrayCreate:()=>e9,CanonicalizeLocaleList:()=>n,CanonicalizeTimeZoneName:()=>i,CoerceOptionsToObject:()=>ty,CollapseNumberRange:()=>tL,ComputeExponent:()=>tq,ComputeExponentForMagnitude:()=>tR,CurrencyDigits:()=>tH,DateFromTime:()=>tc,Day:()=>tt,DayFromYear:()=>tn,DayWithinYear:()=>ts,DaysInYear:()=>to,FormatApproximately:()=>tX,FormatNumeric:()=>t1,FormatNumericRange:()=>t5,FormatNumericRangeToParts:()=>t3,FormatNumericToParts:()=>t4,FormatNumericToString:()=>tz,GetNumberOption:()=>tb,GetOption:()=>tw,GetOptionsObject:()=>tE,GetStringOrBooleanOption:()=>tk,GetUnsignedRoundingMode:()=>tj,HasOwnProperty:()=>e8,HourFromTime:()=>td,InLeapYear:()=>tl,InitializeNumberFormat:()=>re,IsSanctionedSimpleUnitIdentifier:()=>tA,IsValidTimeZoneName:()=>tI,IsWellFormedCurrencyCode:()=>tN,IsWellFormedUnitIdentifier:()=>tD,MinFromTime:()=>tf,MonthFromTime:()=>tu,OrdinaryHasInstance:()=>tm,PartitionNumberPattern:()=>t0,PartitionNumberRangePattern:()=>t2,PartitionPattern:()=>rt,RangePatternType:()=>a,SANCTIONED_UNITS:()=>tT,SIMPLE_UNITS:()=>tx,SameValue:()=>e6,SecFromTime:()=>th,SetNumberFormatDigitOptions:()=>t8,SetNumberFormatUnitOptions:()=>t7,SupportedLocales:()=>rr,TimeClip:()=>e3,TimeFromYear:()=>ti,ToIntlMathematicalValue:()=>ri,ToNumber:()=>e5,ToObject:()=>e4,ToPrimitive:()=>t_,ToRawFixed:()=>tU,ToRawPrecision:()=>tV,ToString:()=>e2,Type:()=>e7,WeekDay:()=>tr,YearFromTime:()=>ta,ZERO:()=>ej,_formatToParts:()=>t$,createDataProperty:()=>eQ,createMemoizedDateTimeFormat:()=>eJ,createMemoizedListFormat:()=>e1,createMemoizedLocale:()=>e0,createMemoizedNumberFormat:()=>eY,createMemoizedPluralRules:()=>eX,defineProperty:()=>eZ,getInternalSlot:()=>eG,getMultiInternalSlots:()=>eW,invariant:()=>e$,isLiteralPart:()=>eK,isMissingLocaleDataError:()=>rn,msFromTime:()=>tg,removeUnitNamespace:()=>tS,setInternalSlot:()=>eq,setMultiInternalSlots:()=>eH});var a,o,s,l="0123456789abcdef",u="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",c="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},f=!0,h="[DecimalError] ",p=h+"Invalid argument: ",m=h+"Precision limit exceeded",g=h+"crypto unavailable",_="[object Decimal]",y=Math.floor,v=Math.pow,b=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,w=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,E=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,k=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,T=u.length-1,S=c.length-1,x={toStringTag:_};function A(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=j(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=j(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}function I(e,t,r){if(e!==~~e||e<t||e>r)throw Error(p+e)}function O(e,t,r,n){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),a=v(10,7-t),s=e[i]%a|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):o=(r<4&&s+1==a||r>3&&s+1==a/2)&&(e[i+1]/a/100|0)==v(10,t-2)-1||(s==a/2||0==s)&&(e[i+1]/a/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(n||r<4)&&9999==s||!n&&r>3&&4999==s):o=((n||r<4)&&s+1==a||!n&&r>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==v(10,t-3)-1,o}function N(e,t,r){for(var n,i,a=[0],o=0,s=e.length;o<s;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=l.indexOf(e.charAt(o++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}x.absoluteValue=x.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),C(e)},x.ceil=function(){return C(new this.constructor(this),this.e+1,2)},x.clampedTo=x.clamp=function(e,t){var r=this.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(p+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new r(this)},x.comparedTo=x.cmp=function(e){var t,r,n,i,a=this.d,o=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!a||!o)return s&&l?s!==l?s:a===o?0:!a^s<0?1:-1:NaN;if(!a[0]||!o[0])return a[0]?s:o[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(t=0,r=(n=a.length)<(i=o.length)?n:i;t<r;++t)if(a[t]!==o[t])return a[t]>o[t]^s<0?1:-1;return n===i?0:n>i^s<0?1:-1},x.cosine=x.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?i=(1/K(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=W(e,1,t.times(i),new e(1));for(var a=r;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=r,t}(n,Z(n,r)),n.precision=e,n.rounding=t,C(2==s||3==s?r.neg():r,e,t,!0)):new n(1):new n(NaN)},x.cubeRoot=x.cbrt=function(){var e,t,r,n,i,a,o,s,l,u,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(f=!1,(a=this.s*v(this.s*this,1/3))&&Math.abs(a)!=1/0?n=new c(a.toString()):(r=A(this.d),(a=((e=this.e)-r.length+1)%3)&&(r+=1==a||-2==a?"0":"00"),a=v(r,1/3),e=y((e+1)/3)-(e%3==(e<0?-1:2)),(n=new c(r=a==1/0?"5e"+e:(r=a.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=this.s),o=(e=c.precision)+3;;)if(n=D((u=(l=(s=n).times(s).times(s)).plus(this)).plus(this).times(s),u.plus(l),o+2,1),A(s.d).slice(0,o)===(r=A(n.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(C(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!i&&(C(s,e+1,0),s.times(s).times(s).eq(this))){n=s;break}o+=4,i=1}return f=!0,C(n,e,c.rounding,t)},x.decimalPlaces=x.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-y(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},x.dividedBy=x.div=function(e){return D(this,new this.constructor(e))},x.dividedToIntegerBy=x.divToInt=function(e){var t=this.constructor;return C(D(this,new t(e),0,1,1),t.precision,t.rounding)},x.equals=x.eq=function(e){return 0===this.cmp(e)},x.floor=function(){return C(new this.constructor(this),this.e+1,3)},x.greaterThan=x.gt=function(e){return this.cmp(e)>0},x.greaterThanOrEqualTo=x.gte=function(e){var t=this.cmp(e);return 1==t||0===t},x.hyperbolicCosine=x.cosh=function(){var e,t,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision,n=o.rounding,o.precision=r+Math.max(a.e,a.sd())+4,o.rounding=1,(i=a.d.length)<32?t=(1/K(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=W(o,1,a.times(t),new o(1),!0);for(var l,u=e,c=new o(8);u--;)l=a.times(a),a=s.minus(l.times(c.minus(l.times(c))));return C(a,o.precision=r,o.rounding=n,!0)},x.hyperbolicSine=x.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=W(a,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=W(a,2,i=i.times(1/K(5,e)),i,!0);for(var o,s=new a(5),l=new a(16),u=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(l.times(o).plus(u))))}return a.precision=t,a.rounding=r,C(i,t,r,!0)},x.hyperbolicTangent=x.tanh=function(){var e,t,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,D(this.sinh(),this.cosh(),r.precision=e,r.rounding=t)):new r(this.s)},x.inverseCosine=x.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return -1!==r?0===r?e.isNeg()?M(t,n,i):new t(0):new t(NaN):e.isZero()?M(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},x.inverseHyperbolicCosine=x.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,f=!1,r=r.times(r).minus(1).sqrt().plus(r),f=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},x.inverseHyperbolicSine=x.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,f=!1,r=r.times(r).plus(1).sqrt().plus(r),f=!0,n.precision=e,n.rounding=t,r.ln())},x.inverseHyperbolicTangent=x.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,Math.max(n=i.sd(),e)<-(2*i.e)-1)?C(new a(i),e,t,!0):(a.precision=r=n-i.e,i=D(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5)):new a(NaN)},x.inverseSine=x.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==t)?0===t?((e=M(a,r+4,n).times(.5)).s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2))},x.inverseTangent=x.atan=function(){var e,t,r,n,i,a,o,s,l,u=this,c=u.constructor,d=c.precision,h=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);else if(u.abs().eq(1)&&d+4<=S)return(o=M(c,d+4,h).times(.25)).s=u.s,o}else{if(!u.s)return new c(NaN);if(d+4<=S)return(o=M(c,d+4,h).times(.5)).s=u.s,o}for(c.precision=s=d+10,c.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(f=!1,t=Math.ceil(s/7),n=1,l=u.times(u),o=new c(u),i=u;-1!==e;)if(i=i.times(l),a=o.minus(i.div(n+=2)),i=i.times(l),void 0!==(o=a.plus(i.div(n+=2))).d[t])for(e=t;o.d[e]===a.d[e]&&e--;);return r&&(o=o.times(2<<r-1)),f=!0,C(o,c.precision=d,c.rounding=h,!0)},x.isFinite=function(){return!!this.d},x.isInteger=x.isInt=function(){return!!this.d&&y(this.e/7)>this.d.length-2},x.isNaN=function(){return!this.s},x.isNegative=x.isNeg=function(){return this.s<0},x.isPositive=x.isPos=function(){return this.s>0},x.isZero=function(){return!!this.d&&0===this.d[0]},x.lessThan=x.lt=function(e){return 0>this.cmp(e)},x.lessThanOrEqualTo=x.lte=function(e){return 1>this.cmp(e)},x.logarithm=x.log=function(e){var t,r,n,i,a,o,s,l,u=this.constructor,c=u.precision,d=u.rounding;if(null==e)e=new u(10),t=!0;else{if(r=(e=new u(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new u(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)a=!0;else{for(i=r[0];i%10==0;)i/=10;a=1!==i}if(f=!1,O((l=D(o=q(this,s=c+5),t?R(u,s+10):q(e,s),s,1)).d,i=c,d))do if(s+=10,l=D(o=q(this,s),t?R(u,s+10):q(e,s),s,1),!a){+A(l.d).slice(i+1,i+15)+1==1e14&&(l=C(l,c+1,0));break}while(O(l.d,i+=10,d));return f=!0,C(l,c,d)},x.minus=x.sub=function(e){var t,r,n,i,a,o,s,l,u,c,d,h,p=this.constructor;if(e=new p(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new p(e.d||this.s!==e.s?this:NaN):e=new p(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(u=this.d,h=e.d,s=p.precision,l=p.rounding,!u[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!u[0])return new p(3===l?-0:0);e=new p(this)}return f?C(e,s,l):e}if(r=y(e.e/7),c=y(this.e/7),u=u.slice(),a=c-r){for((d=a<0)?(t=u,a=-a,o=h.length):(t=h,r=c,o=u.length),a>(n=Math.max(Math.ceil(s/7),o)+2)&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for((d=(n=u.length)<(o=h.length))&&(o=n),n=0;n<o;n++)if(u[n]!=h[n]){d=u[n]<h[n];break}a=0}for(d&&(t=u,u=h,h=t,e.s=-e.s),o=u.length,n=h.length-o;n>0;--n)u[o++]=0;for(n=h.length;n>a;){if(u[--n]<h[n]){for(i=n;i&&0===u[--i];)u[i]=1e7-1;--u[i],u[n]+=1e7}u[n]-=h[n]}for(;0===u[--o];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(e.d=u,e.e=L(u,r),f?C(e,s,l):e):new p(3===l?-0:0)},x.modulo=x.mod=function(e){var t,r=this.constructor;return(e=new r(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(f=!1,9==r.modulo?(t=D(this,e.abs(),0,3,1),t.s*=e.s):t=D(this,e,0,r.modulo,1),t=t.times(e),f=!0,this.minus(t)):C(new r(this),r.precision,r.rounding):new r(NaN)},x.naturalExponential=x.exp=function(){return z(this)},x.naturalLogarithm=x.ln=function(){return q(this)},x.negated=x.neg=function(){var e=new this.constructor(this);return e.s=-e.s,C(e)},x.plus=x.add=function(e){var t,r,n,i,a,o,s,l,u,c,d=this.constructor;if(e=new d(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new d(e.d||this.s===e.s?this:NaN)):e=new d(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(u=this.d,c=e.d,s=d.precision,l=d.rounding,!u[0]||!c[0])return c[0]||(e=new d(this)),f?C(e,s,l):e;if(a=y(this.e/7),n=y(e.e/7),u=u.slice(),i=a-n){for(i<0?(r=u,i=-i,o=c.length):(r=c,n=a,o=u.length),i>(o=(a=Math.ceil(s/7))>o?a+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=u.length)-(i=c.length)<0&&(i=o,r=c,c=u,u=r),t=0;i;)t=(u[--i]=u[i]+c[i]+t)/1e7|0,u[i]%=1e7;for(t&&(u.unshift(t),++n),o=u.length;0==u[--o];)u.pop();return e.d=u,e.e=L(u,n),f?C(e,s,l):e},x.precision=x.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(p+e);return this.d?(t=F(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},x.round=function(){var e=this.constructor;return C(new e(this),this.e+1,e.rounding)},x.sine=x.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:W(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=W(e,2,t=t.times(1/K(5,r)),t);for(var i,a=new e(5),o=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}(n,Z(n,r)),n.precision=e,n.rounding=t,C(s>2?r.neg():r,e,t,!0)):new n(NaN)},x.squareRoot=x.sqrt=function(){var e,t,r,n,i,a,o=this.d,s=this.e,l=this.s,u=this.constructor;if(1!==l||!o||!o[0])return new u(!l||l<0&&(!o||o[0])?NaN:o?this:1/0);for(f=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=A(o)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=y((s+1)/2)-(s<0||s%2),n=new u(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new u(l.toString()),r=(s=u.precision)+3;;)if(n=(a=n).plus(D(this,a,r+2,1)).times(.5),A(a.d).slice(0,r)===(t=A(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(C(n,s+1,1),e=!n.times(n).eq(this));break}if(!i&&(C(a,s+1,0),a.times(a).eq(this))){n=a;break}r+=4,i=1}return f=!0,C(n,s,u.rounding,e)},x.tangent=x.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=D(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,C(2==s||4==s?r.neg():r,e,t,!0)):new n(NaN)},x.times=x.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this.constructor,d=this.d,h=(e=new c(e)).d;if(e.s*=this.s,!d||!d[0]||!h||!h[0])return new c(!e.s||d&&!d[0]&&!h||h&&!h[0]&&!d?NaN:!d||!h?e.s/0:0*e.s);for(r=y(this.e/7)+y(e.e/7),(l=d.length)<(u=h.length)&&(a=d,d=h,h=a,o=l,l=u,u=o),a=[],n=o=l+u;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%1e7|0,t=s/1e7|0;a[i]=(a[i]+t)%1e7|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=L(a,r),f?C(e,c.precision,c.rounding):e},x.toBinary=function(e,t){return Q(this,2,e,t)},x.toDecimalPlaces=x.toDP=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(I(e,0,1e9),void 0===t?t=n.rounding:I(t,0,8),C(r,e+r.e+1,t))},x.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=P(n,!0):(I(e,0,1e9),void 0===t?t=i.rounding:I(t,0,8),r=P(n=C(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},x.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?r=P(this):(I(e,0,1e9),void 0===t?t=i.rounding:I(t,0,8),r=P(n=C(new i(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},x.toFraction=function(e){var t,r,n,i,a,o,s,l,u,c,d,h,m=this.d,g=this.constructor;if(!m)return new g(this);if(u=r=new g(1),n=l=new g(0),o=(a=(t=new g(n)).e=F(m)-this.e-1)%7,t.d[0]=v(10,o<0?7+o:o),null==e)e=a>0?t:u;else{if(!(s=new g(e)).isInt()||s.lt(u))throw Error(p+s);e=s.gt(t)?a>0?t:u:s}for(f=!1,s=new g(A(m)),c=g.precision,g.precision=a=7*m.length*2;d=D(s,t,0,1,1),1!=(i=r.plus(d.times(n))).cmp(e);)r=n,n=i,i=u,u=l.plus(d.times(i)),l=i,i=t,t=s.minus(d.times(i)),s=i;return i=D(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=this.s,h=1>D(u,n,a,1).minus(this).abs().cmp(D(l,r,a,1).minus(this).abs())?[u,n]:[l,r],g.precision=c,f=!0,h},x.toHexadecimal=x.toHex=function(e,t){return Q(this,16,e,t)},x.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:I(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(f=!1,r=D(r,e,0,t,1).times(e),f=!0,C(r)):(e.s=r.s,r=e),r},x.toNumber=function(){return+this},x.toOctal=function(e,t){return Q(this,8,e,t)},x.toPower=x.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(v(+s,u));if((s=new l(s)).eq(1))return s;if(n=l.precision,a=l.rounding,e.eq(1))return C(s,n,a);if((t=y(e.e/7))>=e.d.length-1&&(r=u<0?-u:u)<=0x1fffffffffffff)return i=B(l,s,r,n),e.s<0?new l(1).div(i):C(i,n,a);if((o=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return(t=0!=(r=v(+s,u))&&isFinite(r)?new l(r+"").e:y(u*(Math.log("0."+A(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?o/0:0):(f=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=z(e.times(q(s,n+r)),n)).d&&O((i=C(i,n+5,1)).d,n,a)&&(t=n+10,+A((i=C(z(e.times(q(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=C(i,n+1,0))),i.s=o,f=!0,l.rounding=a,C(i,n,a))},x.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=P(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(I(e,1,1e9),void 0===t?t=i.rounding:I(t,0,8),r=P(n=C(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},x.toSignificantDigits=x.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(I(e,1,1e9),void 0===t?t=r.rounding:I(t,0,8)),C(new r(this),e,t)},x.toString=function(){var e=this.constructor,t=P(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},x.truncated=x.trunc=function(){return C(new this.constructor(this),this.e+1,1)},x.valueOf=x.toJSON=function(){var e=this.constructor,t=P(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var D=function(){function e(e,t,r){var n,i=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+i,e[a]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,a,s,l,u){var c,d,f,h,p,m,g,_,v,b,w,E,k,T,S,x,A,I,O,N,D=n.constructor,P=n.s==i.s?1:-1,L=n.d,R=i.d;if(!L||!L[0]||!R||!R[0])return new D(!n.s||!i.s||(L?R&&L[0]==R[0]:!R)?NaN:L&&0==L[0]||!R?0*P:P/0);for(u?(p=1,d=n.e-i.e):(u=1e7,p=7,d=y(n.e/p)-y(i.e/p)),O=R.length,A=L.length,b=(v=new D(P)).d=[],f=0;R[f]==(L[f]||0);f++);if(R[f]>(L[f]||0)&&d--,null==a?(T=a=D.precision,s=D.rounding):T=l?a+(n.e-i.e)+1:a,T<0)b.push(1),m=!0;else{if(T=T/p+2|0,f=0,1==O){for(h=0,R=R[0],T++;(f<A||h)&&T--;f++)S=h*u+(L[f]||0),b[f]=S/R|0,h=S%R|0;m=h||f<A}else{for((h=u/(R[0]+1)|0)>1&&(R=e(R,h,u),L=e(L,h,u),O=R.length,A=L.length),x=O,E=(w=L.slice(0,O)).length;E<O;)w[E++]=0;(N=R.slice()).unshift(0),I=R[0],R[1]>=u/2&&++I;do h=0,(c=t(R,w,O,E))<0?(k=w[0],O!=E&&(k=k*u+(w[1]||0)),(h=k/I|0)>1?(h>=u&&(h=u-1),_=(g=e(R,h,u)).length,E=w.length,1==(c=t(g,w,_,E))&&(h--,r(g,O<_?N:R,_,u))):(0==h&&(c=h=1),g=R.slice()),(_=g.length)<E&&g.unshift(0),r(w,g,E,u),-1==c&&(E=w.length,(c=t(R,w,O,E))<1&&(h++,r(w,O<E?N:R,E,u))),E=w.length):0===c&&(h++,w=[0]),b[f++]=h,c&&w[0]?w[E++]=L[x]||0:(w=[L[x]],E=1);while((x++<A||void 0!==w[0])&&T--);m=void 0!==w[0]}b[0]||b.shift()}if(1==p)v.e=d,o=m;else{for(f=1,h=b[0];h>=10;h/=10)f++;v.e=f+d*p-1,C(v,l?a+v.e+1:a,s,m)}return v}}();function C(e,t,r,n){var i,a,o,s,l,u,c,d,h,p=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(i=1,s=d[0];s>=10;s/=10)i++;if((a=t-i)<0)a+=7,o=t,l=(c=d[h=0])/v(10,i-o-1)%10|0;else if((h=Math.ceil((a+1)/7))>=(s=d.length))if(n){for(;s++<=h;)d.push(0);c=l=0,i=1,a%=7,o=a-7+1}else break e;else{for(i=1,c=s=d[h];s>=10;s/=10)i++;a%=7,l=(o=a-7+i)<0?0:c/v(10,i-o-1)%10|0}if(n=n||t<0||void 0!==d[h+1]||(o<0?c:c%v(10,i-o-1)),u=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(a>0?o>0?c/v(10,i-o):0:d[h-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=v(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=h,s=1,h--):(d.length=h+1,s=v(10,7-a),d[h]=o>0?(c/v(10,i-o)%v(10,o)|0)*s:0),u)for(;;)if(0==h){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,1e7==d[0]&&(d[0]=1));break}else{if(d[h]+=s,1e7!=d[h])break;d[h--]=0,s=1}for(a=d.length;0===d[--a];)d.pop()}return f&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function P(e,t,r){if(!e.isFinite())return H(e);var n,i=e.e,a=A(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+j(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+j(-i-1)+a,r&&(n=r-o)>0&&(a+=j(n))):i>=o?(a+=j(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+j(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=j(n))),a}function L(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function R(e,t,r){if(t>T)throw f=!0,r&&(e.precision=r),Error(m);return C(new e(u),t,1,!0)}function M(e,t,r){if(t>S)throw Error(m);return C(new e(c),t,r,!0)}function F(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function j(e){for(var t="";e--;)t+="0";return t}function B(e,t,r,n){var i,a=new e(1),o=Math.ceil(n/7+4);for(f=!1;;){if(r%2&&$((a=a.times(t)).d,o)&&(i=!0),0===(r=y(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}$((t=t.times(t)).d,o)}return f=!0,a}function U(e){return 1&e.d[e.d.length-1]}function V(e,t,r){for(var n,i,a=new e(t[0]),o=0;++o<t.length;){if(!(i=new e(t[o])).s){a=i;break}((n=a.cmp(i))===r||0===n&&a.s===r)&&(a=i)}return a}function z(e,t){var r,n,i,a,o,s,l,u=0,c=0,d=0,h=e.constructor,p=h.rounding,m=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(f=!1,l=m):l=t,s=new h(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=n=Math.log(v(2,d))/Math.LN10*2+5|0,r=a=o=new h(1),h.precision=l;;){if(a=C(a.times(e),l,1),r=r.times(++c),A((s=o.plus(D(a,r,l,1))).d).slice(0,l)===A(o.d).slice(0,l)){for(i=d;i--;)o=C(o.times(o),l,1);if(null!=t)return h.precision=m,o;if(!(u<3&&O(o.d,l-n,p,u)))return C(o,h.precision=m,p,f=!0);h.precision=l+=10,r=a=s=new h(1),c=0,u++}o=s}}function q(e,t){var r,n,i,a,o,s,l,u,c,d,h,p=1,m=e,g=m.d,_=m.constructor,y=_.rounding,v=_.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new _(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(f=!1,c=v):c=t,_.precision=c+=10,n=(r=A(g)).charAt(0),!(15e14>Math.abs(a=m.e)))return u=R(_,c+2,v).times(a+""),m=q(new _(n+"."+r.slice(1)),c-10).plus(u),_.precision=v,null==t?C(m,v,y,f=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=A((m=m.times(e)).d)).charAt(0),p++;for(a=m.e,n>1?(m=new _("0."+r),a++):m=new _(n+"."+r.slice(1)),d=m,l=o=m=D(m.minus(1),m.plus(1),c,1),h=C(m.times(m),c,1),i=3;;){if(o=C(o.times(h),c,1),A((u=l.plus(D(o,new _(i),c,1))).d).slice(0,c)===A(l.d).slice(0,c)){if(l=l.times(2),0!==a&&(l=l.plus(R(_,c+2,v).times(a+""))),l=D(l,new _(p),c,1),null!=t)return _.precision=v,l;if(!O(l.d,c-10,y,s))return C(l,_.precision=v,y,f=!0);_.precision=c+=10,u=o=m=D(d.minus(1),d.plus(1),c,1),h=C(m.times(m),c,1),i=s=1}l=u,i+=2}}function H(e){return String(e.s*e.s/0)}function G(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),f&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function W(e,t,r,n,i){var a,o,s,l,u=e.precision,c=Math.ceil(u/7);for(f=!1,l=r.times(r),s=new e(n);;){if(o=D(s.times(l),new e(t++*t++),u,1),s=i?n.plus(o):n.minus(o),n=D(o.times(l),new e(t++*t++),u,1),void 0!==(o=s.plus(n)).d[c]){for(a=c;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=n,n=o,o=a}return f=!0,o.d.length=c+1,o}function K(e,t){for(var r=e;--t;)r*=e;return r}function Z(e,t){var r,n=t.s<0,i=M(e,e.precision,1),a=i.times(.5);if((t=t.abs()).lte(a))return s=n?4:1,t;if((r=t.divToInt(i)).isZero())s=n?3:2;else{if((t=t.minus(r.times(i))).lte(a))return s=U(r)?n?2:3:n?4:1,t;s=U(r)?n?1:4:n?3:2}return t.minus(i).abs()}function Q(e,t,r,n){var i,a,s,u,c,d,f,h,p,m=e.constructor,g=void 0!==r;if(g?(I(r,1,1e9),void 0===n?n=m.rounding:I(n,0,8)):(r=m.precision,n=m.rounding),e.isFinite()){for(s=(f=P(e)).indexOf("."),g?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,s>=0&&(f=f.replace(".",""),(p=new m(1)).e=f.length-s,p.d=N(P(p),10,i),p.e=p.d.length),a=c=(h=N(f,10,i)).length;0==h[--c];)h.pop();if(h[0]){if(s<0?a--:((e=new m(e)).d=h,e.e=a,h=(e=D(e,p,r,n,0,i)).d,a=e.e,d=o),s=h[r],u=i/2,d=d||void 0!==h[r+1],d=n<4?(void 0!==s||d)&&(0===n||n===(e.s<0?3:2)):s>u||s===u&&(4===n||d||6===n&&1&h[r-1]||n===(e.s<0?8:7)),h.length=r,d)for(;++h[--r]>i-1;)h[r]=0,r||(++a,h.unshift(1));for(c=h.length;!h[c-1];--c);for(s=0,f="";s<c;s++)f+=l.charAt(h[s]);if(g){if(c>1)if(16==t||8==t){for(s=16==t?4:3,--c;c%s;c++)f+="0";for(c=(h=N(f,i,t)).length;!h[c-1];--c);for(s=1,f="1.";s<c;s++)f+=l.charAt(h[s])}else f=f.charAt(0)+"."+f.slice(1);f=f+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)f="0"+f;f="0."+f}else if(++a>c)for(a-=c;a--;)f+="0";else a<c&&(f=f.slice(0,a)+"."+f.slice(a))}else f=g?"0p+0":"0";f=(16==t?"0x":2==t?"0b":8==t?"0o":"")+f}else f=H(e);return e.s<0?"-"+f:f}function $(e,t){if(e.length>t)return e.length=t,!0}function Y(e){return new this(e).abs()}function J(e){return new this(e).acos()}function X(e){return new this(e).acosh()}function ee(e,t){return new this(e).plus(t)}function et(e){return new this(e).asin()}function er(e){return new this(e).asinh()}function en(e){return new this(e).atan()}function ei(e){return new this(e).atanh()}function ea(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?M(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=M(this,a,1).times(.5)).s=e.s:t.s<0?(this.precision=a,this.rounding=1,r=this.atan(D(e,t,a,1)),t=M(this,a,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(D(e,t,a,1)):(r=M(this,a,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function eo(e){return new this(e).cbrt()}function es(e){return C(e=new this(e),e.e+1,2)}function el(e,t,r){return new this(e).clamp(t,r)}function eu(e){if(!e||"object"!=typeof e)throw Error(h+"Object expected");var t,r,n,i=!0===e.defaults,a=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],i&&(this[r]=d[r]),void 0!==(n=e[r]))if(y(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(p+r+": "+n);if(r="crypto",i&&(this[r]=d[r]),void 0!==(n=e[r]))if(!0===n||!1===n||0===n||1===n)if(n)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(g);else this[r]=!1;else throw Error(p+r+": "+n);return this}function ec(e){return new this(e).cos()}function ed(e){return new this(e).cosh()}function ef(e,t){return new this(e).div(t)}function eh(e){return new this(e).exp()}function ep(e){return C(e=new this(e),e.e+1,3)}function em(){var e,t,r=new this(0);for(e=0,f=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return f=!0,new this(1/0);r=t}return f=!0,r.sqrt()}function eg(e){return e instanceof eF||e&&e.toStringTag===_||!1}function e_(e){return new this(e).ln()}function ey(e,t){return new this(e).log(t)}function ev(e){return new this(e).log(2)}function eb(e){return new this(e).log(10)}function ew(){return V(this,arguments,-1)}function eE(){return V(this,arguments,1)}function ek(e,t){return new this(e).mod(t)}function eT(e,t){return new this(e).mul(t)}function eS(e,t){return new this(e).pow(t)}function ex(e){var t,r,n,i,a=0,o=new this(1),s=[];if(void 0===e?e=this.precision:I(e,1,1e9),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)(i=t[a])>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);a<n;)(i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=n/4}else throw Error(g);else for(;a<n;)s[a++]=1e7*Math.random()|0;for(n=s[--a],e%=7,n&&e&&(i=v(10,7-e),s[a]=(n/i|0)*i);0===s[a];a--)s.pop();if(a<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=7)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return o.e=r,o.d=s,o}function eA(e){return C(e=new this(e),e.e+1,this.rounding)}function eI(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eO(e){return new this(e).sin()}function eN(e){return new this(e).sinh()}function eD(e){return new this(e).sqrt()}function eC(e,t){return new this(e).sub(t)}function eP(){var e=0,t=arguments,r=new this(t[0]);for(f=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return f=!0,C(r,this.precision,this.rounding)}function eL(e){return new this(e).tan()}function eR(e){return new this(e).tanh()}function eM(e){return C(e=new this(e),e.e+1,1)}x[Symbol.for("nodejs.util.inspect.custom")]=x.toString,x[Symbol.toStringTag]="Decimal";var eF=x.constructor=function e(t){var r,n,i;function a(e){var t,r,n;if(!(this instanceof a))return new a(e);if(this.constructor=a,eg(e)){this.s=e.s,f?!e.d||e.e>a.maxE?(this.e=NaN,this.d=null):e.e<a.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(n=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;f?t>a.maxE?(this.e=NaN,this.d=null):t<a.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return G(this,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===r&&(e=e.slice(1)),this.s=1),k.test(e)?G(this,e):function(e,t){var r,n,i,a,o,s,l,u,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),k.test(t))return G(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(w.test(t))r=16,t=t.toLowerCase();else if(b.test(t))r=2;else if(E.test(t))r=8;else throw Error(p+t);for((a=t.search(/p/i))>0?(l=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),o=(a=t.indexOf("."))>=0,n=e.constructor,o&&(a=(s=(t=t.replace(".","")).length)-a,i=B(n,new n(r),a,2*a)),a=c=(u=N(t,r,1e7)).length-1;0===u[a];--a)u.pop();return a<0?new n(0*e.s):(e.e=L(u,c),e.d=u,f=!1,o&&(e=D(e,i,4*s)),l&&(e=e.times(54>Math.abs(l)?v(2,l):eF.pow(2,l))),f=!0,e)}(this,e);if("bigint"===n)return e<0?(e=-e,this.s=-1):this.s=1,G(this,e.toString());throw Error(p+e)}if(a.prototype=x,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=eu,a.clone=e,a.isDecimal=eg,a.abs=Y,a.acos=J,a.acosh=X,a.add=ee,a.asin=et,a.asinh=er,a.atan=en,a.atanh=ei,a.atan2=ea,a.cbrt=eo,a.ceil=es,a.clamp=el,a.cos=ec,a.cosh=ed,a.div=ef,a.exp=eh,a.floor=ep,a.hypot=em,a.ln=e_,a.log=ey,a.log10=eb,a.log2=ev,a.max=ew,a.min=eE,a.mod=ek,a.mul=eT,a.pow=eS,a.random=ex,a.round=eA,a.sign=eI,a.sin=eO,a.sinh=eN,a.sqrt=eD,a.sub=eC,a.sum=eP,a.tan=eL,a.tanh=eR,a.trunc=eM,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(d);u=new eF(u),c=new eF(c),new eF(10);var ej=new eF(0),eB=new eF(-0),eU=r(4902),eV=r(98149);function ez(e,t){if("function"==typeof e.repeat)return e.repeat(t);for(var r=Array(t),n=0;n<r.length;n++)r[n]=e;return r.join("")}function eq(e,t,r,n){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=n}function eH(e,t,r){for(var n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];eq(e,t,a,r[a])}}function eG(e,t,r){return eW(e,t,r)[r]}function eW(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=e.get(t);if(!i)throw TypeError("".concat(t," InternalSlot has not been initialized"));return r.reduce(function(e,t){return e[t]=i[t],e},Object.create(null))}function eK(e){return"literal"===e.type}function eZ(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r.value})}function eQ(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r})}function e$(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var eY=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic}),eJ=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic}),eX=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic}),e0=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic}),e1=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic});function e2(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function e5(e){if("number"==typeof e)return new eF(e);if(e$("bigint"!=typeof e&&"symbol"!=typeof e,"BigInt and Symbol are not supported",TypeError),void 0===e)return new eF(NaN);if(null===e||0===e)return ej;if(!0===e)return new eF(1);if("string"==typeof e)try{return new eF(e)}catch(e){return new eF(NaN)}e$("object"==typeof e,"object expected",TypeError);var t=t_(e,"number");return e$("object"!=typeof t,"object expected",TypeError),e5(t)}function e3(e){if(!e.isFinite()||e.abs().greaterThan(8.64*1e15))return new eF(NaN);var t=e5(e);if(t.isNaN()||t.isZero())return ej;if(t.isFinite())return t;var r=t.abs().floor();return t.isNegative()&&(r=r.negated()),r}function e4(e){if(null==e)throw TypeError("undefined/null cannot be converted to object");return Object(e)}function e6(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}function e9(e){return Array(e)}function e8(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function e7(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":void 0}function te(e,t){return e-Math.floor(e/t)*t}function tt(e){return Math.floor(e/864e5)}function tr(e){return te(tt(e)+4,7)}function tn(e){return Date.UTC(e,0)/864e5}function ti(e){return Date.UTC(e,0)}function ta(e){return new Date(e).getUTCFullYear()}function to(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function ts(e){return tt(e)-tn(ta(e))}function tl(e){return+(365!==to(ta(e)))}function tu(e){var t=ts(e),r=tl(e);if(t>=0&&t<31)return 0;if(t<59+r)return 1;if(t<90+r)return 2;if(t<120+r)return 3;if(t<151+r)return 4;if(t<181+r)return 5;if(t<212+r)return 6;if(t<243+r)return 7;if(t<273+r)return 8;if(t<304+r)return 9;if(t<334+r)return 10;if(t<365+r)return 11;throw Error("Invalid time")}function tc(e){var t=ts(e),r=tu(e),n=tl(e);if(0===r)return t+1;if(1===r)return t-30;if(2===r)return t-58-n;if(3===r)return t-89-n;if(4===r)return t-119-n;if(5===r)return t-150-n;if(6===r)return t-180-n;if(7===r)return t-211-n;if(8===r)return t-242-n;if(9===r)return t-272-n;if(10===r)return t-303-n;if(11===r)return t-333-n;throw Error("Invalid time")}function td(e){return te(Math.floor(e/36e5),24)}function tf(e){return te(Math.floor(e/6e4),60)}function th(e){return te(Math.floor(e/1e3),60)}function tp(e){return"function"==typeof e}function tm(e,t,r){if(!tp(e))return!1;if(null==r?void 0:r.boundTargetFunction)return t instanceof(null==r?void 0:r.boundTargetFunction);if("object"!=typeof t)return!1;var n=e.prototype;if("object"!=typeof n)throw TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,t)}function tg(e){return te(e,1e3)}function t_(e,t){if("object"==typeof e&&null!=e){var r=Symbol.toPrimitive in e?e[Symbol.toPrimitive]:void 0,n=void 0;if(void 0!==r){void 0===t?n="default":"string"===t?n="string":(e$("number"===t,'preferredType must be "string" or "number"'),n="number");var i=r.call(e,n);if("object"!=typeof i)return i;throw TypeError("Cannot convert exotic object to primitive.")}return void 0===t&&(t="number"),function(e,t){for(var r=0,n="string"===t?["toString","valueOf"]:["valueOf","toString"];r<n.length;r++){var i=e[n[r]];if(tp(i)){var a=i.call(e);if("object"!=typeof a)return a}}throw TypeError("Cannot convert object to primitive value")}(e,t)}return e}function ty(e){return void 0===e?Object.create(null):e4(e)}function tv(e,t,r,n){if(void 0===e)return n;var i=Number(e);if(isNaN(i)||i<t||i>r)throw RangeError("".concat(i," is outside of range [").concat(t,", ").concat(r,"]"));return Math.floor(i)}function tb(e,t,r,n,i){return tv(e[t],r,n,i)}function tw(e,t,r,n,i){if("object"!=typeof e)throw TypeError("Options must be an object");var a=e[t];if(void 0!==a){if("boolean"!==r&&"string"!==r)throw TypeError("invalid type");if("boolean"===r&&(a=!!a),"string"===r&&(a=e2(a)),void 0!==n&&!n.filter(function(e){return e==a}).length)throw RangeError("".concat(a," is not within ").concat(n.join(", ")));return a}return i}function tE(e){if(void 0===e)return Object.create(null);if("object"==typeof e)return e;throw TypeError("Options must be an object")}function tk(e,t,r,n,i,a){var o=e[t];if(void 0===o)return a;if(!0===o)return n;if(!1==!!o)return i;if("true"===(o=e2(o))||"false"===o)return a;if(-1===(r||[]).indexOf(o))throw RangeError("Invalid value ".concat(o));return o}var tT=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function tS(e){return e.slice(e.indexOf("-")+1)}var tx=tT.map(tS);function tA(e){return tx.indexOf(e)>-1}function tI(e,t){var r=t.zoneNamesFromData,n=t.uppercaseLinks,i=e.toUpperCase(),a=new Set,o=new Set;return r.map(function(e){return e.toUpperCase()}).forEach(function(e){return a.add(e)}),Object.keys(n).forEach(function(e){o.add(e.toUpperCase()),a.add(n[e].toUpperCase())}),a.has(i)||o.has(i)}var tO=/[^A-Z]/;function tN(e){return!(3!==(e=e.replace(/([a-z])/g,function(e,t){return t.toUpperCase()})).length||tO.test(e))}function tD(e){if(tA(e=e.replace(/([A-Z])/g,function(e,t){return t.toLowerCase()})))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var r=t[0],n=t[1];return!!tA(r)&&!!tA(n)}function tC(e,t,r,n){if(e.eq(t)||(e$(t.lessThan(e)&&e.lessThan(r),"x should be between r1 and r2 but x=".concat(e,", r1=").concat(t,", r2=").concat(r)),"zero"===n))return t;if("infinity"===n)return r;var i=e.minus(t),a=r.minus(e);return i.lessThan(a)?t:a.lessThan(i)?r:(e$(i.eq(a),"d1 should be equal to d2"),"half-zero"===n)?t:"half-infinity"===n?r:(e$("half-even"===n,"unsignedRoundingMode should be half-even"),t.div(r.minus(t)).mod(2).isZero())?t:r}var tP=new Set(["unit","exponentMinusSign","minusSign","plusSign","percentSign","exponentSeparator","percent","percentSign","currency","literal"]);function tL(e,t,r){for(var n=(0,r.getInternalSlots)(e),i=n.dataLocaleData.numbers.symbols[n.numberingSystem],a=new RegExp("s?[".concat(i.rangeSign,"]s?")),o=t.findIndex(function(e){return"literal"===e.type&&a.test(e.value)}),s=[],l=o-1;l>=0&&tP.has(t[l].type);l--)s.unshift(t[l]);if(Array.from(s.map(function(e){return e.value}).join("")).length>1){var u=Array.from(t);return u.splice(o-s.length,s.length),u}for(var c=[],l=o+1;l<t.length&&tP.has(t[l].type);l++)c.push(t[l]);if(Array.from(c.map(function(e){return e.value}).join("")).length>1){var u=Array.from(t);return u.splice(o+1,c.length),u}return t}function tR(e,t){var r=e.notation,n=e.dataLocaleData,i=e.numberingSystem;switch(r){case"standard":return 0;case"scientific":return t.toNumber();case"engineering":return t.div(3).floor().times(3).toNumber();default:e$("compact"===r,"Invalid notation");var a=e.compactDisplay,o=e.style,s=e.currencyDisplay,l=void 0;if("currency"===o&&"name"!==s)l=(n.numbers.currency[i]||n.numbers.currency[n.numbers.nu[0]]).short;else{var u=n.numbers.decimal[i]||n.numbers.decimal[n.numbers.nu[0]];l="long"===a?u.long:u.short}if(!l)return 0;var c=eF.pow(10,t).toString(),d=Object.keys(l);if(c<d[0])return 0;if(c>d[d.length-1])return d[d.length-1].length-1;var f=d.indexOf(c);if(-1===f)return 0;var h=d[f];if("0"===l[h].other)return 0;return h.length-l[h].other.match(/0+/)[0].length}}eF.set({toExpPos:100});var tM={ceil:"zero",floor:"infinity",expand:"infinity",trunc:"zero",halfCeil:"half-zero",halfFloor:"half-infinity",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"},tF={ceil:"infinity",floor:"zero",expand:"infinity",trunc:"zero",halfCeil:"half-infinity",halfFloor:"half-zero",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"};function tj(e,t){return t?tM[e]:tF[e]}function tB(e,t){return e.times(eF.pow(10,-t))}function tU(e,t,r,n,i){var a,o,s,l,u,c,d,f,h=(c=tB(u=e.times(eF.pow(10,r)).floor().div(n).floor().times(n),r),{n1:u,r1:c}),p=h.n1,m=h.r1,g=(f=tB(d=e.times(eF.pow(10,r)).ceil().div(n).ceil().times(n),r),{n2:d,r2:f}),_=g.n2,y=g.r2;if(tC(e,m,y,i).eq(m)?(a=p,o=m):(a=_,o=y),s=a.isZero()?"0":a.toString(),0!==r){var v=s.length;v<=r&&(s=ez("0",r-v+1)+s,v=r+1);var b=s.slice(0,v-r);s=b+"."+s.slice(s.length-r),l=b.length}else l=s.length;for(var w=r-t;w>0&&"0"===s[s.length-1];)s=s.slice(0,s.length-1),w--;return"."===s[s.length-1]&&(s=s.slice(0,s.length-1)),{formattedString:s,roundedNumber:o,integerDigitsCount:l,roundingMagnitude:-r}}function tV(e,t,r,n){var i,a,o,s;if(e.isZero())i=ez("0",r),a=0,o=ej;else{var l=function(e,t){for(var r=eF.pow(10,t),n=eF.pow(10,t-1),i=e.div(n).log(10).plus(t).minus(1).ceil();;){var a=e.div(eF.pow(10,i.minus(t).plus(1))).floor();if(a.lessThan(r)&&a.greaterThanOrEqualTo(n)){var o=a.times(eF.pow(10,i.minus(t).plus(1)));if(o.lessThanOrEqualTo(e))return{n1:a,e1:i,r1:o}}i=i.minus(1)}}(e,r),u=l.n1,c=l.e1,d=l.r1,f=function(e,t){for(var r=eF.pow(10,t),n=eF.pow(10,t-1),i=e.div(r).log(10).plus(t).minus(1).floor();;){var a=e.div(eF.pow(10,i.minus(t).plus(1))).ceil();if(a.lessThan(r)&&a.greaterThanOrEqualTo(n)){var o=a.times(eF.pow(10,i.minus(t).plus(1)));if(o.greaterThanOrEqualTo(e))return{n2:a,e2:i,r2:o}}i=i.plus(1)}}(e,r),h=f.n2,p=f.e2,m=f.r2,g=tC(e,d,m,n),_=void 0;g.eq(d)?(_=u,a=c.toNumber(),o=d):(_=h,a=p.toNumber(),o=m),i=_.toString()}if(a>=r-1?(i+=ez("0",a-r+1),s=a+1):a>=0?(i=i.slice(0,a+1)+"."+i.slice(i.length-(r-(a+1))),s=a+1):(e$(a<0,"e should be less than 0"),i="0."+ez("0",-a-1)+i,s=1),i.includes(".")&&r>t){for(var y=r-t;y>0&&"0"===i[i.length-1];)i=i.slice(0,i.length-1),y--;"."===i[i.length-1]&&(i=i.slice(0,i.length-1))}return{formattedString:i,roundedNumber:o,integerDigitsCount:s,roundingMagnitude:a}}function tz(e,t){var r,n,i=t;i.isZero()&&i.isNegative()?(r="negative",i=ej):(e$(i.isFinite(),"NumberFormatDigitInternalSlots value is not finite"),"negative"==(r=i.lessThan(0)?"negative":"positive")&&(i=i.negated()));var a=e.roundingType,o=tj(e.roundingMode,"negative"===r);switch(a){case"significantDigits":n=tV(i,e.minimumSignificantDigits,e.maximumSignificantDigits,o);break;case"fractionDigits":n=tU(i,e.minimumFractionDigits,e.maximumFractionDigits,e.roundingIncrement,o);break;default:var s=tV(i,e.minimumSignificantDigits,e.maximumSignificantDigits,o),l=tU(i,e.minimumFractionDigits,e.maximumFractionDigits,e.roundingIncrement,o);"morePrecision"===e.roundingType?n=s.roundingMagnitude<=l.roundingMagnitude?s:l:(e$("lessPrecision"===e.roundingType,"Invalid roundingType"),n=s.roundingMagnitude<=l.roundingMagnitude?l:s)}i=n.roundedNumber;var u=n.formattedString;if("stripIfInteger"===e.trailingZeroDisplay&&i.isInteger()){var c=u.indexOf(".");c>-1&&(u=u.slice(0,c))}var d=n.integerDigitsCount,f=e.minimumIntegerDigits;return d<f&&(u=ez("0",f-d)+u),"negative"===r&&(i=i.isZero()?eB:i.negated()),{roundedNumber:i,formattedString:u}}function tq(e,t){if(t.isZero())return[0,0];t.isNegative()&&(t=t.negated());var r=t.log(10).floor(),n=tR(e,r),i=tz(e,t=t.times(eF.pow(10,-n)));return i.roundedNumber.isZero()||i.roundedNumber.log(10).floor().eq(r.minus(n))?[n,r.toNumber()]:[tR(e,r.plus(1)),r.plus(1).toNumber()]}function tH(e,t){var r=t.currencyDigitsData;return e8(r,e)?r[e]:2}eF.set({toExpPos:100});var tG=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,tW={adlm:["\uD83A\uDD50","\uD83A\uDD51","\uD83A\uDD52","\uD83A\uDD53","\uD83A\uDD54","\uD83A\uDD55","\uD83A\uDD56","\uD83A\uDD57","\uD83A\uDD58","\uD83A\uDD59"],ahom:["\uD805\uDF30","\uD805\uDF31","\uD805\uDF32","\uD805\uDF33","\uD805\uDF34","\uD805\uDF35","\uD805\uDF36","\uD805\uDF37","\uD805\uDF38","\uD805\uDF39"],arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],bhks:["\uD807\uDC50","\uD807\uDC51","\uD807\uDC52","\uD807\uDC53","\uD807\uDC54","\uD807\uDC55","\uD807\uDC56","\uD807\uDC57","\uD807\uDC58","\uD807\uDC59"],brah:["\uD804\uDC66","\uD804\uDC67","\uD804\uDC68","\uD804\uDC69","\uD804\uDC6A","\uD804\uDC6B","\uD804\uDC6C","\uD804\uDC6D","\uD804\uDC6E","\uD804\uDC6F"],cakm:["\uD804\uDD36","\uD804\uDD37","\uD804\uDD38","\uD804\uDD39","\uD804\uDD3A","\uD804\uDD3B","\uD804\uDD3C","\uD804\uDD3D","\uD804\uDD3E","\uD804\uDD3F"],cham:["꩐","꩑","꩒","꩓","꩔","꩕","꩖","꩗","꩘","꩙"],deva:["०","१","२","३","४","५","६","७","८","९"],diak:["\uD806\uDD50","\uD806\uDD51","\uD806\uDD52","\uD806\uDD53","\uD806\uDD54","\uD806\uDD55","\uD806\uDD56","\uD806\uDD57","\uD806\uDD58","\uD806\uDD59"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gong:["\uD807\uDDA0","\uD807\uDDA1","\uD807\uDDA2","\uD807\uDDA3","\uD807\uDDA4","\uD807\uDDA5","\uD807\uDDA6","\uD807\uDDA7","\uD807\uDDA8","\uD807\uDDA9"],gonm:["\uD807\uDD50","\uD807\uDD51","\uD807\uDD52","\uD807\uDD53","\uD807\uDD54","\uD807\uDD55","\uD807\uDD56","\uD807\uDD57","\uD807\uDD58","\uD807\uDD59"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],hmng:["\uD81A\uDF50","\uD81A\uDF51","\uD81A\uDF52","\uD81A\uDF53","\uD81A\uDF54","\uD81A\uDF55","\uD81A\uDF56","\uD81A\uDF57","\uD81A\uDF58","\uD81A\uDF59"],hmnp:["\uD838\uDD40","\uD838\uDD41","\uD838\uDD42","\uD838\uDD43","\uD838\uDD44","\uD838\uDD45","\uD838\uDD46","\uD838\uDD47","\uD838\uDD48","\uD838\uDD49"],java:["꧐","꧑","꧒","꧓","꧔","꧕","꧖","꧗","꧘","꧙"],kali:["꤀","꤁","꤂","꤃","꤄","꤅","꤆","꤇","꤈","꤉"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],lana:["᪀","᪁","᪂","᪃","᪄","᪅","᪆","᪇","᪈","᪉"],lanatham:["᪐","᪑","᪒","᪓","᪔","᪕","᪖","᪗","᪘","᪙"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],lepc:["᪐","᪑","᪒","᪓","᪔","᪕","᪖","᪗","᪘","᪙"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mathbold:["\uD835\uDFCE","\uD835\uDFCF","\uD835\uDFD0","\uD835\uDFD1","\uD835\uDFD2","\uD835\uDFD3","\uD835\uDFD4","\uD835\uDFD5","\uD835\uDFD6","\uD835\uDFD7"],mathdbl:["\uD835\uDFD8","\uD835\uDFD9","\uD835\uDFDA","\uD835\uDFDB","\uD835\uDFDC","\uD835\uDFDD","\uD835\uDFDE","\uD835\uDFDF","\uD835\uDFE0","\uD835\uDFE1"],mathmono:["\uD835\uDFF6","\uD835\uDFF7","\uD835\uDFF8","\uD835\uDFF9","\uD835\uDFFA","\uD835\uDFFB","\uD835\uDFFC","\uD835\uDFFD","\uD835\uDFFE","\uD835\uDFFF"],mathsanb:["\uD835\uDFEC","\uD835\uDFED","\uD835\uDFEE","\uD835\uDFEF","\uD835\uDFF0","\uD835\uDFF1","\uD835\uDFF2","\uD835\uDFF3","\uD835\uDFF4","\uD835\uDFF5"],mathsans:["\uD835\uDFE2","\uD835\uDFE3","\uD835\uDFE4","\uD835\uDFE5","\uD835\uDFE6","\uD835\uDFE7","\uD835\uDFE8","\uD835\uDFE9","\uD835\uDFEA","\uD835\uDFEB"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],modi:["\uD805\uDE50","\uD805\uDE51","\uD805\uDE52","\uD805\uDE53","\uD805\uDE54","\uD805\uDE55","\uD805\uDE56","\uD805\uDE57","\uD805\uDE58","\uD805\uDE59"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mroo:["\uD81A\uDE60","\uD81A\uDE61","\uD81A\uDE62","\uD81A\uDE63","\uD81A\uDE64","\uD81A\uDE65","\uD81A\uDE66","\uD81A\uDE67","\uD81A\uDE68","\uD81A\uDE69"],mtei:["꯰","꯱","꯲","꯳","꯴","꯵","꯶","꯷","꯸","꯹"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],mymrshan:["႐","႑","႒","႓","႔","႕","႖","႗","႘","႙"],mymrtlng:["꧰","꧱","꧲","꧳","꧴","꧵","꧶","꧷","꧸","꧹"],newa:["\uD805\uDC50","\uD805\uDC51","\uD805\uDC52","\uD805\uDC53","\uD805\uDC54","\uD805\uDC55","\uD805\uDC56","\uD805\uDC57","\uD805\uDC58","\uD805\uDC59"],nkoo:["߀","߁","߂","߃","߄","߅","߆","߇","߈","߉"],olck:["᱐","᱑","᱒","᱓","᱔","᱕","᱖","᱗","᱘","᱙"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],osma:["\uD801\uDCA0","\uD801\uDCA1","\uD801\uDCA2","\uD801\uDCA3","\uD801\uDCA4","\uD801\uDCA5","\uD801\uDCA6","\uD801\uDCA7","\uD801\uDCA8","\uD801\uDCA9"],rohg:["\uD803\uDD30","\uD803\uDD31","\uD803\uDD32","\uD803\uDD33","\uD803\uDD34","\uD803\uDD35","\uD803\uDD36","\uD803\uDD37","\uD803\uDD38","\uD803\uDD39"],saur:["꣐","꣑","꣒","꣓","꣔","꣕","꣖","꣗","꣘","꣙"],segment:["\uD83E\uDFF0","\uD83E\uDFF1","\uD83E\uDFF2","\uD83E\uDFF3","\uD83E\uDFF4","\uD83E\uDFF5","\uD83E\uDFF6","\uD83E\uDFF7","\uD83E\uDFF8","\uD83E\uDFF9"],shrd:["\uD804\uDDD0","\uD804\uDDD1","\uD804\uDDD2","\uD804\uDDD3","\uD804\uDDD4","\uD804\uDDD5","\uD804\uDDD6","\uD804\uDDD7","\uD804\uDDD8","\uD804\uDDD9"],sind:["\uD804\uDEF0","\uD804\uDEF1","\uD804\uDEF2","\uD804\uDEF3","\uD804\uDEF4","\uD804\uDEF5","\uD804\uDEF6","\uD804\uDEF7","\uD804\uDEF8","\uD804\uDEF9"],sinh:["෦","෧","෨","෩","෪","෫","෬","෭","෮","෯"],sora:["\uD804\uDCF0","\uD804\uDCF1","\uD804\uDCF2","\uD804\uDCF3","\uD804\uDCF4","\uD804\uDCF5","\uD804\uDCF6","\uD804\uDCF7","\uD804\uDCF8","\uD804\uDCF9"],sund:["᮰","᮱","᮲","᮳","᮴","᮵","᮶","᮷","᮸","᮹"],takr:["\uD805\uDEC0","\uD805\uDEC1","\uD805\uDEC2","\uD805\uDEC3","\uD805\uDEC4","\uD805\uDEC5","\uD805\uDEC6","\uD805\uDEC7","\uD805\uDEC8","\uD805\uDEC9"],talu:["᧐","᧑","᧒","᧓","᧔","᧕","᧖","᧗","᧘","᧙"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"],tirh:["\uD805\uDCD0","\uD805\uDCD1","\uD805\uDCD2","\uD805\uDCD3","\uD805\uDCD4","\uD805\uDCD5","\uD805\uDCD6","\uD805\uDCD7","\uD805\uDCD8","\uD805\uDCD9"],vaii:["ᘠ","ᘡ","ᘢ","ᘣ","ᘤ","ᘥ","ᘦ","ᘧ","ᘨ","ᘩ"],wara:["\uD806\uDCE0","\uD806\uDCE1","\uD806\uDCE2","\uD806\uDCE3","\uD806\uDCE4","\uD806\uDCE5","\uD806\uDCE6","\uD806\uDCE7","\uD806\uDCE8","\uD806\uDCE9"],wcho:["\uD838\uDEF0","\uD838\uDEF1","\uD838\uDEF2","\uD838\uDEF3","\uD838\uDEF4","\uD838\uDEF5","\uD838\uDEF6","\uD838\uDEF7","\uD838\uDEF8","\uD838\uDEF9"]},tK=new RegExp("^".concat(tG.source)),tZ=new RegExp("".concat(tG.source,"$")),tQ=/[#0](?:[\.,][#0]+)*/g;function t$(e,t,r,n){var i,a,o,s=e.sign,l=e.exponent,u=e.magnitude,c=n.notation,d=n.style,f=n.numberingSystem,h=t.numbers.nu[0],p=null;if("compact"===c&&u&&(p=function(e,t,r,n,i,a,o){var s,l,u=e.roundedNumber,c=e.sign,d=String(Math.pow(10,e.magnitude)),f=r.numbers.nu[0];if("currency"===n&&"name"!==a){var h=r.numbers.currency,p=null==(s=(h[o]||h[f]).short)?void 0:s[d];if(!p)return null;l=tJ(t,u.toNumber(),p)}else{var h=r.numbers.decimal,m=(h[o]||h[f])[i][d];if(!m)return null;l=tJ(t,u.toNumber(),m)}return"0"===l?null:l=tY(l,c).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,r,t,d,n.compactDisplay,n.currencyDisplay,f)),"currency"===d&&"name"!==n.currencyDisplay){var m=t.currencies[n.currency];if(m)switch(n.currencyDisplay){case"code":a=n.currency;break;case"symbol":a=m.symbol;break;default:a=m.narrow}else a=n.currency}if(p)o=p;else if("decimal"===d||"unit"===d||"currency"===d&&"name"===n.currencyDisplay)o=tY((t.numbers.decimal[f]||t.numbers.decimal[h]).standard,s);else if("currency"===d){var g=t.numbers.currency[f]||t.numbers.currency[h];o=tY(g[n.currencySign],s)}else o=tY(t.numbers.percent[f]||t.numbers.percent[h],s);var _=tQ.exec(o)[0];if(o=o.replace(tQ,"{0}").replace(/'(.)'/g,"$1"),"currency"===d&&"name"!==n.currencyDisplay){var g=t.numbers.currency[f]||t.numbers.currency[h],y=g.currencySpacing.afterInsertBetween;y&&!tZ.test(a)&&(o=o.replace("\xa4{0}","\xa4".concat(y,"{0}")));var v=g.currencySpacing.beforeInsertBetween;v&&!tK.test(a)&&(o=o.replace("{0}\xa4","{0}".concat(v,"\xa4")))}for(var b=o.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),w=[],E=t.numbers.symbols[f]||t.numbers.symbols[h],k=0;k<b.length;k++){var T=b[k];if(T)switch(T){case"{0}":w.push.apply(w,function(e,t,r,n,i,a,o,s,l,u){var c,d,f=[],h=t.formattedString,p=t.roundedNumber;if(p.isNaN())return[{type:"nan",value:h}];if(!p.isFinite())return[{type:"infinity",value:h}];var m=tW[i];m&&(h=h.replace(/\d/g,function(e){return m[+e]||e}));var g=h.indexOf(".");g>0?(c=h.slice(0,g),d=h.slice(g+1)):c=h;var _=!1;if("always"===a?_=!0:"min2"===a?_=p.greaterThanOrEqualTo(1e4):("auto"===a||a)&&(_="compact"!==r||p.greaterThanOrEqualTo(1e4)),_){var y="currency"===s&&null!=e.currencyGroup?e.currencyGroup:e.group,v=[],b=o.split(".")[0].split(","),w=3,E=3;b.length>1&&(w=b[b.length-1].length),b.length>2&&(E=b[b.length-2].length);var k=c.length-w;if(k>0){for(v.push(c.slice(k,k+w)),k-=E;k>0;k-=E)v.push(c.slice(k,k+E));v.push(c.slice(0,k+E))}else v.push(c);for(;v.length>0;){var T=v.pop();f.push({type:"integer",value:T}),v.length>0&&f.push({type:"group",value:y})}}else f.push({type:"integer",value:c});if(void 0!==d){var S="currency"===s&&null!=e.currencyDecimal?e.currencyDecimal:e.decimal;f.push({type:"decimal",value:S},{type:"fraction",value:d})}if(("scientific"===r||"engineering"===r)&&p.isFinite()){f.push({type:"exponentSeparator",value:e.exponential}),n<0&&(f.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var x=tU(new eF(n),0,0,l,u);f.push({type:"exponentInteger",value:x.formattedString})}return f}(E,e,c,l,f,!p&&(null==(i=n.useGrouping)||i),_,d,n.roundingIncrement,tj(n.roundingMode,-1===s)));break;case"-":w.push({type:"minusSign",value:E.minusSign});break;case"+":w.push({type:"plusSign",value:E.plusSign});break;case"%":w.push({type:"percentSign",value:E.percentSign});break;case"\xa4":w.push({type:"currency",value:a});break;default:/^\{c:/.test(T)?w.push({type:"compact",value:T.substring(3,T.length-1)}):w.push({type:"literal",value:T})}}switch(d){case"currency":if("name"!==n.currencyDisplay)return w;var S=(t.numbers.currency[f]||t.numbers.currency[h]).unitPattern,x=void 0,A=t.currencies[n.currency];x=A?tJ(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),A.displayName):n.currency;for(var I=S.split(/(\{[01]\})/g),O=[],N=0;N<I.length;N++){var T=I[N];switch(T){case"{0}":O.push.apply(O,w);break;case"{1}":O.push({type:"currency",value:x});break;default:T&&O.push({type:"literal",value:T})}}return O;case"unit":var D=n.unit,C=n.unitDisplay,P=t.units.simple[D],S=void 0;if(P)S=tJ(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),t.units.simple[D][C]);else{var L=D.split("-per-"),R=L[0],M=L[1];P=t.units.simple[R];var F=tJ(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),t.units.simple[R][C]),j=t.units.simple[M].perUnit[C];if(j)S=j.replace("{0}",F);else{var B=t.units.compound.per[C],U=tJ(r,1,t.units.simple[M][C]);S=S=B.replace("{0}",F).replace("{1}",U.replace("{0}",""))}}for(var O=[],V=0,z=S.split(/(\s*\{0\}\s*)/);V<z.length;V++){var T=z[V],q=/^(\s*)\{0\}(\s*)$/.exec(T);q?(q[1]&&O.push({type:"literal",value:q[1]}),O.push.apply(O,w),q[2]&&O.push({type:"literal",value:q[2]})):T&&O.push({type:"unit",value:T})}return O;default:return w}}function tY(e,t){0>e.indexOf(";")&&(e="".concat(e,";-").concat(e));var r=e.split(";"),n=r[0],i=r[1];switch(t){case 0:return n;case -1:return i;default:return i.indexOf("-")>=0?i.replace(/-/g,"+"):"+".concat(n)}}function tJ(e,t,r){return r[e.select(t)]||r.other}function tX(e,t){var r=e.dataLocaleData.numbers.symbols[e.numberingSystem].approximatelySign;return t.push({type:"approximatelySign",value:r}),t}function t0(e,t){var r,n,i,a=t,o=0,s=e.pl,l=e.dataLocaleData,u=e.numberingSystem,c=l.numbers.symbols[u]||l.numbers.symbols[l.numbers.nu[0]],d=0;if(a.isNaN())n=c.nan;else if(a.isFinite()){a.isZero()||(e$(a.isFinite(),"Input must be a mathematical value"),"percent"==e.style&&(a=a.times(100)),d=(r=tq(e,a))[0],o=r[1],a=a.times(eF.pow(10,-d)));var f=tz(e,a);n=f.formattedString,a=f.roundedNumber}else n=c.infinity;var h=e.signDisplay;switch(h){case"never":i=0;break;case"auto":i=a.isPositive()||a.isNaN()?0:-1;break;case"always":i=a.isPositive()||a.isNaN()?1:-1;break;case"exceptZero":i=a.isZero()?0:a.isNegative()?-1:1;break;default:e$("negative"===h,'signDisplay must be "negative"'),i=a.isNegative()&&!a.isZero()?-1:0}return t$({roundedNumber:a,formattedString:n,exponent:d,magnitude:o,sign:i},e.dataLocaleData,s,e)}function t1(e,t){return t0(e,t).map(function(e){return e.value}).join("")}function t2(e,t,r,n){var i=n.getInternalSlots;e$(!t.isNaN()&&!r.isNaN(),"Input must be a number",RangeError);var a=i(e),o=t0(a,t),s=t0(a,r);if(t1(a,t)===t1(a,r)){var l=tX(a,o);return l.forEach(function(e){e.source="shared"}),l}var u=[];o.forEach(function(e){e.source="startRange",u.push(e)});var c=a.dataLocaleData.numbers.symbols[a.numberingSystem].rangeSign;return u.push({type:"literal",value:c,source:"shared"}),s.forEach(function(e){e.source="endRange",u.push(e)}),tL(e,u,{getInternalSlots:i})}function t5(e,t,r,n){return t2(e,t,r,{getInternalSlots:n.getInternalSlots}).map(function(e){return e.value}).join("")}function t3(e,t,r,n){return t2(e,t,r,{getInternalSlots:n.getInternalSlots}).map(function(e,t){return{type:e.type,value:e.value,source:e.source,result:t.toString()}})}function t4(e,t,r){for(var n=t0(r.getInternalSlots(e),t),i=e9(0),a=0;a<n.length;a++){var o=n[a];i.push({type:o.type,value:o.value})}return i}var t6=r(83792),t9=new Set([1,2,5,10,20,25,50,100,200,250,500,1e3,2e3,2500,5e3]);function t8(e,t,r,n,i){var a=tb(t,"minimumIntegerDigits",1,21,1),o=t.minimumFractionDigits,s=t.maximumFractionDigits,l=t.minimumSignificantDigits,u=t.maximumSignificantDigits;e.minimumIntegerDigits=a;var c=tb(t,"roundingIncrement",1,5e3,1);e$(t9.has(c),"Invalid rounding increment value: ".concat(c,".\nValid values are ").concat(Array.from(t9).join(", "),"."));var d=tw(t,"roundingMode","string",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],"halfExpand"),f=tw(t,"roundingPriority","string",["auto","morePrecision","lessPrecision"],"auto"),h=tw(t,"trailingZeroDisplay","string",["auto","stripIfInteger"],"auto");1!==c&&(n=r),e.roundingIncrement=c,e.roundingMode=d,e.trailingZeroDisplay=h;var p=void 0!==l||void 0!==u,m=void 0!==o||void 0!==s,g=!0,_=!0;if("auto"===f&&(g=p,(p||!m&&"compact"===i)&&(_=!1)),g&&(p?(e.minimumSignificantDigits=tv(l,1,21,1),e.maximumSignificantDigits=tv(u,e.minimumSignificantDigits,21,21)):(e.minimumSignificantDigits=1,e.maximumSignificantDigits=21)),_)if(m){if(o=tv(o,0,100,void 0),s=tv(s,0,100,void 0),void 0===o)e$(void 0!==s,"maximumFractionDigits must be defined"),o=Math.min(r,s);else if(void 0===s)s=Math.max(n,o);else if(o>s)throw RangeError("Invalid range, ".concat(o," > ").concat(s));e.minimumFractionDigits=o,e.maximumFractionDigits=s}else e.minimumFractionDigits=r,e.maximumFractionDigits=n;g||_?"morePrecision"===f?(e.roundingType="morePrecision",e.roundingPriority="morePrecision"):"lessPrecision"===f?(e.roundingType="lessPrecision",e.roundingPriority="lessPrecision"):(p?e.roundingType="significantDigits":e.roundingType="fractionDigits",e.roundingPriority="auto"):(e.minimumFractionDigits=0,e.maximumFractionDigits=0,e.minimumSignificantDigits=1,e.maximumSignificantDigits=2,e.roundingType="morePrecision",e.roundingPriority="morePrecision"),1!==c&&(e$("fractionDigits"===e.roundingType,"Invalid roundingType",TypeError),e$(e.maximumFractionDigits===e.minimumFractionDigits,"With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.",RangeError))}function t7(e,t){void 0===t&&(t=Object.create(null));var r=tw(t,"style","string",["decimal","percent","currency","unit"],"decimal");e.style=r;var n=tw(t,"currency","string",void 0,void 0);e$(void 0===n||tN(n),"Malformed currency code",RangeError),e$("currency"!==r||void 0!==n,"currency cannot be undefined",TypeError);var i=tw(t,"currencyDisplay","string",["code","symbol","narrowSymbol","name"],"symbol"),a=tw(t,"currencySign","string",["standard","accounting"],"standard"),o=tw(t,"unit","string",void 0,void 0);e$(void 0===o||tD(o),"Invalid unit argument for Intl.NumberFormat()",RangeError),e$("unit"!==r||void 0!==o,"unit cannot be undefined",TypeError);var s=tw(t,"unitDisplay","string",["short","narrow","long"],"short");"currency"===r&&(e.currency=n.toUpperCase(),e.currencyDisplay=i,e.currencySign=a),"unit"===r&&(e.unit=o,e.unitDisplay=s)}function re(e,t,r,i){var a,o,s=i.getInternalSlots,l=i.localeData,u=i.availableLocales,c=i.numberingSystemNames,d=i.getDefaultLocale,f=i.currencyDigitsData,h=n(t),p=ty(r),m=Object.create(null);m.localeMatcher=tw(p,"localeMatcher","string",["lookup","best fit"],"best fit");var g=tw(p,"numberingSystem","string",void 0,void 0);if(void 0!==g&&0>c.indexOf(g))throw RangeError("Invalid numberingSystems: ".concat(g));m.nu=g;var _=(0,t6.ResolveLocale)(Array.from(u),h,m,["nu"],l,d),y=l[_.dataLocale];e$(!!y,"Missing locale data for ".concat(_.dataLocale));var v=s(e);v.locale=_.locale,v.dataLocale=_.dataLocale,v.numberingSystem=_.nu,v.dataLocaleData=y,t7(v,p);var b=v.style,w=tw(p,"notation","string",["standard","scientific","engineering","compact"],"standard");if(v.notation=w,"currency"===b&&"standard"===w){var E=tH(v.currency,{currencyDigitsData:f});a=E,o=E}else a=0,o=3*("percent"!==b);t8(v,p,a,o,w);var k=tw(p,"compactDisplay","string",["short","long"],"short"),T="auto";return"compact"===w&&(v.compactDisplay=k,T="min2"),v.useGrouping=tk(p,"useGrouping",["min2","auto","always"],"always",!1,T),v.signDisplay=tw(p,"signDisplay","string",["auto","never","always","exceptZero","negative"],"auto"),e}function rt(e){for(var t=[],r=e.indexOf("{"),n=0,i=0,a=e.length;r<e.length&&r>-1;)e$((n=e.indexOf("}",r))>r,"Invalid pattern ".concat(e)),r>i&&t.push({type:"literal",value:e.substring(i,r)}),t.push({type:e.substring(r+1,n),value:void 0}),i=n+1,r=e.indexOf("{",i);return i<a&&t.push({type:"literal",value:e.substring(i,a)}),t}function rr(e,t,r){var n="best fit";return void 0!==r&&tw(r=e4(r),"localeMatcher","string",["lookup","best fit"],"best fit"),(0,t6.LookupSupportedLocales)(Array.from(e),t)}function rn(e){return"MISSING_LOCALE_DATA"===e.type}function ri(e){var t=t_(e,"number");if("bigint"==typeof t)return new eF(t);if(void 0===t)return new eF(NaN);if(!0===t)return new eF(1);if(!1===t||null===t)return new eF(0);try{return new eF(t)}catch(e){return new eF(NaN)}}(function(e){(0,eU.__extends)(function(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t},e)})(Error),function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(a||(a={}))},77328:(e,t,r)=>{e.exports=r(89836)},77742:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(14232),i=r(37154),a=r(7672);function o(){var e=n.useContext(a.ob);return(0,i.HM)(e),e}},78940:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(87810),("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)},79350:(e,t,r)=>{"use strict";r.d(t,{J1:()=>B});var n,i,a=r(4902);let o=/\r\n|[\n\r]/g;function s(e,t){let r=0,n=1;for(let i of e.body.matchAll(o)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function l(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?r:0,l=t.column+s,c=`${e.name}:${o}:${l}
8
+ ]`;continue}i+=n[e],"\\"===n[e]?a=!0:o&&"]"===n[e]?o=!1:o||"["!==n[e]||(o=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}let tc=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};var td={code:"0",name:"text",parse:e=>{if("string"!=typeof e)throw Error('"text" parts expect a string value.');return{type:"text",value:e}}},tf={code:"3",name:"error",parse:e=>{if("string"!=typeof e)throw Error('"error" parts expect a string value.');return{type:"error",value:e}}},th={code:"4",name:"assistant_message",parse:e=>{if(null==e||"object"!=typeof e||!("id"in e)||!("role"in e)||!("content"in e)||"string"!=typeof e.id||"string"!=typeof e.role||"assistant"!==e.role||!Array.isArray(e.content)||!e.content.every(e=>null!=e&&"object"==typeof e&&"type"in e&&"text"===e.type&&"text"in e&&null!=e.text&&"object"==typeof e.text&&"value"in e.text&&"string"==typeof e.text.value))throw Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},tp={code:"5",name:"assistant_control_data",parse:e=>{if(null==e||"object"!=typeof e||!("threadId"in e)||!("messageId"in e)||"string"!=typeof e.threadId||"string"!=typeof e.messageId)throw Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},tm={code:"6",name:"data_message",parse:e=>{if(null==e||"object"!=typeof e||!("role"in e)||!("data"in e)||"string"!=typeof e.role||"data"!==e.role)throw Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},tg=[td,tf,th,tp,tm],t_={[td.code]:td,[tf.code]:tf,[th.code]:th,[tp.code]:tp,[tm.code]:tm};td.name,td.code,tf.name,tf.code,th.name,th.code,tp.name,tp.code,tm.name,tm.code;var ty=tg.map(e=>e.code),tv=[{code:"0",name:"text",parse:e=>{if("string"!=typeof e)throw Error('"text" parts expect a string value.');return{type:"text",value:e}}},{code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw Error('"data" parts expect an array value.');return{type:"data",value:e}}},{code:"3",name:"error",parse:e=>{if("string"!=typeof e)throw Error('"error" parts expect a string value.');return{type:"error",value:e}}},{code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},{code:"9",name:"tool_call",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("toolName"in e)||"string"!=typeof e.toolName||!("args"in e)||"object"!=typeof e.args)throw Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},{code:"a",name:"tool_result",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("result"in e))throw Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},{code:"b",name:"tool_call_streaming_start",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("toolName"in e)||"string"!=typeof e.toolName)throw Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},{code:"c",name:"tool_call_delta",parse:e=>{if(null==e||"object"!=typeof e||!("toolCallId"in e)||"string"!=typeof e.toolCallId||!("argsTextDelta"in e)||"string"!=typeof e.argsTextDelta)throw Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},{code:"d",name:"finish_message",parse:e=>{if(null==e||"object"!=typeof e||!("finishReason"in e)||"string"!=typeof e.finishReason)throw Error('"finish_message" parts expect an object with a "finishReason" property.');let t={finishReason:e.finishReason};return"usage"in e&&null!=e.usage&&"object"==typeof e.usage&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:"number"==typeof e.usage.promptTokens?e.usage.promptTokens:Number.NaN,completionTokens:"number"==typeof e.usage.completionTokens?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:t}}},{code:"e",name:"finish_step",parse:e=>{if(null==e||"object"!=typeof e||!("finishReason"in e)||"string"!=typeof e.finishReason)throw Error('"finish_step" parts expect an object with a "finishReason" property.');let t={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&null!=e.usage&&"object"==typeof e.usage&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(t.usage={promptTokens:"number"==typeof e.usage.promptTokens?e.usage.promptTokens:Number.NaN,completionTokens:"number"==typeof e.usage.completionTokens?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&"boolean"==typeof e.isContinued&&(t.isContinued=e.isContinued),{type:"finish_step",value:t}}},{code:"f",name:"start_step",parse:e=>{if(null==e||"object"!=typeof e||!("messageId"in e)||"string"!=typeof e.messageId)throw Error('"start_step" parts expect an object with an "id" property.');return{type:"start_step",value:{messageId:e.messageId}}}},{code:"g",name:"reasoning",parse:e=>{if("string"!=typeof e)throw Error('"reasoning" parts expect a string value.');return{type:"reasoning",value:e}}},{code:"h",name:"source",parse:e=>{if(null==e||"object"!=typeof e)throw Error('"source" parts expect a Source object.');return{type:"source",value:e}}},{code:"i",name:"redacted_reasoning",parse:e=>{if(null==e||"object"!=typeof e||!("data"in e)||"string"!=typeof e.data)throw Error('"redacted_reasoning" parts expect an object with a "data" property.');return{type:"redacted_reasoning",value:{data:e.data}}}},{code:"j",name:"reasoning_signature",parse:e=>{if(null==e||"object"!=typeof e||!("signature"in e)||"string"!=typeof e.signature)throw Error('"reasoning_signature" parts expect an object with a "signature" property.');return{type:"reasoning_signature",value:{signature:e.signature}}}},{code:"k",name:"file",parse:e=>{if(null==e||"object"!=typeof e||!("data"in e)||"string"!=typeof e.data||!("mimeType"in e)||"string"!=typeof e.mimeType)throw Error('"file" parts expect an object with a "data" and "mimeType" property.');return{type:"file",value:e}}}],tb=Object.fromEntries(tv.map(e=>[e.code,e]));Object.fromEntries(tv.map(e=>[e.name,e.code]));var tw=tv.map(e=>e.code),tE=e=>{let t=e.indexOf(":");if(-1===t)throw Error("Failed to parse stream string. No separator found.");let r=e.slice(0,t);if(!tw.includes(r))throw Error(`Failed to parse stream string. Invalid code ${r}.`);let n=JSON.parse(e.slice(t+1));return tb[r].parse(n)};async function tk({stream:e,onTextPart:t,onReasoningPart:r,onReasoningSignaturePart:n,onRedactedReasoningPart:i,onSourcePart:a,onFilePart:o,onDataPart:s,onErrorPart:l,onToolCallStreamingStartPart:u,onToolCallDeltaPart:c,onToolCallPart:d,onToolResultPart:f,onMessageAnnotationsPart:h,onFinishMessagePart:p,onFinishStepPart:m,onStartStepPart:g}){let _=e.getReader(),y=new TextDecoder,v=[],b=0;for(;;){let{value:e}=await _.read();if(e&&(v.push(e),b+=e.length,10!==e[e.length-1]))continue;if(0===v.length)break;let w=function(e,t){let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return e.length=0,r}(v,b);for(let{type:e,value:_}of(b=0,y.decode(w,{stream:!0}).split("\n").filter(e=>""!==e).map(tE)))switch(e){case"text":await (null==t?void 0:t(_));break;case"reasoning":await (null==r?void 0:r(_));break;case"reasoning_signature":await (null==n?void 0:n(_));break;case"redacted_reasoning":await (null==i?void 0:i(_));break;case"file":await (null==o?void 0:o(_));break;case"source":await (null==a?void 0:a(_));break;case"data":await (null==s?void 0:s(_));break;case"error":await (null==l?void 0:l(_));break;case"message_annotations":await (null==h?void 0:h(_));break;case"tool_call_streaming_start":await (null==u?void 0:u(_));break;case"tool_call_delta":await (null==c?void 0:c(_));break;case"tool_call":await (null==d?void 0:d(_));break;case"tool_result":await (null==f?void 0:f(_));break;case"finish_message":await (null==p?void 0:p(_));break;case"finish_step":await (null==m?void 0:m(_));break;case"start_step":await (null==g?void 0:g(_));break;default:throw Error(`Unknown stream part type: ${e}`)}}}async function tT({stream:e,update:t,onToolCall:r,onFinish:n,generateId:i=G,getCurrentDate:a=()=>new Date,lastMessage:o}){var s,l;let u,c,d,f=(null==o?void 0:o.role)==="assistant",h=f?1+(null!=(l=null==(s=o.toolInvocations)?void 0:s.reduce((e,t)=>{var r;return Math.max(e,null!=(r=t.step)?r:0)},0))?l:0):0,p=f?structuredClone(o):{id:i(),createdAt:a(),role:"assistant",content:"",parts:[]};function m(e,t){let r=p.parts.find(t=>"tool-invocation"===t.type&&t.toolInvocation.toolCallId===e);null!=r?r.toolInvocation=t:p.parts.push({type:"tool-invocation",toolInvocation:t})}let g=[],_=f?null==o?void 0:o.annotations:void 0,y={},v={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},b="unknown";function w(){let e=[...g];(null==_?void 0:_.length)&&(p.annotations=_),t({message:{...structuredClone(p),revisionId:i()},data:e,replaceLastMessage:f})}await tk({stream:e,onTextPart(e){null==u?(u={type:"text",text:e},p.parts.push(u)):u.text+=e,p.content+=e,w()},onReasoningPart(e){var t;null==d?(d={type:"text",text:e},null!=c&&c.details.push(d)):d.text+=e,null==c?(c={type:"reasoning",reasoning:e,details:[d]},p.parts.push(c)):c.reasoning+=e,p.reasoning=(null!=(t=p.reasoning)?t:"")+e,w()},onReasoningSignaturePart(e){null!=d&&(d.signature=e.signature)},onRedactedReasoningPart(e){null==c&&(c={type:"reasoning",reasoning:"",details:[]},p.parts.push(c)),c.details.push({type:"redacted",data:e.data}),d=void 0,w()},onFilePart(e){p.parts.push({type:"file",mimeType:e.mimeType,data:e.data}),w()},onSourcePart(e){p.parts.push({type:"source",source:e}),w()},onToolCallStreamingStartPart(e){null==p.toolInvocations&&(p.toolInvocations=[]),y[e.toolCallId]={text:"",step:h,toolName:e.toolName,index:p.toolInvocations.length};let t={state:"partial-call",step:h,toolCallId:e.toolCallId,toolName:e.toolName,args:void 0};p.toolInvocations.push(t),m(e.toolCallId,t),w()},onToolCallDeltaPart(e){let t=y[e.toolCallId];t.text+=e.argsTextDelta;let{value:r}=function(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=Z({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=Z({text:function(e){let t=["ROOT"],r=-1,n=null;function i(e,i,a){switch(e){case'"':r=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":r=i,n=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":r=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":r=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function a(e,n){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":r=n,t.pop()}}function o(e,n){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=n,t.pop()}}for(let s=0;s<e.length;s++){let l=e[s];switch(t[t.length-1]){case"ROOT":i(l,s,"FINISH");break;case"INSIDE_OBJECT_START":switch(l){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":r=s,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===l&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":i(l,s,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":a(l,s);break;case"INSIDE_STRING":switch(l){case'"':t.pop(),r=s;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:r=s}break;case"INSIDE_ARRAY_START":"]"===l?(r=s,t.pop()):(r=s,i(l,s,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(l){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=s,t.pop();break;default:r=s}break;case"INSIDE_ARRAY_AFTER_COMMA":i(l,s,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),r=s;break;case"INSIDE_NUMBER":switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=s;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,s);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,s);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(n,s+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?r=s:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?a(l,s):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&o(l,s))}}}let s=e.slice(0,r+1);for(let r=t.length-1;r>=0;r--)switch(t[r]){case"INSIDE_STRING":s+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":s+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":s+="]";break;case"INSIDE_LITERAL":{let t=e.substring(n,e.length);"true".startsWith(t)?s+="true".slice(t.length):"false".startsWith(t)?s+="false".slice(t.length):"null".startsWith(t)&&(s+="null".slice(t.length))}}return s}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}(t.text),n={state:"partial-call",step:t.step,toolCallId:e.toolCallId,toolName:t.toolName,args:r};p.toolInvocations[t.index]=n,m(e.toolCallId,n),w()},async onToolCallPart(e){let t={state:"call",step:h,...e};if(null!=y[e.toolCallId]?p.toolInvocations[y[e.toolCallId].index]=t:(null==p.toolInvocations&&(p.toolInvocations=[]),p.toolInvocations.push(t)),m(e.toolCallId,t),w(),r){let t=await r({toolCall:e});if(null!=t){let r={state:"result",step:h,...e,result:t};p.toolInvocations[p.toolInvocations.length-1]=r,m(e.toolCallId,r),w()}}},onToolResultPart(e){let t=p.toolInvocations;if(null==t)throw Error("tool_result must be preceded by a tool_call");let r=t.findIndex(t=>t.toolCallId===e.toolCallId);if(-1===r)throw Error("tool_result must be preceded by a tool_call with the same toolCallId");let n={...t[r],state:"result",...e};t[r]=n,m(e.toolCallId,n),w()},onDataPart(e){g.push(...e),w()},onMessageAnnotationsPart(e){null==_?_=[...e]:_.push(...e),w()},onFinishStepPart(e){h+=1,u=e.isContinued?u:void 0,c=void 0,d=void 0},onStartStepPart(e){f||(p.id=e.messageId),p.parts.push({type:"step-start"}),w()},onFinishMessagePart(e){b=e.finishReason,null!=e.usage&&(v=function({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}(e.usage))},onErrorPart(e){throw Error(e)}}),null==n||n({message:p,finishReason:b,usage:v})}async function tS({stream:e,onTextPart:t}){let r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){let{done:e,value:n}=await r.read();if(e)break;await t(n)}}async function tx({stream:e,update:t,onFinish:r,getCurrentDate:n=()=>new Date,generateId:i=G}){let a={type:"text",text:""},o={id:i(),createdAt:n(),role:"assistant",content:"",parts:[a]};await tS({stream:e,onTextPart:e=>{o.content+=e,a.text+=e,t({message:{...o},data:[],replaceLastMessage:!1})}}),null==r||r(o,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"})}var tA=()=>fetch;async function tI({api:e,body:t,streamProtocol:r="data",credentials:n,headers:i,abortController:a,restoreMessagesOnFailure:o,onResponse:s,onUpdate:l,onFinish:u,onToolCall:c,generateId:d,fetch:f=tA(),lastMessage:h,requestType:p="generate"}){var m,g,_;let y="resume"===p?f(`${e}?chatId=${t.id}`,{method:"GET",headers:{"Content-Type":"application/json",...i},signal:null==(m=null==a?void 0:a())?void 0:m.signal,credentials:n}):f(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...i},signal:null==(g=null==a?void 0:a())?void 0:g.signal,credentials:n}),v=await y.catch(e=>{throw o(),e});if(s)try{await s(v)}catch(e){throw e}if(!v.ok)throw o(),Error(null!=(_=await v.text())?_:"Failed to fetch the chat response.");if(!v.body)throw Error("The response body is empty.");switch(r){case"text":return void await tx({stream:v.body,update:l,onFinish:u,generateId:d});case"data":return void await tT({stream:v.body,update:l,lastMessage:h,onToolCall:c,onFinish({message:e,finishReason:t,usage:r}){u&&null!=e&&u(e,{usage:r,finishReason:t})},generateId:d});default:throw Error(`Unknown stream protocol: ${r}`)}}function tO(e){return null==e?void 0:e.reduce((e,t)=>{var r;return Math.max(e,null!=(r=t.step)?r:0)},0)}function tN(e){var t;return null!=(t=e.parts)?t:[...e.toolInvocations?e.toolInvocations.map(e=>({type:"tool-invocation",toolInvocation:e})):[],...e.reasoning?[{type:"reasoning",reasoning:e.reasoning,details:[{type:"text",text:e.reasoning}]}]:[],...e.content?[{type:"text",text:e.content}]:[]]}function tD(e){return e.map(e=>({...e,parts:tN(e)}))}async function tC(e){if(!e)return[];if(globalThis.FileList&&e instanceof globalThis.FileList)return Promise.all(Array.from(e).map(async e=>{let{name:t,type:r}=e;return{name:t,contentType:r,url:await new Promise((t,r)=>{let n=new FileReader;n.onload=e=>{var r;t(null==(r=e.target)?void 0:r.result)},n.onerror=e=>r(e),n.readAsDataURL(e)})}}));if(Array.isArray(e))return e;throw Error("Invalid attachments type")}function tP(e){if("assistant"!==e.role)return!1;let t=e.parts.reduce((e,t,r)=>"step-start"===t.type?r:e,-1),r=e.parts.slice(t+1).filter(e=>"tool-invocation"===e.type);return r.length>0&&r.every(e=>"result"in e.toolInvocation)}Symbol.for("vercel.ai.schema");var tL=r(38806),tR=Object.prototype.hasOwnProperty;let tM=new WeakMap,tF=()=>{},tj=tF(),tB=Object,tU=e=>e===tj,tV=e=>"function"==typeof e,tz=(e,t)=>({...e,...t}),tq=e=>tV(e.then),tH={},tG={},tW="undefined",tK=typeof window!=tW,tZ=typeof document!=tW,tQ=tK&&"Deno"in window,t$=()=>tK&&typeof window.requestAnimationFrame!=tW,tY=(e,t)=>{let r=tM.get(e);return[()=>!tU(t)&&e.get(t)||tH,n=>{if(!tU(t)){let i=e.get(t);t in tG||(tG[t]=i),r[5](t,tz(i,n),i||tH)}},r[6],()=>!tU(t)&&t in tG?tG[t]:!tU(t)&&e.get(t)||tH]},tJ=!0,[tX,t0]=tK&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[tF,tF],t1={initFocus:e=>(tZ&&document.addEventListener("visibilitychange",e),tX("focus",e),()=>{tZ&&document.removeEventListener("visibilitychange",e),t0("focus",e)}),initReconnect:e=>{let t=()=>{tJ=!0,e()},r=()=>{tJ=!1};return tX("online",t),tX("offline",r),()=>{t0("online",t),t0("offline",r)}}},t2=!p.useId,t5=!tK||tQ,t3=e=>t$()?window.requestAnimationFrame(e):setTimeout(e,1),t4=t5?p.useEffect:p.useLayoutEffect,t6="undefined"!=typeof navigator&&navigator.connection,t9=!t5&&t6&&(["slow-2g","2g"].includes(t6.effectiveType)||t6.saveData),t8=new WeakMap,t7=(e,t)=>tB.prototype.toString.call(e)===`[object ${t}]`,re=0,rt=e=>{let t,r,n=typeof e,i=t7(e,"Date"),a=t7(e,"RegExp"),o=t7(e,"Object");if(tB(e)!==e||i||a)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=t8.get(e))return t;if(t=++re+"~",t8.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=rt(e[r])+",";t8.set(e,t)}if(o){t="#";let n=tB.keys(e).sort();for(;!tU(r=n.pop());)tU(e[r])||(t+=r+":"+rt(e[r])+",");t8.set(e,t)}}return t},rr=e=>{if(tV(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?rt(e):"",t]},rn=0,ri=()=>++rn;async function ra(...e){let[t,r,n,i]=e,a=tz({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,s=a.rollbackOnError,l=a.optimisticData,u=e=>"function"==typeof s?s(e):!1!==s,c=a.throwOnError;if(tV(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(d))}return d(r);async function d(r){let i,[s]=rr(r);if(!s)return;let[d,f]=tY(t,s),[h,p,m,g]=tM.get(t),_=()=>{let e=h[s];return(tV(a.revalidate)?a.revalidate(d().data,r):!1!==a.revalidate)&&(delete m[s],delete g[s],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return _();let y=n,v=ri();p[s]=[v,0];let b=!tU(l),w=d(),E=w.data,k=w._c,T=tU(k)?E:k;if(b&&f({data:l=tV(l)?l(T,E):l,_c:T}),tV(y))try{y=y(T)}catch(e){i=e}if(y&&tq(y)){if(y=await y.catch(e=>{i=e}),v!==p[s][0]){if(i)throw i;return y}i&&b&&u(i)&&(o=!0,f({data:T,_c:tj}))}if(o&&!i&&(tV(o)?f({data:o(y,T),error:tj,_c:tj}):f({data:y,error:tj,_c:tj})),p[s][1]=ri(),Promise.resolve(_()).then(()=>{f({_c:tj})}),i){if(c)throw i;return}return y}}let ro=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},rs=(e,t)=>{if(!tM.has(e)){let r=tz(t1,t),n=Object.create(null),i=ra.bind(tj,e),a=tF,o=Object.create(null),s=(e,t)=>{let r=o[e]||[];return o[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);let i=o[t];if(i)for(let e of i)e(r,n)},u=()=>{if(!tM.has(e)&&(tM.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,l,s]),!t5)){let t=r.initFocus(setTimeout.bind(tj,ro.bind(tj,n,0))),i=r.initReconnect(setTimeout.bind(tj,ro.bind(tj,n,1)));a=()=>{t&&t(),i&&i(),tM.delete(e)}}};return u(),[e,i,u,a]}return[e,tM.get(e)[4]]},[rl,ru]=rs(new Map),rc=tz({onLoadingSlow:tF,onSuccess:tF,onError:tF,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(tU(a)||!(o>a))&&setTimeout(n,s,i)},onDiscarded:tF,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:t9?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:t9?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(tR.call(t,n)&&++i&&!tR.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:rl,mutate:ru,fallback:{}},{isOnline:()=>tJ,isVisible:()=>{let e=tZ&&document.visibilityState;return tU(e)||"hidden"!==e}}),rd=(e,t)=>{let r=tz(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:o}=t;n&&a&&(r.use=n.concat(a)),i&&o&&(r.fallback=tz(i,o))}return r},rf=(0,p.createContext)({}),rh=tK&&window.__SWR_DEVTOOLS_USE__,rp=rh?window.__SWR_DEVTOOLS_USE__:[],rm=e=>tV(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],rg=()=>tz(rc,(0,p.useContext)(rf)),r_=rp.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=rr(t),[,,,i]=tM.get(rl);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return tU(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),ry=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};rh&&(window.__SWR_DEVTOOLS_REACT__=p);let rv=()=>{},rb=rv();new WeakMap;let rw=p.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),rE={dedupe:!0};tB.defineProperty(e=>{let{value:t}=e,r=(0,p.useContext)(rf),n=tV(t),i=(0,p.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,p.useMemo)(()=>n?i:rd(r,i),[n,r,i]),o=i&&i.provider,s=(0,p.useRef)(tj);o&&!s.current&&(s.current=rs(o(a.cache||rl),i));let l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),t4(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,p.createElement)(rf.Provider,tz(e,{value:a}))},"defaultValue",{value:rc});let rk=(a=(e,t,r)=>{let{cache:n,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:f}=r,[h,m,g,_]=tM.get(n),[y,v]=rr(e),b=(0,p.useRef)(!1),w=(0,p.useRef)(!1),E=(0,p.useRef)(y),k=(0,p.useRef)(t),T=(0,p.useRef)(r),S=()=>T.current,x=()=>S().isVisible()&&S().isOnline(),[A,I,O,N]=tY(n,y),D=(0,p.useRef)({}).current,C=tU(o)?tU(r.fallback)?tj:r.fallback[y]:o,P=(e,t)=>{for(let r in D)if("data"===r){if(!i(e[r],t[r])&&(!tU(e[r])||!i(z,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},L=(0,p.useMemo)(()=>{let e=!!y&&!!t&&(tU(s)?!S().isPaused()&&!a&&!1!==l:s),r=t=>{let r=tz(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=A(),i=N(),o=r(n),u=n===i?o:r(i),c=o;return[()=>{let e=r(A());return P(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>u]},[n,y]),R=(0,tL.useSyncExternalStore)((0,p.useCallback)(e=>O(y,(t,r)=>{P(r,t)||e()}),[n,y]),L[0],L[1]),M=!b.current,F=h[y]&&h[y].length>0,j=R.data,B=tU(j)?C&&tq(C)?rw(C):C:j,U=R.error,V=(0,p.useRef)(B),z=f?tU(j)?tU(V.current)?B:V.current:j:B,q=(!F||!!tU(U))&&(M&&!tU(s)?s:!S().isPaused()&&(a?!tU(B)&&l:tU(B)||l)),H=!!(y&&t&&M&&q),G=tU(R.isValidating)?H:R.isValidating,W=tU(R.isLoading)?H:R.isLoading,K=(0,p.useCallback)(async e=>{let t,n,a=k.current;if(!y||!a||w.current||S().isPaused())return!1;let o=!0,s=e||{},l=!g[y]||!s.dedupe,u=()=>t2?!w.current&&y===E.current&&b.current:y===E.current,c={isValidating:!1,isLoading:!1},d=()=>{I(c)},f=()=>{let e=g[y];e&&e[1]===n&&delete g[y]},p={isValidating:!0};tU(A().data)&&(p.isLoading=!0);try{if(l&&(I(p),r.loadingTimeout&&tU(A().data)&&setTimeout(()=>{o&&u()&&S().onLoadingSlow(y,r)},r.loadingTimeout),g[y]=[a(v),ri()]),[t,n]=g[y],t=await t,l&&setTimeout(f,r.dedupingInterval),!g[y]||g[y][1]!==n)return l&&u()&&S().onDiscarded(y),!1;c.error=tj;let e=m[y];if(!tU(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return d(),l&&u()&&S().onDiscarded(y),!1;let s=A().data;c.data=i(s,t)?s:t,l&&u()&&S().onSuccess(t,y,r)}catch(r){f();let e=S(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,l&&u()&&(e.onError(r,y,e),(!0===t||tV(t)&&t(r))&&(!S().revalidateOnFocus||!S().revalidateOnReconnect||x())&&e.onErrorRetry(r,y,e,e=>{let t=h[y];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,d(),!0},[y,n]),Z=(0,p.useCallback)((...e)=>ra(n,E.current,...e),[]);if(t4(()=>{k.current=t,T.current=r,tU(j)||(V.current=j)}),t4(()=>{if(!y)return;let e=K.bind(tj,rE),t=0;S().revalidateOnFocus&&(t=Date.now()+S().focusThrottleInterval);let r=ry(y,h,(r,n={})=>{if(0==r){let r=Date.now();S().revalidateOnFocus&&r>t&&x()&&(t=r+S().focusThrottleInterval,e())}else if(1==r)S().revalidateOnReconnect&&x()&&e();else if(2==r)return K();else if(3==r)return K(n)});return w.current=!1,E.current=y,b.current=!0,I({_k:v}),q&&(tU(B)||t5?e():t3(e)),()=>{w.current=!0,r()}},[y]),t4(()=>{let e;function t(){let t=tV(u)?u(A().data):u;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!A().error&&(c||S().isVisible())&&(d||S().isOnline())?K(rE).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[u,c,d,y]),(0,p.useDebugValue)(z),a&&tU(B)&&y){if(!t2&&t5)throw Error("Fallback data is required when using Suspense in SSR.");k.current=t,T.current=r,w.current=!1;let e=_[y];if(tU(e)||rw(Z(e)),tU(U)){let e=K(rE);tU(z)||(e.status="fulfilled",e.value=!0),rw(e)}else throw U}return{mutate:Z,get data(){return D.data=!0,z},get error(){return D.error=!0,U},get isValidating(){return D.isValidating=!0,G},get isLoading(){return D.isLoading=!0,W}}},function(...e){let t=rg(),[r,n,i]=rm(e),o=rd(t,i),s=a,{use:l}=o,u=(l||[]).concat(r_);for(let e=u.length;e--;)s=u[e](s);return s(r,n||o.fetcher||null,o)});var rT=r(66253);function rS(e,t){return null!=t?rT(e,t):e}var rx=r(16619),rA=r(58011);let rI=e=>{let t=new DataTransfer;return e.forEach(e=>t.items.add(e)),t.files},rO=()=>{let e=(0,p.useRef)(!1),{messages:t,input:r,handleInputChange:n,handleSubmit:i,isLoading:a,error:o,status:s,setMessages:l,stop:u,reload:c,append:d}=function({api:e="/api/chat",id:t,initialMessages:r,initialInput:n="",sendExtraMessageFields:i,onToolCall:a,experimental_prepareRequestBody:o,maxSteps:s=1,streamProtocol:l="data",onResponse:u,onFinish:c,onError:d,credentials:f,headers:h,body:m,generateId:g=G,fetch:_,keepLastMessageOnError:y=!0,experimental_throttle:v}={}){let[b]=(0,p.useState)(g),w=null!=t?t:b,E="string"==typeof e?[e,w]:w,k=function(e){let[t,r]=(0,p.useState)(e);return(0,p.useEffect)(()=>{!function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if("object"!=typeof t&&"object"!=typeof r)return t===r;if(t.constructor!==r.constructor)return!1;if(t instanceof Date&&r instanceof Date)return t.getTime()===r.getTime();if(Array.isArray(t)){if(t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],r[n]))return!1;return!0}let n=Object.keys(t),i=Object.keys(r);if(n.length!==i.length)return!1;for(let a of n)if(!i.includes(a)||!e(t[a],r[a]))return!1;return!0}(e,t)&&r(e)},[e,t]),t}(null!=r?r:[]),{data:T,mutate:S}=rk([E,"messages"],null,{fallbackData:(0,p.useMemo)(()=>tD(k),[k])}),x=(0,p.useRef)(T||[]);(0,p.useEffect)(()=>{x.current=T||[]},[T]);let{data:A,mutate:I}=rk([E,"streamData"],null),O=(0,p.useRef)(A);(0,p.useEffect)(()=>{O.current=A},[A]);let{data:N="ready",mutate:D}=rk([E,"status"],null),{data:C,mutate:P}=rk([E,"error"],null),L=(0,p.useRef)(null),R=(0,p.useRef)({credentials:f,headers:h,body:m});(0,p.useEffect)(()=>{R.current={credentials:f,headers:h,body:m}},[f,h,m]);let M=(0,p.useCallback)(async(t,r="generate")=>{var n,f;D("submitted"),P(void 0);let h=tD(t.messages),p=h.length,m=tO(null==(n=h[h.length-1])?void 0:n.toolInvocations);try{L.current=new AbortController;let n=rS(S,v),s=rS(I,v),d=x.current;n(h,!1);let p=i?h:h.map(({role:e,content:t,experimental_attachments:r,data:n,annotations:i,toolInvocations:a,parts:o})=>({role:e,content:t,...void 0!==r&&{experimental_attachments:r},...void 0!==n&&{data:n},...void 0!==i&&{annotations:i},...void 0!==a&&{toolInvocations:a},...void 0!==o&&{parts:o}})),m=O.current;await tI({api:e,body:null!=(f=null==o?void 0:o({id:w,messages:h,requestData:t.data,requestBody:t.body}))?f:{id:w,messages:p,data:t.data,...R.current.body,...t.body},streamProtocol:l,credentials:R.current.credentials,headers:{...R.current.headers,...t.headers},abortController:()=>L.current,restoreMessagesOnFailure(){y||n(d,!1)},onResponse:u,onUpdate({message:e,data:t,replaceLastMessage:r}){D("streaming"),n([...r?h.slice(0,h.length-1):h,e],!1),(null==t?void 0:t.length)&&s([...null!=m?m:[],...t],!1)},onToolCall:a,onFinish:c,generateId:g,fetch:_,lastMessage:h[h.length-1],requestType:r}),L.current=null,D("ready")}catch(e){if("AbortError"===e.name)return L.current=null,D("ready"),null;d&&e instanceof Error&&d(e),P(e),D("error")}let b=x.current;(function({originalMaxToolInvocationStep:e,originalMessageCount:t,maxSteps:r,messages:n}){var i;let a=n[n.length-1];return r>1&&null!=a&&(n.length>t||tO(a.toolInvocations)!==e)&&tP(a)&&(null!=(i=tO(a.toolInvocations))?i:0)<r})({originalMaxToolInvocationStep:m,originalMessageCount:p,maxSteps:s,messages:b})&&await M({messages:b})},[S,D,e,R,u,c,d,P,I,O,l,i,o,a,s,x,L,g,_,y,v,w]),F=(0,p.useCallback)(async(e,{data:t,headers:r,body:n,experimental_attachments:i=e.experimental_attachments}={})=>{var a,o;let s=await tC(i);return M({messages:x.current.concat({...e,id:null!=(a=e.id)?a:g(),createdAt:null!=(o=e.createdAt)?o:new Date,experimental_attachments:s.length>0?s:void 0,parts:tN(e)}),headers:r,body:n,data:t})},[M,g]),j=(0,p.useCallback)(async({data:e,headers:t,body:r}={})=>{let n=x.current;return 0===n.length?null:M({messages:"assistant"===n[n.length-1].role?n.slice(0,-1):n,headers:t,body:r,data:e})},[M]),B=(0,p.useCallback)(()=>{L.current&&(L.current.abort(),L.current=null)},[]),U=(0,p.useCallback)(async()=>{M({messages:x.current},"resume")},[M]),V=(0,p.useCallback)(e=>{"function"==typeof e&&(e=e(x.current));let t=tD(e);S(t,!1),x.current=t},[S]),z=(0,p.useCallback)(e=>{"function"==typeof e&&(e=e(O.current)),I(e,!1),O.current=e},[I]),[q,H]=(0,p.useState)(n),W=(0,p.useCallback)(async(e,t={},r)=>{var n;if(null==(n=null==e?void 0:e.preventDefault)||n.call(e),!q&&!t.allowEmptySubmit)return;r&&(R.current={...R.current,...r});let i=await tC(t.experimental_attachments);M({messages:x.current.concat({id:g(),createdAt:new Date,role:"user",content:q,experimental_attachments:i.length>0?i:void 0,parts:[{type:"text",text:q}]}),headers:t.headers,body:t.body,data:t.data}),H("")},[q,g,M]),K=(0,p.useCallback)(({toolCallId:e,result:t})=>{let r=x.current;!function({messages:e,toolCallId:t,toolResult:r}){var n;let i=e[e.length-1],a=i.parts.find(e=>"tool-invocation"===e.type&&e.toolInvocation.toolCallId===t);if(null==a)return;let o={...a.toolInvocation,state:"result",result:r};a.toolInvocation=o,i.toolInvocations=null==(n=i.toolInvocations)?void 0:n.map(e=>e.toolCallId===t?o:e)}({messages:r,toolCallId:e,toolResult:t}),S([...r.slice(0,r.length-1),{...r[r.length-1]}],!1),"submitted"!==N&&"streaming"!==N&&tP(r[r.length-1])&&M({messages:r})},[S,N,M]);return{messages:null!=T?T:[],id:w,setMessages:V,data:A,setData:z,error:C,append:F,reload:j,stop:B,experimental_resume:U,input:q,setInput:H,handleInputChange:e=>{H(e.target.value)},handleSubmit:W,isLoading:"submitted"===N||"streaming"===N,status:N,addToolResult:K}}({streamProtocol:"data",maxSteps:5,credentials:"include",api:"/chat",initialMessages:rx.K.loadMessages(),onError:e=>{var t;if(console.error("Chat error:",e),null==(t=e.message)?void 0:t.includes("fetch")){let e={id:"error-".concat(Date.now()),role:"assistant",content:"\uD83D\uDEAB **Connection Error**\n\nCannot connect to the chat API server at `localhost:4010`.\n\n**This app uses static export mode, so API routes are disabled.**\n\n**To enable chat functionality:**\n1. Start the proper chat API server on localhost:4010\n2. The server should implement the AI SDK streaming format\n3. Include tool calling for product management\n\n**Current status:**\n- Chat interface: ✅ Ready\n- Backend integration: ❌ Required\n\n*Please set up the backend chat service to use this feature.*"};l(t=>[...t,e])}}});return(0,p.useEffect)(()=>{rx.K.saveMessages(t)},[t]),{messages:t,input:r,handleInputChange:n,handleSubmit:async(e,t)=>{e.preventDefault(),t&&(null==t?void 0:t.length)>0?await i(e,{experimental_attachments:rI(t)}):await i(e)},isLoading:a,error:o,status:s,clearHistory:()=>{l([]),rx.K.clearMessages(),e.current=!1},stop:u,addInterruptionMessage:e=>{let t=rA.W.createInterruptionMessage(e);l(e=>[...e,t])},reload:c}}},16619:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});let n="copilot-chat-history",i={loadMessages(){try{let e=localStorage.getItem(n);return(e?JSON.parse(e):[]).filter(e=>"assistant"!==e.role||!e.parts||!e.parts.some(e=>"tool-invocation"===e.type&&e.toolInvocation&&(!e.toolInvocation.result||"call"===e.toolInvocation.state)))}catch(e){return console.error("Error loading chat history:",e),[]}},saveMessages(e){if(e&&0!==e.length)try{localStorage.setItem(n,JSON.stringify(e))}catch(e){console.error("Error saving chat history:",e)}},clearMessages(){try{localStorage.removeItem(n)}catch(e){console.error("Error clearing chat history:",e)}}}},17070:(e,t,r)=>{"use strict";r.d(t,{D_:()=>o,cM:()=>l,ep:()=>s,tQ:()=>u});var n=r(4902),i=r(80593),a={};function o(e,t){a[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,r,o,s;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,i.v[t]||r]})),sizes:(0,n.__assign)({print:null==(e=a.print)?void 0:e.call(a),parser:null==(t=a.parser)?void 0:t.call(a),canonicalStringify:null==(r=a.canonicalStringify)?void 0:r.call(a),links:function e(t){var r;return t?(0,n.__spreadArray)((0,n.__spreadArray)([null==(r=null==t?void 0:t.getMemoryInternals)?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(f):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:h(this.queryManager.documentTransform)}},null==(s=(o=this.cache).getMemoryInternals)?void 0:s.call(o))}}:void 0,l=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,n.__assign)((0,n.__assign)({},c.apply(this)),{addTypenameDocumentTransform:h(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:d(this.storeReader.executeSelectionSet),executeSubSelectedArray:d(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:d(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:d(null==e?void 0:e.findFragmentSpreads),lookup:d(null==e?void 0:e.lookup),transform:d(null==e?void 0:e.transform)}})}:void 0,u=!1!==globalThis.__DEV__?c:void 0;function c(){return{cache:{fragmentQueryDocuments:d(this.getFragmentDoc)}}}function d(e){return e&&"dirtyKey"in e?e.size:void 0}function f(e){return null!=e}function h(e){return(function e(t){return t?(0,n.__spreadArray)((0,n.__spreadArray)([d(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(f):[]})(e).map(function(e){return{cache:e}})}},17318:(e,t,r)=>{"use strict";r.d(t,{Sf:()=>p,V1:()=>_,no:()=>h,vA:()=>y});var n=r(4902),i="Invariant Violation",a=Object.setPrototypeOf,o=void 0===a?function(e,t){return e.__proto__=t,e}:a,s=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,o(n,t.prototype),n}return(0,n.__extends)(t,e),t}(Error);function l(e,t){if(!e)throw new s(t)}var u=["debug","log","warn","error","silent"],c=u.indexOf("log");function d(e){return function(){if(u.indexOf(e)>=c)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(l||(l={}));var f=r(84918);function h(e){try{return e()}catch(e){}}let p=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return global})||h(function(){return h.constructor("return this")()});var m=r(62091);function g(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=w(i))||(t=E(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var _=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||l(e,w(t,r)||E(t,r))},{debug:g(l.debug),log:g(l.log),warn:g(l.warn),error:g(l.error)});function y(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new s(w(e,t)||E(e,t))}var v=Symbol.for("ApolloErrorMessageHandler_"+f.r);function b(e){if("string"==typeof e)return e;try{return(0,m.p)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function w(e,t){if(void 0===t&&(t=[]),e)return p[v]&&p[v](e,t.map(b))}function E(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:f.r,message:e,args:t.map(b)})))}globalThis.__DEV__},18659:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},18877:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(4902),i=r(79760);function a(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,n.__assign)((0,n.__assign)({},e&&e.variables),t.variables))})}},19124:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4902),i=r(77262),a=r(20583),o=r(87560),s=n.__importDefault(r(31774)),l=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.RelativeTimeFormat must be called with 'new'");return(0,a.InitializeRelativeTimeFormat)(this,t,r,{getInternalSlots:s.default,availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale})}return e.prototype.format=function(e,t){if("object"!=typeof this)throw TypeError("format was called on a non-object");if(!(0,s.default)(this).initializedRelativeTimeFormat)throw TypeError("format was called on a invalid context");return(0,o.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:s.default}).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(e,t){if("object"!=typeof this)throw TypeError("formatToParts was called on a non-object");if(!(0,s.default)(this).initializedRelativeTimeFormat)throw TypeError("formatToParts was called on a invalid context");return(0,o.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:s.default})},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw TypeError("resolvedOptions was called on a non-object");var e=(0,s.default)(this);if(!e.initializedRelativeTimeFormat)throw TypeError("resolvedOptions was called on a invalid context");return{locale:e.locale,style:e.style,numeric:e.numeric,numberingSystem:e.numberingSystem}},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,o=i.locale,s=new Intl.Locale(o).minimize().toString();e.localeData[o]=e.localeData[s]=a,e.availableLocales.add(s),e.availableLocales.add(o),e.__defaultLocale||(e.__defaultLocale=s)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e}();t.default=l;try{"undefined"!=typeof Symbol&&Object.defineProperty(l.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},19221:(e,t,r)=>{"use strict";r.d(t,{a:()=>u});var n=r(4902),i=r(20996),a=r(45813),o=r(68922),s=r(71211),l=r(58851);function u(e,t,r,u){var d=t.data,f=(0,n.__rest)(t,["data"]),h=r.data,p=(0,n.__rest)(r,["data"]);return(0,i.A)(f,p)&&function e(t,r,n,a){if(r===n)return!0;var u=new Set;return t.selections.every(function(t){if(u.has(t)||(u.add(t),!(0,s.MS)(t,a.variables)||c(t)))return!0;if((0,l.dt)(t)){var d=(0,l.ue)(t),f=r&&r[d],h=n&&n[d],p=t.selectionSet;if(!p)return(0,i.A)(f,h);var m=Array.isArray(f),g=Array.isArray(h);if(m!==g)return!1;if(m&&g){var _=f.length;if(h.length!==_)return!1;for(var y=0;y<_;++y)if(!e(p,f[y],h[y],a))return!1;return!0}return e(p,f,h,a)}var v=(0,o.HQ)(t,a.fragmentMap);if(v)return!!c(v)||e(v.selectionSet,r,n,a)})}((0,a.Vn)(e).selectionSet,d,h,{fragmentMap:(0,o.JG)((0,a.zK)(e)),variables:u})}function c(e){return!!e.directives&&e.directives.some(d)}function d(e){return"nonreactive"===e.name.value}},20583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializeRelativeTimeFormat=function(e,t,r,o){var s=o.getInternalSlots,l=o.availableLocales,u=o.relevantExtensionKeys,c=o.localeData,d=o.getDefaultLocale,f=s(e);f.initializedRelativeTimeFormat=!0;var h=(0,n.CanonicalizeLocaleList)(t),p=Object.create(null),m=(0,n.CoerceOptionsToObject)(r);p.localeMatcher=(0,n.GetOption)(m,"localeMatcher","string",["best fit","lookup"],"best fit");var g=(0,n.GetOption)(m,"numberingSystem","string",void 0,void 0);if(void 0!==g&&!a.test(g))throw RangeError("Invalid numbering system ".concat(g));p.nu=g;var _=(0,i.ResolveLocale)(l,h,p,u,c,d),y=_.locale,v=_.nu;f.locale=y,f.style=(0,n.GetOption)(m,"style","string",["long","narrow","short"],"long"),f.numeric=(0,n.GetOption)(m,"numeric","string",["always","auto"],"always");var b=c[_.dataLocale];return(0,n.invariant)(!!b,"Missing locale data for ".concat(_.dataLocale)),f.fields=b,f.numberFormat=(0,n.createMemoizedNumberFormat)(t),f.pluralRules=(0,n.createMemoizedPluralRules)(t),f.numberingSystem=v,e};var n=r(77262),i=r(83792),a=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i},20996:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,L:()=>s});let{toString:n,hasOwnProperty:i}=Object.prototype,a=Function.prototype.toString,o=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;let o=n.call(t);if(o!==n.call(r))return!1;switch(o){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(f(t,r))return!0;let n=u(t),a=u(r),o=n.length;if(o!==a.length)return!1;for(let e=0;e<o;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<o;++i){let a=n[i];if(!e(t[a],r[a]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(f(t,r))return!0;let n=t.entries(),i="[object Map]"===o;for(;;){let t=n.next();if(t.done)break;let[a,o]=t.value;if(!r.has(a)||i&&!e(o,r.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=a.call(t);if(e!==a.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,d)}}return!1}(e,t)}finally{o.clear()}}let l=s;function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}let d="{ [native code] }";function f(e,t){let r=o.get(e);if(r){if(r.has(t))return!0}else o.set(e,r=new Set);return r.add(t),!1}},21500:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(93957);function i(e){var t;return!1!==globalThis.__DEV__&&(t=new Set([e])).forEach(function(e){(0,n.U)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.U)(e[r])&&t.add(e[r])})}),e}},22249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingularRelativeTimeUnit=function(e){if((0,n.invariant)("String"===(0,n.Type)(e),"unit must be a string"),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw RangeError("invalid unit");return e};var n=r(77262)},23045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializePluralRules=function(e,t,r,a){var o=a.availableLocales,s=a.relevantExtensionKeys,l=a.localeData,u=a.getDefaultLocale,c=a.getInternalSlots,d=(0,n.CanonicalizeLocaleList)(t),f=Object.create(null),h=(0,n.CoerceOptionsToObject)(r),p=c(e);return p.initializedPluralRules=!0,f.localeMatcher=(0,n.GetOption)(h,"localeMatcher","string",["best fit","lookup"],"best fit"),p.locale=(0,i.ResolveLocale)(o,d,f,s,l,u).locale,p.type=(0,n.GetOption)(h,"type","string",["cardinal","ordinal"],"cardinal"),(0,n.SetNumberFormatDigitOptions)(p,h,0,3,"standard"),e};var n=r(77262),i=r(83792)},23520:(e,t,r)=>{"use strict";var n=r(97225),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?o:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var o=c(r);d&&(o=o.concat(d(r)));for(var s=l(t),m=l(r),g=0;g<o.length;++g){var _=o[g];if(!a[_]&&!(n&&n[_])&&!(m&&m[_])&&!(s&&s[_])){var y=f(r,_);try{u(t,_,y)}catch(e){}}}}return t}},26352:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a});var n=r(14232),i=r(44727);function a(e){let t=(0,n.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},26382:(e,t,r)=>{"use strict";r.d(t,{$x:()=>o,Ei:()=>l,IF:()=>a,O4:()=>n,Zo:()=>s});var n,i=r(4902);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),o=function(e){function t(t,r,i,a){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,a)||this}return(0,i.__extends)(t,e),t}(a),s=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.__extends)(t,e),t}(a)},26593:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(96427),i=r(79350),a=r(54431);function o(){let e=(0,n._)(["\n query ShopInfo {\n shopInfo {\n _id\n version\n language {\n _id\n isoCode\n name\n }\n country {\n _id\n isoCode\n flagEmoji\n name\n defaultCurrency {\n _id\n isoCode\n }\n }\n chatEnabled\n adminUiConfig {\n singleSignOnURL\n externalLinks {\n href\n title\n target\n }\n customProperties {\n entityName\n inlineFragment\n }\n }\n }\n }\n"]);return o=function(){return e},e}let s=(0,i.J1)(o()),l=()=>{let{data:e,loading:t,error:r}=(0,a.IT)(s,{fetchPolicy:"cache-first"});return{shopInfo:null==e?void 0:e.shopInfo,loading:t,error:r}}},26828:(e,t,r)=>{"use strict";r.d(t,{M:()=>s});var n,i=r(95682),a=r(80593),o=r(17070),s=Object.assign(function(e){return JSON.stringify(e,l)},{reset:function(){n=new i.V(a.v.canonicalStringify||1e3)}});function l(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var i=Object.keys(t);if(i.every(u))return t;var a=JSON.stringify(i),o=n.get(a);if(!o){i.sort();var s=JSON.stringify(i);o=n.get(s)||i,n.set(a,o),n.set(s,o)}var l=Object.create(r);return o.forEach(function(e){l[e]=t[e]}),l}}return t}function u(e,t,r){return 0===t||r[t-1]<=e}!1!==globalThis.__DEV__&&(0,o.D_)("canonicalStringify",function(){return n.size}),s.reset()},27721:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(14232),i=r(26352);let a=function(e){let t=(0,i.Y)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},28327:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(14232),i=r(94517),a=r(87082),o=r(27721);function s(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.useRef)(null),[r,s]=(0,n.useState)(!1),l=(0,a.L)(),u=(0,o._)(()=>{t.current=null,s(!1),l.dispose()}),c=(0,o._)(e=>{if(l.dispose(),null===t.current){t.current=e.currentTarget,s(!0);{let r=(0,i.T)(e.currentTarget);l.addEventListener(r,"pointerup",u,!1),l.addEventListener(r,"pointermove",e=>{if(t.current){var r,n;let i,a;s((i=e.width/2,a=e.height/2,r={top:e.clientY-a,right:e.clientX+i,bottom:e.clientY+a,left:e.clientX-i},n=t.current.getBoundingClientRect(),!(!r||!n||r.right<n.left||r.left>n.right||r.bottom<n.top||r.top>n.bottom)))}},!1),l.addEventListener(r,"pointercancel",u,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}},29429:(e,t,r)=>{"use strict";var n=r(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},31026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(14232);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(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)},31774:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},32439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(72687),i=r(63732),a=r(37876),o=i._(r(14232)),s=n._(r(98477)),l=n._(r(89836)),u=r(84915),c=r(26904),d=r(90072);r(60546);let f=r(98265),h=n._(r(83829)),p=r(31026),m={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 g(e,t,r,n,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function _(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:m,unoptimized:y,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:E,setShowAltText:k,sizesInput:T,onLoad:S,onError:x,...A}=e,I=(0,o.useCallback)(e=>{e&&(x&&(e.src=e.src),e.complete&&g(e,h,b,w,E,y,T))},[r,h,b,w,E,x,y,T]),O=(0,p.useMergedRef)(t,I);return(0,a.jsx)("img",{...A,..._(f),loading:m,width:l,height:s,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:O,onLoad:e=>{g(e.currentTarget,h,b,w,E,y,T)},onError:e=>{k(!0),"empty"!==h&&E(!0),x&&x(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,..._(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(f.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:a}},[n]),{onLoad:s,onLoadingComplete:l}=e,p=(0,o.useRef)(s);(0,o.useEffect)(()=>{p.current=s},[s]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[_,b]=(0,o.useState)(!1),[w,E]=(0,o.useState)(!1),{props:k,meta:T}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:_,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...k,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:E,sizesInput:e.sizes,ref:t}),T.priority?(0,a.jsx)(v,{isAppRouter:!r,imgAttributes:k}):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)},32482:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function i(e){return n(e)&&"tagName"in e}function a(e){return i(e)&&"accessKey"in e}function o(e){return i(e)&&"tabIndex"in e}function s(e){return i(e)&&"style"in e}function l(e){return a(e)&&"IFRAME"===e.nodeName}function u(e){return a(e)&&"INPUT"===e.nodeName}function c(e){return a(e)&&"LABEL"===e.nodeName}function d(e){return a(e)&&"FIELDSET"===e.nodeName}function f(e){return a(e)&&"LEGEND"===e.nodeName}function h(e){return!!i(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}r.d(t,{A3:()=>u,Er:()=>d,Gu:()=>l,H5:()=>h,Jb:()=>f,Lk:()=>o,Ll:()=>n,kS:()=>c,pv:()=>s,sb:()=>a})},35518:(e,t,r)=>{"use strict";r.d(t,{U:()=>y,y:()=>b});var n=r(4902),i=r(17318),a=r(20996),o=r(66434),s=r(45813),l=r(79760),u=r(54962),c=r(53975),d=r(15072),f=r(36974),h=r(83070),p=r(19221),m=r(63965),g=Object.assign,_=Object.hasOwnProperty,y=function(e){function t(r){var i=r.queryManager,a=r.queryInfo,o=r.options,l=this,u=t.inactiveOnCreation.getValue();(l=e.call(this,function(e){u&&(i.queries.set(l.queryId,a),u=!1);try{var t=e._subscription._observer;t&&!t.error&&(t.error=v)}catch(e){}var r=!l.observers.size;l.observers.add(e);var n=l.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(l.maskResult(n.result)),r&&l.reobserve().catch(function(){}),function(){l.observers.delete(e)&&!l.observers.size&&l.tearDownQuery()}})||this).observers=new Set,l.subscriptions=new Set,l.dirty=!1,l.queryInfo=a,l.queryManager=i,l.waitForOwnResult=w(o.fetchPolicy),l.isTornDown=!1,l.subscribeToMore=l.subscribeToMore.bind(l),l.maskResult=l.maskResult.bind(l);var c=i.defaultOptions.watchQuery,d=(void 0===c?{}:c).fetchPolicy,f=void 0===d?"cache-first":d,h=o.fetchPolicy,p=void 0===h?f:h,m=o.initialFetchPolicy,g=void 0===m?"standby"===p?f:p:m;l.options=(0,n.__assign)((0,n.__assign)({},o),{initialFetchPolicy:g,fetchPolicy:p}),l.queryId=a.queryId||i.generateQueryId();var _=(0,s.Vu)(l.query);return l.queryName=_&&_.name&&_.name.value,l}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||o.pT.ready,i=(0,n.__assign)((0,n.__assign)({},t),{loading:(0,o.bi)(r),networkStatus:r}),s=this.options.fetchPolicy,l=void 0===s?"cache-first":s;if(w(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),(0,a.L)(i.data,{})&&(i.data=void 0),u.complete?(delete i.partial,u.complete&&i.networkStatus===o.pT.loading&&("cache-first"===l||"cache-only"===l)&&(i.networkStatus=o.pT.ready,i.loading=!1)):i.partial=!0,i.networkStatus===o.pT.ready&&(i.error||i.errors)&&(i.networkStatus=o.pT.error),!1===globalThis.__DEV__||u.complete||this.options.partialRefetch||i.loading||i.data||i.error||b(u.missing)}return e&&this.updateLastResult(i),i},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,i=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!(0,p.a)(i,this.last.result,e,this.variables):!(0,a.L)(this.last.result,e))||t&&!(0,a.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,a.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0};if("no-cache"===this.options.fetchPolicy?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&_.call(e,"variables")){var l=(0,s.AT)(this.query),u=l.variableDefinitions;u&&u.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||i.V1.warn(21,e,(null==(t=l.name)?void 0:t.value)||l)}return e&&!(0,a.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.__assign)((0,n.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,o.pT.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e.query?e:(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,n.__assign)((0,n.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var a=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var s=this.queryInfo,l=s.networkStatus;s.networkStatus=o.pT.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=null==e?void 0:e.updateQuery,d="no-cache"!==this.options.fetchPolicy;return d||(0,i.V1)(c,22),this.queryManager.fetchQuery(a,r,o.pT.fetchMore).then(function(i){if(t.queryManager.removeQuery(a),s.networkStatus===o.pT.fetchMore&&(s.networkStatus=l),d)t.queryManager.cache.batch({update:function(n){var a=e.updateQuery;a?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return a(e,{fetchMoreResult:i.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:i.data})},onWatchUpdated:function(e){u.add(e.query)}});else{var f=t.getLast("result"),h=c(f.data,{fetchMoreResult:i.data,variables:r.variables});t.reportResult((0,n.__assign)((0,n.__assign)({},f),{networkStatus:l,loading:(0,o.bi)(l),data:h}),t.variables)}return t.maskResult(i)}).finally(function(){d&&!u.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var i=e.updateQuery;i&&t.updateQuery(function(e,t){return i(e,(0,n.__assign)({subscriptionData:r},t))})},error:function(t){if(e.onError)return void e.onError(t);!1!==globalThis.__DEV__&&i.V1.error(23,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,l.o)(this.options,e||{});g(this.options,t)},t.prototype.setVariables=function(e){return(0,a.L)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},o.pT.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,i=r.complete,a=e(n,{variables:this.variables,complete:!!i,previousData:n});a&&(t.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,a=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:a}):"variables-changed"===e?t.fetchPolicy=a:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){var n=this.queryManager.getOrCreateQuery(this.queryId);return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,i.V1)(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,o.bi)(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?a():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},o.pT.poll).then(a,a))},a=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};a()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,a.L)(t,this.last.variables)&&(r=void 0),this.last=(0,n.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,u.m)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===o.pT.refetch||t===o.pT.fetchMore||t===o.pT.poll,s=this.options.variables,u=this.options.fetchPolicy,c=(0,l.o)(this.options,e||{}),d=i?c:g(this.options,c),f=this.transformDocument(d.query);this.lastQuery=f,!i&&(this.updatePolling(),e&&e.variables&&!(0,a.L)(e.variables,s)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===u||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===t&&(t=o.pT.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=w(d.fetchPolicy));var p=function(){r.concast===y&&(r.waitForOwnResult=!1)},m=d.variables&&(0,n.__assign)({},d.variables),_=this.fetch(d,t,f),y=_.concast,v=_.fromLink,b={next:function(e){(0,a.L)(r.variables,m)&&(p(),r.reportResult(e,m))},error:function(e){(0,a.L)(r.variables,m)&&((0,h.Mn)(e)||(e=new h.K4({networkError:e})),p(),r.reportError(e,m))}};return i||!v&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=b),y.addObserver(b),y},t.prototype.reobserve=function(e,t){var r;return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),r},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&(0,c.w)(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=(0,n.__assign)((0,n.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:o.pT.error,loading:!1});this.updateLastResult(r,t),(0,c.w)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,n.__assign)((0,n.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!(0,o.bi)(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,n):t}}):this.reobserve()},t.inactiveOnCreation=new m.DX,t}(d.c);function v(e){!1!==globalThis.__DEV__&&i.V1.error(25,e.message,e.stack)}function b(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.V1.debug(26,e)}function w(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,f.r)(y)},35785:(e,t,r)=>{"use strict";r.d(t,{E:()=>i,c:()=>n});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},36607:(e,t,r)=>{"use strict";r.d(t,{M:()=>d});var n=r(12473),i=r(82505),a=r(86962),o=r(14232);let s=!1,l=0;function u(e){"touch"===e.pointerType&&(s=!0,setTimeout(()=>{s=!1},50))}function c(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",u),l++,()=>{--l>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:l,isDisabled:u}=e,[d,f]=(0,o.useState)(!1),h=(0,o.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,o.useEffect)(c,[]);let{addGlobalListener:p,removeAllGlobalListeners:m}=(0,n.A)(),{hoverProps:g,triggerHoverEnd:_}=(0,o.useMemo)(()=>{let e=(e,o)=>{if(h.pointerType=o,u||"touch"===o||h.isHovered||!e.currentTarget.contains(e.target))return;h.isHovered=!0;let s=e.currentTarget;h.target=s,p((0,i.TW)(e.target),"pointerover",e=>{h.isHovered&&h.target&&!(0,a.sD)(h.target,e.target)&&n(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:o}),r&&r(!0),f(!0)},n=(e,t)=>{let n=h.target;h.pointerType="",h.target=null,"touch"!==t&&h.isHovered&&n&&(h.isHovered=!1,m(),l&&l({type:"hoverend",target:n,pointerType:t}),r&&r(!1),f(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=t=>{s&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!u&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}),{hoverProps:o,triggerHoverEnd:n}},[t,r,l,u,h,p,m]);return(0,o.useEffect)(()=>{u&&_({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:g,isHovered:d}}},36898:(e,t,r)=>{"use strict";function n(){}r.d(t,{C:()=>i});class i{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},36974:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(15072),i=r(80542);function a(e){function t(t){Object.defineProperty(e,t,{value:n.c})}return i.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},37154:(e,t,r)=>{"use strict";r.d(t,{HM:()=>o,JF:()=>s,SP:()=>c,bN:()=>f,yU:()=>d});var n=r(4902),i=r(14232),a=r(83933);function o(e){var t;if(void 0===t&&(t=Error),!e)throw new t("[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var s=(0,n.__assign)((0,n.__assign)({},a.JF),{textComponent:i.Fragment}),l={key:42},u=function(e){return i.isValidElement(e)?i.createElement(i.Fragment,l,e):e},c=function(e){var t;return null!=(t=i.Children.map(e,u))?t:[]};function d(e){return function(t){return e(i.Children.toArray(t))}}function f(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a<i;a++){var o=r[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}},37478:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>o,Ci:()=>l,FX:()=>h,mK:()=>s,oE:()=>p,v6:()=>f});var n=r(14232),i=r(1147),a=r(92815),o=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(o||{}),s=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(s||{});function l(){let e,t,r=(e=(0,n.useRef)([]),t=(0,n.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]),function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];if(!n.every(e=>null==e))return e.current=n,t});return(0,n.useCallback)(e=>(function(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:o,visible:s=!0,name:l,mergeRefs:f}=e;f=null!=f?f:c;let h=d(r,t);if(s)return u(h,n,i,l,f);let p=null!=o?o:0;if(2&p){let{static:e=!1,...t}=h;if(e)return u(t,n,i,l,f)}if(1&p){let{unmount:e=!0,...t}=h;return(0,a.Y)(+!e,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},n,i,l,f)})}return u(h,n,i,l,f)})({mergeRefs:r,...e}),[r])}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:s=r,children:l,refName:u="ref",...c}=m(e,["unmount","static"]),f=void 0!==e.ref?{[u]:e.ref}:{},h="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let g={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(g["data-headlessui-state"]=r.join(" "),r))g["data-".concat(e)]=""}if(s===n.Fragment&&(Object.keys(p(c)).length>0||Object.keys(p(g)).length>0))if(!(0,n.isValidElement)(h)||Array.isArray(h)&&h.length>1){if(Object.keys(p(c)).length>0)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(a,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(p(c)).concat(Object.keys(p(g))).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"))}else{var _;let e=h.props,t=null==e?void 0:e.className,r="function"==typeof t?function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0,i.x)(t(...r),c.className)}:(0,i.x)(t,c.className),a=d(h.props,p(m(c,["ref"])));for(let e in g)e in a&&delete g[e];return(0,n.cloneElement)(h,Object.assign({},a,g,f,{ref:o((_=h,n.version.split(".")[0]>="19"?_.props.ref:_.ref),f.ref)},r?{className:r}:{}))}return(0,n.createElement)(s,Object.assign({},m(c,["ref"]),s!==n.Fragment&&f,s!==n.Fragment&&g),h)}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])for(let e in i)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(i[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in i)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(let r of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];for(let e in i)Object.assign(n,{[e](){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let t of i[e])null==t||t(...r)}});return n}function h(e){var t;return Object.assign((0,n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function p(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},37510:(e,t,r)=>{"use strict";r.d(t,{D$:()=>d,KG:()=>n});var n,i,a=r(17318),o=r(95682),s=r(80593),l=r(17070);function u(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function c(e){i||(i=new o.A(s.v.parser||1e3));var t,r,l,u=i.get(e);if(u)return u;(0,a.V1)(!!e&&!!e.kind,70,e);for(var c=[],d=[],f=[],h=[],p=0,m=e.definitions;p<m.length;p++){var g=m[p];if("FragmentDefinition"===g.kind){c.push(g);continue}if("OperationDefinition"===g.kind)switch(g.operation){case"query":d.push(g);break;case"mutation":f.push(g);break;case"subscription":h.push(g)}}(0,a.V1)(!c.length||d.length||f.length||h.length,71),(0,a.V1)(d.length+f.length+h.length<=1,72,e,d.length,h.length,f.length),r=d.length?n.Query:n.Mutation,d.length||f.length||(r=n.Subscription);var _=d.length?d:f.length?f:h;(0,a.V1)(1===_.length,73,e,_.length);var y=_[0];t=y.variableDefinitions||[];var v={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:r,variables:t};return i.set(e,v),v}function d(e,t){var r=c(e),n=u(t),i=u(r.type);(0,a.V1)(r.type===t,74,n,n,i)}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={})),c.resetCache=function(){i=void 0},!1!==globalThis.__DEV__&&(0,l.D_)("parser",function(){return i?i.size:0})},38806:(e,t,r)=>{"use strict";e.exports=r(29429)},39668:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});let n=()=>Object.create(null),{forEach:i,slice:a}=Array.prototype,{hasOwnProperty:o}=Object.prototype;class s{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),o.call(t,"data")?t.data:t.data=this.makeData(a.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(a.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new s(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},40720:(e,t,r)=>{"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{_:()=>n})},41597:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z"}))})},41863:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232),i=r(72891);let a=()=>(0,n.useContext)(i.A)},42343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(14232),i=r(74754),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:a}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),o.set(r,t),t}(r);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[h,c,(0,n.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)},44185:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(32482);function i(e){let t=e.parentElement,r=null;for(;t&&!n.Er(t);)n.Jb(t)&&(r=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(n.Jb(t))return!1;t=t.previousElementSibling}return!0}(r))&&i}},44727:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(14232),i=r(66077);let a=(e,t)=>{i._.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},45105:(e,t,r)=>{e.exports=r(87195)},45284:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%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='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},45813:(e,t,r)=>{"use strict";r.d(t,{AT:()=>u,E4:()=>c,Vn:()=>d,Vu:()=>o,n4:()=>s,sw:()=>a,wY:()=>f,zK:()=>l});var n=r(17318),i=r(58851);function a(e){(0,n.V1)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n.vA)(89,e.kind);return e});return(0,n.V1)(t.length<=1,90,t.length),e}function o(e){return a(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=o(e);return(0,n.V1)(t&&"query"===t.operation,91),t}function c(e){(0,n.V1)("Document"===e.kind,92),(0,n.V1)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,n.V1)("FragmentDefinition"===t.kind,94),t}function d(e){a(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var o=i[r];if("OperationDefinition"===o.kind){var s=o.operation;if("query"===s||"mutation"===s||"subscription"===s)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw(0,n.vA)(95)}function f(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)}),t}},46740:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext({customProperties:{},hydrateFragment:(e,t)=>null})},47334:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{var t,r,n,i,a,o,s,l,u,c,d,f,h;return e?(null==e?void 0:e.username)?e.username:(null==e||null==(t=e.profile)?void 0:t.displayName)?null==e||null==(r=e.profile)?void 0:r.displayName:(null==e||null==(i=e.profile)||null==(n=i.address)?void 0:n.firstName)||(null==e||null==(o=e.profile)||null==(a=o.address)?void 0:a.firstName)?"".concat(null==e||null==(l=e.profile)||null==(s=l.address)?void 0:s.lastName," ").concat(null==e||null==(c=e.profile)||null==(u=c.address)?void 0:u.lastName):(null==e?void 0:e.name)?e.name:e.isGuest?null==e||null==(h=e.primaryEmail)||null==(f=h.address)||null==(d=f.split("."))?void 0:d[0]:null:null}},47518:(e,t,r)=>{"use strict";r.d(t,{OC:()=>i,yo:()=>a});var n=r(7743);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,a=null,o=-1;for(let t=0;t<e.length;++t){let s=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(s);l!==s.length&&(a=null!=(r=a)?r:t,o=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=a)?t:0,o+1)}function a(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),a=1===i.length,o=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),s=r.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!a||e.length>70||c||o||s),f="",h=a&&(0,n.i0)(e.charCodeAt(0));return(d&&!h||o)&&(f+="\n"),f+=r,(d||c)&&(f+="\n"),'"""'+f+'"""'}},48143:(e,t,r)=>{"use strict";let n;r.d(t,{L:()=>t2});var i,a=r(14232),o=r(94410),s=r.n(o),l=r(69964),u=r.n(l),c=r(4902),d=r(17318),f=r(15072),h=r(45813);function p(e,t){return t?t(e):f.c.of()}function m(e){return"function"==typeof e?new _(e):e}function g(e){return e.request.length<=1}var _=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return f.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(m).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i,a=m(r),o=m(n||new e(p));return Object.assign(new e(g(a)&&g(o)?function(e){return t(e)?a.request(e)||f.c.of():o.request(e)||f.c.of()}:function(e,r){return t(e)?a.request(e,r)||f.c.of():o.request(e,r)||f.c.of()}),{left:a,right:o})},e.execute=function(e,t){var r,n,i,a,o;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw(0,d.vA)(46,i)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?(0,h.n4)(n.query)||void 0:""),a=n,o=(0,c.__assign)({},i),Object.defineProperty(a,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?(0,c.__assign)((0,c.__assign)({},o),e(o)):(0,c.__assign)((0,c.__assign)({},o),e)}}),Object.defineProperty(a,"getContext",{enumerable:!1,value:function(){return(0,c.__assign)({},o)}}),a))||f.c.of()},e.concat=function(t,r){var n,i=m(t);if(g(i))return!1!==globalThis.__DEV__&&d.V1.warn(38,i),i;var a=m(r);return Object.assign(new e(g(a)?function(e){return i.request(e,function(e){return a.request(e)||f.c.of()})||f.c.of()}:function(e,t){return i.request(e,function(e){return a.request(e,t)||f.c.of()})||f.c.of()}),{left:i,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(p)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,d.vA)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),y=r(71211),v=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,d.vA)(42,t,e.message);throw n.parseError=e,n}return r},b=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},w=r(80542);function E(e){var t={next:function(){return e.read()}};return w.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var k=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},T=r(83070),S=r(93957),x=r(35785),A=Object.prototype.hasOwnProperty;function I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return O(e)}function O(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new D,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var N=function(e,t,r){return this.merge(e[r],t[r])},D=function(){function e(e){void 0===e&&(e=N),this.reconciler=e,this.isObject=S.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return(0,S.U)(t)&&(0,S.U)(e)?(Object.keys(t).forEach(function(i){if(A.call(e,i)){var a=e[i];if(t[i]!==a){var o=r.reconciler.apply(r,(0,c.__spreadArray)([e,t,i],n,!1));o!==a&&((e=r.shallowCopyForMerge(e))[i]=o)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,S.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,c.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function C(e){return"incremental"in e}function P(e,t){var r=e,n=new D;return C(t)&&(0,x.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}r=n.merge(r,t)}),r}var L=Object.prototype.hasOwnProperty;function R(e,t){e.status>=300&&k(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var M=function(e){if(!e&&"undefined"==typeof fetch)throw(0,d.vA)(40)},F=r(47518);let j=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function B(e){return U[e.charCodeAt(0)]}let U=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var V=r(74968);let z={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>q(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=G("(",q(e.variableDefinitions,", "),")"),r=q([e.operation,q([e.name,t]),q(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+G(" = ",r)+G(" ",q(n," "))},SelectionSet:{leave:({selections:e})=>H(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=G("",e,": ")+t,o=a+G("(",q(r,", "),")");return o.length>80&&(o=a+G("(\n",W(q(r,"\n")),"\n)")),q([o,q(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+G(" ",q(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>q(["...",G("on ",e),q(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${G("(",q(r,", "),")")} on ${t} ${G("",q(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,F.yo)(e):`"${e.replace(j,B)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+q(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+q(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+G("(",q(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>G("",e,"\n")+q(["schema",q(t," "),H(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>G("",e,"\n")+q(["scalar",t,q(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>G("",e,"\n")+q(["type",t,G("implements ",q(r," & ")),q(n," "),H(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>G("",e,"\n")+t+(K(r)?G("(\n",W(q(r,"\n")),"\n)"):G("(",q(r,", "),")"))+": "+n+G(" ",q(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>G("",e,"\n")+q([t+": "+r,G("= ",n),q(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>G("",e,"\n")+q(["interface",t,G("implements ",q(r," & ")),q(n," "),H(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>G("",e,"\n")+q(["union",t,q(r," "),G("= ",q(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>G("",e,"\n")+q(["enum",t,q(r," "),H(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>G("",e,"\n")+q([t,q(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>G("",e,"\n")+q(["input",t,q(r," "),H(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>G("",e,"\n")+"directive @"+t+(K(r)?G("(\n",W(q(r,"\n")),"\n)"):G("(",q(r,", "),")"))+(n?" repeatable":"")+" on "+q(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>q(["extend schema",q(e," "),H(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>q(["extend scalar",e,q(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>q(["extend type",e,G("implements ",q(t," & ")),q(r," "),H(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>q(["extend interface",e,G("implements ",q(t," & ")),q(r," "),H(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>q(["extend union",e,q(t," "),G("= ",q(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>q(["extend enum",e,q(t," "),H(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>q(["extend input",e,q(t," "),H(r)]," ")}};function q(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function H(e){return G("{\n",W(q(e,"\n")),"\n}")}function G(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function W(e){return G(" ",e.replace(/\n/g,"\n "))}function K(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var Z=r(95682),Q=r(80593),$=r(17070),Y=Object.assign(function(e){var t=i.get(e);return t||(t=(0,V.YR)(e,z),i.set(e,t)),t},{reset:function(){i=new Z.A(Q.v.print||2e3)}});Y.reset(),!1!==globalThis.__DEV__&&(0,$.D_)("print",function(){return i?i.size:0});var J={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},X=function(e,t){return t(e)};function ee(e){return new f.c(function(t){t.error(e)})}var et=r(94587),er=r(58851),en=r(68922),ei={kind:et.b.FIELD,name:{kind:et.b.NAME,value:"__typename"}};function ea(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function eo(e,t){(0,h.sw)(t);for(var r,n,i,a,o=ea(""),s=ea(""),l=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,x.c)(r)){if(r.kind===et.b.OPERATION_DEFINITION)return o(r.name&&r.name.value);if(r.kind===et.b.FRAGMENT_DEFINITION)return s(r.name.value)}return!1!==globalThis.__DEV__&&d.V1.error(97),null},u=0,f=t.definitions.length-1;f>=0;--f)t.definitions[f].kind===et.b.OPERATION_DEFINITION&&++u;var p=(r=e,n=new Map,i=new Map,r.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&i.set(e.test,e))}),function(e){var t=n.get(e.name.value);return!t&&i.size&&i.forEach(function(r,n){n(e)&&(t=r)}),t}),m=function(e){return(0,x.E)(e)&&e.map(p).some(function(e){return e&&e.remove})},g=new Map,_=!1,y={enter:function(e){if(m(e.directives))return _=!0,null}},v=(0,V.YR)(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var a=l(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(m(e.directives))return _=!0,null;var a=l(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){g.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===g.get(JSON.stringify(n))?e:u>0&&e.selectionSet.selections.every(function(e){return e.kind===et.b.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,_=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return _=!0,null}}});if(!_)return t;var b=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){b(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},w=new Set;v.definitions.forEach(function(e){e.kind===et.b.OPERATION_DEFINITION?b(o(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){w.add(e)}):e.kind!==et.b.FRAGMENT_DEFINITION||0!==u||s(e.name.value).removed||w.add(e.name.value)}),w.forEach(function(e){b(s(e)).fragmentSpreads.forEach(function(e){w.add(e)})});var E={enter:function(e){var t;if(t=e.name.value,!w.has(t)||s(t).removed)return null}};return a=(0,V.YR)(v,{FragmentSpread:E,FragmentDefinition:E,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=b(o(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,c.__assign)((0,c.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===et.b.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,h.Vu)(a)||(0,h.E4)(a),(0,en.JG)((0,h.zK)(a)))?a:null}var es=Object.assign(function(e){return(0,V.YR)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==et.b.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return(0,er.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,er.dt)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,c.__assign)((0,c.__assign)({},e),{selections:(0,c.__spreadArray)((0,c.__spreadArray)([],n,!0),[ei],!1)})}}}})},{added:function(e){return e===ei}});function el(e){return(0,h.sw)(e),eo([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var eu=(0,d.no)(function(){return fetch}),ec=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,a=void 0===i?X:i,o=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,u=e.includeUnusedVariables,p=void 0!==u&&u,m=(0,c.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&M(n||eu);var g={http:{includeExtensions:o,preserveHeaderCase:s},options:m.fetchOptions,credentials:m.credentials,headers:m.headers};return new _(function(e){var t,i,o,s,u,m,_=b(e,r),x=e.getContext(),A={};if(x.clientAwareness){var I=x.clientAwareness,O=I.name,N=I.version;O&&(A["apollographql-client-name"]=O),N&&(A["apollographql-client-version"]=N)}var D=(0,c.__assign)((0,c.__assign)({},A),x.headers),C={http:x.http,options:x.fetchOptions,credentials:x.credentials,headers:D};if((0,y.d8)(["client"],e.query)){var P=el(e.query);if(!P)return ee(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=P}var M=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach(function(e){i=(0,c.__assign)((0,c.__assign)((0,c.__assign)({},i),e.options),{headers:(0,c.__assign)((0,c.__assign)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),a=(0,c.__assign)((0,c.__assign)({},a),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,a.preserveHeaderCase));var o=e.operationName,s=e.extensions,l=e.variables,u=e.query,d={operationName:o,variables:l};return a.includeExtensions&&(d.extensions=s),a.includeQuery&&(d.query=t(u,Y)),{options:i,body:d}}(e,a,J,g,C),F=M.options,j=M.body;j.variables&&!p&&(t=j.variables,i=e.query,o=(0,c.__assign)({},t),s=new Set(Object.keys(t)),(0,V.YR)(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&s.delete(e.name.value)}}),s.forEach(function(e){delete o[e]}),j.variables=o),F.signal||"undefined"==typeof AbortController||(F.signal=(m=new AbortController).signal);var B="OperationDefinition"===(u=(0,h.Vn)(e.query)).kind&&"subscription"===u.operation,U=(0,y.d8)(["defer"],e.query);if(l&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(F.method="GET"),U||B){F.headers=F.headers||{};var z="multipart/mixed;";B&&U&&!1!==globalThis.__DEV__&&d.V1.warn(41),B?z+="boundary=graphql;subscriptionSpec=1.0,application/json":U&&(z+="deferSpec=20220824,application/json"),F.headers.accept=z}if("GET"===F.method){var q=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=v(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var a=void 0;try{a=v(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",a)}var o="",s=e,l=e.indexOf("#");-1!==l&&(o=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+o}}(_,j),H=q.newURI,G=q.parseError;if(G)return ee(G);_=H}else try{F.body=v(j,"Payload")}catch(e){return ee(e)}return new f.c(function(t){var r=n||(0,d.no)(function(){return fetch})||eu,i=t.next.bind(t);return r(_,F).then(function(t){e.setContext({response:t});var r,n=null==(r=t.headers)?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?function(e,t){return(0,c.__awaiter)(this,void 0,void 0,function(){var r,n,i,a,o,s,l,u,d,f,h,p,m,g,_,y,v,b,k,x,A,I,O;return(0,c.__generator)(this,function(N){switch(N.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null==(O=e.headers)?void 0:O.get("content-type"),i="boundary=",a=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o="\r\n--".concat(a),s="",l=function(e){var t,r,n,i,a,o,s=e;if(e.body&&(s=e.body),t=s,w.uJ&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return E(s.getReader());if(s.stream)return E(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),a=!1,o={next:function(){return a?Promise.resolve({value:void 0,done:!0}):(a=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},w.uJ&&(o[Symbol.asyncIterator]=function(){return this}),o;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],a=[];function o(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){n=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",o),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])})}};return w.uJ&&(u[Symbol.asyncIterator]=function(){return this}),u}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),u=!0,N.label=1;case 1:if(!u)return[3,3];return[4,l.next()];case 2:for(f=(d=N.sent()).value,h=d.done,p="string"==typeof f?f:r.decode(f),m=s.length-o.length+1,u=!h,s+=p,g=s.indexOf(o,m);g>-1;){if(_=void 0,_=(A=[s.slice(0,g),s.slice(g+o.length)])[0],s=A[1],y=_.indexOf("\r\n\r\n"),(v=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(_.slice(0,y))["content-type"])&&-1===v.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(b=_.slice(y)){if(Object.keys(k=R(e,b)).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k)if((0,S.U)(k)&&"payload"in k){if(x={},"payload"in k){if(1===Object.keys(k).length&&null===k.payload)return[2];x=(0,c.__assign)({},k.payload)}"errors"in k&&(x=(0,c.__assign)((0,c.__assign)({},x),{extensions:(0,c.__assign)((0,c.__assign)({},"extensions"in x?x.extensions:null),((I={})[T.K$]=k.errors,I))})),t(x)}else t(k);else if(1===Object.keys(k).length&&"hasNext"in k&&!k.hasNext)return[2]}g=s.indexOf(o)}return[3,1];case 3:return[2]}})})}(t,i):(function(t){return t.text().then(function(e){return R(t,e)}).then(function(r){return Array.isArray(r)||L.call(r,"data")||L.call(r,"errors")||k(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})})(t).then(i)}).then(function(){m=void 0,t.complete()}).catch(function(e){m=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){m&&m.abort()}})})},ed=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,ec(t).request)||this;return r.options=t,r}return(0,c.__extends)(t,e),t}(_),ef=_.execute,eh=r(84918),ep=r(20996),em=r(26828),eg=r(39668),e_=r(99853),ey=r(63965);function ev(e){return e}var eb=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=w.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(ev,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new eg.b(w.et);this.performWork=(0,ey.LV)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,d.V1)(Array.isArray(n),77),r.lookupArray(n)},max:Q.v["documentTransform.cache"],cache:e_.l})}},e.prototype.performWork=function(e){return(0,h.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}();function ew(e,t,r){return new f.c(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}function eE(e){var t=ek(e);return(0,x.E)(t)}function ek(e){var t=(0,x.E)(e.errors)?e.errors.slice(0):[];return C(e)&&(0,x.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var eT=r(18659),eS=r(53975),ex=r(36974);function eA(e){return e&&"function"==typeof e.then}var eI=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,eS.w)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,eS.w)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?eA(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,eS.w)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new f.c(t)]),eA(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,c.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(f.c);(0,ex.r)(eI);var eO=r(35518),eN=r(66434),eD=new(w.et?WeakMap:Map);function eC(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return eD.set(e,(eD.get(e)+1)%1e15),r.apply(this,arguments)})}var eP=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;eD.has(r)||(eD.set(r,0),eC(r,"evict"),eC(r,"modify"),eC(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||eN.pT.loading;return this.variables&&this.networkStatus!==eN.pT.loading&&!(0,ep.L)(this.variables,e.variables)&&(t=eN.pT.setVariables),(0,ep.L)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,ep.L)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),(0,ep.L)(n&&n.result,e&&e.result)||null==(r=this.observableQuery)||r.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,c.__assign)((0,c.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,ep.L)(n,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===eD.get(this.cache)&&(0,ep.L)(t,r.variables)&&(0,ep.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,a=this,o=new D,s=(0,x.E)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&(0,x.E)(e.incremental)){var l=P(this.getDiff().result,e);e.data=l}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(eL(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(a.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),a.lastWrite={result:e,variables:r.variables,dmCount:eD.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var o=a.getDiffOptions(r.variables),s=i.diff(o);!a.stopped&&(0,ep.L)(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=eN.pT.ready},e.prototype.markError=function(e){var t;return this.networkStatus=eN.pT.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function eL(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!eE(e);return!n&&r&&e.data&&(n=!0),n}var eR=r(21500),eM=w.et?WeakMap:Map,eF=w.En?WeakSet:Set,ej=new ey.DX,eB=!1;function eU(){eB||(eB=!0,!1!==globalThis.__DEV__&&d.V1.warn(52))}function eV(e,t,r){return ej.withValue(!0,function(){var n=function e(t,r,n,i,a){var o,s=n.knownChanged,l=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var u=0,c=Array.from(t.entries());u<c.length;u++){var f=c[u],h=f[0],p=f[1];if(null===p){l[h]=null;continue}var m=e(p,r,n,i,!1!==globalThis.__DEV__?"".concat(a||"","[").concat(h,"]"):void 0);s.has(m)&&s.add(l),l[h]=m}return s.has(l)?l:t}for(var g=0,_=r.selections;g<_.length;g++){var v=_[g],b=void 0;if(i&&s.add(l),v.kind===et.b.FIELD){var w=(0,er.ue)(v),E=v.selectionSet;if(void 0===(b=l[w]||t[w]))continue;if(E&&null!==b){var m=e(t[w],E,n,i,!1!==globalThis.__DEV__?"".concat(a||"",".").concat(w):void 0);s.has(m)&&(b=m)}!1===globalThis.__DEV__&&(l[w]=b),!1!==globalThis.__DEV__&&(!i||"__typename"===w||(null==(o=Object.getOwnPropertyDescriptor(l,w))?void 0:o.value)?(delete l[w],l[w]=b):Object.defineProperty(l,w,function(e,t,r,n,i){var a=function(){return ej.getValue()||(!1!==globalThis.__DEV__&&d.V1.warn(48,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}(w,b,a||"",n.operationName,n.operationType)))}if(v.kind===et.b.INLINE_FRAGMENT&&(!v.typeCondition||n.cache.fragmentMatches(v,t.__typename))&&(b=e(t,v.selectionSet,n,i,a)),v.kind===et.b.FRAGMENT_SPREAD){var k=v.name.value,T=n.fragmentMap[k]||(n.fragmentMap[k]=n.cache.lookupFragment(k));(0,d.V1)(T,47,k);var S=(0,y.s7)(v);"mask"!==S&&(b=e(t,T.selectionSet,n,"migrate"===S,a))}s.has(b)&&s.add(l)}return"__typename"in t&&!("__typename"in l)&&(l.__typename=t.__typename),Object.keys(l).length!==Object.keys(t).length&&s.add(l),s.has(l)?l:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,eR.G)(n),n})}function ez(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&eU(),e;var i=t.definitions.filter(function(e){return e.kind===et.b.FRAGMENT_DEFINITION});void 0===n&&((0,d.V1)(1===i.length,49,i.length),n=i[0].name.value);var a=i.find(function(e){return e.name.value===n});return((0,d.V1)(!!a,50,n),null==e||(0,ep.A)(e,{}))?e:eV(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:(0,en.JG)((0,h.zK)(t)),cache:r,mutableTargets:new eM,knownChanged:new eF})}var eq=Object.prototype.hasOwnProperty,eH=Object.create(null),eG=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Z.A(Q.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new eg.b(!1),this.noCacheWarningsByQueryId=new Set;var r=new eb(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,d.vA)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,c.__awaiter)(this,arguments,void 0,function(e){var t,r,n,i,a,o,s,l=e.mutation,u=e.variables,f=e.optimisticResponse,h=e.updateQueries,p=e.refetchQueries,m=void 0===p?[]:p,g=e.awaitRefetchQueries,_=void 0!==g&&g,y=e.update,v=e.onQueryUpdated,b=e.fetchPolicy,w=void 0===b?(null==(o=this.defaultOptions.mutate)?void 0:o.fetchPolicy)||"network-only":b,E=e.errorPolicy,k=void 0===E?(null==(s=this.defaultOptions.mutate)?void 0:s.errorPolicy)||"none":E,S=e.keepRootFields,x=e.context;return(0,c.__generator)(this,function(e){switch(e.label){case 0:if((0,d.V1)(l,28),(0,d.V1)("network-only"===w||"no-cache"===w,29),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,u=this.getVariables(l,u),!r)return[3,2];return[4,this.localState.addExportedVariables(l,u,x)];case 1:u=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:u,loading:!0,error:null}),i=f&&this.markMutationOptimistic(f,{mutationId:t,document:l,variables:u,fetchPolicy:w,errorPolicy:k,context:x,updateQueries:h,update:y,keepRootFields:S}),this.broadcastQueries(),a=this,[2,new Promise(function(e,r){return ew(a.getObservableFromLink(l,(0,c.__assign)((0,c.__assign)({},x),{optimisticResponse:i?f:void 0}),u,{},!1),function(e){if(eE(e)&&"none"===k)throw new T.K4({graphQLErrors:ek(e)});n&&(n.loading=!1,n.error=null);var r=(0,c.__assign)({},e);return"function"==typeof m&&(m=m(r)),"ignore"===k&&eE(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:l,variables:u,fetchPolicy:w,errorPolicy:k,context:x,update:y,updateQueries:h,awaitRefetchQueries:_,refetchQueries:m,removeOptimistic:i?t:void 0,onQueryUpdated:v,keepRootFields:S})}).subscribe({next:function(r){a.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,c.__assign)((0,c.__assign)({},r),{data:a.maskOperation({document:l,data:r.data,fetchPolicy:w,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),i&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof T.K4?e:new T.K4({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&eL(n,e.errorPolicy)){if(C(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),C(n)&&(0,x.E)(n.incremental)){var o=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;o.result&&(s=P(o.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(s&&eq.call(l,s)){var u=l[s],c=r.queries.get(a),d=c.document,f=c.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),m=p.result;if(p.complete&&m){var g=u(m,{mutationResult:n,queryName:d&&(0,h.n4)(d)||void 0,queryVariables:f});g&&i.push({result:g,dataId:"ROOT_QUERY",query:d,variables:f})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var o,s=e.update,l=!(C(o=n)||"hasNext"in o&&"data"in o)||C(n)&&!n.hasNext;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(n=(0,c.__assign)((0,c.__assign)({},n),{data:u.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}l&&s(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return u.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:eH}):e;return n!==eH&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,c.__assign)((0,c.__assign)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&d.V1.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,y.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,y.d8)(["nonreactive"],e),nonReactiveQuery:((0,h.sw)(e),(0,V.YR)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,c.__assign)((0,c.__assign)({},e),{directives:(0,c.__spreadArray)((0,c.__spreadArray)([],e.directives||[],!0),[{kind:et.b.DIRECTIVE,name:{kind:et.b.NAME,value:"nonreactive"}}],!1)})}})),clientQuery:this.localState.clientQuery(e),serverQuery:eo([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,h.wY)((0,h.Vu)(e)),asQuery:(0,c.__assign)((0,c.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,c.__assign)((0,c.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,c.__assign)((0,c.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,c.__assign)((0,c.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new eP(this),n=new eO.U({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,eO.U.inactiveOnCreation.getValue()||this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,d.V1)(e.query,30),(0,d.V1)("Document"===e.query.kind,31),(0,d.V1)(!e.returnPartialData,32),(0,d.V1)(!e.pollInterval,33);var n=this.transform(e.query);return this.fetchQuery(t,(0,c.__assign)((0,c.__assign)({},e),{query:n})).then(function(i){return i&&(0,c.__assign)((0,c.__assign)({},i),{data:r.maskOperation({document:n,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,d.vA)(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=eN.pT.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)n.set(e,e),i.set(e,!1);else if((0,er.Kc)(e)){var r=Y(t.transform(e));n.set(r,(0,h.n4)(e)),i.set(r,!1)}else(0,S.U)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void r.set(n,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&i.has(s)||o&&i.has(Y(o)))&&(r.set(n,a),s&&i.set(s,!0),o&&i.set(Y(o),!0))}}),a.size&&a.forEach(function(e){var n=(0,eT.v)("legacyOneTimeQuery"),i=t.getOrCreateQuery(n).init({document:e.query,variables:e.variables}),a=new eO.U({queryManager:t,queryInfo:i,options:(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"network-only"})});(0,d.V1)(a.queryId===n),i.setObservableQuery(a),r.set(n,a)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(e,t){if(!e){var r=n.get(t);r?!1!==globalThis.__DEV__&&d.V1.warn(35,r):!1!==globalThis.__DEV__&&d.V1.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var a=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=void 0===a?"none":a,s=e.context,l=void 0===s?{}:s,u=e.extensions,c=void 0===u?{}:u;r=this.transform(r),n=this.getVariables(r,n);var d=function(e){return t.getObservableFromLink(r,l,e,c).map(function(n){"no-cache"!==i&&(eL(n,o)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=eE(n),s=(0,T.uR)(n);if(a||s){var l={};if(a&&(l.graphQLErrors=n.errors),s&&(l.protocolErrors=n.extensions[T.K$]),"none"===o||s)throw new T.K4(l)}return"ignore"===o&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,l).then(d);return new f.c(function(e){var t=null;return h.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var a,o,s=this;void 0===i&&(i=null!=(a=null==t?void 0:t.queryDeduplication)?a:this.queryDeduplication);var l=this.getDocumentInfo(e),u=l.serverQuery,d=l.clientQuery;if(u){var p=this.inFlightLinkObservables,m=this.link,g={query:u,variables:r,operationName:(0,h.n4)(u)||void 0,context:this.prepareContext((0,c.__assign)((0,c.__assign)({},t),{forceFetch:!i})),extensions:n};if(t=g.context,i){var _=Y(u),y=(0,em.M)(r),v=p.lookup(_,y);if(!(o=v.observable)){var b=new eI([ef(m,g)]);o=v.observable=b,b.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?b.beforeNext(e):p.remove(_,y)})}}else o=new eI([ef(m,g)])}else o=new eI([f.c.of({data:{}})]),t=this.prepareContext(t);return d&&(o=ew(o,function(e){return s.localState.runResolvers({document:d,remoteResult:e,context:t,variables:r})})),o},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return ew(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=ek(a),s=o.length>0,l=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===l)throw e.markError(new T.K4({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var u={data:a.data,loading:!1,networkStatus:eN.pT.ready};return s&&"none"===l&&(u.data=void 0),s&&"ignore"!==l&&(u.errors=o,u.networkStatus=eN.pT.error),u},function(t){var r=(0,T.Mn)(t)?t:new T.K4({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,a,o=this;void 0===r&&(r=eN.pT.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),l=this.defaultOptions.watchQuery,u=t.fetchPolicy,c=void 0===u?l&&l.fetchPolicy||"cache-first":u,d=t.errorPolicy,f=void 0===d?l&&l.errorPolicy||"none":d,h=t.returnPartialData,p=t.notifyOnNetworkStatusChange,m=t.context,g=Object.assign({},t,{query:n,variables:s,fetchPolicy:c,errorPolicy:f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==p&&p,context:void 0===m?{}:m}),_=function(n){g.variables=n;var i=o.fetchQueryByPolicy(e,g,r);return"standby"!==g.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},y=function(){return o.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){y(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports)i=new eI(this.localState.addExportedVariables(g.query,g.variables,g.context).then(_).then(function(e){return e.sources})),a=!0;else{var v=_(g.variables);a=v.fromLink,i=new eI(v.sources)}return i.promise.then(y,y),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?(0,eT.v)("refetchQueries"):void 0:o,l=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var c=new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof eP&&e.watcher.observableQuery;if(n){if(l){u.delete(n.queryId);var i=l(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&c.set(n,i),i}null!==l&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;l&&(o||(o=t.cache.diff(i.queryInfo.getDiffOptions())),n=l(i,o,a)),l&&!0!==n||(n=i.refetch()),!1!==n&&c.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),c},e.prototype.maskOperation=function(e){var t,r,n,i=e.document,a=e.data;if(!1!==globalThis.__DEV__){var o=e.fetchPolicy,s=e.id,l=null==(t=(0,h.Vu)(i))?void 0:t.operation,u=(null!=(r=null==l?void 0:l[0])?r:"o")+s;!this.dataMasking||"no-cache"!==o||(0,en.s6)(i)||this.noCacheWarningsByQueryId.has(u)||(this.noCacheWarningsByQueryId.add(u),!1!==globalThis.__DEV__&&d.V1.warn(37,null!=(n=(0,h.n4)(i))?n:"Unnamed ".concat(null!=l?l:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&eU(),e;var n,i=(0,h.Vu)(t);return((0,d.V1)(i,51),null==e)?e:eV(e,i.selectionSet,{operationType:i.operation,operationName:null==(n=i.name)?void 0:n.value,fragmentMap:(0,en.JG)((0,h.zK)(t)),cache:r,mutableTargets:new eM,knownChanged:new eF})}(a,i,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?ez(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,u=t.returnPartialData,d=t.context,h=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:a,networkStatus:r});var m=function(){return e.getDiff()},g=function(t,r){void 0===r&&(r=e.networkStatus||eN.pT.loading);var o=t.result;!1===globalThis.__DEV__||u||(0,ep.L)(o,{})||(0,eO.y)(t.missing);var s=function(e){return f.c.of((0,c.__assign)({data:e,loading:(0,eN.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return o&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:o},context:d,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===l&&r===eN.pT.refetch&&Array.isArray(t.missing)?s(void 0):s(o)},_="no-cache"===o?0:r===eN.pT.refetch&&"merge"!==s?1:2,y=function(){return n.getResultsFromLink(e,_,{query:i,variables:a,context:d,fetchPolicy:o,errorPolicy:l})},v=h&&"number"==typeof p&&p!==r&&(0,eN.bi)(r);switch(o){default:case"cache-first":var b=m();if(b.complete)return{fromLink:!1,sources:[g(b,e.markReady())]};if(u||v)return{fromLink:!0,sources:[g(b),y()]};return{fromLink:!0,sources:[y()]};case"cache-and-network":var b=m();if(b.complete||u||v)return{fromLink:!0,sources:[g(b),y()]};return{fromLink:!0,sources:[y()]};case"cache-only":return{fromLink:!1,sources:[g(m(),e.markReady())]};case"network-only":if(v)return{fromLink:!0,sources:[g(m()),y()]};return{fromLink:!0,sources:[y()]};case"no-cache":if(v)return{fromLink:!0,sources:[g(e.getDiff()),y()]};return{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new eP(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,c.__assign)((0,c.__assign)((0,c.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function eW(e){return e.kind===et.b.FIELD||e.kind===et.b.FRAGMENT_SPREAD||e.kind===et.b.INLINE_FRAGMENT}function eK(e){return(e.kind===Kind.VARIABLE||e.kind===Kind.INT||e.kind===Kind.FLOAT||e.kind===Kind.STRING||e.kind===Kind.BOOLEAN||e.kind===Kind.NULL||e.kind===Kind.ENUM||e.kind===Kind.LIST||e.kind===Kind.OBJECT)&&(e.kind===Kind.LIST?e.values.some(eK):e.kind===Kind.OBJECT?e.fields.some(e=>eK(e.value)):e.kind!==Kind.VARIABLE)}var eZ=new ey.DX,eQ=new WeakMap;function e$(e){var t=eQ.get(e);return t||eQ.set(e,t={vars:new Set,dep:(0,ey.yN)()}),t}function eY(e){e$(e).vars.forEach(function(t){return t.forgetCache(e)})}function eJ(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){var t;e$(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=eZ.getValue();s&&(i(s),e$(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),e$(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var eX=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=I(t.resolvers,e)}):this.resolvers=I(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,c.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return(0,c.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,o).then(function(e){return(0,c.__assign)((0,c.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,y.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return el(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,c.__assign)((0,c.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,c.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,c.__generator)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,c.__assign)((0,c.__assign)({},t),e.exportedVariables)})]:[2,(0,c.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,V.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return V.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===(0,h.Vn)(e).operation?e:(0,V.YR)(e,{OperationDefinition:{enter:function(e){return(0,c.__assign)((0,c.__assign)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,c.__awaiter)(this,arguments,void 0,function(e,t,r,n,i,a){var o,s,l,u,d,f,p,m,g,_;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),(0,c.__generator)(this,function(y){return o=(0,h.Vn)(e),s=(0,h.zK)(e),l=(0,en.JG)(s),u=this.collectSelectionsToResolve(o,l),f=(d=o.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",p=this,m=p.cache,g=p.client,_={fragmentMap:l,context:(0,c.__assign)((0,c.__assign)({},r),{cache:m,client:g}),variables:n,fragmentMatcher:i,defaultOperationType:f,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,!1,t,_).then(function(e){return{result:e,exportedVariables:_.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,c.__awaiter)(this,void 0,void 0,function(){var i,a,o,s,l,u=this;return(0,c.__generator)(this,function(f){return i=n.fragmentMap,a=n.context,o=n.variables,s=[r],l=function(e){return(0,c.__awaiter)(u,void 0,void 0,function(){var l,u;return(0,c.__generator)(this,function(c){return(t||n.selectionsToResolve.has(e))&&(0,y.MS)(e,o)?(0,er.dt)(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[(0,er.ue)(e)]=t,r))})]:((0,er.kd)(e)?l=e:(l=i[e.name.value],(0,d.V1)(l,19,e.name.value)),l&&l.typeCondition&&(u=l.typeCondition.name.value,n.fragmentMatcher(r,u,a)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return O(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,c.__awaiter)(this,void 0,void 0,function(){var i,a,o,s,l,u,d,f,h,p=this;return(0,c.__generator)(this,function(c){return r?(i=n.variables,s=(a=e.name.value)!==(o=(0,er.ue)(e)),u=Promise.resolve(l=r[o]||r[a]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=r.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(h=f[s?a:o])&&(u=Promise.resolve(eZ.withValue(this.cache,h,[r,(0,er.MB)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then(function(r){if(void 0===r&&(r=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,a,o=null!=(a=null==(i=e.directives)?void 0:i.some(function(e){return"client"===e.name.value}))&&a;return Array.isArray(r)?p.resolveSubSelectedArray(e,t||o,r,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||o,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var a=new Set;n.set(i,a),(0,V.YR)(i,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&eW(e)&&a.add(e)})},FragmentSpread:function(n,i,o,s,l){var u=t[n.name.value];(0,d.V1)(u,20,n.name.value);var c=e(u);c.size>0&&(l.forEach(function(e){r(e)&&eW(e)&&a.add(e)}),a.add(n),c.forEach(function(e){a.add(e)}))}})}return n.get(i)}(e)},e}(),e0=r(18877),e1=!1,e2=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,d.vA)(16);var n=e.uri,i=e.credentials,a=e.headers,o=e.cache,s=e.documentTransform,l=e.ssrMode,u=void 0!==l&&l,f=e.ssrForceFetchDelay,h=void 0===f?0:f,p=e.connectToDevTools,m=e.queryDeduplication,g=void 0===m||m,y=e.defaultOptions,v=e.defaultContext,b=e.assumeImmutableResults,w=void 0===b?o.assumeImmutableResults:b,E=e.resolvers,k=e.typeDefs,T=e.fragmentMatcher,S=e.name,x=e.version,A=e.devtools,I=e.dataMasking,O=e.link;O||(O=n?new ed({uri:n,credentials:i,headers:a}):_.empty()),this.link=O,this.cache=o,this.disableNetworkFetches=u||h>0,this.queryDeduplication=g,this.defaultOptions=y||Object.create(null),this.typeDefs=k,this.devtoolsConfig=(0,c.__assign)((0,c.__assign)({},A),{enabled:null!=(t=null==A?void 0:A.enabled)?t:p}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),h&&setTimeout(function(){return r.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=eh.r,this.localState=new eX({cache:o,client:this,resolvers:E,fragmentMatcher:T}),this.queryManager=new eG({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:s,queryDeduplication:g,ssrMode:u,dataMasking:!!I,clientAwareness:{name:S,version:x},localState:this.localState,assumeImmutableResults:w,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!e1&&!1!==globalThis.__DEV__&&(e1=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&d.V1.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,e0.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,e0.l)(this.defaultOptions.query,e)),(0,d.V1)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,e0.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return(0,c.__assign)((0,c.__assign)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,c.__assign)((0,c.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ef(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&d.V1.debug(18,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();function e5(e){return new _(function(t,r){return new f.c(function(n){var i,a,o;try{i=r(t).subscribe({next:function(i){if(i.errors?o=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}):(0,T.uR)(i)&&(o=e({protocolErrors:i.extensions[T.K$],response:i,operation:t,forward:r})),o){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){o||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}!1!==globalThis.__DEV__&&(e2.prototype.getMemoryInternals=$.ep),!function(e){function t(t){var r=e.call(this)||this;return r.link=e5(t),r}(0,c.__extends)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(_);var e3=r(19221),e4=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,ey.LV)(en.ct,{max:Q.v["cache.fragmentQueryDocuments"]||1e3,cache:e_.l})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,c.__assign)((0,c.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,a=e.from,o=e.optimistic,s=(0,c.__rest)(e,["fragment","fragmentName","from","optimistic"]),l=this.getFragmentDoc(n,i),u=void 0===a||"string"==typeof a?a:this.identify(a),p=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var m=i||(0,h.E4)(n).name.value;u||!1===globalThis.__DEV__||d.V1.warn(1,m)}var g=(0,c.__assign)((0,c.__assign)({},s),{returnPartialData:!0,id:u,query:l,optimistic:void 0===o||o});return new f.c(function(a){return r.watch((0,c.__assign)((0,c.__assign)({},g),{immediate:!0,callback:function(o){var s=p?ez(o.result,n,r,i):o.result;if(!(t&&(0,e3.a)(l,{data:t.result},{data:s},e.variables))){var u={data:s,complete:!!o.complete};o.missing&&(u.missing=O(o.missing.map(function(e){return e.missing}))),t=(0,c.__assign)((0,c.__assign)({},o),{result:s}),a.next(u)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,c.__assign)((0,c.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,c.__rest)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,c.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,c.__assign)((0,c.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,c.__assign)((0,c.__assign)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(e4.prototype.getMemoryInternals=$.tQ);var e6=function(e){function t(r,n,i,a){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)(o={})[s.path[l]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,c.__extends)(t,e),t}(Error),e9=r(79760),e8=Object.prototype.hasOwnProperty;function e7(e){return null==e}function te(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=e7(n)?e7(i)?void 0:{_id:i}:{id:n}),e7(n)&&!e7(i)&&(n=i),!e7(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var tt={dataIdFromObject:te,addTypename:!0,resultCaching:!0,canonizeResults:!1};function tr(e){var t=e.canonizeResults;return void 0===t?tt.canonizeResults:t}var tn=/^[_a-z][_0-9a-z]*/i;function ti(e){var t=e.match(tn);return t?t[0]:e}function ta(e){return(0,S.U)(e)&&!(0,er.A_)(e)&&!(0,x.c)(e)}function to(e,t){var r=(0,en.JG)((0,h.zK)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var ts=Object.create(null),tl=function(){return ts},tu=Object.create(null),tc=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,eR.G)((0,er.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,er.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,er.WU)(e);if((0,er.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,er.WU)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,c.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),e8.call(this.data,e)){var r=this.data[e];if(r&&e8.call(r,t))return r[t]}return"__typename"===t&&e8.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof th?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),e8.call(this.data,e))?this.data[e]:this instanceof th?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,er.A_)(e)&&(e=e.__ref),(0,er.A_)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,d.V1)("string"==typeof r,2);var o=new D(tm).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=ti(e);t===e||n.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||n instanceof th||delete o[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,o=!0,s={DELETE:ts,INVALIDATE:tu,isReference:er.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,er.WU)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(l){var u=ti(l),f=n[l];if(void 0!==f){var h="function"==typeof t?t:t[l]||t[u];if(h){var p=h===tl?ts:h((0,eR.G)(f),(0,c.__assign)((0,c.__assign)({},s),{fieldName:u,storeFieldName:l,storage:r.getStorage(e,l)}));if(p===tu)r.group.dirty(e,l);else if(p===ts&&(p=void 0),p!==f&&(i[l]=p,a=!0,f=p,!1!==globalThis.__DEV__)){var m=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&d.V1.warn(3,e),!0};if((0,er.A_)(p))m(p);else if(Array.isArray(p))for(var g=!1,_=void 0,y=0,v=p;y<v.length;y++){var b=v[y];if((0,er.A_)(b)){if(g=!0,m(b))break}else"object"==typeof b&&b&&r.policies.identify(b)[0]&&(_=b);if(g&&void 0!==_){!1!==globalThis.__DEV__&&d.V1.warn(4,_);break}}}}void 0!==f&&(o=!1)}}),a)return this.merge(e,i),o&&(this instanceof th?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=tl,n):tl)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(e8.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof th&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){e8.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&e8.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,c.__rest)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof th?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){e8.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof th;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!e8.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,er.A_)(e)&&(t[e.__ref]=!0),(0,S.U)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,S.U)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),td=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,ey.yN)():null,this.keyMaker=new eg.b(w.et)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=ti(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function tf(e,t){tg(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,a=e.call(this,r,new td(void 0===n||n))||this;return a.stump=new tp(a),a.storageTrie=new eg.b(w.et),i&&a.replace(i),a}return(0,c.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(tc||(tc={}));var th=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return(0,c.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,ep.L)(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,c.__assign)((0,c.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return e8.call(this.data,t)?(0,c.__assign)((0,c.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(tc),tp=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new td(t.group.caching,t.group))||this}return(0,c.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(th);function tm(e,t,r){var n=e[r],i=t[r];return(0,ep.L)(n,i)?n:i}function tg(e){return!!(e instanceof tc&&e.group.caching)}var t_=function(){function e(){this.known=new(w.En?WeakSet:Set),this.pool=new eg.b(w.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,S.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,S.U)(e)){var t=(0,S.U)(e)?(0,x.c)(e)?e.slice(0):(0,c.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,S.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var l=o.length;s.sorted.forEach(function(r){o.push(t.admit(e[r]))});var i=this.pool.lookupArray(o);if(!i.object){var u=i.object=Object.create(a);this.known.add(u),s.sorted.forEach(function(e,t){u[e]=o[l+t]}),!1!==globalThis.__DEV__&&Object.freeze(u)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function ty(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var tv=function(){function e(e){var t=this;this.knownResults=new(w.et?WeakMap:Map),this.config=(0,e9.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:tr(e)}),this.canon=e.canon||new t_,this.executeSelectionSet=(0,ey.LV)(function(e){var r,n=e.context.canonizeResults,i=ty(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,c.__assign)((0,c.__assign)({},a),{result:t.canon.admit(a.result)}):a:(tf(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||Q.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:ty,makeCacheKey:function(e,t,r,n){if(tg(r.store))return r.store.makeCacheKey(e,(0,er.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,ey.LV)(function(e){return tf(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||Q.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(tg(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new t_},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=e.variables,o=e.returnPartialData,s=e.canonizeResults,l=void 0===s?this.config.canonizeResults:s,u=this.config.cache.policies;a=(0,c.__assign)((0,c.__assign)({},(0,h.wY)((0,h.AT)(n))),a);var d=(0,er.WU)(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:(0,h.Vn)(n).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,c.__assign)({store:r,query:n,policies:u,variables:a,varString:(0,em.M)(a),canonizeResults:l},to(n,this.config.fragments))});if(f.missing&&(t=[new e6(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,n,a)],!(void 0===o||o)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(tg(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,o=e.context;if((0,er.A_)(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=o.variables,l=o.policies,u=o.store.getFieldValue(i,"__typename"),c=[],f=new D;function h(e,r){var n;return e.missing&&(t=f.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof u&&!l.rootIdsByTypename[u]&&c.push({__typename:u});var p=new Set(n.selections);p.forEach(function(e){var n,m;if((0,y.MS)(e,s))if((0,er.dt)(e)){var g=l.readField({fieldName:e.name.value,field:e,variables:o.variables,from:i},o),_=(0,er.ue)(e);void 0===g?es.added(e)||(t=f.merge(t,((n={})[_]="Can't find field '".concat(e.name.value,"' on ").concat((0,er.A_)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,x.c)(g)?g.length>0&&(g=h(r.executeSubSelectedArray({field:e,array:g,enclosingRef:a,context:o}),_)):e.selectionSet?null!=g&&(g=h(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:(0,er.A_)(g)?g:a,context:o}),_)):o.canonizeResults&&(g=r.canon.pass(g)),void 0!==g&&c.push(((m={})[_]=g,m))}else{var v=(0,en.HQ)(e,o.lookupFragment);if(!v&&e.kind===et.b.FRAGMENT_SPREAD)throw(0,d.vA)(10,e.name.value);v&&l.fragmentMatches(v,u)&&v.selectionSet.selections.forEach(p.add,p)}});var m={result:O(c),missing:t},g=o.canonizeResults?this.canon.admit(m):(0,eR.G)(m);return g.result&&this.knownResults.set(g.result,n),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s=new D;function l(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,x.c)(e)?l(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:o}),t):n.selectionSet?l(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,er.A_)(e)?e:a,context:o}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,S.U)(r)&&((0,d.V1)(!(0,er.A_)(r),11,(0,er.A_)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(o.store,n,e),e)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),tb=r(54962),tw=r(62091),tE=Object.create(null);function tk(e){var t=JSON.stringify(e);return tE[t]||(tE[t]=Object.create(null))}function tT(e){var t=tk(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=tx(e,function(e){var i=tI(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&e8.call(t,e[0])&&(i=tI(t,e,tA)),(0,d.V1)(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function tS(e){var t=tk(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=JSON.stringify(tx(e,function(e){var r=e[0],a=r.charAt(0);if("@"===a){if(n&&(0,x.E)(n.directives)){var o=r.slice(1),s=n.directives.find(function(e){return e.name.value===o}),l=s&&(0,er.MB)(s,i);return l&&tI(l,e.slice(1))}return}if("$"===a){var u=r.slice(1);if(i&&e8.call(i,u)){var c=e.slice(0);return c[0]=u,tI(i,c)}return}if(t)return tI(t,e)}));return(t||"{}"!==o)&&(a+=":"+o),a})}function tx(e,t){var r=new D;return(function e(t){var r=tk(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,a){(0,x.c)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,x.c)(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e},Object.create(null))}function tA(e,t){return e[t]}function tI(e,t,r){return r=r||tA,function e(t){return(0,S.U)(t)?(0,x.c)(t)?t.map(e):tx(Object.keys(t).sort(),function(e){return tI(t,e)}):t}(t.reduce(function e(t,n){return(0,x.c)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function tO(e){return void 0!==e.args?e.args:e.field?(0,er.MB)(e.field,e.variables):null}var tN=function(){},tD=function(e,t){return t.fieldName},tC=function(e,t,r){return(0,r.mergeObjects)(e,t)},tP=function(e,t){return t},tL=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,c.__assign)({dataIdFromObject:te},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o=t&&t.storeObject||e,s=(0,c.__assign)((0,c.__assign)({},t),{typename:a,storeObject:o,readField:t&&t.readField||function(){var e=tM(arguments,o);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),l=a&&this.getTypePolicy(a),u=l&&l.keyFn||this.config.dataIdFromObject;return ej.withValue(!0,function(){for(;u;){var t=u((0,c.__assign)((0,c.__assign)({},e),o),s);if((0,x.c)(t))u=tT(t);else{n=t;break}}}),n=n?String(n):void 0,s.keyObject?[n,s.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,o=n.subscriptionType,s=(0,c.__rest)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),o&&t.setRootTypename("Subscription",r),e8.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?tC:!1===t?tP:e.merge}o(n,t.merge),n.keyFn=!1===i?tN:(0,x.c)(i)?tT(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;n.keyFn=!1===s?tD:(0,x.c)(s)?tS(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),o(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||tD)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,d.V1)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(tn);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!e8.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,c.__rest)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},u=!!(r&&this.fuzzySubtypes.size),c=!1,f=0;f<s.length;++f){var h=s[f];if(h.has(a))return o.has(a)||(c&&!1!==globalThis.__DEV__&&d.V1.warn(7,t,a),o.add(a)),!0;h.forEach(l),u&&f===s.length-1&&function e(t,r,n){return!!(0,S.U)(r)&&((0,x.c)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,er.dt)(t)&&(0,y.MS)(t,n)){var i=(0,er.ue)(t);return e8.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(u=!1,c=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&l(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=tO(e);a;){var l=a(s,o);if((0,x.c)(l))a=tS(l);else{t=l||n;break}}return(void 0===t&&(t=e.field?(0,er.Ii)(e.field,e.variables):(0,er.o5)(n,tO(e))),!1===t)?n:n===ti(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=ti(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a,!1),l=s&&s.read;if(l){var u=tR(this,r,e,t,t.store.getStorage((0,er.A_)(r)?r.__ref:r,i));return eZ.withValue(this.cache,l,[o,u])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===tC?tF(n.store)(e,t):s===tP?t:(n.overwrite&&(e=void 0),s(e,t,tR(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||Object.create(null))))},e}();function tR(e,t,r,n,i){var a=e.getStoreFieldName(r),o=ti(a),s=r.variables||n.variables,l=n.store,u=l.toReference,c=l.canRead;return{args:tO(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:er.A_,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(tM(arguments,t,s),n)},mergeObjects:tF(n.store)}}function tM(e,t,r){var n,i=e[0],a=e[1],o=e.length;return"string"==typeof i?n={fieldName:i,from:o>1?a:t}:(n=(0,c.__assign)({},i),e8.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&d.V1.warn(8,(0,tw.p)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function tF(e){return function(t,r){if((0,x.c)(t)||(0,x.c)(r))throw(0,d.vA)(9);if((0,S.U)(t)&&(0,S.U)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,er.A_)(t)&&ta(r))return e.merge(t.__ref,r),t;if(ta(t)&&(0,er.A_)(r))return e.merge(t,r.__ref),r;if(ta(t)&&ta(r))return(0,c.__assign)((0,c.__assign)({},t),r)}return r}}function tj(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,c.__assign)((0,c.__assign)({},e),{clientOnly:t,deferred:r})),i}var tB=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,l=(0,h.Vu)(n),u=new D;o=(0,c.__assign)((0,c.__assign)({},(0,h.wY)(l)),o);var f=(0,c.__assign)((0,c.__assign)({store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:o,varString:(0,em.M)(o)},to(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:f});if(!(0,er.A_)(p))throw(0,d.vA)(12,i);return f.incomingById.forEach(function(t,n){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=(0,er.WU)(n);if(a&&a.map.size){var l=r.applyMerges(a,s,i,f);if((0,er.A_)(l))return;i=l}if(!1!==globalThis.__DEV__&&!f.overwrite){var u=Object.create(null);o.forEach(function(e){e.selectionSet&&(u[e.name.value]=!0)});var h=function(e){var t=a&&a.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==u[ti(e)]||h(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(a){var o=i(t);if(!(!o||(0,er.A_)(a)||(0,ep.L)(a,o)||Object.keys(a).every(function(e){return void 0!==n.getFieldValue(o,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=ti(r),u="".concat(s,".").concat(l);if(!tH.has(u)){tH.add(u);var f=[];(0,x.c)(a)||(0,x.c)(o)||[a,o].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||f.includes(t)||f.push(t)}),!1!==globalThis.__DEV__&&d.V1.warn(15,l,s,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",u,(0,c.__assign)({},a),(0,c.__assign)({},o))}}}}(s,i,e,f.store)})}e.merge(n,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,l=Object.create(null),u=r&&s.rootTypenamesById[r]||(0,er.D$)(n,i,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof u&&(l.__typename=u);var f=function(){var e=tM(arguments,l,a.variables);if((0,er.A_)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=s.readField((0,c.__assign)((0,c.__assign)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return s.readField(e,a)},h=new Set;this.flattenFields(i,n,a,u).forEach(function(e,r){var i,a=n[(0,er.ue)(r)];if(h.add(r),void 0!==a){var c=s.getStoreFieldName({typename:u,fieldName:r.name.value,field:r,variables:e.variables}),p=tV(o,c),m=t.processFieldValue(a,r,r.selectionSet?tj(e,!1,!1):e,p),g=void 0;r.selectionSet&&((0,er.A_)(m)||ta(m))&&(g=f("__typename",m));var _=s.getMergeFunction(u,r.name.value,g);_?p.info={field:r,typename:u,merge:_}:tq(o,c),l=e.merge(l,((i={})[c]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||es.added(r)||s.getReadFunction(u,r.name.value)||!1===globalThis.__DEV__||d.V1.error(13,(0,er.ue)(r),n)});try{var p=s.identify(n,{typename:u,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:l,readField:f}),m=p[0],g=p[1];r=r||m,g&&(l=a.merge(l,g))}catch(e){if(!r)throw e}if("string"==typeof r){var _=(0,er.WU)(r),y=a.written[r]||(a.written[r]=[]);if(y.indexOf(i)>=0||(y.push(i),this.reader&&this.reader.isFresh(n,_,i,a)))return _;var v=a.incomingById.get(r);return v?(v.storeObject=a.merge(v.storeObject,l),v.mergeTree=function e(t,r){if(t===r||!r||tz(r))return t;if(!t||tz(t))return r;var n=t.info&&r.info?(0,c.__assign)((0,c.__assign)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var o=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),o.delete(n)}),o.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(v.mergeTree,o),h.forEach(function(e){return v.fieldNodeSet.add(e)})):a.incomingById.set(r,{storeObject:l,mergeTree:tz(o)?void 0:o,fieldNodeSet:h}),_}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,x.c)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,tV(n,a));return tq(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,tb.m)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,er.D$)(t,e,r.fragmentMap));var i=new Map,a=this.cache.policies,o=new eg.b(!1);return!function e(s,l){var u=o.lookup(s,l.clientOnly,l.deferred);u.visited||(u.visited=!0,s.selections.forEach(function(o){if((0,y.MS)(o,r.variables)){var s=l.clientOnly,u=l.deferred;if(!(s&&u)&&(0,x.E)(o.directives)&&o.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=(0,er.MB)(e,r.variables);n&&!1===n.if||(u=!0)}}),(0,er.dt)(o)){var c=i.get(o);c&&(s=s&&c.clientOnly,u=u&&c.deferred),i.set(o,tj(r,s,u))}else{var f=(0,en.HQ)(o,r.lookupFragment);if(!f&&o.kind===et.b.FRAGMENT_SPREAD)throw(0,d.vA)(14,o.name.value);f&&a.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,tj(r,s,u))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var a=this;if(e.map.size&&!(0,er.A_)(r)){var o,s,l=!(0,x.c)(r)&&((0,er.A_)(t)||ta(t))?t:void 0,u=r;l&&!i&&(i=[(0,er.A_)(l)?l.__ref:l]);var f=function(e,t){return(0,x.c)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=f(l,t),o=f(u,t);if(void 0!==o){i&&i.push(t);var c=a.applyMerges(e,r,o,n,i);c!==o&&(s=s||new Map).set(t,c),i&&(0,d.V1)(i.pop()===t)}}),s&&(r=(0,x.c)(u)?u.slice(0):(0,c.__assign)({},u),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(o=n.store).getStorage.apply(o,i)):r},e}(),tU=[];function tV(e,t){var r=e.map;return r.has(t)||r.set(t,tU.pop()||{map:new Map}),r.get(t)}function tz(e){return!e||!(e.info||e.map.size)}function tq(e,t){var r=e.map,n=r.get(t);n&&tz(n)&&(tU.push(n),r.delete(t))}var tH=new Set,tG=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new eb(es),n.assumeImmutableResults=!0,n.makeVar=eJ,n.txCount=0,r=t,n.config=(0,e9.o)(tt,r),n.addTypename=!!n.config.addTypename,n.policies=new tL({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,c.__extends)(t,e),t.prototype.init=function(){var e=this.data=new tc.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new tB(this,this.storeReader=new tv({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:tr(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,ey.LV)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||Q.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(tg(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,(0,em.M)({optimistic:n,id:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,c.__assign)((0,c.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof e6)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(e8.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,c.__assign)((0,c.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||(t=this,e$(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&eY(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){em.M.reset(),Y.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,er.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&d.V1.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(e8.call(e,"id"))return!1;e=(0,c.__assign)((0,c.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),em.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),eY(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,o=e.removeOptimistic,s=e.onWatchUpdated,l=function(e){var i=r.data,a=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=a}},u=new Set;return s&&!this.txCount&&this.broadcastWatches((0,c.__assign)((0,c.__assign)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),s&&u.size?(this.broadcastWatches((0,c.__assign)((0,c.__assign)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,ep.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(e4);!1!==globalThis.__DEV__&&(tG.prototype.getMemoryInternals=$.cM);let tW=JSON.parse('{"Product":["ConfigurableProduct","SimpleProduct","BundleProduct","PlanProduct","TokenizedProduct"],"OrderDiscountable":["OrderGlobalDiscount","OrderPaymentDiscount","OrderDeliveryDiscount","OrderItemDiscount"],"OrderDelivery":["OrderDeliveryPickUp","OrderDeliveryShipping"],"OrderPayment":["OrderPaymentInvoice","OrderPaymentCard","OrderPaymentGeneric"]}');function tK(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,r){var n=r.args,i=e?e.slice(0):[];if(t)if(n)for(var a=n.offset,o=void 0===a?0:a,s=0;s<t.length;++s)i[o+s]=t[s];else i.push.apply(i,t);return i}}}var tZ=null;let tQ={...{Query:{fields:{assortments:{...tK(["includeLeaves","includeInactive","tags","queryString","slugs","limit"])},products:{...tK(["includeDrafts","tags","queryString","sort","limit"])},product:{keyArgs:["productId","slug"],fields:{reviews:tK()}},user:{keyArgs:["userId"],fields:{reviews:tK()}},countries:{...tK(["includeInactive","queryString","sort","limit"])},currencies:{...tK(["includeInactive","queryString","sort","limit"])},enrollments:{...tK(["queryString","status","sort","limit"])},quotations:{...tK(["queryString","sort","limit"])},workQueue:{...tK(["status","types","created","queryString","limit"])},languages:{...tK(["includeInactive","queryString","sort","limit"])},events:{...tK(["types","queryString","sort","limit"])},users:{...tK(["includeGuests","queryString","emailVerified","lastLogin","limit"])},filters:{...tK(["queryString","includeInactive","sort","limit"])},orders:{...tK(["includeCarts","queryString","sort","limit"])}}}},keyFields:e=>(null==e?void 0:e._id)&&(null==e?void 0:e.__typename)?"".concat(null==e?void 0:e.__typename,":").concat(null==e?void 0:e._id):(null==e?void 0:e.id)&&(null==e?void 0:e.__typename)?"".concat(e.__typename,":").concat(e.id):null},t$=e=>new tG({typePolicies:tQ,possibleTypes:tW}),tY=["accept-language","pragma","user-agent","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-forwarded-server","x-mapihttpcapability","x-real-ip","x-user-identity","host","cookie","authorization"],tJ=(e,t)=>({headers:{...Object.fromEntries(Object.entries(e).filter(e=>{let[t]=e;return tY.includes(null==t?void 0:t.toLowerCase())})),"accept-language":(null==e?void 0:e.forceLocale)||t}}),tX=()=>"http://localhost:4010/graphql",t0=e=>{var t;let{headers:r={},locale:n}=e,i=(t=(e,t)=>{let{headers:i={}}=t;return tJ({...r,...i},n)},new _(function(e,r){var n=(0,c.__rest)(e,[]);return new f.c(function(i){var a,o=!1;return Promise.resolve(n).then(function(r){return t(r,e.getContext())}).then(e.setContext).then(function(){o||(a=r(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})),a=new ed({uri:tX(),credentials:"include",includeExtensions:!0}),o=e5(e=>{let{response:t,graphQLErrors:r,networkError:n,operation:i,forward:a}=e;r&&r.forEach(e=>{let{message:t,locations:r,path:n,extensions:a}=e;console.error("[GraphQL error]: Message: ".concat(t,", Location: ").concat(JSON.stringify(r),", Path: ").concat(n,", Extensions: ").concat(JSON.stringify(a),", Operation: ").concat(i.operationName))}),n&&console.error("[Network error]: ".concat(n,", Operation: ").concat(i.operationName))}),s=t$(n);return new e2({connectToDevTools:!0,defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",errorPolicy:"all"},mutate:{errorPolicy:"all"}},ssrMode:!1,link:_.from([o,i,a].filter(Boolean)),cache:s})},t1=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,{headers:t={},locale:r=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null!=n?n:t0({headers:t,locale:r});if(e){let t=i.extract(),r=s()(e,t,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!u()(e,t)))]});i.cache.restore(r)}return n=i,i};function t2(e){let{endpoint:t=null,...r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null==e?void 0:e.__APOLLO_STATE__;return(0,a.useMemo)(()=>t1(n,{...r}),[n,t])}},48230:(e,t,r)=>{e.exports=r(81639)},51485:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(37876),i=r(15039),a=r.n(i);let o=e=>{let{children:t,className:r=""}=e;return(0,n.jsx)("div",{className:"sm:max-w-full",children:(0,n.jsx)("div",{className:a()("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",r),children:t})})}},53021:()=>{},53279:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(4902),i=r(98149),a=r(74769),o=r(10143);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var l=function(){function e(t,r,a,l){void 0===r&&(r=e.defaultLocale);var u,c,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 r=t.reduce(function(e,t){return e.length&&t.type===o.TT.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,o.hN)(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.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=l||{},h=(f.formatters,(0,n.__rest)(f,["formatters"]));this.ast=e.__parse(t,(0,n.__assign)((0,n.__assign)({},h),{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=(u=e.formats,a?Object.keys(u).reduce(function(e,t){var r,i;return e[t]=(r=u[t],(i=a[t])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=(0,n.__assign)((0,n.__assign)({},r[t]),i[t]||{}),e},{})):r),e},(0,n.__assign)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:s(c.number),strategy:i.W.variadic}),getDateTimeFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:s(c.dateTime),strategy:i.W.variadic}),getPluralRules:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:s(c.pluralRules),strategy:i.W.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=a.qg,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}()},53657:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(72687),i=r(84915),a=r(32439),o=n._(r(83829));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.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,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=a.Image},53719:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{let{src:t,width:r,quality:n=75}=e;return t?"".concat(t,"?w=").concat(r,"&q=").concat(n):"/no-image.jpg"}},53757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluralRules=void 0;var n=r(4902),i=r(77262),a=r(23045),o=r(56392),s=n.__importDefault(r(57929));function l(e,t){if(!(e instanceof c))throw TypeError("Method Intl.PluralRules.prototype.".concat(t," called on incompatible receiver ").concat(String(e)))}function u(e,t,r,n){var i=n.IntegerDigits,a=n.NumberOfFractionDigits,o=n.FractionDigits;return c.localeData[e].fn(a?"".concat(i,".").concat(o):i,"ordinal"===t)}var c=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.PluralRules must be called with 'new'");return(0,a.InitializePluralRules)(this,t,r,{availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale,getInternalSlots:s.default})}return e.prototype.resolvedOptions=function(){l(this,"resolvedOptions");var t=Object.create(null),r=(0,s.default)(this);return t.locale=r.locale,t.type=r.type,["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(e){var n=r[e];void 0!==n&&(t[e]=n)}),t.pluralCategories=n.__spreadArray([],e.localeData[t.locale].categories[t.type],!0),t},e.prototype.select=function(e){l(this,"select");var t=(0,i.ToNumber)(e);return(0,o.ResolvePlural)(this,t,{getInternalSlots:s.default,PluralRuleSelect:u})},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,o=i.locale;e.localeData[o]=a,e.availableLocales.add(o),e.__defaultLocale||(e.__defaultLocale=o)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=[],e.polyfilled=!0,e}();t.PluralRules=c;try{"undefined"!=typeof Symbol&&Object.defineProperty(c.prototype,Symbol.toStringTag,{value:"Intl.PluralRules",writable:!1,enumerable:!1,configurable:!0});try{Object.defineProperty(c,"length",{value:0,writable:!1,enumerable:!1,configurable:!0})}catch(e){}Object.defineProperty(c.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c,"name",{value:"PluralRules",writable:!1,enumerable:!1,configurable:!0})}catch(e){}},53975:(e,t,r)=>{"use strict";function n(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}r.d(t,{w:()=>n})},54431:(e,t,r)=>{"use strict";r.d(t,{IT:()=>x});var n=r(4902),i=r(17318),a=r(60427),o=r.t(a,2),s=r(80542),l=!1,u=o.useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||l||n===t()||(l=!0,!1!==globalThis.__DEV__&&i.V1.error(68));var o=a.useState({inst:{value:n,getSnapshot:t}}),u=o[0].inst,d=o[1];return s.JR?a.useLayoutEffect(function(){Object.assign(u,{value:n,getSnapshot:t}),c(u)&&d({inst:u})},[e,n,t]):Object.assign(u,{value:n,getSnapshot:t}),a.useEffect(function(){return c(u)&&d({inst:u}),e(function(){c(u)&&d({inst:u})})},[e]),n};function c(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var d=r(20996),f=r(18877),h=r(94852),p=r(83070),m=r(35518),g=r(66434),_=r(37510),y=r(67994),v=r(79760),b=r(35785),w=r(21500),E=Symbol.for("apollo.hook.wrappers"),k=Object.prototype.hasOwnProperty;function T(){}var S=Symbol();function x(e,t){var r,n,i,a;return void 0===t&&(t=Object.create(null)),(r=A,(a=(i=(n=(0,y.m)(t&&t.client).queryManager)&&n[E])&&i.useQuery)?a(r):r)(e,t)}function A(e,t){var r,i,o,s,l,c,f,p,v,b,w,E,x,A,R,M,F,j,B,U,V,z,q,H,G,W,K,Z,Q,$,Y,J,X,ee,et,er,en,ei,ea,eo,es,el,eu,ec,ed,ef=(r=e,i=t,b=(0,y.m)(i.client),E=!!(w=a.useContext((0,h.l)()).renderPromises),x=b.disableNetworkFetches,A=!1!==i.ssr&&!i.skip,R=i.partialRefetch,M=(o=b,s=r,l=i,c=E,void 0===l&&(l={}),f=l.skip,p=(l.ssr,l.onCompleted,l.onError,l.defaultOptions),v=(0,n.__rest)(l,["skip","ssr","onCompleted","onError","defaultOptions"]),function(e){var t=Object.assign(v,{query:s});return c&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t.fetchPolicy="cache-first"),t.variables||(t.variables={}),f?(t.initialFetchPolicy=t.initialFetchPolicy||t.fetchPolicy||D(p,o.defaultOptions),t.fetchPolicy="standby"):t.fetchPolicy||(t.fetchPolicy=(null==e?void 0:e.options.initialFetchPolicy)||D(p,o.defaultOptions)),t}),B=(j=(F=function(e,t,r,i,o){function s(n){var a;return(0,_.D$)(t,_.KG.Query),{client:e,query:t,observable:i&&i.getSSRObservable(o())||m.U.inactiveOnCreation.withValue(!i,function(){return e.watchQuery(I(void 0,e,r,o()))}),resultData:{previousData:null==(a=null==n?void 0:n.resultData.current)?void 0:a.data}}}var l=a.useState(s),u=l[0],c=l[1];function d(e){Object.assign(u.observable,((t={})[S]=e,t));var t,r,i=u.resultData;c((0,n.__assign)((0,n.__assign)({},u),{query:e.query,resultData:Object.assign(i,{previousData:(null==(r=i.current)?void 0:r.data)||i.previousData,current:void 0})}))}if(e!==u.client||t!==u.query){var f=s(u);return c(f),[f,d]}return[u,d]}(b,r,i,w,M))[0]).observable,U=j.resultData,V=F[1],z=M(B),q=U,H=B,G=b,W=i,K=z,H[S]&&!(0,d.L)(H[S],K)&&(H.reobserve(I(H,G,W,K)),q.previousData=(null==(Z=q.current)?void 0:Z.data)||q.previousData,q.current=void 0),H[S]=K,Q=a.useMemo(function(){var e;return{refetch:(e=B).refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[B]),$=B,Y=w,J=A,Y&&J&&(Y.registerSSRObservable($),$.getCurrentResult().loading&&Y.addObservableQueryPromise($)),{result:(X=U,ee=B,et=b,er=i,en=z,ei=x,ea=R,eo=E,es={onCompleted:i.onCompleted||T,onError:i.onError||T},el=a.useRef(es),a.useEffect(function(){el.current=es}),eu=(eo||ei)&&!1===er.ssr&&!er.skip?P:er.skip||"standby"===en.fetchPolicy?L:void 0,ec=X.previousData,ed=a.useMemo(function(){return eu&&C(eu,ec,ee,et)},[et,ee,eu,ec]),u(a.useCallback(function(e){if(eo)return function(){};var t=function(){var t=X.current,r=ee.getCurrentResult();t&&t.loading===r.loading&&t.networkStatus===r.networkStatus&&(0,d.L)(t.data,r.data)||O(r,X,ee,et,ea,e,el.current)},r=function(i){if(n.current.unsubscribe(),n.current=ee.resubscribeAfterError(t,r),!k.call(i,"graphQLErrors"))throw i;var a=X.current;(!a||a&&a.loading||!(0,d.L)(i,a.error))&&O({data:a&&a.data,error:i,loading:!1,networkStatus:g.pT.error},X,ee,et,ea,e,el.current)},n={current:ee.subscribe(t,r)};return function(){setTimeout(function(){return n.current.unsubscribe()})}},[ei,eo,ee,X,ea,et]),function(){return ed||N(X,ee,el.current,ea,et)},function(){return ed||N(X,ee,el.current,ea,et)})),obsQueryFields:Q,observable:B,resultData:U,client:b,onQueryExecuted:V}),eh=ef.result,ep=ef.obsQueryFields;return a.useMemo(function(){return(0,n.__assign)((0,n.__assign)({},eh),ep)},[eh,ep])}function I(e,t,r,n){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),r.defaultOptions&&i.push(r.defaultOptions),i.push((0,v.o)(e&&e.options,n)),i.reduce(f.l)}function O(e,t,r,a,o,s,l){var u,c,d,f=t.current;f&&f.data&&(t.previousData=f.data),!e.error&&(0,b.E)(e.errors)&&(e.error=new p.K4({graphQLErrors:e.errors})),t.current=C((u=e,c=r,d=o,u.partial&&d&&!u.loading&&(!u.data||0===Object.keys(u.data).length)&&"cache-only"!==c.options.fetchPolicy?(c.refetch(),(0,n.__assign)((0,n.__assign)({},u),{loading:!0,networkStatus:g.pT.refetch})):u),t.previousData,r,a),s(),function(e,t,r){if(!e.loading){var n,a=(n=e,(0,b.E)(n.errors)?new p.K4({graphQLErrors:n.errors}):n.error);Promise.resolve().then(function(){a?r.onError(a):e.data&&t!==e.networkStatus&&e.networkStatus===g.pT.ready&&r.onCompleted(e.data)}).catch(function(e){!1!==globalThis.__DEV__&&i.V1.warn(e)})}}(e,null==f?void 0:f.networkStatus,l)}function N(e,t,r,n,i){return e.current||O(t.getCurrentResult(),e,t,i,n,function(){},r),e.current}function D(e,t){var r;return(null==e?void 0:e.fetchPolicy)||(null==(r=null==t?void 0:t.watchQuery)?void 0:r.fetchPolicy)||"cache-first"}function C(e,t,r,i){var a=e.data,o=(e.partial,(0,n.__rest)(e,["data","partial"]));return(0,n.__assign)((0,n.__assign)({data:a},o),{client:i,observable:r,variables:r.variables,called:e!==P&&e!==L,previousData:t})}var P=(0,w.G)({loading:!0,data:void 0,error:void 0,networkStatus:g.pT.loading}),L=(0,w.G)({loading:!1,data:void 0,error:void 0,networkStatus:g.pT.ready})},54587:(e,t,r)=>{e.exports=r(53657)},54962:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var a=Object.create(Object.getPrototypeOf(t));return r.set(t,a),Object.keys(t).forEach(function(n){a[n]=e(t[n],r)}),a;default:return t}}(e)}},56186:(e,t,r)=>{"use strict";r.d(t,{Ho:()=>c,OC:()=>o,hr:()=>l,pg:()=>u,sb:()=>d,uo:()=>s});var n,i=r(4902);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(n||(n={}));var a=function(e){function t(r,n,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return(0,i.__extends)(t,e),t}(Error),o=function(e){function t(t,r){return e.call(this,n.UNSUPPORTED_FORMATTER,t,r)||this}return(0,i.__extends)(t,e),t}(a),s=function(e){function t(t,r){return e.call(this,n.INVALID_CONFIG,t,r)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,n.MISSING_DATA,t,r)||this}return(0,i.__extends)(t,e),t}(a),u=function(e){function t(t,r,i){var a=e.call(this,n.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),i)||this;return a.locale=r,a}return(0,i.__extends)(t,e),t}(a),c=function(e){function t(t,r,n,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return a.descriptor=n,a.locale=r,a}return(0,i.__extends)(t,e),t}(u),d=function(e){function t(t,r){var i=e.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", 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)?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.__extends)(t,e),t}(a)},56392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolvePlural=function(e,t,r){var a=r.getInternalSlots,o=r.PluralRuleSelect,s=a(e);if((0,n.invariant)("Object"===(0,n.Type)(s),"pl has to be an object"),(0,n.invariant)("initializedPluralRules"in s,"pluralrules must be initialized"),!t.isFinite())return"other";var l=s.locale,u=s.type,c=(0,n.FormatNumericToString)(s,t).formattedString;return o(l,u,t,(0,i.GetOperands)(c))};var n=r(77262),i=r(89356)},57929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},58011:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n={createInterruptionMessage:e=>({id:"interruption-".concat(Date.now()),role:"assistant",content:"⚠️ **Operation Interrupted**\n\nThe current operation was stopped by user request.\n\n**Status at interruption:**\n- Current phase: ".concat({submitted:"request processing",streaming:"response generation",error:"error handling",ready:"idle state"}[e]||e,"\n- Remaining tasks may not have been completed\n- You can start a new request at any time\n\n*The system is ready for your next command.*")}),hasIncompleteToolInvocations:e=>"assistant"===e.role&&!!e.parts&&e.parts.some(e=>"tool-invocation"===e.type&&e.toolInvocation&&(!e.toolInvocation.result||"call"===e.toolInvocation.state)),filterCompleteMessages(e){return e.filter(e=>!this.hasIncompleteToolInvocations(e))}}},58287:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{U:()=>n})},58851:(e,t,r)=>{"use strict";r.d(t,{A_:()=>l,D$:()=>function e(t,r,n){for(var i,o=0,s=r.selections;o<s.length;o++){var l=s[o];if(_(l)){if("__typename"===l.name.value)return t[g(l)]}else i?i.push(l):i=[l]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var u=0,c=i;u<c.length;u++){var l=c[u],d=e(t,(0,a.HQ)(l,n).selectionSet,n);if("string"==typeof d)return d}},Ii:()=>d,J:()=>c,Kc:()=>u,MB:()=>m,WU:()=>s,dt:()=>_,kd:()=>y,o5:()=>p,ue:()=>g});var n=r(17318),i=r(93957),a=r(68922),o=r(26828);function s(e){return{__ref:String(e)}}function l(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var a={};r.fields.map(function(e){return c(a,e.name,e.value,i)}),e[t.value]=a}else if("Variable"===r.kind){var o=(i||{})[r.name.value];e[t.value]=o}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return c(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,n.vA)(96,t.value,r.kind)}function d(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,a=n.value;return c(r[e.name.value],i,a,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return c(n,r,i,t)})),p(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],h=o.M,p=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(h(i),")")}var a=e;if(t){var o=h(t);a+="(".concat(o,")")}return r&&Object.keys(r).forEach(function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@".concat(e,"(").concat(h(r[e]),")"):a+="@".concat(e))}),a},{setStringify:function(e){var t=h;return h=e,t}});function m(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return c(r,e.name,e.value,t)}),r}return null}function g(e){return e.alias?e.alias.value:e.name.value}function _(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}},60427:(e,t,r)=>{"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(14232))},60621:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))})},61282:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))})},62048:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var n=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(n||{})},62091:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(18659);function i(e,t){void 0===t&&(t=0);var r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}},63333:(e,t,r)=>{"use strict";r.d(t,{P:()=>s,a:()=>o});var n=r(14232),i=r(27721);let a=Symbol();function o(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[a]:t})}function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=(0,n.useRef)(t);(0,n.useEffect)(()=>{o.current=t},[t]);let s=(0,i._)(e=>{for(let t of o.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:s}},63402:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(37876),i=r(48230),a=r.n(i),o=r(77742),s=r(51485);let l=e=>{let{error:t=null,resetError:r=null}=e,{formatMessage:i}=(0,o.A)();return(0,n.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h2",{className:"text-center text-3xl text-slate-900 dark:text-slate-200",children:i({id:"internal_server_error",defaultMessage:"500 Internal Server Error"})})}),(0,n.jsx)(s.A,{children:(0,n.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,n.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,n.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-rose-600 dark:text-rose-400",children:i({id:"error_500",defaultMessage:"500 Error"})}),(0,n.jsx)("p",{className:"mt-2 text-base text-slate-500 dark:text-slate-400",children:i({id:"internal_server_error_message",defaultMessage:"Sorry, something went wrong on our end. We are working to fix this."})}),(null==t?void 0:t.message)&&(0,n.jsxs)("details",{className:"mt-4 text-left",children:[(0,n.jsx)("summary",{className:"cursor-pointer text-sm text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-300",children:i({id:"show_error_details",defaultMessage:"Show error details"})}),(0,n.jsx)("pre",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400 whitespace-pre-wrap break-all",children:null==t?void 0:t.message})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,n.jsxs)(a(),{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),i({id:"back_to_home",defaultMessage:"Back to Home"})]}),r&&(0,n.jsxs)("button",{type:"button",onClick:r,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-slate-100 dark:bg-slate-700 dark:border-slate-600 py-2 px-4 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:outline-hidden focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-slate-500 dark:text-slate-400 group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),i({id:"try_again",defaultMessage:"Try Again"})]})]})]})})]})})}},63724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},63965:(e,t,r)=>{"use strict";let n;r.d(t,{DX:()=>f,yN:()=>L,LV:()=>F});var i=r(39668),a=r(36898);let o=null,s={},l=1;function u(e){try{return e()}catch(e){}}let c="@wry/context:Slot",d=u(()=>globalThis)||u(()=>global)||Object.create(null),f=d[c]||Array[c]||function(e){try{Object.defineProperty(d,c,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=o;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===s)break;return e!==o&&(o.slots[this.id]=t),!0}return o&&(o.slots[this.id]=s),!1}getValue(){if(this.hasValue())return o.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},a=o;o={parent:a,slots:i};try{return t.apply(n,r)}finally{o=a}}static bind(e){let t=o;return function(){let r=o;try{return o=t,e.apply(this,arguments)}finally{o=r}}}static noContext(e,t,r){if(!o)return e.apply(r,t);{let n=o;try{return o=null,e.apply(r,t)}finally{o=n}}}}),{bind:h,noContext:p}=f,m=new f,{hasOwnProperty:g}=Object.prototype,_=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function y(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let v=[];function b(e,t){if(!e)throw Error(t||"assertion failure")}function w(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function E(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class k{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++k.count}peek(){if(1===this.value.length&&!x(this))return T(this),this.value[0]}recompute(e){var t,r,n;return b(!this.recomputing,"already recomputing"),T(this),x(this)?(t=this,r=e,D(t),m.withValue(t,S,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{y(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,x(n)||function(e){A(e,O)}(n)),E(t.value)):E(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,A(e,I),y(this))}dispose(){this.setDirty(),D(this),A(this,(e,t)=>{e.setDirty(),C(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=v.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(_(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),v.push(this.deps),this.deps=null)}}function T(e){let t=m.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),x(e)?I(t,e):O(t,e),t}function S(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!w(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function x(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}k.count=0;function A(e,t){let r=e.parents.size;if(r){let n=_(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function I(e,t){b(e.childValues.has(t)),b(x(t));let r=!x(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=v.pop()||new Set;e.dirtyChildren.add(t),r&&A(e,I)}function O(e,t){b(e.childValues.has(t)),b(!x(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):w(r,t.value)||e.setDirty(),N(e,t),x(e)||A(e,O)}function N(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(v.length<100&&v.push(r),e.dirtyChildren=null))}function D(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{C(e,r)}),e.forgetDeps(),b(null===e.dirtyChildren)}function C(e,t){t.parents.delete(e),e.childValues.delete(t),N(e,t)}let P={setDirty:!0,dispose:!0,forget:!0};function L(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=m.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(y(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&g.call(P,r)?r:"setDirty";_(n).forEach(e=>e[i]()),t.delete(e),y(n)}},n}function R(...e){return(n||(n=new i.b("function"==typeof WeakMap))).lookupArray(e)}let M=new Set;function F(e,{max:t=65536,keyArgs:r,makeCacheKey:n=R,normalizeResult:i,subscribe:o,cache:s=a.C}=Object.create(null)){let l="function"==typeof s?new s(t,e=>e.dispose()):s,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=l.get(t);a||(l.set(t,a=new k(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>l.delete(t));let s=a.recompute(Array.prototype.slice.call(arguments));return l.set(t,a),M.add(l),m.hasValue()||(M.forEach(e=>e.clean()),M.clear()),s};function c(e){let t=e&&l.get(e);t&&t.setDirty()}function d(e){let t=e&&l.get(e);if(t)return t.peek()}function f(e){return!!e&&l.delete(e)}return Object.defineProperty(u,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:l}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=d,u.peek=function(){return d(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}},66077:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r);class o{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let s=new o},66253:e=>{e.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let a=Date.now(),o=t-(a-n);o<=0?(n=a,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},o)}}},66434:(e,t,r)=>{"use strict";var n;function i(e){return!!e&&e<7}r.d(t,{bi:()=>i,pT:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},67056:(e,t,r)=>{"use strict";var n=r(82909).hp;let i=void 0!==n,a=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function s(e,t,r){null==r&&null!==t&&"object"==typeof t&&(r=t,t=void 0),i&&n.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let s=JSON.parse(e,t);if(null===s||"object"!=typeof s)return s;let u=r&&r.protoAction||"error",c=r&&r.constructorAction||"error";if("ignore"===u&&"ignore"===c)return s;if("ignore"!==u&&"ignore"!==c){if(!1===a.test(e)&&!1===o.test(e))return s}else if("ignore"!==u&&"ignore"===c){if(!1===a.test(e))return s}else if(!1===o.test(e))return s;return l(s,{protoAction:u,constructorAction:c,safe:r&&r.safe})}function l(e,{protoAction:t="error",constructorAction:r="error",safe:n}={}){let i=[e];for(;i.length;){let e=i;for(let a of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(a,"__proto__")){if(!0===n)return null;if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete a.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(a,"constructor")&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype")){if(!0===n)return null;if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete a.constructor}for(let e in a){let t=a[e];t&&"object"==typeof t&&i.push(t)}}}return e}function u(e,t,r){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return s(e,t,r)}finally{Error.stackTraceLimit=n}}e.exports=u,e.exports.default=u,e.exports.parse=u,e.exports.safeParse=function(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return s(e,t,{safe:!0})}catch(e){return null}finally{Error.stackTraceLimit=r}},e.exports.scan=l},67994:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(17318),i=r(60427),a=r(94852);function o(e){var t=i.useContext((0,a.l)()),r=e||t.client;return(0,n.V1)(!!r,58),r}},68922:(e,t,r)=>{"use strict";r.d(t,{HQ:()=>l,JG:()=>s,ct:()=>o,s6:()=>u});var n=r(4902),i=r(17318),a=r(74968);function o(e,t){var r=t,a=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i.vA)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&a.push(e)}),void 0===r&&((0,i.V1)(1===a.length,86,a.length),r=a[0].name.value),(0,n.__assign)((0,n.__assign)({},e),{definitions:(0,n.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function l(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.V1)(n,87,r),n||null;default:return null}}function u(e){var t=!0;return(0,a.YR)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return a.sP}}),t}},69368:(e,t,r)=>{"use strict";var n=r(53757);(0,r(90600).shouldPolyfill)()&&Object.defineProperty(Intl,"PluralRules",{value:n.PluralRules,writable:!0,enumerable:!1,configurable:!0})},69964:(e,t,r)=>{e=r.nmd(e);var n,i,a="__lodash_hash_undefined__",o="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",h="[object Number]",p="[object Object]",m="[object Promise]",g="[object RegExp]",_="[object Set]",y="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[o]=T[s]=T[b]=T[l]=T[w]=T[u]=T[c]=T[d]=T[f]=T[h]=T[p]=T[g]=T[_]=T[y]=T[v]=!1;var S="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,A=S||x||Function("return this")(),I=t&&!t.nodeType&&t,O=I&&e&&!e.nodeType&&e,N=O&&O.exports===I,D=N&&S.process,C=function(){try{return D&&D.binding&&D.binding("util")}catch(e){}}(),P=C&&C.isTypedArray;function L(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function R(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var M=Array.prototype,F=Function.prototype,j=Object.prototype,B=A["__core-js_shared__"],U=F.toString,V=j.hasOwnProperty,z=function(){var e=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),q=j.toString,H=RegExp("^"+U.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=N?A.Buffer:void 0,W=A.Symbol,K=A.Uint8Array,Z=j.propertyIsEnumerable,Q=M.splice,$=W?W.toStringTag:void 0,Y=Object.getOwnPropertySymbols,J=G?G.isBuffer:void 0,X=(n=Object.keys,i=Object,function(e){return n(i(e))}),ee=eT(A,"DataView"),et=eT(A,"Map"),er=eT(A,"Promise"),en=eT(A,"Set"),ei=eT(A,"WeakMap"),ea=eT(Object,"create"),eo=eA(ee),es=eA(et),el=eA(er),eu=eA(en),ec=eA(ei),ed=W?W.prototype:void 0,ef=ed?ed.valueOf:void 0;function eh(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ep(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new em;++t<r;)this.add(e[t])}function e_(e){var t=this.__data__=new ep(e);this.size=t.size}function ey(e,t){for(var r=e.length;r--;)if(eI(e[r][0],t))return r;return -1}function ev(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?function(e){var t=V.call(e,$),r=e[$];try{e[$]=void 0;var n=!0}catch(e){}var i=q.call(e);return n&&(t?e[$]=r:delete e[$]),i}(e):(t=e,q.call(t))}function eb(e){return eR(e)&&ev(e)==o}function ew(e,t,r,n,i,a){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,d=!0,f=2&r?new eg:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var h=e[c],p=t[c];if(n)var m=o?n(p,h,c,t,e,a):n(h,p,c,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(h===e||i(h,e,r,n,a)))return f.push(t)})){d=!1;break}}else if(!(h===p||i(h,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function eE(e){var t;return t=eF(e),eN(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eS(e))}function ek(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function eT(e,t){var r,n=null==e?void 0:e[t];return!(!eL(n)||(r=n,z&&z in r))&&(eC(n)?H:E).test(eA(n))?n:void 0}eh.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},eh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},eh.prototype.get=function(e){var t=this.__data__;if(ea){var r=t[e];return r===a?void 0:r}return V.call(t,e)?t[e]:void 0},eh.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:V.call(t,e)},eh.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ea&&void 0===t?a:t,this},ep.prototype.clear=function(){this.__data__=[],this.size=0},ep.prototype.delete=function(e){var t=this.__data__,r=ey(t,e);return!(r<0)&&(r==t.length-1?t.pop():Q.call(t,r,1),--this.size,!0)},ep.prototype.get=function(e){var t=this.__data__,r=ey(t,e);return r<0?void 0:t[r][1]},ep.prototype.has=function(e){return ey(this.__data__,e)>-1},ep.prototype.set=function(e,t){var r=this.__data__,n=ey(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(et||ep),string:new eh}},em.prototype.delete=function(e){var t=ek(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return ek(this,e).get(e)},em.prototype.has=function(e){return ek(this,e).has(e)},em.prototype.set=function(e,t){var r=ek(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},eg.prototype.add=eg.prototype.push=function(e){return this.__data__.set(e,a),this},eg.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.clear=function(){this.__data__=new ep,this.size=0},e_.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},e_.prototype.get=function(e){return this.__data__.get(e)},e_.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ep){var n=r.__data__;if(!et||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new em(n)}return r.set(e,t),this.size=r.size,this};var eS=Y?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}(Y(e=Object(e)),function(t){return Z.call(e,t)})}:function(){return[]},ex=ev;function eA(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eI(e,t){return e===t||e!=e&&t!=t}(ee&&ex(new ee(new ArrayBuffer(1)))!=w||et&&ex(new et)!=f||er&&ex(er.resolve())!=m||en&&ex(new en)!=_||ei&&ex(new ei)!=v)&&(ex=function(e){var t=ev(e),r=t==p?e.constructor:void 0,n=r?eA(r):"";if(n)switch(n){case eo:return w;case es:return f;case el:return m;case eu:return _;case ec:return v}return t});var eO=eb(function(){return arguments}())?eb:function(e){return eR(e)&&V.call(e,"callee")&&!Z.call(e,"callee")},eN=Array.isArray,eD=J||function(){return!1};function eC(e){if(!eL(e))return!1;var t=ev(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eP(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eL(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eR(e){return null!=e&&"object"==typeof e}var eM=P?function(e){return P(e)}:function(e){return eR(e)&&eP(e.length)&&!!T[ev(e)]};function eF(e){return null!=e&&eP(e.length)&&!eC(e)?function(e,t){var r,n,i=eN(e),a=!i&&eO(e),o=!i&&!a&&eD(e),s=!i&&!a&&!o&&eM(e),l=i||a||o||s,u=l?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var d in e){V.call(e,d)&&!(l&&("length"==d||o&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(r=d,(n=null==(n=c)?0x1fffffffffffff:n)&&("number"==typeof r||k.test(r))&&r>-1&&r%1==0&&r<n)))&&u.push(d)}return u}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||j))return X(e);var t,r,n=[];for(var i in Object(e))V.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}e.exports=function(e,t){return function e(t,r,n,i,a){return t===r||(null!=t&&null!=r&&(eR(t)||eR(r))?function(e,t,r,n,i,a){var d=eN(e),m=eN(t),v=d?s:ex(e),E=m?s:ex(t);v=v==o?p:v,E=E==o?p:E;var k=v==p,T=E==p,S=v==E;if(S&&eD(e)){if(!eD(t))return!1;d=!0,k=!1}if(S&&!k)return a||(a=new e_),d||eM(e)?ew(e,t,r,n,i,a):function(e,t,r,n,i,a,o){switch(r){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case b:if(e.byteLength!=t.byteLength||!a(new K(e),new K(t)))break;return!0;case l:case u:case h:return eI(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var s=L;case _:var d=1&n;if(s||(s=R),e.size!=t.size&&!d)break;var p=o.get(e);if(p)return p==t;n|=2,o.set(e,t);var m=ew(s(e),s(t),n,i,a,o);return o.delete(e),m;case"[object Symbol]":if(ef)return ef.call(e)==ef.call(t)}return!1}(e,t,v,r,n,i,a);if(!(1&r)){var x=k&&V.call(e,"__wrapped__"),A=T&&V.call(t,"__wrapped__");if(x||A){var I=x?e.value():e,O=A?t.value():t;return a||(a=new e_),i(I,O,r,n,a)}}return!!S&&(a||(a=new e_),function(e,t,r,n,i,a){var o=1&r,s=eE(e),l=s.length;if(l!=eE(t).length&&!o)return!1;for(var u=l;u--;){var c=s[u];if(!(o?c in t:V.call(t,c)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var h=o;++u<l;){var p=e[c=s[u]],m=t[c];if(n)var g=o?n(m,p,c,t,e,a):n(p,m,c,e,t,a);if(!(void 0===g?p===m||i(p,m,r,n,a):g)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var _=e.constructor,y=t.constructor;_!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof y&&y instanceof y)&&(f=!1)}return a.delete(e),a.delete(t),f}(e,t,r,n,i,a))}(t,r,n,i,e,a):t!=t&&r!=r)}(e,t)}},70097:(e,t,r)=>{"use strict";r.d(t,{e:()=>function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=setTimeout(...t);return r.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let a={current:!0};return(0,n._)(()=>{a.current&&t[0]()}),r.add(()=>{a.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}});var n=r(40720)},70789:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case a:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===o||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_)},t.typeOf=w},71211:(e,t,r)=>{"use strict";r.d(t,{MS:()=>o,d8:()=>s,f2:()=>l,s7:()=>u});var n=r(17318),i=r(74968),a=r(94587);function o(e,t){var r,i,a=e.directives;return!a||!a.length||(i=[],(r=a)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,a=e.name.value;(0,n.V1)(r&&1===r.length,79,a);var o=r[0];(0,n.V1)(o.name&&"if"===o.name.value,80,a);var s=o.value;(0,n.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,a),i.push({directive:e,ifArgument:o})}}),i).every(function(e){var r=e.directive,i=e.ifArgument,a=!1;return"Variable"===i.value.kind?(a=t&&t[i.value.name.value],(0,n.V1)(void 0!==a,78,r.name.value)):a=i.value.value,"skip"===r.name.value?!a:a})}function s(e,t,r){var n=new Set(e),a=n.size;return(0,i.YR)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.sP}}),r?!n.size:n.size<a}function l(e){return e&&s(["client","export"],e,!0)}function u(e){var t,r,i=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!i)return"mask";var o=null==(r=i.arguments)?void 0:r.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&o&&(o.value.kind===a.b.VARIABLE?!1!==globalThis.__DEV__&&n.V1.warn(82):o.value.kind!==a.b.STRING?!1!==globalThis.__DEV__&&n.V1.warn(83):"migrate"!==o.value.value&&!1!==globalThis.__DEV__&&n.V1.warn(84,o.value.value)),o&&"value"in o.value&&"migrate"===o.value.value)?"migrate":"unmask"}},72238:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))})},72539:(e,t,r)=>{"use strict";var n=r(4902).__importDefault(r(19124));(0,r(94745).shouldPolyfill)()&&Object.defineProperty(Intl,"RelativeTimeFormat",{value:n.default,writable:!0,enumerable:!1,configurable:!0})},72891:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext({isAdmin:()=>!1,hasRole:()=>!1})},74769:(e,t,r)=>{"use strict";r.d(t,{ZE:()=>i,Im:()=>c,tv:()=>f,Tu:()=>v,eW:()=>u,oF:()=>d,N1:()=>y,N6:()=>m,jA:()=>g,Jp:()=>p,xm:()=>_,Qh:()=>h,qg:()=>X});var n,i,a,o,s,l=r(4902);function u(e){return e.type===i.literal}function c(e){return e.type===i.argument}function d(e){return e.type===i.number}function f(e){return e.type===i.date}function h(e){return e.type===i.time}function p(e){return e.type===i.select}function m(e){return e.type===i.plural}function g(e){return e.type===i.pound}function _(e){return e.type===i.tag}function y(e){return!!(e&&"object"==typeof e&&e.type===a.number)}function v(e){return!!(e&&"object"==typeof e&&e.type===a.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(a||(a={}));var b=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[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,k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,T=/^(@+)?(\+|#+)?[rs]?$/g,S=/(\*)(0+)|(#+)(0+)|(0+)/g,x=/^(0+)$/;function A(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(T,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.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 O(e){var t=I(e);return t||{}}var N={"001":["H","h"],419:["h","H","hB","hb"],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"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],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"],CW:["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","H","hB","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"],FO:["H","h"],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"],GL:["H","h"],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"],HU:["H","h"],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","K","h"],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:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],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"],MT:["H","h"],MU:["H","h"],MV:["H","h"],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"],NO:["H","h"],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","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","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"],RW:["H","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"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","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"],VN:["H","h"],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"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["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"]},D=new RegExp("^".concat(b.source,"*")),C=new RegExp("".concat(b.source,"*$"));function P(e,t){return{start:e,end:t}}var L=!!String.prototype.startsWith&&"_a".startsWith("a",1),R=!!String.fromCodePoint,M=!!Object.fromEntries,F=!!String.prototype.codePointAt,j=!!String.prototype.trimStart,B=!!String.prototype.trimEnd,U=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},V=!0;try{V=(null==(o=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:o[0])==="a"}catch(e){V=!1}var z=L?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},q=R?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0;i>a;){if((e=t[a++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},H=M?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],a=n[1];t[i]=a}return t},G=F?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},W=j?function(e){return e.trimStart()}:function(e){return e.replace(D,"")},K=B?function(e){return e.trimEnd()}:function(e){return e.replace(C,"")};function Z(e,t){return new RegExp(e,t)}if(V){var Q=Z("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");s=function(e,t){var r;return Q.lastIndex=t,null!=(r=Q.exec(e)[1])?r:""}}else s=function(e,t){for(var r=[];;){var n,i=G(e,t);if(void 0===i||J(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return q.apply(void 0,r)};var $=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,r){for(var a=[];!this.isEOF();){var o=this.char();if(123===o){var s=this.parseArgument(e,r);if(s.err)return s;a.push(s.val)}else if(125===o&&e>0)break;else if(35===o&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),a.push({type:i.pound,location:P(l,this.clonePosition())})}else if(60!==o||this.ignoreTag||47!==this.peek())if(60===o&&!this.ignoreTag&&Y(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;a.push(s.val)}else if(!r)return this.error(n.UNMATCHED_CLOSING_TAG,P(this.clonePosition(),this.clonePosition()));else break}return{val:a,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(a,"/>"),location:P(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(n.INVALID_TAG,P(r,this.clonePosition()));var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(n.UNCLOSED_TAG,P(r,this.clonePosition()));if(this.isEOF()||!Y(this.char()))return this.error(n.INVALID_TAG,P(l,this.clonePosition()));var u=this.clonePosition();return a!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,P(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:i.tag,value:a,children:s,location:P(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,P(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 r=this.clonePosition(),n="";;){var a=this.tryParseQuote(t);if(a){n+=a;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var l=P(r,this.clonePosition());return{val:{type:i.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Y(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(),"'";case 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 r=this.char();if(39===r)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return q.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),q(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,P(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(n.MALFORMED_ARGUMENT,P(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:a,location:P(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition()));return this.parseArgumentOptions(e,t,a,r);default:return this.error(n.MALFORMED_ARGUMENT,P(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=s(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:P(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,o){var s,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(c){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,P(u,d));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var m=K(p.val);if(0===m.length)return this.error(n.EXPECT_ARGUMENT_STYLE,P(this.clonePosition(),this.clonePosition()));f={style:m,styleLocation:P(h,this.clonePosition())}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var _=P(o,this.clonePosition());if(f&&z(null==f?void 0:f.style,"::",0)){var y=W(f.style.slice(2));if("number"===c){var p=this.parseNumberSkeletonFromString(y,f.styleLocation);if(p.err)return p;return{val:{type:i.number,value:r,location:_,style:p.val},err:null}}if(0===y.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,_);var v,b=y;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(N[t||""]||N[n||""]||N["".concat(n,"-001")]||N["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)r+="a";for(;o-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(y,this.locale));var m={type:a.dateTime,pattern:b,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},b.replace(w,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?"long":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?i.date:i.time,value:r,location:_,style:m},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:r,location:_,style:null!=(s=null==f?void 0:f.style)?s:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,P(E,(0,l.__assign)({},E)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),T=0;if("select"!==c&&"offset"===k.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),k=this.parseIdentifierIfPossible(),T=p.val}var S=this.tryParsePluralOrSelectOptions(e,c,t,k);if(S.err)return S;var g=this.tryParseArgumentClose(o);if(g.err)return g;var x=P(o,this.clonePosition());if("select"===c)return{val:{type:i.select,value:r,options:H(S.val),location:x},err:null};return{val:{type:i.plural,value:r,options:H(S.val),offset:T,pluralType:"plural"===c?"cardinal":"ordinal",location:x},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,P(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,P(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 r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,P(r,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 r=[];try{r=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}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],o=i.slice(1),s=0;s<o.length;s++)if(0===o[s].length)throw Error("Invalid number skeleton");r.push({stem:a,options:o})}return r}(e)}catch(e){return this.error(n.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.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=n.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,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),O(t))},{}));continue;case"engineering":t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),O(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(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(S,function(e,r,n,i,a,o){if(r)t.minimumIntegerDigits=n.length;else if(i&&a)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(x.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(k.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(k,function(e,r,n,i,a,o){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,l.__assign)((0,l.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,l.__assign)((0,l.__assign)({},t),A(i)));continue}if(T.test(n.stem)){t=(0,l.__assign)((0,l.__assign)({},t),A(n.stem));continue}var a=I(n.stem);a&&(t=(0,l.__assign)((0,l.__assign)({},t),a));var o=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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!x.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);o&&(t=(0,l.__assign)((0,l.__assign)({},t),o))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var a,o=!1,s=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=P(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,P(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(h);if(m.err)return m;s.push([u,{value:p.val,location:P(h,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(a=this.parseIdentifierIfPossible()).value,c=a.location}return 0===s.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,P(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(n.MISSING_OTHER_CLAUSE,P(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=P(n,this.clonePosition());return i?U(a*=r)?{val:a,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=G(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(z(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(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!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()&&J(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Y(e){return e>=97&&e<=122||e>=65&&e<=90}function J(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function X(e,t){void 0===t&&(t={});var r=new $(e,t=(0,l.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,p(t)||m(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else d(t)&&y(t.style)||(f(t)||h(t))&&v(t.style)?delete t.style.location:_(t)&&e(t.children)})}(r.val),r.val}},74968:(e,t,r)=>{"use strict";r.d(t,{YR:()=>l,sP:()=>s});var n=r(58287),i=r(77016),a=r(86158),o=r(94587);let s=Object.freeze({});function l(e,t,r=a.aD){let u,c,d,f=new Map;for(let e of Object.values(o.b))f.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let h=Array.isArray(e),p=[e],m=-1,g=[],_=e,y=[],v=[];do{var b,w,E;let e,o=++m===p.length,l=o&&0!==g.length;if(o){if(c=0===v.length?void 0:y[y.length-1],_=d,d=v.pop(),l)if(h){_=_.slice();let e=0;for(let[t,r]of g){let n=t-e;null===r?(_.splice(n,1),e++):_[n]=r}}else for(let[e,t]of(_={..._},g))_[e]=t;m=u.index,p=u.keys,g=u.edits,h=u.inArray,u=u.prev}else if(d){if(null==(_=d[c=h?m:p[m]]))continue;y.push(c)}if(!Array.isArray(_)){(0,a.Ll)(_)||(0,n.U)(!1,`Invalid AST Node: ${(0,i.N)(_)}.`);let r=o?null==(b=f.get(_.kind))?void 0:b.leave:null==(w=f.get(_.kind))?void 0:w.enter;if((e=null==r?void 0:r.call(t,_,c,d,y,v))===s)break;if(!1===e){if(!o){y.pop();continue}}else if(void 0!==e&&(g.push([c,e]),!o))if((0,a.Ll)(e))_=e;else{y.pop();continue}}void 0===e&&l&&g.push([c,_]),o?y.pop():(u={inArray:h,index:m,keys:p,edits:g,prev:u},p=(h=Array.isArray(_))?_:null!=(E=r[_.kind])?E:[],m=-1,g=[],d&&v.push(d),d=_)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e}},77016:(e,t,r)=>{"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var i=t,a=n;if(0===i.length)return"[]";if(a.length>2)return"[Array]";let r=Math.min(10,i.length),o=i.length-r,s=[];for(let t=0;t<r;++t)s.push(e(i[t],a));return 1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`),"["+s.join(", ")+"]"}var o=t,s=n;let l=Object.entries(o);return 0===l.length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+l.map(([t,r])=>t+": "+e(r,s)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{N:()=>n})},77262:(e,t,r)=>{"use strict";function n(e){return Intl.getCanonicalLocales(e)}function i(e,t){var r=t.zoneNames,n=t.uppercaseLinks,i=e.toUpperCase(),a=r.reduce(function(e,t){return e[t.toUpperCase()]=t,e},{}),o=n[i]||a[i];return"Etc/UTC"===o||"Etc/GMT"===o?"UTC":o}r.r(t),r.d(t,{ApplyUnsignedRoundingMode:()=>tC,ArrayCreate:()=>e9,CanonicalizeLocaleList:()=>n,CanonicalizeTimeZoneName:()=>i,CoerceOptionsToObject:()=>ty,CollapseNumberRange:()=>tL,ComputeExponent:()=>tq,ComputeExponentForMagnitude:()=>tR,CurrencyDigits:()=>tH,DateFromTime:()=>tc,Day:()=>tt,DayFromYear:()=>tn,DayWithinYear:()=>ts,DaysInYear:()=>to,FormatApproximately:()=>tX,FormatNumeric:()=>t1,FormatNumericRange:()=>t5,FormatNumericRangeToParts:()=>t3,FormatNumericToParts:()=>t4,FormatNumericToString:()=>tz,GetNumberOption:()=>tb,GetOption:()=>tw,GetOptionsObject:()=>tE,GetStringOrBooleanOption:()=>tk,GetUnsignedRoundingMode:()=>tj,HasOwnProperty:()=>e8,HourFromTime:()=>td,InLeapYear:()=>tl,InitializeNumberFormat:()=>re,IsSanctionedSimpleUnitIdentifier:()=>tA,IsValidTimeZoneName:()=>tI,IsWellFormedCurrencyCode:()=>tN,IsWellFormedUnitIdentifier:()=>tD,MinFromTime:()=>tf,MonthFromTime:()=>tu,OrdinaryHasInstance:()=>tm,PartitionNumberPattern:()=>t0,PartitionNumberRangePattern:()=>t2,PartitionPattern:()=>rt,RangePatternType:()=>a,SANCTIONED_UNITS:()=>tT,SIMPLE_UNITS:()=>tx,SameValue:()=>e6,SecFromTime:()=>th,SetNumberFormatDigitOptions:()=>t8,SetNumberFormatUnitOptions:()=>t7,SupportedLocales:()=>rr,TimeClip:()=>e3,TimeFromYear:()=>ti,ToIntlMathematicalValue:()=>ri,ToNumber:()=>e5,ToObject:()=>e4,ToPrimitive:()=>t_,ToRawFixed:()=>tU,ToRawPrecision:()=>tV,ToString:()=>e2,Type:()=>e7,WeekDay:()=>tr,YearFromTime:()=>ta,ZERO:()=>ej,_formatToParts:()=>t$,createDataProperty:()=>eQ,createMemoizedDateTimeFormat:()=>eJ,createMemoizedListFormat:()=>e1,createMemoizedLocale:()=>e0,createMemoizedNumberFormat:()=>eY,createMemoizedPluralRules:()=>eX,defineProperty:()=>eZ,getInternalSlot:()=>eG,getMultiInternalSlots:()=>eW,invariant:()=>e$,isLiteralPart:()=>eK,isMissingLocaleDataError:()=>rn,msFromTime:()=>tg,removeUnitNamespace:()=>tS,setInternalSlot:()=>eq,setMultiInternalSlots:()=>eH});var a,o,s,l="0123456789abcdef",u="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",c="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},f=!0,h="[DecimalError] ",p=h+"Invalid argument: ",m=h+"Precision limit exceeded",g=h+"crypto unavailable",_="[object Decimal]",y=Math.floor,v=Math.pow,b=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,w=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,E=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,k=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,T=u.length-1,S=c.length-1,x={toStringTag:_};function A(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=j(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=j(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}function I(e,t,r){if(e!==~~e||e<t||e>r)throw Error(p+e)}function O(e,t,r,n){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),a=v(10,7-t),s=e[i]%a|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):o=(r<4&&s+1==a||r>3&&s+1==a/2)&&(e[i+1]/a/100|0)==v(10,t-2)-1||(s==a/2||0==s)&&(e[i+1]/a/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(n||r<4)&&9999==s||!n&&r>3&&4999==s):o=((n||r<4)&&s+1==a||!n&&r>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==v(10,t-3)-1,o}function N(e,t,r){for(var n,i,a=[0],o=0,s=e.length;o<s;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=l.indexOf(e.charAt(o++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}x.absoluteValue=x.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),C(e)},x.ceil=function(){return C(new this.constructor(this),this.e+1,2)},x.clampedTo=x.clamp=function(e,t){var r=this.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(p+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new r(this)},x.comparedTo=x.cmp=function(e){var t,r,n,i,a=this.d,o=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!a||!o)return s&&l?s!==l?s:a===o?0:!a^s<0?1:-1:NaN;if(!a[0]||!o[0])return a[0]?s:o[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(t=0,r=(n=a.length)<(i=o.length)?n:i;t<r;++t)if(a[t]!==o[t])return a[t]>o[t]^s<0?1:-1;return n===i?0:n>i^s<0?1:-1},x.cosine=x.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?i=(1/K(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=W(e,1,t.times(i),new e(1));for(var a=r;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=r,t}(n,Z(n,r)),n.precision=e,n.rounding=t,C(2==s||3==s?r.neg():r,e,t,!0)):new n(1):new n(NaN)},x.cubeRoot=x.cbrt=function(){var e,t,r,n,i,a,o,s,l,u,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(f=!1,(a=this.s*v(this.s*this,1/3))&&Math.abs(a)!=1/0?n=new c(a.toString()):(r=A(this.d),(a=((e=this.e)-r.length+1)%3)&&(r+=1==a||-2==a?"0":"00"),a=v(r,1/3),e=y((e+1)/3)-(e%3==(e<0?-1:2)),(n=new c(r=a==1/0?"5e"+e:(r=a.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=this.s),o=(e=c.precision)+3;;)if(n=D((u=(l=(s=n).times(s).times(s)).plus(this)).plus(this).times(s),u.plus(l),o+2,1),A(s.d).slice(0,o)===(r=A(n.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(C(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!i&&(C(s,e+1,0),s.times(s).times(s).eq(this))){n=s;break}o+=4,i=1}return f=!0,C(n,e,c.rounding,t)},x.decimalPlaces=x.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-y(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},x.dividedBy=x.div=function(e){return D(this,new this.constructor(e))},x.dividedToIntegerBy=x.divToInt=function(e){var t=this.constructor;return C(D(this,new t(e),0,1,1),t.precision,t.rounding)},x.equals=x.eq=function(e){return 0===this.cmp(e)},x.floor=function(){return C(new this.constructor(this),this.e+1,3)},x.greaterThan=x.gt=function(e){return this.cmp(e)>0},x.greaterThanOrEqualTo=x.gte=function(e){var t=this.cmp(e);return 1==t||0===t},x.hyperbolicCosine=x.cosh=function(){var e,t,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision,n=o.rounding,o.precision=r+Math.max(a.e,a.sd())+4,o.rounding=1,(i=a.d.length)<32?t=(1/K(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=W(o,1,a.times(t),new o(1),!0);for(var l,u=e,c=new o(8);u--;)l=a.times(a),a=s.minus(l.times(c.minus(l.times(c))));return C(a,o.precision=r,o.rounding=n,!0)},x.hyperbolicSine=x.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=W(a,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=W(a,2,i=i.times(1/K(5,e)),i,!0);for(var o,s=new a(5),l=new a(16),u=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(l.times(o).plus(u))))}return a.precision=t,a.rounding=r,C(i,t,r,!0)},x.hyperbolicTangent=x.tanh=function(){var e,t,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,D(this.sinh(),this.cosh(),r.precision=e,r.rounding=t)):new r(this.s)},x.inverseCosine=x.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return -1!==r?0===r?e.isNeg()?M(t,n,i):new t(0):new t(NaN):e.isZero()?M(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},x.inverseHyperbolicCosine=x.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,f=!1,r=r.times(r).minus(1).sqrt().plus(r),f=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},x.inverseHyperbolicSine=x.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,f=!1,r=r.times(r).plus(1).sqrt().plus(r),f=!0,n.precision=e,n.rounding=t,r.ln())},x.inverseHyperbolicTangent=x.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,Math.max(n=i.sd(),e)<-(2*i.e)-1)?C(new a(i),e,t,!0):(a.precision=r=n-i.e,i=D(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5)):new a(NaN)},x.inverseSine=x.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==t)?0===t?((e=M(a,r+4,n).times(.5)).s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2))},x.inverseTangent=x.atan=function(){var e,t,r,n,i,a,o,s,l,u=this,c=u.constructor,d=c.precision,h=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);else if(u.abs().eq(1)&&d+4<=S)return(o=M(c,d+4,h).times(.25)).s=u.s,o}else{if(!u.s)return new c(NaN);if(d+4<=S)return(o=M(c,d+4,h).times(.5)).s=u.s,o}for(c.precision=s=d+10,c.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(f=!1,t=Math.ceil(s/7),n=1,l=u.times(u),o=new c(u),i=u;-1!==e;)if(i=i.times(l),a=o.minus(i.div(n+=2)),i=i.times(l),void 0!==(o=a.plus(i.div(n+=2))).d[t])for(e=t;o.d[e]===a.d[e]&&e--;);return r&&(o=o.times(2<<r-1)),f=!0,C(o,c.precision=d,c.rounding=h,!0)},x.isFinite=function(){return!!this.d},x.isInteger=x.isInt=function(){return!!this.d&&y(this.e/7)>this.d.length-2},x.isNaN=function(){return!this.s},x.isNegative=x.isNeg=function(){return this.s<0},x.isPositive=x.isPos=function(){return this.s>0},x.isZero=function(){return!!this.d&&0===this.d[0]},x.lessThan=x.lt=function(e){return 0>this.cmp(e)},x.lessThanOrEqualTo=x.lte=function(e){return 1>this.cmp(e)},x.logarithm=x.log=function(e){var t,r,n,i,a,o,s,l,u=this.constructor,c=u.precision,d=u.rounding;if(null==e)e=new u(10),t=!0;else{if(r=(e=new u(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new u(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)a=!0;else{for(i=r[0];i%10==0;)i/=10;a=1!==i}if(f=!1,O((l=D(o=q(this,s=c+5),t?R(u,s+10):q(e,s),s,1)).d,i=c,d))do if(s+=10,l=D(o=q(this,s),t?R(u,s+10):q(e,s),s,1),!a){+A(l.d).slice(i+1,i+15)+1==1e14&&(l=C(l,c+1,0));break}while(O(l.d,i+=10,d));return f=!0,C(l,c,d)},x.minus=x.sub=function(e){var t,r,n,i,a,o,s,l,u,c,d,h,p=this.constructor;if(e=new p(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new p(e.d||this.s!==e.s?this:NaN):e=new p(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(u=this.d,h=e.d,s=p.precision,l=p.rounding,!u[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!u[0])return new p(3===l?-0:0);e=new p(this)}return f?C(e,s,l):e}if(r=y(e.e/7),c=y(this.e/7),u=u.slice(),a=c-r){for((d=a<0)?(t=u,a=-a,o=h.length):(t=h,r=c,o=u.length),a>(n=Math.max(Math.ceil(s/7),o)+2)&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for((d=(n=u.length)<(o=h.length))&&(o=n),n=0;n<o;n++)if(u[n]!=h[n]){d=u[n]<h[n];break}a=0}for(d&&(t=u,u=h,h=t,e.s=-e.s),o=u.length,n=h.length-o;n>0;--n)u[o++]=0;for(n=h.length;n>a;){if(u[--n]<h[n]){for(i=n;i&&0===u[--i];)u[i]=1e7-1;--u[i],u[n]+=1e7}u[n]-=h[n]}for(;0===u[--o];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(e.d=u,e.e=L(u,r),f?C(e,s,l):e):new p(3===l?-0:0)},x.modulo=x.mod=function(e){var t,r=this.constructor;return(e=new r(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(f=!1,9==r.modulo?(t=D(this,e.abs(),0,3,1),t.s*=e.s):t=D(this,e,0,r.modulo,1),t=t.times(e),f=!0,this.minus(t)):C(new r(this),r.precision,r.rounding):new r(NaN)},x.naturalExponential=x.exp=function(){return z(this)},x.naturalLogarithm=x.ln=function(){return q(this)},x.negated=x.neg=function(){var e=new this.constructor(this);return e.s=-e.s,C(e)},x.plus=x.add=function(e){var t,r,n,i,a,o,s,l,u,c,d=this.constructor;if(e=new d(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new d(e.d||this.s===e.s?this:NaN)):e=new d(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(u=this.d,c=e.d,s=d.precision,l=d.rounding,!u[0]||!c[0])return c[0]||(e=new d(this)),f?C(e,s,l):e;if(a=y(this.e/7),n=y(e.e/7),u=u.slice(),i=a-n){for(i<0?(r=u,i=-i,o=c.length):(r=c,n=a,o=u.length),i>(o=(a=Math.ceil(s/7))>o?a+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=u.length)-(i=c.length)<0&&(i=o,r=c,c=u,u=r),t=0;i;)t=(u[--i]=u[i]+c[i]+t)/1e7|0,u[i]%=1e7;for(t&&(u.unshift(t),++n),o=u.length;0==u[--o];)u.pop();return e.d=u,e.e=L(u,n),f?C(e,s,l):e},x.precision=x.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(p+e);return this.d?(t=F(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},x.round=function(){var e=this.constructor;return C(new e(this),this.e+1,e.rounding)},x.sine=x.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:W(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=W(e,2,t=t.times(1/K(5,r)),t);for(var i,a=new e(5),o=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}(n,Z(n,r)),n.precision=e,n.rounding=t,C(s>2?r.neg():r,e,t,!0)):new n(NaN)},x.squareRoot=x.sqrt=function(){var e,t,r,n,i,a,o=this.d,s=this.e,l=this.s,u=this.constructor;if(1!==l||!o||!o[0])return new u(!l||l<0&&(!o||o[0])?NaN:o?this:1/0);for(f=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=A(o)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=y((s+1)/2)-(s<0||s%2),n=new u(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new u(l.toString()),r=(s=u.precision)+3;;)if(n=(a=n).plus(D(this,a,r+2,1)).times(.5),A(a.d).slice(0,r)===(t=A(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(C(n,s+1,1),e=!n.times(n).eq(this));break}if(!i&&(C(a,s+1,0),a.times(a).eq(this))){n=a;break}r+=4,i=1}return f=!0,C(n,s,u.rounding,e)},x.tangent=x.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=D(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,C(2==s||4==s?r.neg():r,e,t,!0)):new n(NaN)},x.times=x.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this.constructor,d=this.d,h=(e=new c(e)).d;if(e.s*=this.s,!d||!d[0]||!h||!h[0])return new c(!e.s||d&&!d[0]&&!h||h&&!h[0]&&!d?NaN:!d||!h?e.s/0:0*e.s);for(r=y(this.e/7)+y(e.e/7),(l=d.length)<(u=h.length)&&(a=d,d=h,h=a,o=l,l=u,u=o),a=[],n=o=l+u;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%1e7|0,t=s/1e7|0;a[i]=(a[i]+t)%1e7|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=L(a,r),f?C(e,c.precision,c.rounding):e},x.toBinary=function(e,t){return Q(this,2,e,t)},x.toDecimalPlaces=x.toDP=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(I(e,0,1e9),void 0===t?t=n.rounding:I(t,0,8),C(r,e+r.e+1,t))},x.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=P(n,!0):(I(e,0,1e9),void 0===t?t=i.rounding:I(t,0,8),r=P(n=C(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},x.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?r=P(this):(I(e,0,1e9),void 0===t?t=i.rounding:I(t,0,8),r=P(n=C(new i(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},x.toFraction=function(e){var t,r,n,i,a,o,s,l,u,c,d,h,m=this.d,g=this.constructor;if(!m)return new g(this);if(u=r=new g(1),n=l=new g(0),o=(a=(t=new g(n)).e=F(m)-this.e-1)%7,t.d[0]=v(10,o<0?7+o:o),null==e)e=a>0?t:u;else{if(!(s=new g(e)).isInt()||s.lt(u))throw Error(p+s);e=s.gt(t)?a>0?t:u:s}for(f=!1,s=new g(A(m)),c=g.precision,g.precision=a=7*m.length*2;d=D(s,t,0,1,1),1!=(i=r.plus(d.times(n))).cmp(e);)r=n,n=i,i=u,u=l.plus(d.times(i)),l=i,i=t,t=s.minus(d.times(i)),s=i;return i=D(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=this.s,h=1>D(u,n,a,1).minus(this).abs().cmp(D(l,r,a,1).minus(this).abs())?[u,n]:[l,r],g.precision=c,f=!0,h},x.toHexadecimal=x.toHex=function(e,t){return Q(this,16,e,t)},x.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:I(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(f=!1,r=D(r,e,0,t,1).times(e),f=!0,C(r)):(e.s=r.s,r=e),r},x.toNumber=function(){return+this},x.toOctal=function(e,t){return Q(this,8,e,t)},x.toPower=x.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(v(+s,u));if((s=new l(s)).eq(1))return s;if(n=l.precision,a=l.rounding,e.eq(1))return C(s,n,a);if((t=y(e.e/7))>=e.d.length-1&&(r=u<0?-u:u)<=0x1fffffffffffff)return i=B(l,s,r,n),e.s<0?new l(1).div(i):C(i,n,a);if((o=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return(t=0!=(r=v(+s,u))&&isFinite(r)?new l(r+"").e:y(u*(Math.log("0."+A(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?o/0:0):(f=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=z(e.times(q(s,n+r)),n)).d&&O((i=C(i,n+5,1)).d,n,a)&&(t=n+10,+A((i=C(z(e.times(q(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=C(i,n+1,0))),i.s=o,f=!0,l.rounding=a,C(i,n,a))},x.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=P(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(I(e,1,1e9),void 0===t?t=i.rounding:I(t,0,8),r=P(n=C(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},x.toSignificantDigits=x.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(I(e,1,1e9),void 0===t?t=r.rounding:I(t,0,8)),C(new r(this),e,t)},x.toString=function(){var e=this.constructor,t=P(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},x.truncated=x.trunc=function(){return C(new this.constructor(this),this.e+1,1)},x.valueOf=x.toJSON=function(){var e=this.constructor,t=P(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var D=function(){function e(e,t,r){var n,i=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+i,e[a]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,a,s,l,u){var c,d,f,h,p,m,g,_,v,b,w,E,k,T,S,x,A,I,O,N,D=n.constructor,P=n.s==i.s?1:-1,L=n.d,R=i.d;if(!L||!L[0]||!R||!R[0])return new D(!n.s||!i.s||(L?R&&L[0]==R[0]:!R)?NaN:L&&0==L[0]||!R?0*P:P/0);for(u?(p=1,d=n.e-i.e):(u=1e7,p=7,d=y(n.e/p)-y(i.e/p)),O=R.length,A=L.length,b=(v=new D(P)).d=[],f=0;R[f]==(L[f]||0);f++);if(R[f]>(L[f]||0)&&d--,null==a?(T=a=D.precision,s=D.rounding):T=l?a+(n.e-i.e)+1:a,T<0)b.push(1),m=!0;else{if(T=T/p+2|0,f=0,1==O){for(h=0,R=R[0],T++;(f<A||h)&&T--;f++)S=h*u+(L[f]||0),b[f]=S/R|0,h=S%R|0;m=h||f<A}else{for((h=u/(R[0]+1)|0)>1&&(R=e(R,h,u),L=e(L,h,u),O=R.length,A=L.length),x=O,E=(w=L.slice(0,O)).length;E<O;)w[E++]=0;(N=R.slice()).unshift(0),I=R[0],R[1]>=u/2&&++I;do h=0,(c=t(R,w,O,E))<0?(k=w[0],O!=E&&(k=k*u+(w[1]||0)),(h=k/I|0)>1?(h>=u&&(h=u-1),_=(g=e(R,h,u)).length,E=w.length,1==(c=t(g,w,_,E))&&(h--,r(g,O<_?N:R,_,u))):(0==h&&(c=h=1),g=R.slice()),(_=g.length)<E&&g.unshift(0),r(w,g,E,u),-1==c&&(E=w.length,(c=t(R,w,O,E))<1&&(h++,r(w,O<E?N:R,E,u))),E=w.length):0===c&&(h++,w=[0]),b[f++]=h,c&&w[0]?w[E++]=L[x]||0:(w=[L[x]],E=1);while((x++<A||void 0!==w[0])&&T--);m=void 0!==w[0]}b[0]||b.shift()}if(1==p)v.e=d,o=m;else{for(f=1,h=b[0];h>=10;h/=10)f++;v.e=f+d*p-1,C(v,l?a+v.e+1:a,s,m)}return v}}();function C(e,t,r,n){var i,a,o,s,l,u,c,d,h,p=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(i=1,s=d[0];s>=10;s/=10)i++;if((a=t-i)<0)a+=7,o=t,l=(c=d[h=0])/v(10,i-o-1)%10|0;else if((h=Math.ceil((a+1)/7))>=(s=d.length))if(n){for(;s++<=h;)d.push(0);c=l=0,i=1,a%=7,o=a-7+1}else break e;else{for(i=1,c=s=d[h];s>=10;s/=10)i++;a%=7,l=(o=a-7+i)<0?0:c/v(10,i-o-1)%10|0}if(n=n||t<0||void 0!==d[h+1]||(o<0?c:c%v(10,i-o-1)),u=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(a>0?o>0?c/v(10,i-o):0:d[h-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=v(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=h,s=1,h--):(d.length=h+1,s=v(10,7-a),d[h]=o>0?(c/v(10,i-o)%v(10,o)|0)*s:0),u)for(;;)if(0==h){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,1e7==d[0]&&(d[0]=1));break}else{if(d[h]+=s,1e7!=d[h])break;d[h--]=0,s=1}for(a=d.length;0===d[--a];)d.pop()}return f&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function P(e,t,r){if(!e.isFinite())return H(e);var n,i=e.e,a=A(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+j(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+j(-i-1)+a,r&&(n=r-o)>0&&(a+=j(n))):i>=o?(a+=j(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+j(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=j(n))),a}function L(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function R(e,t,r){if(t>T)throw f=!0,r&&(e.precision=r),Error(m);return C(new e(u),t,1,!0)}function M(e,t,r){if(t>S)throw Error(m);return C(new e(c),t,r,!0)}function F(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function j(e){for(var t="";e--;)t+="0";return t}function B(e,t,r,n){var i,a=new e(1),o=Math.ceil(n/7+4);for(f=!1;;){if(r%2&&$((a=a.times(t)).d,o)&&(i=!0),0===(r=y(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}$((t=t.times(t)).d,o)}return f=!0,a}function U(e){return 1&e.d[e.d.length-1]}function V(e,t,r){for(var n,i,a=new e(t[0]),o=0;++o<t.length;){if(!(i=new e(t[o])).s){a=i;break}((n=a.cmp(i))===r||0===n&&a.s===r)&&(a=i)}return a}function z(e,t){var r,n,i,a,o,s,l,u=0,c=0,d=0,h=e.constructor,p=h.rounding,m=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(f=!1,l=m):l=t,s=new h(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=n=Math.log(v(2,d))/Math.LN10*2+5|0,r=a=o=new h(1),h.precision=l;;){if(a=C(a.times(e),l,1),r=r.times(++c),A((s=o.plus(D(a,r,l,1))).d).slice(0,l)===A(o.d).slice(0,l)){for(i=d;i--;)o=C(o.times(o),l,1);if(null!=t)return h.precision=m,o;if(!(u<3&&O(o.d,l-n,p,u)))return C(o,h.precision=m,p,f=!0);h.precision=l+=10,r=a=s=new h(1),c=0,u++}o=s}}function q(e,t){var r,n,i,a,o,s,l,u,c,d,h,p=1,m=e,g=m.d,_=m.constructor,y=_.rounding,v=_.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new _(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(f=!1,c=v):c=t,_.precision=c+=10,n=(r=A(g)).charAt(0),!(15e14>Math.abs(a=m.e)))return u=R(_,c+2,v).times(a+""),m=q(new _(n+"."+r.slice(1)),c-10).plus(u),_.precision=v,null==t?C(m,v,y,f=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=A((m=m.times(e)).d)).charAt(0),p++;for(a=m.e,n>1?(m=new _("0."+r),a++):m=new _(n+"."+r.slice(1)),d=m,l=o=m=D(m.minus(1),m.plus(1),c,1),h=C(m.times(m),c,1),i=3;;){if(o=C(o.times(h),c,1),A((u=l.plus(D(o,new _(i),c,1))).d).slice(0,c)===A(l.d).slice(0,c)){if(l=l.times(2),0!==a&&(l=l.plus(R(_,c+2,v).times(a+""))),l=D(l,new _(p),c,1),null!=t)return _.precision=v,l;if(!O(l.d,c-10,y,s))return C(l,_.precision=v,y,f=!0);_.precision=c+=10,u=o=m=D(d.minus(1),d.plus(1),c,1),h=C(m.times(m),c,1),i=s=1}l=u,i+=2}}function H(e){return String(e.s*e.s/0)}function G(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),f&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function W(e,t,r,n,i){var a,o,s,l,u=e.precision,c=Math.ceil(u/7);for(f=!1,l=r.times(r),s=new e(n);;){if(o=D(s.times(l),new e(t++*t++),u,1),s=i?n.plus(o):n.minus(o),n=D(o.times(l),new e(t++*t++),u,1),void 0!==(o=s.plus(n)).d[c]){for(a=c;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=n,n=o,o=a}return f=!0,o.d.length=c+1,o}function K(e,t){for(var r=e;--t;)r*=e;return r}function Z(e,t){var r,n=t.s<0,i=M(e,e.precision,1),a=i.times(.5);if((t=t.abs()).lte(a))return s=n?4:1,t;if((r=t.divToInt(i)).isZero())s=n?3:2;else{if((t=t.minus(r.times(i))).lte(a))return s=U(r)?n?2:3:n?4:1,t;s=U(r)?n?1:4:n?3:2}return t.minus(i).abs()}function Q(e,t,r,n){var i,a,s,u,c,d,f,h,p,m=e.constructor,g=void 0!==r;if(g?(I(r,1,1e9),void 0===n?n=m.rounding:I(n,0,8)):(r=m.precision,n=m.rounding),e.isFinite()){for(s=(f=P(e)).indexOf("."),g?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,s>=0&&(f=f.replace(".",""),(p=new m(1)).e=f.length-s,p.d=N(P(p),10,i),p.e=p.d.length),a=c=(h=N(f,10,i)).length;0==h[--c];)h.pop();if(h[0]){if(s<0?a--:((e=new m(e)).d=h,e.e=a,h=(e=D(e,p,r,n,0,i)).d,a=e.e,d=o),s=h[r],u=i/2,d=d||void 0!==h[r+1],d=n<4?(void 0!==s||d)&&(0===n||n===(e.s<0?3:2)):s>u||s===u&&(4===n||d||6===n&&1&h[r-1]||n===(e.s<0?8:7)),h.length=r,d)for(;++h[--r]>i-1;)h[r]=0,r||(++a,h.unshift(1));for(c=h.length;!h[c-1];--c);for(s=0,f="";s<c;s++)f+=l.charAt(h[s]);if(g){if(c>1)if(16==t||8==t){for(s=16==t?4:3,--c;c%s;c++)f+="0";for(c=(h=N(f,i,t)).length;!h[c-1];--c);for(s=1,f="1.";s<c;s++)f+=l.charAt(h[s])}else f=f.charAt(0)+"."+f.slice(1);f=f+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)f="0"+f;f="0."+f}else if(++a>c)for(a-=c;a--;)f+="0";else a<c&&(f=f.slice(0,a)+"."+f.slice(a))}else f=g?"0p+0":"0";f=(16==t?"0x":2==t?"0b":8==t?"0o":"")+f}else f=H(e);return e.s<0?"-"+f:f}function $(e,t){if(e.length>t)return e.length=t,!0}function Y(e){return new this(e).abs()}function J(e){return new this(e).acos()}function X(e){return new this(e).acosh()}function ee(e,t){return new this(e).plus(t)}function et(e){return new this(e).asin()}function er(e){return new this(e).asinh()}function en(e){return new this(e).atan()}function ei(e){return new this(e).atanh()}function ea(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?M(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=M(this,a,1).times(.5)).s=e.s:t.s<0?(this.precision=a,this.rounding=1,r=this.atan(D(e,t,a,1)),t=M(this,a,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(D(e,t,a,1)):(r=M(this,a,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function eo(e){return new this(e).cbrt()}function es(e){return C(e=new this(e),e.e+1,2)}function el(e,t,r){return new this(e).clamp(t,r)}function eu(e){if(!e||"object"!=typeof e)throw Error(h+"Object expected");var t,r,n,i=!0===e.defaults,a=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],i&&(this[r]=d[r]),void 0!==(n=e[r]))if(y(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(p+r+": "+n);if(r="crypto",i&&(this[r]=d[r]),void 0!==(n=e[r]))if(!0===n||!1===n||0===n||1===n)if(n)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(g);else this[r]=!1;else throw Error(p+r+": "+n);return this}function ec(e){return new this(e).cos()}function ed(e){return new this(e).cosh()}function ef(e,t){return new this(e).div(t)}function eh(e){return new this(e).exp()}function ep(e){return C(e=new this(e),e.e+1,3)}function em(){var e,t,r=new this(0);for(e=0,f=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return f=!0,new this(1/0);r=t}return f=!0,r.sqrt()}function eg(e){return e instanceof eF||e&&e.toStringTag===_||!1}function e_(e){return new this(e).ln()}function ey(e,t){return new this(e).log(t)}function ev(e){return new this(e).log(2)}function eb(e){return new this(e).log(10)}function ew(){return V(this,arguments,-1)}function eE(){return V(this,arguments,1)}function ek(e,t){return new this(e).mod(t)}function eT(e,t){return new this(e).mul(t)}function eS(e,t){return new this(e).pow(t)}function ex(e){var t,r,n,i,a=0,o=new this(1),s=[];if(void 0===e?e=this.precision:I(e,1,1e9),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)(i=t[a])>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);a<n;)(i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=n/4}else throw Error(g);else for(;a<n;)s[a++]=1e7*Math.random()|0;for(n=s[--a],e%=7,n&&e&&(i=v(10,7-e),s[a]=(n/i|0)*i);0===s[a];a--)s.pop();if(a<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=7)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return o.e=r,o.d=s,o}function eA(e){return C(e=new this(e),e.e+1,this.rounding)}function eI(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eO(e){return new this(e).sin()}function eN(e){return new this(e).sinh()}function eD(e){return new this(e).sqrt()}function eC(e,t){return new this(e).sub(t)}function eP(){var e=0,t=arguments,r=new this(t[0]);for(f=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return f=!0,C(r,this.precision,this.rounding)}function eL(e){return new this(e).tan()}function eR(e){return new this(e).tanh()}function eM(e){return C(e=new this(e),e.e+1,1)}x[Symbol.for("nodejs.util.inspect.custom")]=x.toString,x[Symbol.toStringTag]="Decimal";var eF=x.constructor=function e(t){var r,n,i;function a(e){var t,r,n;if(!(this instanceof a))return new a(e);if(this.constructor=a,eg(e)){this.s=e.s,f?!e.d||e.e>a.maxE?(this.e=NaN,this.d=null):e.e<a.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(n=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;f?t>a.maxE?(this.e=NaN,this.d=null):t<a.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return G(this,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===r&&(e=e.slice(1)),this.s=1),k.test(e)?G(this,e):function(e,t){var r,n,i,a,o,s,l,u,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),k.test(t))return G(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(w.test(t))r=16,t=t.toLowerCase();else if(b.test(t))r=2;else if(E.test(t))r=8;else throw Error(p+t);for((a=t.search(/p/i))>0?(l=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),o=(a=t.indexOf("."))>=0,n=e.constructor,o&&(a=(s=(t=t.replace(".","")).length)-a,i=B(n,new n(r),a,2*a)),a=c=(u=N(t,r,1e7)).length-1;0===u[a];--a)u.pop();return a<0?new n(0*e.s):(e.e=L(u,c),e.d=u,f=!1,o&&(e=D(e,i,4*s)),l&&(e=e.times(54>Math.abs(l)?v(2,l):eF.pow(2,l))),f=!0,e)}(this,e);if("bigint"===n)return e<0?(e=-e,this.s=-1):this.s=1,G(this,e.toString());throw Error(p+e)}if(a.prototype=x,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=eu,a.clone=e,a.isDecimal=eg,a.abs=Y,a.acos=J,a.acosh=X,a.add=ee,a.asin=et,a.asinh=er,a.atan=en,a.atanh=ei,a.atan2=ea,a.cbrt=eo,a.ceil=es,a.clamp=el,a.cos=ec,a.cosh=ed,a.div=ef,a.exp=eh,a.floor=ep,a.hypot=em,a.ln=e_,a.log=ey,a.log10=eb,a.log2=ev,a.max=ew,a.min=eE,a.mod=ek,a.mul=eT,a.pow=eS,a.random=ex,a.round=eA,a.sign=eI,a.sin=eO,a.sinh=eN,a.sqrt=eD,a.sub=eC,a.sum=eP,a.tan=eL,a.tanh=eR,a.trunc=eM,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(d);u=new eF(u),c=new eF(c),new eF(10);var ej=new eF(0),eB=new eF(-0),eU=r(4902),eV=r(98149);function ez(e,t){if("function"==typeof e.repeat)return e.repeat(t);for(var r=Array(t),n=0;n<r.length;n++)r[n]=e;return r.join("")}function eq(e,t,r,n){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=n}function eH(e,t,r){for(var n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];eq(e,t,a,r[a])}}function eG(e,t,r){return eW(e,t,r)[r]}function eW(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=e.get(t);if(!i)throw TypeError("".concat(t," InternalSlot has not been initialized"));return r.reduce(function(e,t){return e[t]=i[t],e},Object.create(null))}function eK(e){return"literal"===e.type}function eZ(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r.value})}function eQ(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r})}function e$(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var eY=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic}),eJ=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic}),eX=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic}),e0=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic}),e1=(0,eV.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,(0,eU.__spreadArray)([void 0],t,!1)))},{strategy:eV.W.variadic});function e2(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function e5(e){if("number"==typeof e)return new eF(e);if(e$("bigint"!=typeof e&&"symbol"!=typeof e,"BigInt and Symbol are not supported",TypeError),void 0===e)return new eF(NaN);if(null===e||0===e)return ej;if(!0===e)return new eF(1);if("string"==typeof e)try{return new eF(e)}catch(e){return new eF(NaN)}e$("object"==typeof e,"object expected",TypeError);var t=t_(e,"number");return e$("object"!=typeof t,"object expected",TypeError),e5(t)}function e3(e){if(!e.isFinite()||e.abs().greaterThan(8.64*1e15))return new eF(NaN);var t=e5(e);if(t.isNaN()||t.isZero())return ej;if(t.isFinite())return t;var r=t.abs().floor();return t.isNegative()&&(r=r.negated()),r}function e4(e){if(null==e)throw TypeError("undefined/null cannot be converted to object");return Object(e)}function e6(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}function e9(e){return Array(e)}function e8(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function e7(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":void 0}function te(e,t){return e-Math.floor(e/t)*t}function tt(e){return Math.floor(e/864e5)}function tr(e){return te(tt(e)+4,7)}function tn(e){return Date.UTC(e,0)/864e5}function ti(e){return Date.UTC(e,0)}function ta(e){return new Date(e).getUTCFullYear()}function to(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function ts(e){return tt(e)-tn(ta(e))}function tl(e){return+(365!==to(ta(e)))}function tu(e){var t=ts(e),r=tl(e);if(t>=0&&t<31)return 0;if(t<59+r)return 1;if(t<90+r)return 2;if(t<120+r)return 3;if(t<151+r)return 4;if(t<181+r)return 5;if(t<212+r)return 6;if(t<243+r)return 7;if(t<273+r)return 8;if(t<304+r)return 9;if(t<334+r)return 10;if(t<365+r)return 11;throw Error("Invalid time")}function tc(e){var t=ts(e),r=tu(e),n=tl(e);if(0===r)return t+1;if(1===r)return t-30;if(2===r)return t-58-n;if(3===r)return t-89-n;if(4===r)return t-119-n;if(5===r)return t-150-n;if(6===r)return t-180-n;if(7===r)return t-211-n;if(8===r)return t-242-n;if(9===r)return t-272-n;if(10===r)return t-303-n;if(11===r)return t-333-n;throw Error("Invalid time")}function td(e){return te(Math.floor(e/36e5),24)}function tf(e){return te(Math.floor(e/6e4),60)}function th(e){return te(Math.floor(e/1e3),60)}function tp(e){return"function"==typeof e}function tm(e,t,r){if(!tp(e))return!1;if(null==r?void 0:r.boundTargetFunction)return t instanceof(null==r?void 0:r.boundTargetFunction);if("object"!=typeof t)return!1;var n=e.prototype;if("object"!=typeof n)throw TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,t)}function tg(e){return te(e,1e3)}function t_(e,t){if("object"==typeof e&&null!=e){var r=Symbol.toPrimitive in e?e[Symbol.toPrimitive]:void 0,n=void 0;if(void 0!==r){void 0===t?n="default":"string"===t?n="string":(e$("number"===t,'preferredType must be "string" or "number"'),n="number");var i=r.call(e,n);if("object"!=typeof i)return i;throw TypeError("Cannot convert exotic object to primitive.")}return void 0===t&&(t="number"),function(e,t){for(var r=0,n="string"===t?["toString","valueOf"]:["valueOf","toString"];r<n.length;r++){var i=e[n[r]];if(tp(i)){var a=i.call(e);if("object"!=typeof a)return a}}throw TypeError("Cannot convert object to primitive value")}(e,t)}return e}function ty(e){return void 0===e?Object.create(null):e4(e)}function tv(e,t,r,n){if(void 0===e)return n;var i=Number(e);if(isNaN(i)||i<t||i>r)throw RangeError("".concat(i," is outside of range [").concat(t,", ").concat(r,"]"));return Math.floor(i)}function tb(e,t,r,n,i){return tv(e[t],r,n,i)}function tw(e,t,r,n,i){if("object"!=typeof e)throw TypeError("Options must be an object");var a=e[t];if(void 0!==a){if("boolean"!==r&&"string"!==r)throw TypeError("invalid type");if("boolean"===r&&(a=!!a),"string"===r&&(a=e2(a)),void 0!==n&&!n.filter(function(e){return e==a}).length)throw RangeError("".concat(a," is not within ").concat(n.join(", ")));return a}return i}function tE(e){if(void 0===e)return Object.create(null);if("object"==typeof e)return e;throw TypeError("Options must be an object")}function tk(e,t,r,n,i,a){var o=e[t];if(void 0===o)return a;if(!0===o)return n;if(!1==!!o)return i;if("true"===(o=e2(o))||"false"===o)return a;if(-1===(r||[]).indexOf(o))throw RangeError("Invalid value ".concat(o));return o}var tT=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function tS(e){return e.slice(e.indexOf("-")+1)}var tx=tT.map(tS);function tA(e){return tx.indexOf(e)>-1}function tI(e,t){var r=t.zoneNamesFromData,n=t.uppercaseLinks,i=e.toUpperCase(),a=new Set,o=new Set;return r.map(function(e){return e.toUpperCase()}).forEach(function(e){return a.add(e)}),Object.keys(n).forEach(function(e){o.add(e.toUpperCase()),a.add(n[e].toUpperCase())}),a.has(i)||o.has(i)}var tO=/[^A-Z]/;function tN(e){return!(3!==(e=e.replace(/([a-z])/g,function(e,t){return t.toUpperCase()})).length||tO.test(e))}function tD(e){if(tA(e=e.replace(/([A-Z])/g,function(e,t){return t.toLowerCase()})))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var r=t[0],n=t[1];return!!tA(r)&&!!tA(n)}function tC(e,t,r,n){if(e.eq(t)||(e$(t.lessThan(e)&&e.lessThan(r),"x should be between r1 and r2 but x=".concat(e,", r1=").concat(t,", r2=").concat(r)),"zero"===n))return t;if("infinity"===n)return r;var i=e.minus(t),a=r.minus(e);return i.lessThan(a)?t:a.lessThan(i)?r:(e$(i.eq(a),"d1 should be equal to d2"),"half-zero"===n)?t:"half-infinity"===n?r:(e$("half-even"===n,"unsignedRoundingMode should be half-even"),t.div(r.minus(t)).mod(2).isZero())?t:r}var tP=new Set(["unit","exponentMinusSign","minusSign","plusSign","percentSign","exponentSeparator","percent","percentSign","currency","literal"]);function tL(e,t,r){for(var n=(0,r.getInternalSlots)(e),i=n.dataLocaleData.numbers.symbols[n.numberingSystem],a=new RegExp("s?[".concat(i.rangeSign,"]s?")),o=t.findIndex(function(e){return"literal"===e.type&&a.test(e.value)}),s=[],l=o-1;l>=0&&tP.has(t[l].type);l--)s.unshift(t[l]);if(Array.from(s.map(function(e){return e.value}).join("")).length>1){var u=Array.from(t);return u.splice(o-s.length,s.length),u}for(var c=[],l=o+1;l<t.length&&tP.has(t[l].type);l++)c.push(t[l]);if(Array.from(c.map(function(e){return e.value}).join("")).length>1){var u=Array.from(t);return u.splice(o+1,c.length),u}return t}function tR(e,t){var r=e.notation,n=e.dataLocaleData,i=e.numberingSystem;switch(r){case"standard":return 0;case"scientific":return t.toNumber();case"engineering":return t.div(3).floor().times(3).toNumber();default:e$("compact"===r,"Invalid notation");var a=e.compactDisplay,o=e.style,s=e.currencyDisplay,l=void 0;if("currency"===o&&"name"!==s)l=(n.numbers.currency[i]||n.numbers.currency[n.numbers.nu[0]]).short;else{var u=n.numbers.decimal[i]||n.numbers.decimal[n.numbers.nu[0]];l="long"===a?u.long:u.short}if(!l)return 0;var c=eF.pow(10,t).toString(),d=Object.keys(l);if(c<d[0])return 0;if(c>d[d.length-1])return d[d.length-1].length-1;var f=d.indexOf(c);if(-1===f)return 0;var h=d[f];if("0"===l[h].other)return 0;return h.length-l[h].other.match(/0+/)[0].length}}eF.set({toExpPos:100});var tM={ceil:"zero",floor:"infinity",expand:"infinity",trunc:"zero",halfCeil:"half-zero",halfFloor:"half-infinity",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"},tF={ceil:"infinity",floor:"zero",expand:"infinity",trunc:"zero",halfCeil:"half-infinity",halfFloor:"half-zero",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"};function tj(e,t){return t?tM[e]:tF[e]}function tB(e,t){return e.times(eF.pow(10,-t))}function tU(e,t,r,n,i){var a,o,s,l,u,c,d,f,h=(c=tB(u=e.times(eF.pow(10,r)).floor().div(n).floor().times(n),r),{n1:u,r1:c}),p=h.n1,m=h.r1,g=(f=tB(d=e.times(eF.pow(10,r)).ceil().div(n).ceil().times(n),r),{n2:d,r2:f}),_=g.n2,y=g.r2;if(tC(e,m,y,i).eq(m)?(a=p,o=m):(a=_,o=y),s=a.isZero()?"0":a.toString(),0!==r){var v=s.length;v<=r&&(s=ez("0",r-v+1)+s,v=r+1);var b=s.slice(0,v-r);s=b+"."+s.slice(s.length-r),l=b.length}else l=s.length;for(var w=r-t;w>0&&"0"===s[s.length-1];)s=s.slice(0,s.length-1),w--;return"."===s[s.length-1]&&(s=s.slice(0,s.length-1)),{formattedString:s,roundedNumber:o,integerDigitsCount:l,roundingMagnitude:-r}}function tV(e,t,r,n){var i,a,o,s;if(e.isZero())i=ez("0",r),a=0,o=ej;else{var l=function(e,t){for(var r=eF.pow(10,t),n=eF.pow(10,t-1),i=e.div(n).log(10).plus(t).minus(1).ceil();;){var a=e.div(eF.pow(10,i.minus(t).plus(1))).floor();if(a.lessThan(r)&&a.greaterThanOrEqualTo(n)){var o=a.times(eF.pow(10,i.minus(t).plus(1)));if(o.lessThanOrEqualTo(e))return{n1:a,e1:i,r1:o}}i=i.minus(1)}}(e,r),u=l.n1,c=l.e1,d=l.r1,f=function(e,t){for(var r=eF.pow(10,t),n=eF.pow(10,t-1),i=e.div(r).log(10).plus(t).minus(1).floor();;){var a=e.div(eF.pow(10,i.minus(t).plus(1))).ceil();if(a.lessThan(r)&&a.greaterThanOrEqualTo(n)){var o=a.times(eF.pow(10,i.minus(t).plus(1)));if(o.greaterThanOrEqualTo(e))return{n2:a,e2:i,r2:o}}i=i.plus(1)}}(e,r),h=f.n2,p=f.e2,m=f.r2,g=tC(e,d,m,n),_=void 0;g.eq(d)?(_=u,a=c.toNumber(),o=d):(_=h,a=p.toNumber(),o=m),i=_.toString()}if(a>=r-1?(i+=ez("0",a-r+1),s=a+1):a>=0?(i=i.slice(0,a+1)+"."+i.slice(i.length-(r-(a+1))),s=a+1):(e$(a<0,"e should be less than 0"),i="0."+ez("0",-a-1)+i,s=1),i.includes(".")&&r>t){for(var y=r-t;y>0&&"0"===i[i.length-1];)i=i.slice(0,i.length-1),y--;"."===i[i.length-1]&&(i=i.slice(0,i.length-1))}return{formattedString:i,roundedNumber:o,integerDigitsCount:s,roundingMagnitude:a}}function tz(e,t){var r,n,i=t;i.isZero()&&i.isNegative()?(r="negative",i=ej):(e$(i.isFinite(),"NumberFormatDigitInternalSlots value is not finite"),"negative"==(r=i.lessThan(0)?"negative":"positive")&&(i=i.negated()));var a=e.roundingType,o=tj(e.roundingMode,"negative"===r);switch(a){case"significantDigits":n=tV(i,e.minimumSignificantDigits,e.maximumSignificantDigits,o);break;case"fractionDigits":n=tU(i,e.minimumFractionDigits,e.maximumFractionDigits,e.roundingIncrement,o);break;default:var s=tV(i,e.minimumSignificantDigits,e.maximumSignificantDigits,o),l=tU(i,e.minimumFractionDigits,e.maximumFractionDigits,e.roundingIncrement,o);"morePrecision"===e.roundingType?n=s.roundingMagnitude<=l.roundingMagnitude?s:l:(e$("lessPrecision"===e.roundingType,"Invalid roundingType"),n=s.roundingMagnitude<=l.roundingMagnitude?l:s)}i=n.roundedNumber;var u=n.formattedString;if("stripIfInteger"===e.trailingZeroDisplay&&i.isInteger()){var c=u.indexOf(".");c>-1&&(u=u.slice(0,c))}var d=n.integerDigitsCount,f=e.minimumIntegerDigits;return d<f&&(u=ez("0",f-d)+u),"negative"===r&&(i=i.isZero()?eB:i.negated()),{roundedNumber:i,formattedString:u}}function tq(e,t){if(t.isZero())return[0,0];t.isNegative()&&(t=t.negated());var r=t.log(10).floor(),n=tR(e,r),i=tz(e,t=t.times(eF.pow(10,-n)));return i.roundedNumber.isZero()||i.roundedNumber.log(10).floor().eq(r.minus(n))?[n,r.toNumber()]:[tR(e,r.plus(1)),r.plus(1).toNumber()]}function tH(e,t){var r=t.currencyDigitsData;return e8(r,e)?r[e]:2}eF.set({toExpPos:100});var tG=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,tW={adlm:["\uD83A\uDD50","\uD83A\uDD51","\uD83A\uDD52","\uD83A\uDD53","\uD83A\uDD54","\uD83A\uDD55","\uD83A\uDD56","\uD83A\uDD57","\uD83A\uDD58","\uD83A\uDD59"],ahom:["\uD805\uDF30","\uD805\uDF31","\uD805\uDF32","\uD805\uDF33","\uD805\uDF34","\uD805\uDF35","\uD805\uDF36","\uD805\uDF37","\uD805\uDF38","\uD805\uDF39"],arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],bhks:["\uD807\uDC50","\uD807\uDC51","\uD807\uDC52","\uD807\uDC53","\uD807\uDC54","\uD807\uDC55","\uD807\uDC56","\uD807\uDC57","\uD807\uDC58","\uD807\uDC59"],brah:["\uD804\uDC66","\uD804\uDC67","\uD804\uDC68","\uD804\uDC69","\uD804\uDC6A","\uD804\uDC6B","\uD804\uDC6C","\uD804\uDC6D","\uD804\uDC6E","\uD804\uDC6F"],cakm:["\uD804\uDD36","\uD804\uDD37","\uD804\uDD38","\uD804\uDD39","\uD804\uDD3A","\uD804\uDD3B","\uD804\uDD3C","\uD804\uDD3D","\uD804\uDD3E","\uD804\uDD3F"],cham:["꩐","꩑","꩒","꩓","꩔","꩕","꩖","꩗","꩘","꩙"],deva:["०","१","२","३","४","५","६","७","८","९"],diak:["\uD806\uDD50","\uD806\uDD51","\uD806\uDD52","\uD806\uDD53","\uD806\uDD54","\uD806\uDD55","\uD806\uDD56","\uD806\uDD57","\uD806\uDD58","\uD806\uDD59"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gong:["\uD807\uDDA0","\uD807\uDDA1","\uD807\uDDA2","\uD807\uDDA3","\uD807\uDDA4","\uD807\uDDA5","\uD807\uDDA6","\uD807\uDDA7","\uD807\uDDA8","\uD807\uDDA9"],gonm:["\uD807\uDD50","\uD807\uDD51","\uD807\uDD52","\uD807\uDD53","\uD807\uDD54","\uD807\uDD55","\uD807\uDD56","\uD807\uDD57","\uD807\uDD58","\uD807\uDD59"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],hmng:["\uD81A\uDF50","\uD81A\uDF51","\uD81A\uDF52","\uD81A\uDF53","\uD81A\uDF54","\uD81A\uDF55","\uD81A\uDF56","\uD81A\uDF57","\uD81A\uDF58","\uD81A\uDF59"],hmnp:["\uD838\uDD40","\uD838\uDD41","\uD838\uDD42","\uD838\uDD43","\uD838\uDD44","\uD838\uDD45","\uD838\uDD46","\uD838\uDD47","\uD838\uDD48","\uD838\uDD49"],java:["꧐","꧑","꧒","꧓","꧔","꧕","꧖","꧗","꧘","꧙"],kali:["꤀","꤁","꤂","꤃","꤄","꤅","꤆","꤇","꤈","꤉"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],lana:["᪀","᪁","᪂","᪃","᪄","᪅","᪆","᪇","᪈","᪉"],lanatham:["᪐","᪑","᪒","᪓","᪔","᪕","᪖","᪗","᪘","᪙"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],lepc:["᪐","᪑","᪒","᪓","᪔","᪕","᪖","᪗","᪘","᪙"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mathbold:["\uD835\uDFCE","\uD835\uDFCF","\uD835\uDFD0","\uD835\uDFD1","\uD835\uDFD2","\uD835\uDFD3","\uD835\uDFD4","\uD835\uDFD5","\uD835\uDFD6","\uD835\uDFD7"],mathdbl:["\uD835\uDFD8","\uD835\uDFD9","\uD835\uDFDA","\uD835\uDFDB","\uD835\uDFDC","\uD835\uDFDD","\uD835\uDFDE","\uD835\uDFDF","\uD835\uDFE0","\uD835\uDFE1"],mathmono:["\uD835\uDFF6","\uD835\uDFF7","\uD835\uDFF8","\uD835\uDFF9","\uD835\uDFFA","\uD835\uDFFB","\uD835\uDFFC","\uD835\uDFFD","\uD835\uDFFE","\uD835\uDFFF"],mathsanb:["\uD835\uDFEC","\uD835\uDFED","\uD835\uDFEE","\uD835\uDFEF","\uD835\uDFF0","\uD835\uDFF1","\uD835\uDFF2","\uD835\uDFF3","\uD835\uDFF4","\uD835\uDFF5"],mathsans:["\uD835\uDFE2","\uD835\uDFE3","\uD835\uDFE4","\uD835\uDFE5","\uD835\uDFE6","\uD835\uDFE7","\uD835\uDFE8","\uD835\uDFE9","\uD835\uDFEA","\uD835\uDFEB"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],modi:["\uD805\uDE50","\uD805\uDE51","\uD805\uDE52","\uD805\uDE53","\uD805\uDE54","\uD805\uDE55","\uD805\uDE56","\uD805\uDE57","\uD805\uDE58","\uD805\uDE59"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mroo:["\uD81A\uDE60","\uD81A\uDE61","\uD81A\uDE62","\uD81A\uDE63","\uD81A\uDE64","\uD81A\uDE65","\uD81A\uDE66","\uD81A\uDE67","\uD81A\uDE68","\uD81A\uDE69"],mtei:["꯰","꯱","꯲","꯳","꯴","꯵","꯶","꯷","꯸","꯹"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],mymrshan:["႐","႑","႒","႓","႔","႕","႖","႗","႘","႙"],mymrtlng:["꧰","꧱","꧲","꧳","꧴","꧵","꧶","꧷","꧸","꧹"],newa:["\uD805\uDC50","\uD805\uDC51","\uD805\uDC52","\uD805\uDC53","\uD805\uDC54","\uD805\uDC55","\uD805\uDC56","\uD805\uDC57","\uD805\uDC58","\uD805\uDC59"],nkoo:["߀","߁","߂","߃","߄","߅","߆","߇","߈","߉"],olck:["᱐","᱑","᱒","᱓","᱔","᱕","᱖","᱗","᱘","᱙"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],osma:["\uD801\uDCA0","\uD801\uDCA1","\uD801\uDCA2","\uD801\uDCA3","\uD801\uDCA4","\uD801\uDCA5","\uD801\uDCA6","\uD801\uDCA7","\uD801\uDCA8","\uD801\uDCA9"],rohg:["\uD803\uDD30","\uD803\uDD31","\uD803\uDD32","\uD803\uDD33","\uD803\uDD34","\uD803\uDD35","\uD803\uDD36","\uD803\uDD37","\uD803\uDD38","\uD803\uDD39"],saur:["꣐","꣑","꣒","꣓","꣔","꣕","꣖","꣗","꣘","꣙"],segment:["\uD83E\uDFF0","\uD83E\uDFF1","\uD83E\uDFF2","\uD83E\uDFF3","\uD83E\uDFF4","\uD83E\uDFF5","\uD83E\uDFF6","\uD83E\uDFF7","\uD83E\uDFF8","\uD83E\uDFF9"],shrd:["\uD804\uDDD0","\uD804\uDDD1","\uD804\uDDD2","\uD804\uDDD3","\uD804\uDDD4","\uD804\uDDD5","\uD804\uDDD6","\uD804\uDDD7","\uD804\uDDD8","\uD804\uDDD9"],sind:["\uD804\uDEF0","\uD804\uDEF1","\uD804\uDEF2","\uD804\uDEF3","\uD804\uDEF4","\uD804\uDEF5","\uD804\uDEF6","\uD804\uDEF7","\uD804\uDEF8","\uD804\uDEF9"],sinh:["෦","෧","෨","෩","෪","෫","෬","෭","෮","෯"],sora:["\uD804\uDCF0","\uD804\uDCF1","\uD804\uDCF2","\uD804\uDCF3","\uD804\uDCF4","\uD804\uDCF5","\uD804\uDCF6","\uD804\uDCF7","\uD804\uDCF8","\uD804\uDCF9"],sund:["᮰","᮱","᮲","᮳","᮴","᮵","᮶","᮷","᮸","᮹"],takr:["\uD805\uDEC0","\uD805\uDEC1","\uD805\uDEC2","\uD805\uDEC3","\uD805\uDEC4","\uD805\uDEC5","\uD805\uDEC6","\uD805\uDEC7","\uD805\uDEC8","\uD805\uDEC9"],talu:["᧐","᧑","᧒","᧓","᧔","᧕","᧖","᧗","᧘","᧙"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"],tirh:["\uD805\uDCD0","\uD805\uDCD1","\uD805\uDCD2","\uD805\uDCD3","\uD805\uDCD4","\uD805\uDCD5","\uD805\uDCD6","\uD805\uDCD7","\uD805\uDCD8","\uD805\uDCD9"],vaii:["ᘠ","ᘡ","ᘢ","ᘣ","ᘤ","ᘥ","ᘦ","ᘧ","ᘨ","ᘩ"],wara:["\uD806\uDCE0","\uD806\uDCE1","\uD806\uDCE2","\uD806\uDCE3","\uD806\uDCE4","\uD806\uDCE5","\uD806\uDCE6","\uD806\uDCE7","\uD806\uDCE8","\uD806\uDCE9"],wcho:["\uD838\uDEF0","\uD838\uDEF1","\uD838\uDEF2","\uD838\uDEF3","\uD838\uDEF4","\uD838\uDEF5","\uD838\uDEF6","\uD838\uDEF7","\uD838\uDEF8","\uD838\uDEF9"]},tK=new RegExp("^".concat(tG.source)),tZ=new RegExp("".concat(tG.source,"$")),tQ=/[#0](?:[\.,][#0]+)*/g;function t$(e,t,r,n){var i,a,o,s=e.sign,l=e.exponent,u=e.magnitude,c=n.notation,d=n.style,f=n.numberingSystem,h=t.numbers.nu[0],p=null;if("compact"===c&&u&&(p=function(e,t,r,n,i,a,o){var s,l,u=e.roundedNumber,c=e.sign,d=String(Math.pow(10,e.magnitude)),f=r.numbers.nu[0];if("currency"===n&&"name"!==a){var h=r.numbers.currency,p=null==(s=(h[o]||h[f]).short)?void 0:s[d];if(!p)return null;l=tJ(t,u.toNumber(),p)}else{var h=r.numbers.decimal,m=(h[o]||h[f])[i][d];if(!m)return null;l=tJ(t,u.toNumber(),m)}return"0"===l?null:l=tY(l,c).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,r,t,d,n.compactDisplay,n.currencyDisplay,f)),"currency"===d&&"name"!==n.currencyDisplay){var m=t.currencies[n.currency];if(m)switch(n.currencyDisplay){case"code":a=n.currency;break;case"symbol":a=m.symbol;break;default:a=m.narrow}else a=n.currency}if(p)o=p;else if("decimal"===d||"unit"===d||"currency"===d&&"name"===n.currencyDisplay)o=tY((t.numbers.decimal[f]||t.numbers.decimal[h]).standard,s);else if("currency"===d){var g=t.numbers.currency[f]||t.numbers.currency[h];o=tY(g[n.currencySign],s)}else o=tY(t.numbers.percent[f]||t.numbers.percent[h],s);var _=tQ.exec(o)[0];if(o=o.replace(tQ,"{0}").replace(/'(.)'/g,"$1"),"currency"===d&&"name"!==n.currencyDisplay){var g=t.numbers.currency[f]||t.numbers.currency[h],y=g.currencySpacing.afterInsertBetween;y&&!tZ.test(a)&&(o=o.replace("\xa4{0}","\xa4".concat(y,"{0}")));var v=g.currencySpacing.beforeInsertBetween;v&&!tK.test(a)&&(o=o.replace("{0}\xa4","{0}".concat(v,"\xa4")))}for(var b=o.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),w=[],E=t.numbers.symbols[f]||t.numbers.symbols[h],k=0;k<b.length;k++){var T=b[k];if(T)switch(T){case"{0}":w.push.apply(w,function(e,t,r,n,i,a,o,s,l,u){var c,d,f=[],h=t.formattedString,p=t.roundedNumber;if(p.isNaN())return[{type:"nan",value:h}];if(!p.isFinite())return[{type:"infinity",value:h}];var m=tW[i];m&&(h=h.replace(/\d/g,function(e){return m[+e]||e}));var g=h.indexOf(".");g>0?(c=h.slice(0,g),d=h.slice(g+1)):c=h;var _=!1;if("always"===a?_=!0:"min2"===a?_=p.greaterThanOrEqualTo(1e4):("auto"===a||a)&&(_="compact"!==r||p.greaterThanOrEqualTo(1e4)),_){var y="currency"===s&&null!=e.currencyGroup?e.currencyGroup:e.group,v=[],b=o.split(".")[0].split(","),w=3,E=3;b.length>1&&(w=b[b.length-1].length),b.length>2&&(E=b[b.length-2].length);var k=c.length-w;if(k>0){for(v.push(c.slice(k,k+w)),k-=E;k>0;k-=E)v.push(c.slice(k,k+E));v.push(c.slice(0,k+E))}else v.push(c);for(;v.length>0;){var T=v.pop();f.push({type:"integer",value:T}),v.length>0&&f.push({type:"group",value:y})}}else f.push({type:"integer",value:c});if(void 0!==d){var S="currency"===s&&null!=e.currencyDecimal?e.currencyDecimal:e.decimal;f.push({type:"decimal",value:S},{type:"fraction",value:d})}if(("scientific"===r||"engineering"===r)&&p.isFinite()){f.push({type:"exponentSeparator",value:e.exponential}),n<0&&(f.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var x=tU(new eF(n),0,0,l,u);f.push({type:"exponentInteger",value:x.formattedString})}return f}(E,e,c,l,f,!p&&(null==(i=n.useGrouping)||i),_,d,n.roundingIncrement,tj(n.roundingMode,-1===s)));break;case"-":w.push({type:"minusSign",value:E.minusSign});break;case"+":w.push({type:"plusSign",value:E.plusSign});break;case"%":w.push({type:"percentSign",value:E.percentSign});break;case"\xa4":w.push({type:"currency",value:a});break;default:/^\{c:/.test(T)?w.push({type:"compact",value:T.substring(3,T.length-1)}):w.push({type:"literal",value:T})}}switch(d){case"currency":if("name"!==n.currencyDisplay)return w;var S=(t.numbers.currency[f]||t.numbers.currency[h]).unitPattern,x=void 0,A=t.currencies[n.currency];x=A?tJ(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),A.displayName):n.currency;for(var I=S.split(/(\{[01]\})/g),O=[],N=0;N<I.length;N++){var T=I[N];switch(T){case"{0}":O.push.apply(O,w);break;case"{1}":O.push({type:"currency",value:x});break;default:T&&O.push({type:"literal",value:T})}}return O;case"unit":var D=n.unit,C=n.unitDisplay,P=t.units.simple[D],S=void 0;if(P)S=tJ(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),t.units.simple[D][C]);else{var L=D.split("-per-"),R=L[0],M=L[1];P=t.units.simple[R];var F=tJ(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),t.units.simple[R][C]),j=t.units.simple[M].perUnit[C];if(j)S=j.replace("{0}",F);else{var B=t.units.compound.per[C],U=tJ(r,1,t.units.simple[M][C]);S=S=B.replace("{0}",F).replace("{1}",U.replace("{0}",""))}}for(var O=[],V=0,z=S.split(/(\s*\{0\}\s*)/);V<z.length;V++){var T=z[V],q=/^(\s*)\{0\}(\s*)$/.exec(T);q?(q[1]&&O.push({type:"literal",value:q[1]}),O.push.apply(O,w),q[2]&&O.push({type:"literal",value:q[2]})):T&&O.push({type:"unit",value:T})}return O;default:return w}}function tY(e,t){0>e.indexOf(";")&&(e="".concat(e,";-").concat(e));var r=e.split(";"),n=r[0],i=r[1];switch(t){case 0:return n;case -1:return i;default:return i.indexOf("-")>=0?i.replace(/-/g,"+"):"+".concat(n)}}function tJ(e,t,r){return r[e.select(t)]||r.other}function tX(e,t){var r=e.dataLocaleData.numbers.symbols[e.numberingSystem].approximatelySign;return t.push({type:"approximatelySign",value:r}),t}function t0(e,t){var r,n,i,a=t,o=0,s=e.pl,l=e.dataLocaleData,u=e.numberingSystem,c=l.numbers.symbols[u]||l.numbers.symbols[l.numbers.nu[0]],d=0;if(a.isNaN())n=c.nan;else if(a.isFinite()){a.isZero()||(e$(a.isFinite(),"Input must be a mathematical value"),"percent"==e.style&&(a=a.times(100)),d=(r=tq(e,a))[0],o=r[1],a=a.times(eF.pow(10,-d)));var f=tz(e,a);n=f.formattedString,a=f.roundedNumber}else n=c.infinity;var h=e.signDisplay;switch(h){case"never":i=0;break;case"auto":i=a.isPositive()||a.isNaN()?0:-1;break;case"always":i=a.isPositive()||a.isNaN()?1:-1;break;case"exceptZero":i=a.isZero()?0:a.isNegative()?-1:1;break;default:e$("negative"===h,'signDisplay must be "negative"'),i=a.isNegative()&&!a.isZero()?-1:0}return t$({roundedNumber:a,formattedString:n,exponent:d,magnitude:o,sign:i},e.dataLocaleData,s,e)}function t1(e,t){return t0(e,t).map(function(e){return e.value}).join("")}function t2(e,t,r,n){var i=n.getInternalSlots;e$(!t.isNaN()&&!r.isNaN(),"Input must be a number",RangeError);var a=i(e),o=t0(a,t),s=t0(a,r);if(t1(a,t)===t1(a,r)){var l=tX(a,o);return l.forEach(function(e){e.source="shared"}),l}var u=[];o.forEach(function(e){e.source="startRange",u.push(e)});var c=a.dataLocaleData.numbers.symbols[a.numberingSystem].rangeSign;return u.push({type:"literal",value:c,source:"shared"}),s.forEach(function(e){e.source="endRange",u.push(e)}),tL(e,u,{getInternalSlots:i})}function t5(e,t,r,n){return t2(e,t,r,{getInternalSlots:n.getInternalSlots}).map(function(e){return e.value}).join("")}function t3(e,t,r,n){return t2(e,t,r,{getInternalSlots:n.getInternalSlots}).map(function(e,t){return{type:e.type,value:e.value,source:e.source,result:t.toString()}})}function t4(e,t,r){for(var n=t0(r.getInternalSlots(e),t),i=e9(0),a=0;a<n.length;a++){var o=n[a];i.push({type:o.type,value:o.value})}return i}var t6=r(83792),t9=new Set([1,2,5,10,20,25,50,100,200,250,500,1e3,2e3,2500,5e3]);function t8(e,t,r,n,i){var a=tb(t,"minimumIntegerDigits",1,21,1),o=t.minimumFractionDigits,s=t.maximumFractionDigits,l=t.minimumSignificantDigits,u=t.maximumSignificantDigits;e.minimumIntegerDigits=a;var c=tb(t,"roundingIncrement",1,5e3,1);e$(t9.has(c),"Invalid rounding increment value: ".concat(c,".\nValid values are ").concat(Array.from(t9).join(", "),"."));var d=tw(t,"roundingMode","string",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],"halfExpand"),f=tw(t,"roundingPriority","string",["auto","morePrecision","lessPrecision"],"auto"),h=tw(t,"trailingZeroDisplay","string",["auto","stripIfInteger"],"auto");1!==c&&(n=r),e.roundingIncrement=c,e.roundingMode=d,e.trailingZeroDisplay=h;var p=void 0!==l||void 0!==u,m=void 0!==o||void 0!==s,g=!0,_=!0;if("auto"===f&&(g=p,(p||!m&&"compact"===i)&&(_=!1)),g&&(p?(e.minimumSignificantDigits=tv(l,1,21,1),e.maximumSignificantDigits=tv(u,e.minimumSignificantDigits,21,21)):(e.minimumSignificantDigits=1,e.maximumSignificantDigits=21)),_)if(m){if(o=tv(o,0,100,void 0),s=tv(s,0,100,void 0),void 0===o)e$(void 0!==s,"maximumFractionDigits must be defined"),o=Math.min(r,s);else if(void 0===s)s=Math.max(n,o);else if(o>s)throw RangeError("Invalid range, ".concat(o," > ").concat(s));e.minimumFractionDigits=o,e.maximumFractionDigits=s}else e.minimumFractionDigits=r,e.maximumFractionDigits=n;g||_?"morePrecision"===f?(e.roundingType="morePrecision",e.roundingPriority="morePrecision"):"lessPrecision"===f?(e.roundingType="lessPrecision",e.roundingPriority="lessPrecision"):(p?e.roundingType="significantDigits":e.roundingType="fractionDigits",e.roundingPriority="auto"):(e.minimumFractionDigits=0,e.maximumFractionDigits=0,e.minimumSignificantDigits=1,e.maximumSignificantDigits=2,e.roundingType="morePrecision",e.roundingPriority="morePrecision"),1!==c&&(e$("fractionDigits"===e.roundingType,"Invalid roundingType",TypeError),e$(e.maximumFractionDigits===e.minimumFractionDigits,"With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.",RangeError))}function t7(e,t){void 0===t&&(t=Object.create(null));var r=tw(t,"style","string",["decimal","percent","currency","unit"],"decimal");e.style=r;var n=tw(t,"currency","string",void 0,void 0);e$(void 0===n||tN(n),"Malformed currency code",RangeError),e$("currency"!==r||void 0!==n,"currency cannot be undefined",TypeError);var i=tw(t,"currencyDisplay","string",["code","symbol","narrowSymbol","name"],"symbol"),a=tw(t,"currencySign","string",["standard","accounting"],"standard"),o=tw(t,"unit","string",void 0,void 0);e$(void 0===o||tD(o),"Invalid unit argument for Intl.NumberFormat()",RangeError),e$("unit"!==r||void 0!==o,"unit cannot be undefined",TypeError);var s=tw(t,"unitDisplay","string",["short","narrow","long"],"short");"currency"===r&&(e.currency=n.toUpperCase(),e.currencyDisplay=i,e.currencySign=a),"unit"===r&&(e.unit=o,e.unitDisplay=s)}function re(e,t,r,i){var a,o,s=i.getInternalSlots,l=i.localeData,u=i.availableLocales,c=i.numberingSystemNames,d=i.getDefaultLocale,f=i.currencyDigitsData,h=n(t),p=ty(r),m=Object.create(null);m.localeMatcher=tw(p,"localeMatcher","string",["lookup","best fit"],"best fit");var g=tw(p,"numberingSystem","string",void 0,void 0);if(void 0!==g&&0>c.indexOf(g))throw RangeError("Invalid numberingSystems: ".concat(g));m.nu=g;var _=(0,t6.ResolveLocale)(Array.from(u),h,m,["nu"],l,d),y=l[_.dataLocale];e$(!!y,"Missing locale data for ".concat(_.dataLocale));var v=s(e);v.locale=_.locale,v.dataLocale=_.dataLocale,v.numberingSystem=_.nu,v.dataLocaleData=y,t7(v,p);var b=v.style,w=tw(p,"notation","string",["standard","scientific","engineering","compact"],"standard");if(v.notation=w,"currency"===b&&"standard"===w){var E=tH(v.currency,{currencyDigitsData:f});a=E,o=E}else a=0,o=3*("percent"!==b);t8(v,p,a,o,w);var k=tw(p,"compactDisplay","string",["short","long"],"short"),T="auto";return"compact"===w&&(v.compactDisplay=k,T="min2"),v.useGrouping=tk(p,"useGrouping",["min2","auto","always"],"always",!1,T),v.signDisplay=tw(p,"signDisplay","string",["auto","never","always","exceptZero","negative"],"auto"),e}function rt(e){for(var t=[],r=e.indexOf("{"),n=0,i=0,a=e.length;r<e.length&&r>-1;)e$((n=e.indexOf("}",r))>r,"Invalid pattern ".concat(e)),r>i&&t.push({type:"literal",value:e.substring(i,r)}),t.push({type:e.substring(r+1,n),value:void 0}),i=n+1,r=e.indexOf("{",i);return i<a&&t.push({type:"literal",value:e.substring(i,a)}),t}function rr(e,t,r){var n="best fit";return void 0!==r&&tw(r=e4(r),"localeMatcher","string",["lookup","best fit"],"best fit"),(0,t6.LookupSupportedLocales)(Array.from(e),t)}function rn(e){return"MISSING_LOCALE_DATA"===e.type}function ri(e){var t=t_(e,"number");if("bigint"==typeof t)return new eF(t);if(void 0===t)return new eF(NaN);if(!0===t)return new eF(1);if(!1===t||null===t)return new eF(0);try{return new eF(t)}catch(e){return new eF(NaN)}}(function(e){(0,eU.__extends)(function(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t},e)})(Error),function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(a||(a={}))},77328:(e,t,r)=>{e.exports=r(89836)},77742:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(14232),i=r(37154),a=r(7672);function o(){var e=n.useContext(a.ob);return(0,i.HM)(e),e}},78940:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(87810),("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)},79350:(e,t,r)=>{"use strict";r.d(t,{J1:()=>B});var n,i,a=r(4902);let o=/\r\n|[\n\r]/g;function s(e,t){let r=0,n=1;for(let i of e.body.matchAll(o)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function l(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?r:0,l=t.column+s,c=`${e.name}:${o}:${l}
9
9
  `,d=n.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<f.length;e+=80)t.push(f.slice(e,e+80));return c+u([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+u([[`${o-1} |`,d[i-1]],[`${o} |`,f],["|","^".padStart(l)],[`${o+1} |`,d[i+1]]])}function u(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class c extends Error{constructor(e,...t){var r,n,i;let{nodes:a,source:o,positions:l,path:u,originalError:f,extensions:h}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=f?f:void 0,this.nodes=d(Array.isArray(a)?a:a?[a]:void 0);let p=d(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==p||null==(n=p[0])?void 0:n.source,this.positions=null!=l?l:null==p?void 0:p.map(e=>e.start),this.locations=l&&o?l.map(e=>s(o,e)):null==p?void 0:p.map(e=>s(e.source,e.start));let m=!function(e){return"object"==typeof e&&null!==e}(null==f?void 0:f.extensions)||null==f?void 0:f.extensions;this.extensions=null!=(i=null!=h?h:m)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+l((t=r.loc).source,s(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+l(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function d(e){return void 0===e||0===e.length?void 0:e}function f(e,t,r){return new c(`Syntax Error: ${r}`,{source:e,positions:[t]})}var h=r(86158);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(n={}));var p=r(94587),m=r(47518),g=r(7743);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(i||(i={}));class _{constructor(e){let t=new h.ou(i.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==i.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,a=t;for(;a<n;){let t=r.charCodeAt(a);switch(t){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===r.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,a=t+1;for(;a<n;){let e=r.charCodeAt(a);if(10===e||13===e)break;if(y(e))++a;else if(v(r,a))a+=2;else break}return k(e,i.COMMENT,t,a,r.slice(t+1,a))}(e,a);case 33:return k(e,i.BANG,a,a+1);case 36:return k(e,i.DOLLAR,a,a+1);case 38:return k(e,i.AMP,a,a+1);case 40:return k(e,i.PAREN_L,a,a+1);case 41:return k(e,i.PAREN_R,a,a+1);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return k(e,i.SPREAD,a,a+3);break;case 58:return k(e,i.COLON,a,a+1);case 61:return k(e,i.EQUALS,a,a+1);case 64:return k(e,i.AT,a,a+1);case 91:return k(e,i.BRACKET_L,a,a+1);case 93:return k(e,i.BRACKET_R,a,a+1);case 123:return k(e,i.BRACE_L,a,a+1);case 124:return k(e,i.PIPE,a,a+1);case 125:return k(e,i.BRACE_R,a,a+1);case 34:if(34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2))return function(e,t){let r=e.source.body,n=r.length,a=e.lineStart,o=t+3,s=o,l="",u=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){l+=r.slice(s,o),u.push(l);let n=k(e,i.BLOCK_STRING,t,o+3,(0,m.OC)(u).join("\n"));return e.line+=u.length-1,e.lineStart=a,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){l+=r.slice(s,o),s=o+1,o+=4;continue}if(10===n||13===n){l+=r.slice(s,o),u.push(l),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,l="",s=o,a=o;continue}if(y(n))++o;else if(v(r,o))o+=2;else throw f(e.source,o,`Invalid character within String: ${E(e,o)}.`)}throw f(e.source,o,"Unterminated string.")}(e,a);return function(e,t){let r=e.source.body,n=r.length,a=t+1,o=a,s="";for(;a<n;){let n=r.charCodeAt(a);if(34===n)return s+=r.slice(o,a),k(e,i.STRING,t,a+1,s);if(92===n){s+=r.slice(o,a);let t=117===r.charCodeAt(a+1)?123===r.charCodeAt(a+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!y(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|x(e))<0)break}throw f(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,a):function(e,t){let r=e.source.body,n=S(r,t+2);if(y(n))return{value:String.fromCodePoint(n),size:6};if(b(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=S(r,t+8);if(w(e))return{value:String.fromCodePoint(n,e),size:12}}throw f(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,a):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,a);s+=t.value,a+=t.size,o=a;continue}if(10===n||13===n)break;if(y(n))++a;else if(v(r,a))a+=2;else throw f(e.source,a,`Invalid character within String: ${E(e,a)}.`)}throw f(e.source,a,"Unterminated string.")}(e,a)}if((0,g.yp)(t)||45===t)return function(e,t,r){let n=e.source.body,a=t,o=r,s=!1;if(45===o&&(o=n.charCodeAt(++a)),48===o){if(o=n.charCodeAt(++a),(0,g.yp)(o))throw f(e.source,a,`Invalid number, unexpected digit after 0: ${E(e,a)}.`)}else a=T(e,a,o),o=n.charCodeAt(a);if(46===o&&(s=!0,o=n.charCodeAt(++a),a=T(e,a,o),o=n.charCodeAt(a)),(69===o||101===o)&&(s=!0,(43===(o=n.charCodeAt(++a))||45===o)&&(o=n.charCodeAt(++a)),a=T(e,a,o),o=n.charCodeAt(a)),46===o||(0,g.un)(o))throw f(e.source,a,`Invalid number, expected digit but got: ${E(e,a)}.`);return k(e,s?i.FLOAT:i.INT,t,a,n.slice(t,a))}(e,a,t);if((0,g.un)(t))return function(e,t){let r=e.source.body,n=r.length,a=t+1;for(;a<n;){let e=r.charCodeAt(a);if((0,g.xr)(e))++a;else break}return k(e,i.NAME,t,a,r.slice(t,a))}(e,a);throw f(e.source,a,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":y(t)||v(r,a)?`Unexpected character: ${E(e,a)}.`:`Invalid character: ${E(e,a)}.`)}return k(e,i.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===i.COMMENT);return e}}function y(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function v(e,t){return b(e.charCodeAt(t))&&w(e.charCodeAt(t+1))}function b(e){return e>=55296&&e<=56319}function w(e){return e>=56320&&e<=57343}function E(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return i.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function k(e,t,r,n,i){let a=e.line,o=1+r-e.lineStart;return new h.ou(t,r,n,a,o,i)}function T(e,t,r){if(!(0,g.yp)(r))throw f(e.source,t,`Invalid number, expected digit but got: ${E(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,g.yp)(n.charCodeAt(i));)++i;return i}function S(e,t){return x(e.charCodeAt(t))<<12|x(e.charCodeAt(t+1))<<8|x(e.charCodeAt(t+2))<<4|x(e.charCodeAt(t+3))}function x(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var A=r(58287),I=r(77016);let O=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,I.N)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm.
10
10
 
11
11
  Ensure that there is only one instance of "graphql" in the node_modules