/*! For license information please see main.7265ac11.js.LICENSE.txt */ (()=>{var e={96872:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(47313);const r=n.p+"static/media/LOUIE.d8359c59c43487254c7f009b41d826cd.svg"},87889:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(47313);const r=n.p+"static/media/billy.13851f20c70b0aec230f9464ee7c76b1.svg"},48077:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(47313);const r=n.p+"static/media/billy_payment.d99aa1eb27f82e2977c6353bf400bd20.svg"},28441:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(47313);const r=n.p+"static/media/luie-payment.660b985e22cd41a511663df3c803dfb3.svg"},88942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(47313);const r=n.p+"static/media/rabbit_login.6e80eac37c8056ac48baa9574bb9cf45.svg"},54838:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(47313);const r=n.p+"static/media/rudi.ea0993a5579c90eedaf453e0a5702b51.svg"},6060:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});const r=(0,n(47313).createContext)({state:{},setState:()=>{}})},66579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(47313);var r=n(56997),a=n(46417);const o=function(){const{is_horiz:e}=(0,r.$)(),t=e?"100vh":"60vh",n="\u05d8\u05d5\u05e2\u05df".split("").map(((e,t)=>(0,a.jsx)("span",{className:"text-char",children:e},t)));return(0,a.jsx)("div",{style:{width:"100%",height:t},children:(0,a.jsx)("div",{className:"loading-container",children:(0,a.jsxs)("span",{className:"title-42 loading_title",children:[n,(0,a.jsxs)("span",{className:"loading_dots",children:[(0,a.jsx)("span",{className:"loading_dot"}),(0,a.jsx)("span",{className:"loading_dot"}),(0,a.jsx)("span",{className:"loading_dot"})]})]})})})}},38821:(e,t,n)=>{"use strict";n.d(t,{L:()=>l,X:()=>i});const r={apiKey:"AIzaSyB0psMD8-I3b2Owbj2AakWJTvrZ64kYbU4",authDomain:"kalefappfirebase.firebaseapp.com",projectId:"kalefappfirebase",storageBucket:"kalefappfirebase.appspot.com",messagingSenderId:"64418063848",appId:"1:64418063848:web:bf5a08cb84360d845e305d",measurementId:"G-2C99RG58TV"};let a=null;const o=()=>a||(a=(async()=>{try{const[{initializeApp:e},{getAnalytics:t,logEvent:a}]=await Promise.all([Promise.all([n.e(904),n.e(421)]).then(n.bind(n,90421)),Promise.all([n.e(904),n.e(431)]).then(n.bind(n,25431))]);e(r);const o=t();return e=>a(o,e)}catch(e){return console.log("no analytics"),null}})(),a),l=()=>{const e=window.requestIdleCallback;e?e((()=>{o()}),{timeout:5e3}):window.setTimeout((()=>{o()}),2e3)},i=(e,t)=>{const n=(t?`${t}_`:"")+e;console.log(n),o().then((e=>null===e||void 0===e?void 0:e(n)))}},63484:(e,t,n)=>{"use strict";n.d(t,{b:()=>a,t:()=>r});const r={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_AUTH_DOMAIN:"kalefappfirebase.firebaseapp.com",REACT_APP_FIREBASE_KEY:"AIzaSyB0psMD8-I3b2Owbj2AakWJTvrZ64kYbU4",REACT_APP_GOOGLE_ID:"899260512547-4trgb6e9ps1koft5aq7enn1mkg5upons.apps.googleusercontent.com",REACT_APP_ID:"1:64418063848:web:bf5a08cb84360d845e305d",REACT_APP_MEASUREMENT_ID:"G-2C99RG58TV",REACT_APP_MESSAGING_SENDER_ID:"64418063848",REACT_APP_PROJECT_ID:"kalefappfirebase",REACT_APP_STORAGE_BUCKET:"kalefappfirebase.appspot.com"}.REACT_APP_API_BASE||"https://kalef-app-server-eu-3pgqmuawoq-oa.a.run.app/api/v1/",a=async()=>{const{osName:e,mobileVendor:t,mobileModel:r}=await n.e(862).then(n.bind(n,34862));return`${e}_${t}_${r}`}},87317:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=async e=>{const{url:t,method:n="GET",data:r,headers:a}=e,o={method:n,headers:{...a}};let l;void 0!==r&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(r));try{l=await fetch(t,o)}catch(u){throw new Error(`Network Error: ${String(u)}`)}const i=await(async e=>{const t=await e.text();if(!t)return"";try{return JSON.parse(t)}catch{return t}})(l);if(!l.ok){const e=new Error(`Request failed with status code ${l.status}`);throw e.response={status:l.status,data:i},e}return{data:i,status:l.status,headers:l.headers}},a={request:r,get:function(e){return r({...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},url:e,method:"GET"})},post:function(e,t){return r({...arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},url:e,method:"POST",data:t})}}},49504:(e,t,n)=>{"use strict";n.d(t,{Eo:()=>y,Hu:()=>b,JW:()=>d,Mw:()=>k,Nh:()=>v,S6:()=>l,VT:()=>i,V_:()=>g,ZY:()=>w,dW:()=>u,hO:()=>m,lG:()=>p,q5:()=>s,x$:()=>c,xX:()=>f,xz:()=>h});var r=n(87317),a=n(63484),o=n(41181);const l=async(e,t)=>{try{const n=await r.Z.post(a.t+"addDevice",{email:e,device:await(0,a.b)(),headers:{Accept:"application/json"}});t(n.data.res?"success":"fail")}catch(n){t("error")}},i=async(e,t,n)=>{try{n((await r.Z.post(a.t+"loginEmailPassword",{email:e,password:t,headers:{Accept:"application/json"}})).data.res)}catch(o){n("error")}},u=async(e,t)=>{try{t((await r.Z.post(a.t+"EmailPasswordReset",{email:e,headers:{Accept:"application/json"}})).data.res)}catch(n){t("error")}},s=(e,t)=>{const n={...e.courses};for(const l in n){var r;const t=e.courses[l],n=[],a=null!==(r=o.m[l])&&void 0!==r?r:0;for(let e=0;e{var r;n0,address:a}},c=async(e,t,n,o)=>{try{await r.Z.post(a.t+"uploadClasses",{token:e,classes:t,course:n,headers:{Accept:"application/json"}})}catch(l){o(l)}},d=async(e,t,n,o,l)=>{try{await r.Z.post(a.t+"uploadClassesAndImg",{token:e,classes:t,img:n,course:o,headers:{Accept:"application/json"}})}catch(i){l(i)}},f=async(e,t,n,o,l)=>{try{await r.Z.post(a.t+"uploadMoreTasksAndImg",{token:e,more_tasks:t,img:n,course:o,headers:{Accept:"application/json"}})}catch(i){l(i)}},p=async(e,t,n,o,l)=>{try{await r.Z.post(a.t+"uploadSimpleValue",{token:e,value_name:t,value:n,course:o,headers:{Accept:"application/json"}})}catch(i){l(i)}},h=async(e,t,n,o,l)=>{try{await r.Z.post(a.t+"uploadaAddress",{token:e,address:t,course:n,headers:{Accept:"application/json"}}),o()}catch(i){l(i)}},m=async(e,t,n)=>{try{await r.Z.post(a.t+"deleteFolderImg",{token:e,img_id:t,headers:{Accept:"application/json"}})}catch(o){n(o)}},y=async(e,t,n,o)=>{try{n((await r.Z.post(a.t+"downloadFolderImg",{token:e,img_id:t,headers:{Accept:"application/json"}})).data.img)}catch(l){o(l),n("")}},g=async(e,t)=>{try{t((await r.Z.request({data:{token:e},url:a.t+"getUserState",method:"POST"})).data)}catch(n){t(void 0)}},v=async(e,t)=>{try{t((await r.Z.request({data:{email:e},url:a.t+"getUserToken",method:"POST"})).data.token)}catch(n){t(void 0)}},b=async(e,t,n,o)=>{try{o((await r.Z.request({data:{email:e,item:t,on_sale:n},url:a.t+"getPaymentURL",method:"POST"})).data.url)}catch(l){o(void 0)}},w=async(e,t,n,o)=>{try{await r.Z.post(a.t+"uploadLead",{name:e,email:t,phone:n,type:o,headers:{Accept:"application/json"}})}catch(l){console.error(l)}},k=async(e,t)=>{try{await r.Z.post(a.t+"clientErrorLog",{log:e,id:t,headers:{Accept:"application/json"}})}catch(n){console.error(n)}}},20150:(e,t,n)=>{"use strict";n.d(t,{$w:()=>i,CI:()=>m,GN:()=>o.GN,H_:()=>y,K4:()=>u,V5:()=>p,WB:()=>v,WT:()=>l,Xx:()=>r.X,Yb:()=>g,i2:()=>d,kC:()=>f,ko:()=>b,nn:()=>c,oH:()=>w,ri:()=>s,s2:()=>k,uX:()=>h});var r=n(38821),a=n(76387),o=n(64908);const l=["\u05d0","\u05d1","\u05d2","\u05d3","\u05d4","\u05d5","\u05d6","\u05d7","\u05d8","\u05d9","\u05db","\u05dc","\u05de","\u05e0","\u05e1","\u05e2","\u05e4","\u05e6","\u05e7","\u05e8","\u05e9","\u05ea"],i=["10","9","8","7","6","5","4","3","2","1"],u=["20","19","18","17","16","15","14","13","12","11","10","9","8","7","6","5","4","3","2","1"],s=["1","2","3","4","5","6","7","8","9","10"],c=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20"],d=["20","18","16","14","12","10","8","6","4","2"],f=e=>"mobile"===e?"1em":"tablet"===e?"1.25em":"1.5em",p=()=>{(0,r.X)("roy_facebook_click"),window.open("https://www.facebook.com/roy.geckt")},h=()=>{(0,r.X)("roy_instagram_click"),window.open("https://www.instagram.com/roygeckt/")},m=()=>{(0,r.X)("roy_tiktok_click"),window.open("https://www.tiktok.com/@roy_geckt")},y=()=>{(0,r.X)("whatsapp_click");window.open("https://api.whatsapp.com/send?phone=972585577191&app_absent=0")},g=()=>{(0,r.X)("mail_click"),window.open(`mailto:${a["contact.mail"]}?subject=${encodeURIComponent(a["contact.mailSubject"])||""}`)},v=()=>{localStorage.removeItem("ib_token"),localStorage.removeItem("ib_picture"),localStorage.removeItem("ib_name"),localStorage.removeItem("ib_email")},b=()=>!!document.referrer.includes("facebook")||!!document.referrer.includes("instagram"),w=e=>String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),k=e=>{const t=document.getElementById(e);t&&t.scrollIntoView()}},30191:(e,t,n)=>{"use strict";n.d(t,{UG:()=>d,W3:()=>p,_S:()=>i,rB:()=>c});var r=n(49504);let a=0;const o=new Set;let l="";const i=e=>{l=e},u=()=>{var e,t;const n=null!==(e=(t=window).matchMedia)&&void 0!==e&&e.call(t,"(orientation: landscape)").matches?"landscape":"portrait";return`${window.innerWidth}x${window.innerHeight} ${n}`},s=e=>{if(e instanceof Error)return`${e.name}: ${e.message}`;if("string"===typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}},c=e=>{const t=e instanceof Error?`${e.name} ${e.message}`:String(e);return/ChunkLoadError|Loading chunk \d+ failed|Failed to fetch dynamically imported module/i.test(t)},d=(e,t,n)=>{try{if(a>=8)return;const i=`${e}:${s(t).slice(0,200)}`;if(o.has(i))return;const c=(e=>{var t;const n=s(e);if(!(e instanceof Error))return n;const r=(null!==(t=e.stack)&&void 0!==t?t:"").slice(0,600);return r?`${n} @ ${r}`:n})(t);o.add(i),a+=1;const d=`[${e}] ${c}${n?` | ${n}`:""} | ${[`route=${window.location.pathname}`,`vp=${u()}`,l?`course=${l}`:"",`dpr=${window.devicePixelRatio}`,`ua=${navigator.userAgent}`].filter(Boolean).join(" | ")}`.slice(0,1200);console.error("reported:",d),(0,r.Mw)(d,(()=>{try{var e;return null!==(e=localStorage.getItem("ib_token"))&&void 0!==e?e:"anon"}catch{return"anon"}})())}catch{}};let f=!1;const p=()=>{f||(f=!0,window.addEventListener("error",(e=>{var t,n;(e.error||e.message)&&d(c(null!==(t=e.error)&&void 0!==t?t:e.message)?"chunk":"window",null!==(n=e.error)&&void 0!==n?n:e.message)})),window.addEventListener("unhandledrejection",(e=>{d(c(e.reason)?"chunk":"promise",e.reason)})))}},64908:(e,t,n)=>{"use strict";n.d(t,{GN:()=>m,Jh:()=>f,p0:()=>a});var r=n(47313);const a=e=>{try{const t=navigator.audioSession;t&&(t.type=e)}catch{}};let o;const l=new Map,i=new Map,u=()=>{if(void 0!==o)return o;const e=window.AudioContext||window.webkitAudioContext;if(!e)return o=null,o;try{o=new e}catch{return o=null,o}return a("playback"),(e=>{const t=()=>{"running"!==e.state&&e.resume().catch((()=>{}))};for(const n of["pointerdown","pointerup","touchend","keydown","click"])document.addEventListener(n,t,{capture:!0,passive:!0})})(o),o},s=e=>{let t=e.length;for(let r=0;r=.01){t=e;break}}if(t>=e.length)return 0;const n=Math.round(.005*e.sampleRate);return Math.max(0,t-n)/e.sampleRate},c=async(e,t)=>{try{const n=await fetch(t);if(!n.ok)throw new Error(`sound ${t}: ${n.status}`);const r=await((e,t)=>new Promise(((n,r)=>{const a=e.decodeAudioData(t,n,r);a&&"function"===typeof a.catch&&a.catch((()=>{}))})))(e,await n.arrayBuffer());l.set(t,{buffer:r,offset:s(r)})}catch{}finally{i.delete(t)}},d=e=>{const t=u();if(t)for(const n of e)!n||l.has(n)||i.has(n)||i.set(n,c(t,n))};function f(e){const t=e.filter(Boolean).join("\n");r.useEffect((()=>{t&&d(t.split("\n"))}),[t])}const p=(e,t,n,r)=>{const a=e.createBufferSource();a.buffer=t.buffer;const o=e.createGain();o.gain.value=n,a.connect(o),o.connect(e.destination),a.onended=()=>{a.disconnect(),o.disconnect(),r&&r()},a.start(0,t.offset)},h=(e,t,n)=>{const r=new Audio(e);r.volume=t,n&&(r.onended=n);const a=r.play();a&&"function"===typeof a.catch&&a.catch((()=>{}))},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if(!e)return;const r=u();if(r){const a=l.get(e);if(a&&"running"===r.state)return void p(r,a,t,n);a?r.resume().catch((()=>{})):d([e])}h(e,t,n)}},56997:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var r=n(66367);function a(){const e=(0,r.useMediaQuery)({query:"(max-width: 768px)"}),t=(0,r.useMediaQuery)({query:"(max-width: 1200px)"}),n=(0,r.useMediaQuery)({query:"(min-height: 800px)"}),a=(0,r.useMediaQuery)({query:"(orientation: landscape)"}),o=()=>e?"mobile":t?"tablet":"desktop",l=(0,r.useMediaQuery)({query:"(max-width: 418px)"}),i=(0,r.useMediaQuery)({query:"(max-width: 1100px)"});return{is_horiz:a,isSmallHeader:l,hide_header_middle:i,getMQid:o,render_float_anim:n,get_grid_list_cols:()=>{const e=o();return"mobile"===e?a?2:1:"tablet"===e?2:4},get_grid_list_width:()=>{const e=o();return"mobile"===e?"100%":"75%"},get_modal_width:()=>{const e=o();return"mobile"===e||"tablet"===e?a?.5:.9:1},should_turn_screen:()=>window.innerWidth!==window.innerHeight&&(!a&&"desktop"!==o()),get_action_btn_zoom:()=>{const e=o();let t=1.25;return"mobile"==e&&(t=.6),"tablet"==e&&(t=.8),t}}}},41181:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r={heb1:9,heb2:4,math1:4}},92955:(e,t,n)=>{"use strict";n.d(t,{At:()=>S,DU:()=>w,LX:()=>b,Pc:()=>g,ZP:()=>x,l2:()=>v,wi:()=>k});var r=n(47313),a=n(6060),o=n(66579),l=n(49504),i=n(20150),u=n(38821),s=n(30191),c=n(54838),d=n(87889),f=n(96872),p=n(88942),h=n(48077),m=n(28441),y=n(46417);const g=["math1","heb1","heb2"],v={heb1_heb2_math1:{price:529,name:"\u05db\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d1\u05d0\u05ea\u05e8!"},heb1_math1:{price:429,name:"\u05e6\u05de\u05d3 \u05d7\u05de\u05d3 \u05d7\u05d5\u05d1\u05d4 \u05dc-\u05d0\u05f3"},heb1:{price:329,name:"\u05e7\u05d5\u05e8\u05e1 \u05d4\u05d0\u05d5\u05ea\u05d9\u05d5\u05ea \u05d5\u05d4\u05e6\u05dc\u05d9\u05dc\u05d9\u05dd"},heb2:{price:329,name:"\u05e7\u05d5\u05e8\u05e1 \u05d4\u05db\u05e8\u05ea \u05d4\u05d0\u05d5\u05ea\u05d9\u05d5\u05ea"},math1:{price:329,name:"\u05e7\u05d5\u05e8\u05e1 \u05d7\u05e9\u05d1\u05d5\u05df \u05d5\u05de\u05e1\u05e4\u05e8\u05d9\u05dd"},on_sale:{price:197,name:"\u05e7\u05d5\u05e8\u05e1 \u05e0\u05d5\u05e1\u05e3 \u05d1\u05d4\u05e0\u05d7\u05d4"}},b={math1:"\u05e1\u05d9\u05e4\u05d5\u05e8 \u05d4\u05de\u05e1\u05e4\u05e8\u05d9\u05dd",heb1:"\u05e1\u05d9\u05e4\u05d5\u05e8 \u05d4\u05d0\u05d5\u05ea\u05d9\u05d5\u05ea \u05d5\u05d4\u05e6\u05dc\u05d9\u05dc\u05d9\u05dd",heb2:"\u05e1\u05d9\u05e4\u05d5\u05e8 \u05d4\u05db\u05e8\u05ea \u05d4\u05d0\u05d5\u05ea\u05d9\u05d5\u05ea","":""},w={math1:d.Z,heb1:c.Z,heb2:f.Z},k={math1:h.Z,heb1:p.Z,heb2:m.Z},S={courses:{},address:{name:"",last_name:"",city:"",street:""},course_key:"",subscribed:!1,needSync:!0,dur_login:!1,paymentStatus:"close_modal",payment_is_on_sale:!1,openLoginModal:!1,cameraOpen:!1,adressStatus:"close_modal",curr_game_idx:-1,curr_game_group_idx:-1,locked_classes:Array(8).fill({locked:!0,taskIndex:0})},x=e=>{const[t,n]=(0,r.useState)(JSON.parse(JSON.stringify(S))),c=e=>{if(!e)return(0,i.Xx)("sync_state_no_user_data"),(0,i.WB)(),void n({...t,needSync:!1});if(Object.keys(e).length){const r=(0,l.q5)(e,t);n({...t,...r,needSync:!1})}else(0,i.Xx)("sync_state_no_email"),(0,i.WB)(),n({...t,needSync:!1})};r.useEffect((()=>{(0,s._S)(t.course_key)}),[t.course_key]),r.useEffect((()=>{if((0,u.L)(),!t.needSync)return;if(t.dur_login)return;const e=localStorage.getItem("ib_token");if(!e)return(0,i.WB)(),void n({...t,needSync:!1});(0,l.V_)(e,c)}),[]);return(0,y.jsx)(a.I.Provider,{value:{state:t,setState:n},children:t.needSync?(0,y.jsx)(o.Z,{}):e.children})}},12840:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>i,rg:()=>o});var r=n(47313);const a=(0,r.createContext)(null);function o(e){let{clientId:t,nonce:n,onScriptLoadSuccess:o,onScriptLoadError:l,children:i}=e;const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:a}=e,[o,l]=(0,r.useState)(!1),i=(0,r.useRef)(n);i.current=n;const u=(0,r.useRef)(a);return u.current=a,(0,r.useEffect)((()=>{const e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.nonce=t,e.onload=()=>{var e;l(!0),null===(e=i.current)||void 0===e||e.call(i)},e.onerror=()=>{var e;l(!1),null===(e=u.current)||void 0===e||e.call(u)},document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[t]),o}({nonce:n,onScriptLoadSuccess:o,onScriptLoadError:l}),s=(0,r.useMemo)((()=>({clientId:t,scriptLoadedSuccessfully:u})),[t,u]);return r.createElement(a.Provider,{value:s},i)}function l(){const e=(0,r.useContext)(a);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function i(e){let{flow:t="implicit",scope:n="",onSuccess:a,onError:o,onNonOAuthError:i,overrideScope:u,state:s,...c}=e;const{clientId:d,scriptLoadedSuccessfully:f}=l(),p=(0,r.useRef)(),h=(0,r.useRef)(a);h.current=a;const m=(0,r.useRef)(o);m.current=o;const y=(0,r.useRef)(i);y.current=i,(0,r.useEffect)((()=>{var e,r;if(!f)return;const a="implicit"===t?"initTokenClient":"initCodeClient",o=null===(r=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===r?void 0:r.oauth2[a]({client_id:d,scope:u?n:`openid profile email ${n}`,callback:e=>{var t,n;if(e.error)return null===(t=m.current)||void 0===t?void 0:t.call(m,e);null===(n=h.current)||void 0===n||n.call(h,e)},error_callback:e=>{var t;null===(t=y.current)||void 0===t||t.call(y,e)},state:s,...c});p.current=o}),[d,f,t,n,s]);const g=(0,r.useCallback)((e=>{var t;return null===(t=p.current)||void 0===t?void 0:t.requestAccessToken(e)}),[]),v=(0,r.useCallback)((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.requestCode()}),[]);return"implicit"===t?g:v}},294:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tR,WK:()=>D,Zn:()=>T,Zq:()=>N,aU:()=>a,cP:()=>d,fp:()=>h,kG:()=>i,lX:()=>l,pC:()=>A}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const o="popstate";function l(e){return void 0===e&&(e={}),f((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return s("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:c(t)}),null,e)}function i(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function s(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?d(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function c(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function f(e,t,n,l){void 0===l&&(l={});let{window:d=document.defaultView,v5Compat:f=!1}=l,p=d.history,h=a.Pop,m=null,y=g();function g(){return(p.state||{idx:null}).idx}function v(){h=a.Pop;let e=g(),t=null==e?null:e-y;y=e,m&&m({action:h,location:w.location,delta:t})}function b(e){let t="null"!==d.location.origin?d.location.origin:d.location.href,n="string"===typeof e?e:c(e);return i(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==y&&(y=0,p.replaceState(r({},p.state,{idx:y}),""));let w={get action(){return h},get location(){return e(d,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return d.addEventListener(o,v),m=e,()=>{d.removeEventListener(o,v),m=null}},createHref:e=>t(d,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=s(w.location,e,t);n&&n(r,e),y=g()+1;let o=u(r,y),l=w.createHref(r);try{p.pushState(o,"",l)}catch(i){d.location.assign(l)}f&&m&&m({action:h,location:w.location,delta:1})},replace:function(e,t){h=a.Replace;let r=s(w.location,e,t);n&&n(r,e),y=g();let o=u(r,y),l=w.createHref(r);p.replaceState(o,"",l),f&&m&&m({action:h,location:w.location,delta:0})},go:e=>p.go(e)};return w}var p;function h(e,t,n){void 0===n&&(n="/");let r=T(("string"===typeof t?d(t):t).pathname||"/",n);if(null==r)return null;let a=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let l=0;null==o&&l{let l={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};l.relativePath.startsWith("/")&&(i(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(r.length));let u=R([r,l.relativePath]),s=n.concat(l);e.children&&e.children.length>0&&(i(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),m(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:_(u,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of y(e.path))a(e,t,r);else a(e,t)})),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let l=y(r.join("/")),i=[];return i.push(...l.map((e=>""===e?o:[o,e].join("/")))),a&&i.push(...l),i.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));const g=/^:\w+$/,v=3,b=2,w=1,k=10,S=-2,x=e=>"*"===e;function _(e,t){let n=e.split("/"),r=n.length;return n.some(x)&&(r+=S),t&&(r+=b),n.filter((e=>!x(e))).reduce(((e,t)=>e+(g.test(t)?v:""===t?w:k)),r)}function E(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let l=0;l(r.push(t),"/([^\\/]+)")));e.endsWith("*")?(r.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=i[n]||"";l=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return O(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(i[n]||"",t),e}),{}),pathname:o,pathnameBase:l,pattern:e}}function P(e){try{return decodeURI(e)}catch(t){return O(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function O(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function j(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function N(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function A(e,t,n,a){let o;void 0===a&&(a=!1),"string"===typeof e?o=d(e):(o=r({},e),i(!o.pathname||!o.pathname.includes("?"),j("?","pathname","search",o)),i(!o.pathname||!o.pathname.includes("#"),j("#","pathname","hash",o)),i(!o.search||!o.search.includes("#"),j("#","search","hash",o)));let l,u=""===e||""===o.pathname,s=u?"/":o.pathname;if(a||null==s)l=n;else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}l=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"===typeof e?d(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:z(r),hash:M(a)}}(o,l),f=s&&"/"!==s&&s.endsWith("/"),p=(u||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!p||(c.pathname+="/"),c}const R=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",M=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class I extends Error{}function D(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const $=["post","put","patch","delete"],F=(new Set($),["get",...$]);new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred")},36993:e=>{"use strict";e.exports=function(e,t,n,r,a,o,l,i){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,o,l,i],c=0;(u=new Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},30534:(e,t,n)=>{"use strict";var r=n(47313),a=n(62224);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n