PageSourceSearch

https://static.lokalise.com/js/compiled/ui/4513.745b2aaf24ad7e93.js

js lokalise.com collected 2026-09-24 15:20:19 UTC 52,070 bytes, 2 lines download raw bytes

1"use strict";(globalThis.rspackChunklokalise_ui=globalThis.rspackChunklokalise_ui||[]).push([[4513],{76314(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var s="",a=void 0!==t[5];return t[4]&&(s+="@supports (".concat(t[4],") {")),t[2]&&(s+="@media ".concat(t[2]," {")),a&&(s+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),s+=e(t),a&&(s+="}"),t[2]&&(s+="}"),t[4]&&(s+="}"),s}).join("")},t.i=function(e,s,a,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var n={};if(a)for(var o=0;o<this.length;o++){var c=this[o][0];null!=c&&(n[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);a&&n[l[0]]||(void 0!==r&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=r),s&&(l[2]&&(l[1]="@media ".concat(l[2]," {").concat(l[1],"}")),l[2]=s),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},71354(e){e.exports=function(e){var t=e[1],s=e[3];if(!s)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(s))));return[t].concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a)," */")]).join("\n")}return[t].join("\n")}},85072(e){var t=[];function s(e){for(var s=-1,a=0;a<t.length;a++)if(t[a].identifier===e){s=a;break}return s}function a(e,a){for(var i={},r=[],n=0;n<e.length;n++){var o=e[n],c=a.base?o[0]+a.base:o[0],u=i[c]||0,l="".concat(c," ").concat(u);i[c]=u+1;var h=s(l),d={css:o[1],media:o[2],sourceMap:o[3],supports:o[4],layer:o[5]};if(-1!==h)t[h].references++,t[h].updater(d);else{var p=function(e,t){var s=t.domAPI(t);return s.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&s.update(e=t):s.remove()}}(d,a);a.byIndex=n,t.splice(n,0,{identifier:l,updater:p,references:1})}r.push(l)}return r}e.exports=function(e,i){var r=a(e=e||[],i=i||{});return function(e){e=e||[];for(var n=0;n<r.length;n++){var o=s(r[n]);t[o].references--}for(var c=a(e,i),u=0;u<r.length;u++){var l=s(r[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}r=c}}},77659(e){var t={};e.exports=function(e,s){var a=function(e){if(void 0===t[e]){var s=document.querySelector(e);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(e){s=null}t[e]=s}return t[e]}(e);if(!a)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(s)}},10540(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},55056(e,t,s){e.exports=function(e){var t=s.nc;t&&e.setAttribute("nonce",t)}},97825(e){e.exports=function(e){if("u"<typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(s){var a,i,r;a="",s.supports&&(a+="@supports (".concat(s.supports,") {")),s.media&&(a+="@media ".concat(s.media," {")),(i=void 0!==s.layer)&&(a+="@layer".concat(s.layer.length>0?" ".concat(s.layer):""," {")),a+=s.css,i&&(a+="}"),s.media&&(a+="}"),s.supports&&(a+="}"),(r=s.sourceMap)&&"u">typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleTagTransform(a,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},41113(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},45190(e,t,s){s.d(t,{Lb:()=>a,ZN:()=>i});let a={HTML_FILE:"HTML_FILE",DOCX_FILE:"DOCX_FILE",PPTX_FILE:"PPTX_FILE",XLSX_FILE:"XLSX_FILE",MARKDOWN_FILE:"MARKDOWN_FILE",IDML_FILE:"IDML_FILE",JSON_FILE:"JSON_FILE",YAML_FILE:"YAML_FILE",XCSTRINGS_FILE:"XCSTRINGS_FILE",PO_FILE:"PO_FILE",XLIFF_FILE:"XLIFF_FILE",TEXT:"TEXT",HTML:"HTML",JSON:"JSON",CONTENTFUL_RICH_TEXT:"CONTENTFUL_RICH_TEXT"},i={Owner:"owner",Admin:"admin",Biller:"biller",Member:"member",PortalMember:"portal_member"}},19751(e,t,s){s.d(t,{CY:()=>i,ne:()=>c});var a=s(85058);let i=a.KCZ([a.Ikc({authorization:a.YjP()}),a.Ikc({AUTHORIZATION:a.YjP()}),a.Ikc({Authorization:a.YjP()})]),r=a.KCZ([a.Ikc({"X-API-Token":a.YjP()}),a.Ikc({"X-Api-Token":a.YjP()}),a.Ikc({"x-api-token":a.YjP()}),a.Ikc({"X-API-TOKEN":a.YjP()}
1)]),n=a.KCZ([i,r]),o=a.KCZ([a.Ikc({"X-Lokalise-Plugin":a.YjP()}),a.Ikc({"x-lokalise-plugin":a.YjP()}),a.Ikc({"X-LOKALISE-PLUGIN":a.YjP()})]),c=n.and(o)},50228(e,t,s){s.d(t,{S:()=>l});var a=s(74848),i=s(34164),r=s(96540),n=s(98329),o=s(68048),c=s(79612),u=s(99262);let l=(0,r.forwardRef)(({children:e,checked:t,indeterminate:s,disabled:l,error:h,errorIds:d,className:p,...m},f)=>{let{isInvalid:g,errorMessages:y}=(0,o.A)(h),v=(0,r.useRef)(null),b=(0,c.S)(f,v);return(0,r.useEffect)(()=>{let e=v.current;e&&(e.indeterminate=!!s)},[s]),(0,a.jsxs)("div",{className:(0,i.$)(n.Ay.container,p),children:[(0,a.jsxs)("label",{className:n.Ay.checkboxLabel,children:[(0,a.jsx)("input",{className:n.Ay.checkboxInput,...m,ref:b,type:"checkbox",checked:t,"aria-checked":s?"mixed":t,disabled:l,"aria-invalid":g,"aria-errormessage":y.length>0?y.map(e=>e.id).join(" "):d}),e&&(0,a.jsx)("span",{className:n.Ay.labelText,children:e})]}),y.length>0&&(0,a.jsx)(u.Y,{children:y})]})});l.displayName="Checkbox"},98329(e,t,s){s.d(t,{Ay:()=>a});let a={container:"_container_1ljyz_1",checkboxLabel:"_checkboxLabel_1ljyz_9",labelText:"_labelText_1ljyz_24",checkboxInput:"_checkboxInput_1ljyz_30",multiCheckboxContainer:"_multiCheckboxContainer_1ljyz_135",multiCheckbox:"_multiCheckbox_1ljyz_135",multiCheckboxErrorContainer:"_multiCheckboxErrorContainer_1ljyz_144"}},16736(e,t,s){s.d(t,{GL:()=>u,Jv:()=>h,Om:()=>o,VK:()=>n,jC:()=>d,js:()=>p,wV:()=>l,xv:()=>c});var a=s(46040),i=s(19751),r=s(75364);let n=(0,a.Yy)({description:"Fetch data on a single AI profile",requestHeaderSchema:i.ne,requestPathParamsSchema:r.yx,pathResolver:({teamId:e,profileId:t})=>`/teams/${e}/ai-configurations/${t}`,successResponseBodySchema:r.tS,responseSchemasByStatusCode:{404:r.
1i8}}),o=(0,a.Yy)({description:"Fetch list of AI configurations for a given team",requestHeaderSchema:i.ne,requestPathParamsSchema:r.Ah,pathResolver:({teamId:e})=>`/teams/${e}/ai-configurations`,successResponseBodySchema:r.w7}),c=(0,a.mw)({description:"Create an AI configuration",method:"post",requestHeaderSchema:i.ne,requestBodySchema:r.rC,requestPathParamsSchema:r.Ah,pathResolver:({teamId:e})=>`/teams/${e}/ai-configurations`,successResponseBodySchema:r.Yl}),u=(0,a.nh)({description:"Delete an AI configuration",requestHeaderSchema:i.ne,requestPathParamsSchema:r.H3,pathResolver:({teamId:e,configurationId:t})=>`/teams/${e}/ai-configurations/${t}`,successResponseBodySchema:r.a8,responseSchemasByStatusCode:{204:r.a8,409:r.UO},isEmptyResponseExpected:!0}),l=(0,a.mw)({description:"Update an AI configuration",method:"put",requestHeaderSchema:i.ne,requestBodySchema:r.vf,requestPathParamsSchema:r.x5,pathResolver:({teamId:e,configurationId:t})=>`/teams/${e}/ai-configurations/${t}`,successResponseBodySchema:r.Yk}),h=(0,a.Yy)({description:"Fetch list of languages for a given team",requestHeaderSchema:i.ne,requestPathParamsSchema:r.u8,pathResolver:({teamId:e,base_language_id:t})=>t?`/teams/${e}/languages?base_language_id=${t}`:`/teams/${e}/languages`,successResponseBodySchema:r.Lc}),d=(0,a.mw)({description:"Assign projects to an AI configuration",method:"put",requestHeaderSchema:i.ne,requestBodySchema:r.Us,requestPathParamsSchema:r.MW,pathResolver:({teamId:e,configurationId:t})=>`/teams/${e}/ai-configurations/${t}/configured-projects`,successResponseBodySchema:r.l_}),p=(0,a.mw)({description:"Fetch list of keys available for languages",method:"post",requestHeaderSchema:i.ne,requestBodySchema:r.pN,requestPathParamsSchema:r.Zf,pathResolver:({teamId:e})=>`/teams/${e}/ai-configurations/source-summary`,successResponseBodySchema:r.Re})},83789(e,t,s){s.d(t,{d:()=>u});var a=s(46040),i=s(19751),r=s(85058);let n=r.Ikc({canView:r.zMY(),canEdit:r.zMY()}),o=r.Ikc({data:r.Ikc({staticProfile:n,predefinedProfile:n,customProfile:n})}),c=r.Ikc({teamId:r.YjP()}),u=(0,a.Yy)({description:"Fetch which aspects of AI profiles team has access to",requestHeaderSchema:i.ne,requestPathParamsSchema:c,pathResolver:({teamId:e})=>`/teams/${e}/ai-profiles/permissions`,successResponseBodySchema:o})},54820(e,t,s){s.d(t,{j:()=>p});var a=s(46040),i=s(19751),r=s(85058);let n=r.Ikc({teamId:r.YjP(),profileId:r.YjP(),evaluationId:r.YjP(),languageId:r.aig()}),o=r.Ikc({exactMatch:r.aig(),ter:r.aig(),meteor:r.aig().nullable(),chrf:r.aig().nullable()}),c=r.Ikc({translation:r.YjP(),metrics:o}),u=r.Ikc({sourceValue:r.YjP(),referenceTranslation:r.YjP(),customProfile:c.nullable(),baseProfile:c.nullable(),googleTranslate:c.nullable()}),l=r.Ikc({id:r.KCZ([r.aig(),r.YjP()]),iso:r.YjP(),name:r.YjP()}),h=r.Ikc({sourceLanguage:l,targetLanguage:l}),d=r.Ikc({meta:h,examples:r.YOg(u)}),p=(0,a.Yy)({description:"Get translation examples for an AI profile evaluation and target language",requestHeaderSchema:i.ne,requestPathParamsSchema:n,pathResolver:({teamId:e,profileId:t,evaluationId:s,languageId:a})=>`/teams/${e}/ai-profiles/${t}/evaluations/${s}/examples/${a}`,successResponseBodySchema:d})},86168(e,t,s){s.d(t,{o:()=>j});var a=s(46040),i=s(19751),r=s(85058),n=s(75364);let o=i.ne,c=r.Ikc({teamId:r.YjP(),profileId:r.OsD(),revision:r.OsD().optional()}),u=r.Ikc({id:r.OsD(),name:r.YjP()}),l=r.k5n(["perfect","degraded","failed"]),h=r.Ikc({id:r.aig(),name:r.YjP(),iso:r.YjP()}),d=r.Ikc({value:r.aig().nullable(),isBest:r.zMY().nullable()}),p=r.Ikc({status:l.optional(),excludedLangs:r.YOg(h).nullable().optional(),machineTranslationResult:d,evaluatedProfileResult:d,baseProfileResult:d}),m=r.Ikc({status:l,excludedLangs:r.YOg(h).nullable()}),f=r.Ikc({machineTranslation:m,evaluatedProfile:m,baseProfile:m}),g=r.Ikc({id:r.YjP(),uuid:r.OsD(),name:r.YjP()}),y=r.Ikc({profileName:r.YjP(),profileType:n.C_.nullable().optional(),projects:r.YOg(g).optional(),segmentCount:r.aig(),source:r.YjP(),ranAt:r.YjP(),activeRevision:u,revisions:r.YOg(u)}),v=r.Ikc({perfectMatch:p.nullable(),translationEditRate:p.nullable(),bleu:p.nullable(),meteor:p.nullable(),chrf:p.nullable(),aiScore:p.nullable(),pastAiScore:d.nullable(),engines:f.nullable().optional()}),b=r.Ikc({languageId:r.aig(),languageName:r.YjP(),results:v,engines:f.nullable().optional()}),I=r.Ikc({meta:y,combinedResults:v,resultsByLanguage:r.YOg(b)}),j=(0,a.Yy)({description:"Get evaluation results for an AI profile",requestHeaderSchema:o,requestPathParamsSchema:c,pathResolver:({teamId:e,profileId:t,revision:s})=>s?`/teams/${e}/ai-profiles/${t}/evaluations/${s}/results`:`/teams/${e}/ai-profiles/${t}/evaluations/results`,successResponseBodySchema:I})},8103(e,t,s){s.d(t,{H:()=>p});var a=s(46040),i=s(19751),r=s(85058);let n=r.Ikc({used:r.aig(),usageLimit:r.aig(),renewalDate:r.YjP()}),o=r.Ikc({teamId:r.YjP()}),c=r.k5n(["tags","reviewed"]),u=r.Ikc({projectId:r.OsD(),type:c,tag:r.YjP().optional()}),l=r.Ikc({profileId:r.YjP(),targetLanguages:r.YOg(r.aig()),dataSource:u.optional()}),h=r.Ikc({teamId:r.YjP()}),d=r.Ikc({});(0,a.Yy)({description:"Fetch data on evaluations usage for the given team",requestHeaderSchema:i.ne,requestPathParamsSchema:o,pathResolver:({teamId:e})=>`/teams/${e}/evaluations`,successResponseBodySchema:n});let p=(0,a.mw)({description:"Create a new evaluation against an AI profile",method:"post",requestHeaderSchema:i.ne,requestBodySchema:l,requestPathParamsSchema:h,pathResolver:({teamId:e})=>`/teams/${e}/evaluations`,successResponseBodySchema:d})},73603(e,t,s){s.d(t,{Xr:()=>c,kr:()=>
1o,pB:()=>n});var a=s(46040),i=s(19751),r=s(7742);let n=(0,a.Yy)({description:"Fetch translation quality score",requestHeaderSchema:i.ne,requestPathParamsSchema:r.qh,pathResolver:({projectId:e,keyId:t,languageId:s})=>`/projects/${e}/keys/${t}/languages/${s}/lqa-report`,successResponseBodySchema:r.sY}),o=(0,a.nh)({description:"Delete translation quality score",requestHeaderSchema:i.ne,requestPathParamsSchema:r.qh,pathResolver:({projectId:e,keyId:t,languageId:s})=>`/projects/${e}/keys/${t}/languages/${s}/lqa-report`,isEmptyResponseExpected:!0,successResponseBodySchema:r.D}),c=(0,a.mw)({description:"Create translation quality score",method:"put",requestHeaderSchema:i.ne,requestBodySchema:r.vu,requestPathParamsSchema:r.qh,pathResolver:({projectId:e,keyId:t,languageId:s})=>`/projects/${e}/keys/${t}/languages/${s}/lqa-report/actions/generate`,successResponseBodySchema:r.mw})},75364(e,t,s){s.d(t,{Ah:()=>I,C_:()=>l,H3:()=>Y,Lc:()=>x,MW:()=>E,Re:()=>D,UO:()=>S,Us:()=>w,Yk:()=>C,Yl:()=>P,Zf:()=>F,a8:()=>k,i8:()=>b,l_:()=>q,pN:()=>L,rC:()=>_,tS:()=>v,u8:()=>M,vf:()=>O,w7:()=>j,x5:()=>R,yx:()=>y});var a=s(85058);let i=a.k5n(["active","inactive"]),r=a.k5n(["claude","gpt","gemini"]).nullable().optional(),n=a.k5n(["in-progress","idle"]),o=a.Ikc({status:n,count:a.aig()}),c=a.Ikc({name:a.YjP(),id:a.YjP()}),u=a.Ikc({id:a.aig(),name:a.YjP(),iso:a.YjP()}),l=a.k5n(["tm","tags","reviewed"]),h=a.Ikc({type:l,source_languages:a.YOg(u).nullable(),target_languages:a.YOg(u),tags:a.YOg(a.YjP()),created_after:a.YjP().nullable(),project_uuids:a.YOg(a.YjP())}),d=a.Ikc({type:l,tags:a.YOg(a.YjP()).optional(),created_after:a.YjP().nullable().optional(),source_languages:a.YOg(a.aig()).optional(),target_languages:a.YOg(a.aig()).optional(),project_uuids:a.YOg(a.YjP()).optional()}),p=a.Ikc({id:a.YjP(),name:a.YjP(),is_default:a.zMY(),version:a.YjP(),status:i,projects:a.YOg(c),evaluations:a.lqM(o)}),m=p.extend({is_static:a.euz(!1),config:a.Ikc({integration:r,rag:h})}),f=p.extend({is_static:a.euz(!0),config:a.Ikc({integration:r,rag:a.Vxk().optional()})}),g=a.gMt("is_static",[m,f]),y=a.Ikc({teamId:a.YjP(),profileId:a.YjP()}),v=a.Ikc({data:g}),b=a.Ikc({message:a.YjP()}),I=a.Ikc({teamId:a.YjP()}),j=a.Ikc({data:a.YOg(g)}),_=a.Ikc({name:a.YjP(),is_default:a.zMY().optional(),is_static:a.zMY().optional(),config:a.Ikc({integration:r,rag:d}).optional()}),P=a.Ikc({data:g}),Y=a.Ikc({teamId:a.YjP(),configurationId:a.YjP()}),k=a.chJ(),S=a.Ikc({errorCode:a.euz("NoDefaultAIConfigurationError"),message:a.YjP()}),R=a.Ikc({teamId:a.YjP(),configurationId:a.YjP()}),O=a.Ikc({name:a.YjP(),is_default:a.zMY().optional(),config:a.Ikc({integration:r,rag:d.optional()})}),C=a.Ikc({data:g}),E=a.Ikc({teamId:a.YjP(),configurationId:a.YjP()}),w=a.Ikc({project_ids:a.YOg(a.YjP()),force:a.zMY().optional()}),q=a.Ikc({data:g}),M=a.Ikc({teamId:a.YjP(),base_language_id:a.aig().optional()}),x=a.Ikc({data:a.Ikc({base_languages:a.YOg(u),target_languages:a.YOg(u)})}),T=u.extend({count:a.aig()}),F=a.Ikc({teamId:a.YjP()}),L=a.Ikc({config:a.Ikc({integration:r,rag:a.Ikc({type:l,tags:a.YOg(a.YjP()),project_uuids:a.YOg(a.YjP())})}),source_language:a.aig(),target_languages:a.YOg(a.aig())}),D=a.Ikc({source_language:u.nullable(),target_languages:a.YOg(T)})},7742(e,t,s){s.d(t,{D:()=>c,Ot:()=>i,mw:()=>l,qh:()=>n,sY:()=>o,vu:()=>u});var a=s(85058);let i=a.k5n(["critical","major","minor","neutral"]),r=a.Ikc({category:a.YjP(),comment:a.YjP(),severity:i,penalty:a.aig()}),n=a.Ikc({projectId:a.YjP(),keyId:a.aig(),languageId:a.YjP()}),o=a.Ikc({score:a.aig(),hasMajorIssue:a.zMY(),hasCriticalIssue:a.zMY(),issues:a.YOg(r)}),c=a.chJ(),u=a.Ikc({segmentId:a.aig(),sourceLanguageId:a.aig()}),l=a.Ikc({score:a.aig(),hasCriticalIssue:a.zMY(),hasMajorIssue:a.zMY(),issues:a.YOg(r)})},32840(e,t,s){s.d(t,{co:()=>L});var a=s(46040),i=s(19751),r=s(85058);let n=r.Ikc({lang_iso:r.YjP(),custom_iso:r.YjP().optional()}),o=r.Ikc({language_id:r.aig(),language_iso:r.YjP(),progress:r.aig(),words_to_do:r.aig(),project_language_id:r.aig(),project_language_uuid:r.OsD()});r.Ikc({projectId:r.YjP()});let c=r.Ikc({lang_id:r.aig(),lang_iso:r.YjP(),lang_name:r.YjP(),is_rtl:r.zMY(),plural_forms:r.YOg(r.YjP().optional()),project_language_id:r.YjP(),project_language_uuid:r.OsD()});r.Ikc({project_id:r.YjP(),project_uuid:r.OsD(),languages:r.YOg(c)}),r.Ikc({projectId:r.YjP()}),r.Ikc({languages:r.YOg(r.Ikc({lang_iso:r.YjP(),custom_iso:r.YjP().optional(),custom_name:r.YjP().optional(),custom_plural_forms:r.YOg(r.YjP()).optional()}))}),r.Ikc({project_id:r.YjP(),project_uuid:r.OsD(),languages:r.YOg(c.partial({project_language_id:!0,project_language_uuid:!0})),errors:r.YOg(r.Ikc({message:r.YjP(),code:r.aig(),lang_iso:r.YjP()})).optional()}),r.Ikc({projectId:r.YjP()}),r.Ikc({langs:r.YOg(r.Ikc({lang_iso:r.YjP(),base_lang:r.zMY()}))}),r.Ikc({result:r.zMY()});let u=r.k5n(["glossary","create_branches"]),l=r.k5n(["tasks","upload","activity","download","glossary_edit","glossary_delete","settings","statistics","manage_keys","
1screenshots","contributors","branches_create","branches_merge","manage_languages","review","branches_main_modify","custom_status_modify"]);r.k5n(["settings","contributors","manage_languages"]);let h=r.KCZ([l,u]),d=r.KCZ([r.euz("project"),r.euz("team"),r.euz("user")]);r.Ikc({id:h,scope:d,title:r.YjP(),group:r.YjP(),description:r.YjP().nullable(),new_permission:r.zMY(),does_set_all_read_only_languages:r.zMY(),is_hidden:r.zMY()});let p=["localization_files","paged_documents","content_integration","marketing","marketing_integrations","marketing_portal","mcp"];r.k5n(p);let m=r.YjP().regex(/^[a-zA-Z0-9]{22}\.\d{8}$/),f=r.KCZ([m,r.OsD()]),g=i.ne,y=r.k5n(p),v=r.Ikc({id:r.aig(),name:r.YjP(),iso:r.YjP()}),b=r.k5n(["management"]),I=r.Ikc({disabled:r.zMY(),disabledReason:b.nullable()}),j=r.Ikc({per_platform_key_names:r.zMY(),reviewing:r.zMY(),auto_toggle_unverified:r.zMY(),offline_translation:r.zMY(),key_editing:r.zMY(),branching:r.zMY(),inline_machine_translations:r.zMY(),custom_translation_statuses:r.zMY(),custom_translation_statuses_allow_multiple:r.zMY(),segmentation:r.zMY(),contributor_preview_download_enabled:r.zMY()}),_=r.Ikc({not_reviewed:r.aig(),unverified:r.aig(),spelling_grammar:r.aig(),inconsistent_placeholders:r.aig(),inconsistent_html:r.aig(),different_number_of_urls:r.aig(),different_urls:r.aig(),leading_whitespace:r.aig(),trailing_whitespace:r.aig(),different_number_of_email_address:r.aig(),different_email_address:r.aig(),different_brackets:r.aig(),different_numbers:r.aig(),double_space:r.aig(),special_placeholder:r.aig(),unbalanced_brackets:r.aig()}),P=r.Ikc({progress_total:r.aig(),keys_total:r.aig(),team:r.aig(),base_words:r.aig(),qa_issues_total:r.aig(),qa_issues:_,languages:r.YOg(o)}),Y=r.Ikc({project_id:m,uuid:r.OsD(),project_type:y,name:r.YjP(),description:r.YjP(),created_at:r.YjP(),created_at_timestamp:r.aig(),created_by:r.aig(),created_by_email:r.YjP(),team_id:r.aig(),team_uuid:r.OsD(),base_language_id:r.aig(),base_language_iso:r.YjP(),base_project_language_id:r.aig(),base_project_language_uuid:r.OsD(),target_languages:r.YOg(v).optional(),settings:j.optional(),statistics:P.optional()}),k=r.Ikc({name:r.YjP(),description:r.YjP().optional(),team_id:r.YjP(),base_lang_iso:r.YjP(),languages:r.YOg(n),project_type:y,is_segmentation_enabled:r.zMY().optional()}),S=r.KCZ([r.euz(0),r.euz(1)]),R=r.Ikc({filter_type:y.optional(),filter_team_id:r.KCZ([r.aig(),r.OsD()]).optional(),filter_names:r.YjP().optional(),include_statistics:S.optional(),include_settings:S.optional(),limit:r.aig().optional(),page:r.aig().optional()}),O=r.Ikc({projects:r.YOg(Y)}),C=r.Ikc({projectId:f}),E=r.Ikc({name:r.YjP().min(1),description:r.YjP().optional()}),w=r.Ikc({id:h,scope:d,title:r.YjP(),group:r.YjP(),description:r.YjP().nullable(),dependentPermissions:r.YOg(h).optional(),doesSetAllReadOnlyLanguages:r.zMY(),newPermission:r.zMY().optional(),isHidden:r.zMY().optional(),availability:I.optional()}),q=r.Ikc({id:r.aig(),role:r.YjP(),permissions:r.YOg(h),description:r.YjP().nullable(),tag:r.YjP().nullable(),tagColor:r.YjP().nullable(),tagInfo:r.YjP().nullable(),isForMarketingProjects:r.zMY(),doesEnableAllReadOnlyLanguages:r.zMY(),availability:I.optional()}),M=r.Ikc({project_id:m,project_uuid:r.OsD(),permissions:r.YOg(w),roles:r.YOg(q)}),x=r.Ikc({project_id:m,project_uuid:r.OsD(),project_deleted:r.zMY()}),T=r.Ikc({teamId:r.YjP()}),F=r.Ikc({projects:r.YOg(Y)});(0,a.mw)({description:"Create a new project",requestHeaderSchema:g,method:"post",pathResolver:()=>"/projects",requestBodySchema:k,successResponseBodySchema:Y}),(0,a.Yy)({description:"List all projects",requestHeaderSchema:g,pathResolver:()=>"/projects",requestQuerySchema:R,successResponseBodySchema:O}),(0,a.Yy)({description:"Retrieve a project",requestHeaderSchema:g,requestPathParamsSchema:C,pathResolver:({projectId:e})=>`/projects/${e}`,successResponseBodySchema:Y}),(0,a.mw)({description:"Update a project",requestHeaderSchema:g,method:"put",requestPathParamsSchema:C,pathResolver:({projectId:e})=>`/projects/${e}`,requestBodySchema:E,successResponseBodySchema:Y}),(0,a.Yy)({description:"Get meta data about project permissions and roles",requestHeaderSchema:g,requestPathParamsSchema:C,pathResolver:({projectId:e})=>`/projects/${e}/permission-meta`,successResponseBodySchema:M}),(0,a.nh)({description:"Delete a project",requestHeaderSchema:g,requestPathParamsSchema:C,pathResolver:({projectId:e})=>`/projects/${e}`,successResponseBodySchema:x,isEmptyResponseExpected:!1});let L=(0,a.Yy)({description:"Fetch list of projects for a given team",requestHeaderSchema:g,requestPathParamsSchema:T,pathResolver:({teamId:e})=>`/teams/${e}/projects`,successResponseBodySchema:F})}
1,38623(e,t,s){s.d(t,{c:()=>l});var a=s(46040),i=s(19751),r=s(85058);let n=r.Ikc({value:r.YjP()}),o=r.Ikc({data:r.YOg(n)}),c=r.Ikc({teamId:r.YjP()}),u=r.Ikc({projectId:r.YjP().optional()}),l=(0,a.Yy)({description:"Fetch all tags used by a given team",requestHeaderSchema:i.ne,requestPathParamsSchema:c,requestQuerySchema:u,pathResolver:({teamId:e})=>`/teams/${e}/tags`,successResponseBodySchema:o})},58714(e,t,s){s.d(t,{d:()=>y,E:()=>v});var a=s(46040),i=s(19751),r=s(85058);let n=r.Ikc({limit:r.aig().optional(),page:r.aig().optional()});r.Ikc({limit:r.aig().optional(),offset:r.aig().optional()}),r.Ikc({limit:r.aig(),offset:r.aig(),total:r.aig()});var o=s(3174);let c=i.ne,u=r.KCZ([r.YjP().refine(e=>/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} \(.*\)$/.test(e),{message:"Invalid datetime format"}),o.w$({offset:!0}),o.w$()]),l=r.k5n(["users","keys","projects","mau","trafficBytes","ai_words","advancedSeats"]),h=r.g1P(l,r.aig()),d=r.g1P(l,r.aig()),p=r.Ikc({teams:r.YOg(r.Ikc({team_id:r.aig(),uuid:r.OsD().optional(),name:r.YjP(),plan:r.YjP(),logo_url:r.YjP().nullable(),role:r.YjP(),created_at:u,created_at_timestamp:r.aig(),quota_usage:h,quota_allowed:d}))}),m=r.Ikc({id:r.aig().nullable().optional(),users:r.aig(),keys:r.aig(),projects:r.aig(),mau:r.aig(),trafficBytes:r.aig(),aiWords:r.aig(),advancedSeats:r.aig().optional()}),f=r.Ikc({teamId:r.KCZ([r.OsD(),r.aig()])}),g=r.Ikc({team:r.Ikc({team_id:r.aig(),uuid:r.OsD().optional(),name:r.YjP(),plan_name:r.YjP(),created_at:u,created_at_timestamp:r.aig(),logo_url:r.YjP().nullable(),role:r.YjP(),quota_usage:m,quota_allowed:m,is_team_suspended:r.zMY(),is_end_of_trial_active:r.zMY(),trial_days_left:r.aig()})}),y=(0,a.Yy)({description:"List all teams available for the user",requestHeaderSchema:c,requestQuerySchema:n,pathResolver:()=>"/teams",successResponseBodySchema:p}),v=(0,a.Yy)({description:"Retrieve a team by ID",requestHeaderSchema:c,requestPathParamsSchema:f,pathResolver:({teamId:e})=>`/teams/${e}`,successResponseBodySchema:g})},78894(e,t,s){s.d(t,{d:()=>u});var a=s(46040),i=s(85058),r=s(19751);let n=i.Ikc({accessToken:i.YjP(),refreshToken:i.YjP()}),o=i.KCZ([i.Ikc({"X-Csrf-Token":i.YjP()}),i.Ikc({"X-CSRF-Token":i.YjP()}),i.Ikc({"x-csrf-token":i.YjP()}),i.Ikc({"X-CSRF-TOKEN":i.YjP()})]),c=i.KCZ([r.CY,o]),u=(0,a.mw)({description:"Takes a teamId and returns a JWT token access and refresh token for the user",method:"post",requestPathParamsSchema:i.Ikc({teamId:i.aig()}),pathResolver:e=>`/team/${e.teamId}/actions/get-user-token`,requestHeaderSchema:c,requestBodySchema:i.Vxk(),isEmptyResponseExpected:!0,successResponseBodySchema:n})},35153(e,t,s){s.d(t,{b:()=>l});var a=s(46040),i=s(85058);let r=i.Ikc({id:i.aig(),name:i.YjP()}),n=i.Ikc({project_id:i.YjP(),project_uuid:i.OsD(),translation_memories:i.YOg(r)});var o=s(78862);let c=i.Ikc({projectId:i.YjP()}),u=i.KCZ([i.Ikc({Authorization:i.YjP().min(1),"Content-Type":i.euz("application/json")}),i.Ikc({authorization:i.YjP().min(1),"content-type":i.euz("application/json")})]);i.Ikc({"x-pagination-total-count":o.ai(),"x-pagination-page-count":o.ai(),"x-pagination-limit":o.ai(),"x-pagination-page":o.ai(),"x-response-too-big":o.zM().nullish()}),i.Ikc({page:o.ai().min(1).default(100)});let l=(0,a.Yy)({pathResolver:e=>`/api2/projects/${e.projectId}/translation-memories`,description:"List translation memories for a project",requestPathParamsSchema:c,successResponseBodySchema:n,responseSchemasByStatusCode:{200:n},requestHeaderSchema:u})},75306(e,t,s){s.d(t,{D:()=>n});var a=s(45190),i=s(85058);let r=Object.values(a.ZN),n=i.k5n(r)},29658(e,t,s){s.d(t,{m:()=>r});var a=s(66500),i=s(24880),r=new class extends a.Q{#e;#t;#s;constructor(){super(),this.#s=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},36158(e,t,s){s.d(t,{$:()=>o,s:()=>n});var a=s(26261),i=s(71692),r=s(58904),n=class extends i.k{#a;#i;#r;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#a=[],this.state=e.state||o(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#a.includes(e)||(this.#a.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#a=this.#a.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#a.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){this.#r=(0,r.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#n({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#n({type:"pause"})},onContinue:()=>{this.#n({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,s=!this.#r.canStart();try{if(!t){this.#n({type:"pending",variables:e,isPaused:s}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#n({type:"pending",context:t,variables:e,isPaused:s})}let a=await this.#r.start();return await this.#i.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#i.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#n({type:"success",data:a}),a}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#n({type:"error",error:t})}}finally{this.#i.runNext(this)}}#n(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),a.j.batch(()=>{this.#a.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},26261(e,t,s){let a,i,r,n,o,c;s.d(t,{j:()=>u});var u=(a=[],i=0,r=e=>{e()},n=e=>{e()},o=e=>setTimeout(e,0),{batch:e=>{let t;i++;try{t=e()}finally{let e;--i||(e=a,a=[],e.length&&o(()=>{n(()=>{e.forEach(e=>{r(e)})})}))}return t},batchCalls:e=>(...t)=>{c(()=>{e(...t)})},schedule:c=e=>{i?a.push(e):o(()=>{r(e)})},setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}})},96035(e,t,s){s.d(t,{t:()=>r});var a=s(66500),i=s(24880),r=new class extends a.Q{#o=!0;#t;#s;constructor(){super(),this.#s=e=>{if(!i.S$&&window.addEventListener){let t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}
1setOnline(e){this.#o!==e&&(this.#o=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#o}}},79757(e,t,s){s.d(t,{X:()=>o,k:()=>c});var a=s(24880),i=s(26261),r=s(58904),n=s(71692),o=class extends n.k{#c;#u;#l;#h;#r;#d;#p;constructor(e){super(),this.#p=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#l=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#c=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,a=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#c,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){let s=(0,a.pl)(this.state.data,e,this.options);return this.#n({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#n({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(a.lQ).catch(a.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#c)}isActive(){return this.observers.some(e=>!1!==(0,a.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===a.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,a.j3)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#p?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#n({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,s.signal)})},n=()=>{let e=(0,a.ZM)(this.options,t),s={client:this.#h,queryKey:this.queryKey,meta:this.meta};return(i(s),this.#p=!1,this.options.persister)?this.options.persister(e,s,this):e(s)},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:n};i(o),this.options.behavior?.onFetch(o,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#n({type:"fetch",meta:o.fetchOptions?.meta});let c=e=>{(0,r.wm)(e)&&e.silent||this.#n({type:"error",error:e}),(0,r.wm)(e)||(this.#l.config.onError?.(e,this),this.#l.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#r=(0,r.II)({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:e=>{if(void 0===e)return void c(Error(`${this.queryHash} data is undefined`));try{this.setData(e)}catch(e){c(e);return}this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:c,onFail:(e,t)=>{this.#n({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#n({type:"pause"})},onContinue:()=>{this.#n({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#r.start()}#n(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...c(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let s=e.error;if((0,r.wm)(s)&&s.revert&&this.#u)return{...this.#u,fetchStatus:"idle"};
1return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.j.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function c(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,r.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},1651(e,t,s){s.d(t,{$:()=>u});var a=s(29658),i=s(26261),r=s(79757),n=s(66500),o=s(94658),c=s(24880),u=class extends n.Q{constructor(e,t){super(),this.options=t,this.#h=e,this.#m=null,this.#f=(0,o.T)(),this.options.experimental_prefetchInRender||this.#f.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#h;#g=void 0;#y=void 0;#v=void 0;#b;#I;#f;#m;#j;#_;#P;#Y;#k;#S;#R=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),l(this.#g,this.options)?this.#O():this.updateResult(),this.#C())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#w(),this.#g.removeObserver(this)}setOptions(e,t){let s=this.options,a=this.#g;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,c.Eh)(this.options.enabled,this.#g))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#q(),this.#g.setOptions(this.options),s._defaulted&&!(0,c.f8)(this.options,s)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});let i=this.hasListeners();i&&d(this.#g,a,this.options,s)&&this.#O(),this.updateResult(t),i&&(this.#g!==a||(0,c.Eh)(this.options.enabled,this.#g)!==(0,c.Eh)(s.enabled,this.#g)||(0,c.d2)(this.options.staleTime,this.#g)!==(0,c.d2)(s.staleTime,this.#g))&&this.#M();let r=this.#x();i&&(this.#g!==a||(0,c.Eh)(this.options.enabled,this.#g)!==(0,c.Eh)(s.enabled,this.#g)||r!==this.#S)&&this.#T(r)}getOptimisticResult(e){var t,s;let a=this.#h.getQueryCache().build(this.#h,e),i=this.createResult(a,e);return t=this,s=i,(0,c.f8)(t.getCurrentResult(),s)||(this.#v=i,this.#I=this.options,this.#b=this.#g.state),i}getCurrentResult(){return this.#v}trackResult(e,t){let s={};return Object.keys(e).forEach(a=>{Object.defineProperty(s,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),t?.(a),e[a])})}),s}trackProp(e){this.#R.add(e)}getCurrentQuery(){return this.#g}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#h.defaultQueryOptions(e),s=this.#h.getQueryCache().build(this.#h,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#O({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#v))}#O(e){this.#q();let t=this.#g.fetch(this.options,e);return e?.throwOnError||(t=t.catch(c.lQ)),t}#M(){this.#E();let e=(0,c.d2)(this.options.staleTime,this.#g);if(c.S$||this.#v.isStale||!(0,c.gn)(e))return;let t=(0,c.j3)(this.#v.dataUpdatedAt,e);this.#Y=setTimeout(()=>{this.#v.isStale||this.updateResult()},t+1)}#x(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#g):this.options.refetchInterval)??!1}#T(e){this.#w(),this.#S=e,!c.S$&&!1!==(0,c.Eh)(this.options.enabled,this.#g)&&(0,c.gn)(this.#S)&&0!==this.#S&&(this.#k=setInterval(()=>{(this.options.refetchIntervalInBackground||a.m.isFocused())&&this.#O()},this.#S))}#C(){this.#M(),this.#T(this.#x())}#E(){this.#Y&&(clearTimeout(this.#Y),this.#Y=void 0)}#w(){this.#k&&(clearInterval(this.#k),this.#k=void 0)}createResult(e,t){let s,a=this.#g,i=this.options,n=this.#v,u=this.#b,h=this.#I,m=e!==a?e.state:this.#y,{state:f}=e,g={...f},y=!1;if(t._optimisticResults){let s=this.hasListeners(),n=!s&&l(e,t),o=s&&d(e,a,t,i);(n||o)&&(g={...g,...(0,r.k)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:b,status:I}=g;if(t.select&&void 0!==g.data)if(n&&g.data===u?.data&&t.select===this.#j)s=this.#_;else try{this.#j=t.select,s=t.select(g.data),s=(0,c.pl)(n?.data,s,t),this.#_=s,this.#m=null}catch(e){this.#m=e}else s=g.data;if(void 0!==t.placeholderData&&void 0===s&&"pending"===I){let e;if(n?.isPlaceholderData&&t.placeholderData===h?.placeholderData)e=n.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#P?.state.data,this.#P):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#m=null}catch(e){this.#m=e}void 0!==e&&(I="success",s=(0,c.pl)(n?.data,e,t),y=!0)}this.#m&&(v=this.#m,s=this.#_,b=Date.now(),I="error");let j="fetching"===g.fetchStatus,_="pending"===I,P="error"===I,Y=_&&j,k=void 0!==s,S={status:I,fetchStatus:g.fetchStatus,isPending:_,isSuccess:"success"===I,isError:P,isInitialLoading:Y,isLoading:Y,data:s,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdate
1Count:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:j,isRefetching:j&&!_,isLoadingError:P&&!k,isPaused:"paused"===g.fetchStatus,isPlaceholderData:y,isRefetchError:P&&k,isStale:p(e,t),refetch:this.refetch,promise:this.#f};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===S.status?e.reject(S.error):void 0!==S.data&&e.resolve(S.data)},s=()=>{t(this.#f=S.promise=(0,o.T)())},i=this.#f;switch(i.status){case"pending":e.queryHash===a.queryHash&&t(i);break;case"fulfilled":("error"===S.status||S.data!==i.value)&&s();break;case"rejected":("error"!==S.status||S.error!==i.reason)&&s()}}return S}updateResult(e){let t=this.#v,s=this.createResult(this.#g,this.options);if(this.#b=this.#g.state,this.#I=this.options,void 0!==this.#b.data&&(this.#P=this.#g),(0,c.f8)(s,t))return;this.#v=s;let a={},i=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!this.#R.size)return!0;let a=new Set(s??this.#R);return this.options.throwOnError&&a.add("error"),Object.keys(this.#v).some(e=>this.#v[e]!==t[e]&&a.has(e))};e?.listeners!==!1&&i()&&(a.listeners=!0),this.#F({...a,...e})}#q(){let e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#g)return;let t=this.#g;this.#g=e,this.#y=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#C()}#F(e){i.j.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#v)}),this.#h.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}};function l(e,t){return!1!==(0,c.Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,s){if(!1!==(0,c.Eh)(t.enabled,e)){let a="function"==typeof s?s(e):s;return"always"===a||!1!==a&&p(e,t)}return!1}function d(e,t,s,a){return(e!==t||!1===(0,c.Eh)(a.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&p(e,s)}function p(e,t){return!1!==(0,c.Eh)(t.enabled,e)&&e.isStaleByTime((0,c.d2)(t.staleTime,e))}},71692(e,t,s){s.d(t,{k:()=>i});var a=s(24880),i=class{#L;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,a.gn)(this.gcTime)&&(this.#L=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(a.S$?1/0:3e5))}clearGcTimeout(){this.#L&&(clearTimeout(this.#L),this.#L=void 0)}}},58904(e,t,s){s.d(t,{II:()=>h,v_:()=>c,wm:()=>l});var a=s(29658),i=s(96035),r=s(94658),n=s(24880);function o(e){return Math.min(1e3*2**e,3e4)}function c(e){return(e??"online")!=="online"||i.t.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function l(e){return e instanceof u}function h(e){let t,s=!1,l=0,h=!1,d=(0,r.T)(),p=()=>a.m.isFocused()&&("always"===e.networkMode||i.t.isOnline())&&e.canRun(),m=()=>c(e.networkMode)&&e.canRun(),f=s=>{h||(h=!0,e.onSuccess?.(s),t?.(),d.resolve(s))},g=s=>{h||(h=!0,e.onError?.(s),t?.(),d.reject(s))},y=()=>new Promise(s=>{t=e=>{(h||p())&&s(e)},e.onPause?.()}).then(()=>{t=void 0,h||e.onContinue?.()}),v=()=>{let t;if(h)return;let a=0===l?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if(h)return;let a=e.retry??3*!n.S$,i=e.retryDelay??o,r="function"==typeof i?i(l,t):i,c=!0===a||"number"==typeof a&&l<a||"function"==typeof a&&a(l,t);s||!c?g(t):(l++,e.onFail?.(l,t),(0,n.yy)(r).then(()=>p()?void 0:y()).then(()=>{s?g(t):v()}))})};return{promise:d,cancel:t=>{h||(g(new u(t)),e.abort?.())},continue:()=>(t?.(),d),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:m,start:()=>(m()?v():y().then(v),d)}}},66500(e,t,s){s.d(t,{Q:()=>a});var a=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},94658(e,t,s){s.d(t,{T:()=>a});function a(){let e,t,s=new Promise((s,a)=>{e=s,t=a});function a(e){Object.assign(s,e),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=t=>{a({status:"fulfilled",value:t}),e(t)},s.reject=e=>{a({status:"rejected",reason:e}),t(e)},s}},24880(e,t,s){s.d(t,{Cp:()=>m,EN:()=>p,Eh:()=>u,F$:()=>d,MK:()=>l,S$:()=>a,ZM:()=>Y,ZZ:()=>_,Zw:()=>r,d2:()=>c,f8:()=>f,gn:()=>n,hT:()=>P,j3:()=>o,lQ:()=>i,nJ:()=>h,pl:()=>I,y9:()=>j,yy:()=>b});var a="u"<typeof window||"Deno"in globalThis;function i(){}function r(e,t){return"function"==typeof e?e(t):e}function n(e){return"number"==typeof e&&e>=0&&e!==1/0}function o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:s="all",exact:a,fetchStatus:i,predicate:r,queryKey:n,stale:o}=e;if(n){if(a){if(t.queryHash!==d(n,t.options))return!1}else if(!m(t.queryKey,n))return!1}if("all"!==s){let e=t.isActive();if("active"===s&&!e||"inactive"===s&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!r||!!r(t))}function h(e,t){let{exact:s,status:a,predicate:i,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(s){if(p(t.options.mutationKey)!==p(r))return!1}else if(!m(t.options.mutationKey,r))return!1}return(!a||t.state.status===a)&&(!i||!!i(t))}function d(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,s)=>(e[s]=t[s],e),{}):t)}function m(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(s=>!m(e[s],t[s]))}function f(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let s in e)if(e[s]!==t[s])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!v(e))return!1;let t=e.constructor;if(void 0===t)return!0;let s=t.prototype;return!!v(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return new Promise(t=>{setTimeout(t,e)})}function I(e,t,s){return"function"==typeof s.structuralSharing?s.structuralSharing(e,t):!1!==s.structuralSharing?function e(t,s){if(t===s)return t;let a=g(t)&&g(s);if(a||y(t)&&y(s)){let i=a?t:Object.keys(t),r=i.length,n=a?s:Object.keys(s),o=n.length,c=a?[]:{},u=0;for(let r=0;r<o;r++){let o=a?r:n[r];(!a&&i.includes(o)||a)&&void 0===t[o]&&void 0===s[o]?(c[o]=void 0,u++):(c[o]=e(t[o],s[o]),c[o]===t[o]&&void 0!==t[o]&&u++)}return r===o&&u===r?t:c}return s}(e,t):t}function j(e,t,s=0){let a=[...e,t];return s&&a.length>s?a.slice(1):a}function _(e,t,s=0){let a=[t,...e];return s&&a.length>s?a.slice(0,-1):a}var P=Symbol();function Y(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==P?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},97665(e,t,s){s.d(t,{Ht:()=>
1o,jE:()=>n});var a=s(96540),i=s(74848),r=a.createContext(void 0),n=e=>{let t=a.useContext(r);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},o=({client:e,children:t})=>(a.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(r.Provider,{value:e,children:t}))},22366(e,t,s){let a;s.d(t,{t:()=>d});var i=s(96540),r=s(26261),n=s(24880),o=s(97665);s(74848);var c=i.createContext((a=!1,{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a})),u=s(54362),l=i.createContext(!1);l.Provider;var h=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function d(e,t,s){let a,d=(0,o.jE)(s),p=i.useContext(l),m=i.useContext(c),f=d.defaultQueryOptions(e);d.getDefaultOptions().queries?._experimental_beforeQuery?.(f),f._optimisticResults=p?"isRestoring":"optimistic",a=f.staleTime,f.suspense&&(f.staleTime="function"==typeof a?(...e)=>Math.max(a(...e),1e3):Math.max(a??1e3,1e3),"number"==typeof f.gcTime&&(f.gcTime=Math.max(f.gcTime,1e3))),(f.suspense||f.throwOnError||f.experimental_prefetchInRender)&&!m.isReset()&&(f.retryOnMount=!1),i.useEffect(()=>{m.clearReset()},[m]);let g=!d.getQueryCache().get(f.queryHash),[y]=i.useState(()=>new t(d,f)),v=y.getOptimisticResult(f),b=!p&&!1!==e.subscribed;if(i.useSyncExternalStore(i.useCallback(e=>{let t=b?y.subscribe(r.j.batchCalls(e)):u.l;return y.updateResult(),t},[y,b]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),i.useEffect(()=>{y.setOptions(f,{listeners:!1})},[f,y]),f?.suspense&&v.isPending)throw h(f,y,m);if((({result:e,errorResetBoundary:t,throwOnError:s,query:a,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(i&&void 0===e.data||(0,u.G)(s,[e.error,a])))({result:v,errorResetBoundary:m,throwOnError:f.throwOnError,query:d.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw v.error;if(d.getDefaultOptions().queries?._experimental_afterQuery?.(f,v),f.experimental_prefetchInRender&&!n.S$&&v.isLoading&&v.isFetching&&!p){let e=g?h(f,y,m):d.getQueryCache().get(f.queryHash)?.promise;e?.catch(u.l).finally(()=>{y.updateResult()})}return f.notifyOnChangeProps?v:y.trackResult(v)}},53234(e,t,s){s.d(t,{n:()=>h});var a=s(96540),i=s(36158),r=s(26261),n=s(66500),o=s(24880),c=class extends n.Q{#h;#v=void 0;#D;#Q;constructor(e,t){super(),this.#h=e,this.setOptions(t),this.bindMethods(),this.#A()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#h.defaultMutationOptions(e),(0,o.f8)(this.options,t)||this.#h.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#D,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.EN)(t.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():this.#D?.state.status==="pending"&&this.#D.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#D?.removeObserver(this)}onMutationUpdate(e){this.#A(),this.#F(e)}getCurrentResult(){return this.#v}reset(){this.#D?.removeObserver(this),this.#D=void 0,this.#A(),this.#F()}mutate(e,t){return this.#Q=t,this.#D?.removeObserver(this),this.#D=this.#h.getMutationCache().build(this.#h,this.options),this.#D.addObserver(this),this.#D.execute(e)}#A(){let e=this.#D?.state??(0,i.$)();this.#v={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#F(e){r.j.batch(()=>{if(this.#Q&&this.hasListeners()){let t=this.#v.variables,s=this.#v.context;e?.type==="success"?(this.#Q.onSuccess?.(e.data,t,s),this.#Q.onSettled?.(e.data,null,t,s)):e?.type==="error"&&(this.#Q.onError?.(e.error,t,s),this.#Q.onSettled?.(void 0,e.error,t,s))}this.listeners.forEach(e=>{e(this.#v)})})}},u=s(97665),l=s(54362);function h(e,t){let s=(0,u.jE)(t),[i]=a.useState(()=>new c(s,e));a.useEffect(()=>{i.setOptions(e)},[i,e]);let n=a.useSyncExternalStore(a.useCallback(e=>i.subscribe(r.j.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=a.useCallback((e,t)=>{i.mutate(e,t).catch(l.l)},[i]);if(n.error&&(0,l.G)(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:o,mutateAsync:n.mutate}}},97286(e,t,s){s.d(t,{I:()=>r});var a=s(1651),i=s(22366);function r(e,t){return(0,i.t)(e,a.$,t)}},54362(e,t,s){function a(e,t){return"function"==typeof e?e(...t):!!e}function i(){}s.d(t,{G:()=>a,l:()=>i})},78862(e,t,s){s.d(t,{ai:()=>r,p6:()=>o,zM:()=>n});var a=s(20638),i=s(85058);function r(e){return a.qG(i.rSt,e)}function n(e){return a.dN(i.WFD,e)}function o(e){return a.B4(i.aPP,e)}
1},3174(e,t,s){s.d(t,{kB:()=>o,p6:()=>n,w$:()=>r});var a=s(20638),i=s(85058);function r(e){return a.G1(i.You,e)}function n(e){return a.db(i.Brp,e)}function o(e){return a.Kn(i.WV4,e)}}}]);
2//# sourceMappingURL=4513.745b2aaf24ad7e93.js.map

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