1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ef58-5d45-7d32-93d8-5f03387c80c6")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,999464,e=>{"use strict";let t=[{id:"mp3_44100_192",label:"MP3 192 kbps",description:"Highest quality (Pro)"},{id:"mp3_44100_128",label:"MP3 128 kbps",description:"Default â high quality"},{id:"mp3_44100_96",label:"MP3 96 kbps",description:"Smaller file"},{id:"mp3_44100_64",label:"MP3 64 kbps",description:"Compact"},{id:"mp3_44100_32",label:"MP3 32 kbps",description:"Lowest quality"}];e.s(["ELEVENLABS_DEFAULT_OUTPUT_FORMAT",0,"mp3_44100_128","ELEVENLABS_DEFAULT_VOICE_SETTINGS",0,{stability:.5,similarity_boost:.75,style:0,speed:1,use_speaker_boost:!0},"ELEVENLABS_DIALOGUE_DEFAULT_MODEL_ID",0,"eleven_v3","ELEVENLABS_DIALOGUE_DEFAULT_OUTPUT_FORMAT",0,"mp3_44100_128","ELEVENLABS_DIALOGUE_MAX_TOTAL_CHARS",0,2e3,"ELEVENLABS_DIALOGUE_MAX_TURNS",0,50,"ELEVENLABS_DIALOGUE_MAX_UNIQUE_VOICES",0,10,"ELEVENLABS_DIALOGUE_OUTPUT_FORMATS",0,t,"ELEVENLABS_DUBBING_DEFAULT_TARGET",0,"es","ELEVENLABS_DUBBING_LANGUAGES",0,[{code:"en",name:"English"},{code:"es",name:"Spanish"},{code:"fr",name:"French"},{code:"de",name:"German"},{code:"it",name:"Italian"},{code:"pt",name:"Portuguese"},{code:"pl",name:"Polish"},{code:"tr",name:"Turkish"},{code:"ru",name:"Russian"},{code:"nl",name:"Dutch"},{code:"cs",name:"Czech"},{code:"ar",name:"Arabic"},{code:"zh",name:"Chinese"},{code:"ja",name:"Japanese"},{code:"hu",name:"Hungarian"},{code:"ko",name:"Korean"},{code:"hi",name:"Hindi"},{code:"id",name:"Indonesian"},{code:"fi",name:"Finnish"},{code:"sv",name:"Swedish"},{code:"no",name:"Norwegian"},{code:"da",name:"Danish"},{code:"uk",name:"Ukrainian"},{code:"ro",name:"Romanian"},{code:"bg",name:"Bulgarian"},{code:"el",name:"Greek"},{code:"he",name:"Hebrew"},{code:"vi",name:"Vietnamese"}],"ELEVENLABS_MAX_TEXT_LENGTH",0,5e3,"ELEVENLABS_MODELS",0,[{id:"eleven_v3",name:"Eleven v3",description:"Latest model, multi-speaker dialogue"},{id:"eleven_multilingual_v2",name:"Multilingual v2",description:"Highest-quality, supports 29 languages"},{id:"eleven_turbo_v2_5",name:"Turbo v2.5",description:"Low-latency English-leaning model"},{id:"eleven_flash_v2_5",name:"Flash v2.5",description:"Fastest model, ideal for short clips"}],"ELEVENLABS_OUTPUT_FORMATS",0,t,"ELEVENLABS_SFX_DEFAULT_MODEL_ID",0,"eleven_text_to_sound_v2","ELEVENLABS_SFX_DEFAULT_OUTPUT_FORMAT",0,"mp3_44100_192","ELEVENLABS_SFX_DEFAULT_PROMPT_INFLUENCE",0,.3,"ELEVENLABS_SFX_DURATION_MAX",0,30,"ELEVENLABS_SFX_DURATION_MIN",0,.5,"ELEVENLABS_SFX_MAX_TEXT_LENGTH",0,1e3,"ELEVENLABS_SFX_OUTPUT_FORMATS",0,[{id:"mp3_44100_192",label:"MP3 192 kbps",description:"Default â high quality"},{id:"mp3_22050_32",label:"MP3 32 kbps",description:"Smaller file"}],"ELEVENLABS_VOICES",0,[{id:"JBFqnCBsd6RMkjVDRZzb",name:"George",description:"Warm British narrator"},{id:"9BWtsMINqrJLrRacOk9x",name:"Aria",description:"Expressive American female"},{id:"nPczCjzI2devNBz1zQrb",name:"Brian",description:"Deep American male narrator"},{id:"FGY2WhTYpPnrIDTdsKH5",name:"Laura",description:"Upbeat American female"},{id:"IKne3meq5aSn9XLyUdCD",name:"Charlie",description:"Casual Australian male"},{id:"N2lVS1w4EtoT3dr4eOWO",name:"Callum",description:"Gravelly transatlantic male"},{id:"SAz9YHcvj6GT2YYXdXww",name:"River",description:"Relaxed American non-binary"},{id:"TX3LPaxmHKxFdv7VOQHJ",name:"Liam",description:"Energetic American male"},{id:"Xb7hH8MSUJpSbSDYk0k2",name:"Alice",description:"Clear British female"},{id:"XrExE9yKIg1WjnnlVkGX",name:"Matilda",description:"Professional American female"},{id:"bIHbv24MWmeRgasZH58o",name:"Will",description:"Laid-back American male"},{id:"pFZP5JQG7iQjIQuC4Bku",name:"Lily",description:"British female narrator"}],"ELEVENLABS_VOICE_CHANGER_DEFAULT_MODEL_ID",0,"eleven_english_sts_v2","ELEVENLABS_VOICE_CHANGER_DEFAULT_OUTPUT_FORMAT",0,"mp3_44100_128","ELEVENLABS_VOICE_CHANGER_MODELS",0,[{id:"eleven_english_sts_v2",name:"English STS v2",description:"Default â best for English content"},{id:"eleven_multilingual_sts_v2",name:"Multilingual STS v2",description:"Supports 29 languages"}],"ELEVENLABS_VOICE_CHANGER_OUTPUT_FORMATS",0,[{id:"mp3_44100_192",label:"MP3 192 kbps",description:"Highest quality (Pro)"},{id:"mp3_44100_128",label:"MP3 128 kbps",description:"Default â high quality"},{id:"mp3_44100_96",label:"MP3 96 kbps",description:"Smaller file"},{id:"mp3_44100_64",label:"MP3 64 kbps",description:"Compact"},{id:"mp3_44100_32",label:"MP3 32 kbps",description:"Lowest quality"}]])},33418,803873,e=>{"use strict";e.i(66563),e.s([],33418),e.s(["escapeJsxAttr",0,function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/\r/g," ").replace(/\n/g," ")}],803873)},481128,e=>{"use strict";let t=new Set(["rectangle","rounded-rectangle","diamond","ellipse","circle","triangle","parallelogram","pentagon","hexagon","octagon","trapezoid","star","arrow-right","arrow-left","arrow-left-right","bubble","cloud","cross","barrel","brace-left","brace-right","chevron","
1notched-chevron","predefined-process","terminator","document","multiple-documents","manual-input","preparation","direct-access-storage","internal-storage","manual-operation","delay","stored-data","merge","or","summing-junction","display","off-page-connector","note","magnetic-tape","multi-process","lined-shaded","lined-document","divided"]);e.s(["WHITEBOARD_DOCUMENT_VERSION",0,1,"WHITEBOARD_SHAPE_VARIANT_OPTIONS",0,[{variant:"rectangle",label:"Rectangle"},{variant:"rounded-rectangle",label:"Rounded rectangle"},{variant:"diamond",label:"Diamond"},{variant:"ellipse",label:"Ellipse"},{variant:"circle",label:"Circle"},{variant:"triangle",label:"Triangle"},{variant:"parallelogram",label:"Parallelogram"},{variant:"pentagon",label:"Pentagon"},{variant:"hexagon",label:"Hexagon"},{variant:"octagon",label:"Octagon"},{variant:"trapezoid",label:"Trapezoid"},{variant:"star",label:"Star"},{variant:"arrow-right",label:"Arrow right"},{variant:"arrow-left",label:"Arrow left"},{variant:"arrow-left-right",label:"Arrow left-right"},{variant:"bubble",label:"Bubble"},{variant:"cloud",label:"Cloud"},{variant:"cross",label:"Cross"},{variant:"barrel",label:"Barrel"},{variant:"brace-left",label:"Brace left"},{variant:"brace-right",label:"Brace right"},{variant:"chevron",label:"Chevron"},{variant:"notched-chevron",label:"Notched chevron"},{variant:"predefined-process",label:"Predefined process"},{variant:"terminator",label:"Terminator"},{variant:"document",label:"Document"},{variant:"multiple-documents",label:"Multiple documents"},{variant:"manual-input",label:"Manual input"},{variant:"preparation",label:"Preparation"},{variant:"direct-access-storage",label:"Direct access storage"},{variant:"internal-storage",label:"Internal storage"},{variant:"manual-operation",label:"Manual operation"},{variant:"delay",label:"Delay"},{variant:"stored-data",label:"Stored data"},{variant:"merge",label:"Merge"},{variant:"or",label:"Or"},{variant:"summing-junction",label:"Summing junction"},{variant:"display",label:"Display"},{variant:"off-page-connector",label:"Off-page connector"},{variant:"note",label:"Note"},{variant:"magnetic-tape",label:"Magnetic tape"},{variant:"multi-process",label:"Multi process"},{variant:"lined-shaded",label:"Lined/shaded"},{variant:"lined-document",label:"Lined document"},{variant:"divided",label:"Divided"}],"isWhiteboardShapeVariant",0,function(e){return"string"==typeof e&&t.has(e)}])},201555,e=>{"use strict";var t=e.i(150095);let n=["1D","1W","1M","3M","6M","1Y","5Y"],a=["area","line","candles"],r=["vertical","horizontal"];class i extends Error{httpStatus;serverMessage;constructor(e,t=null){super(t??`Stock request failed (${e})`),this.httpStatus=e,this.serverMessage=t,this.name="StockRequestError"}}let o=new Map;function l(e,t,n){let a=o.get(e);if(a&&Date.now()-a.at<t)return a.promise;let r=n().catch(t=>{throw o.delete(e),t});return o.set(e,{at:Date.now(),promise:r}),r}async function s(e){let n=await (0,t.apiFetch)(e);if(!n.ok){let e=null;try{let t=await n.json();"string"==typeof t.message&&(e=t.message)}catch{}throw new i(n.status,e)}return await n.json()}function u(e,t){let n=Math.abs(e)>=1?{minimumFractionDigits:2,maximumFractionDigits:2}:{maximumSignificantDigits:4};if(t&&/^[A-Z]{3}$/.test(t))try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",...n}).format(e)}catch{}return new Intl.NumberFormat(void 0,n).format(e)}let c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function p(e,t,n,a=4){if(0===e.length||t<=0||n<=0)return[];let r=1/0,i=-1/0;for(let t of e)r=Math.min(r,t.close),i=Math.max(i,t.close);r===i&&(r-=Math.max(.01*Math.abs(r),.01),i+=Math.max(.01*Math.abs(i),.01));let o=e.length;return e.map((e,l)=>({x:o<=1?t/2:l/(o-1)*t,y:n-a-(e.close-r)/(i-r)*(n-2*a)}))}function m(e){return e.length<2||e[e.length-1].close>=e[0].close}let d="#22c55e",f="#ef4444";function h(e){return e?d:f}function y(e,t,n){let{width:a,height:r}=n,i=n.kind??"area",o=n.padY??6,l=n.lineWidth??2.5;if(0===t.length||a<=0||r<=0)return;let s=n.color??h(m(t));if("candles"===i){let n=1/0,i=-1/0;for(let e of t)n=Math.min(n,e.low),i=Math.max(i,e.high);n===i&&(n-=.01,i+=.01);let l=t.length,s=e=>l<=1?a/2:e/(l-1)*a,u=e=>r-o-(e-n)/(i-n)*(r-2*o),c=Math.max(1.5,Math.min(9,a/l*.6));for(let n=0;n<l;n++){let a=t[n],r=s(n);e.strokeStyle=e.fillStyle=a.close>=a.open?d:f,e.lineWidth=1,e.beginPath(),e.moveTo(r,u(a.high)),e.lineTo(r,u(a.low)),e.stroke();let i=u(Math.max(a.open,a.close)),o=u(Math.min(a.open,a.close));e.fillRect(r-c/2,i,c,Math.max(1,o-i))}return}let u=p(t,a,r,o);if(!(u.length<2)){if("area"===i){let t=e.createLinearGradient(0,0,0,r);t.addColorStop(0,`${s}40`),t.addColorStop(1,`${s}05`),e.beginPath(),e.moveTo(u[0].x,u[0].y);for(let t=1;t<u.length;t++)e.lineTo(u[t].x,u[t].y);e.lineTo(u[u.length-1].x,r),e.lineTo(u[0].x,r),e.closePath(),e.fillStyle=t,e.fill()}e.beginPath(),e.moveTo(u[0].x,u[0].y);for(let t=1;t<u.length;t++)e.lineTo(u[t].x,u[t].y);e.strokeStyle=s,e.lineWidth=l,e.lineJoin="round",e.lineCap="round",e.stroke()}}async function g(e,t){let n=document.createElement("canvas");n.width=Math.max(1,Math.round(2*t.width)),n.height=Math.max(1,Math.round(2*t.height));let a=n.getContext("2d");if(!a)throw Error("Canvas 2D context unavailable");return a.scale(2,2),y(a,e,t),await new Promise((e,t)=>
1{n.toBlob(n=>n?e(n):t(Error("Chart PNG encoding failed")),"image/png")})}e.s(["STOCK_CHART_KINDS",0,a,"STOCK_DOWN_COLOR",0,f,"STOCK_LAYOUTS",0,r,"STOCK_RANGES",0,n,"STOCK_UP_COLOR",0,d,"StockRequestError",0,i,"buildSparklinePath",0,function(e,t,n,a=4){return p(e,t,n,a).map((e,t)=>`${0===t?"M":"L"}${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ")},"buildSparklinePoints",0,p,"drawStockChart",0,y,"fetchStockProfile",0,function(e){return l(`profile:${e}`,36e5,()=>s(`/api/stocks/profile?symbol=${encodeURIComponent(e)}`))},"fetchStockQuote",0,function(e){return l(`quote:${e}`,18e4,()=>s(`/api/stocks/quote?symbol=${encodeURIComponent(e)}`))},"fetchStockQuotes",0,function(e){return l(`quotes:${[...e].sort().join(",")}`,18e4,()=>s(`/api/stocks/quotes?symbols=${encodeURIComponent(e.join(","))}`))},"fetchStockSeries",0,function(e,t){return l(`series:${e}:${t}`,3e5,()=>s(`/api/stocks/series?symbol=${encodeURIComponent(e)}&range=${encodeURIComponent(t)}`))},"formatStockCandleTime",0,function(e,t){let n=/^(\d{4})-(\d{2})-(\d{2})(?: (\d{2}):(\d{2}))?/.exec(e);if(!n)return e;let[,a,r,i,o,l]=n,s=`${c[Number(r)-1]??r} ${Number(i)}, ${a}`;return t&&void 0!==o?`${s} ${o}:${l}`:s},"formatStockChange",0,function(e,t){let n=e>=0?"+":"",a=t>=0?"+":"";return`${n}${u(e,null)} (${a}${t.toFixed(2)}%)`},"formatStockCompact",0,function(e){return new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}).format(e)},"formatStockPrice",0,u,"isSeriesUp",0,m,"normalizeStockChartKind",0,function(e){return a.includes(e??"")?e:"area"},"normalizeStockLayout",0,function(e){return r.includes(e??"")?e:"vertical"},"normalizeStockRange",0,function(e){return n.includes(e??"")?e:"1M"},"parseStockSymbolList",0,function(e){if(!e)return[];let t=new Set,n=[];for(let a of e.split(/[,\s]+/)){let e=a.trim().toUpperCase();!e||t.has(e)||(t.add(e),n.push(e))}return n},"renderStockChartPng",0,g,"searchStockSymbols",0,function(e){return s(`/api/stocks/search?q=${encodeURIComponent(e)}`)},"stockDirectionColor",0,h,"stockErrorMessage",0,function(e,t){if(e instanceof i){if(503===e.httpStatus)return e.serverMessage??"Stock data isn't configured on this server.";if(403===e.httpStatus)return e.serverMessage??"This symbol isn't included in the server's stock data plan â try the US listing.";if(404===e.httpStatus)return`No market data found for â${t}â.`}return"Couldn't load stock data."}])},362845,e=>{"use strict";let t="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";function n(e){try{let t=new URL(e.trim());if("http:"!==t.protocol&&"https:"!==t.protocol)return null;return t}catch{return null}}let a=[function(e){let n=e.hostname.replace(/^www\./,""),a=null,r=e.searchParams.get("list");if("youtu.be"===n)a=e.pathname.split("/").filter(Boolean)[0]??null;else if("youtube.com"===n||"m.youtube.com"===n||"music.youtube.com"===n){let t=e.pathname.split("/").filter(Boolean);"watch"===t[0]?a=e.searchParams.get("v"):"shorts"===t[0]||"embed"===t[0]||"live"===t[0]?a=t[1]??null:"playlist"===t[0]&&(a=null)}else if("youtube-nocookie.com"===n){let t=e.pathname.split("/").filter(Boolean);"embed"===t[0]&&(a=t[1]??null)}if(a&&/^[\w-]{6,}$/.test(a)){let n=new URLSearchParams;n.set("feature","oembed"),r&&n.set("list",r);let i=e.searchParams.get("si");i&&/^[\w-]+$/.test(i)&&n.set("si",i);let o=e.searchParams.get("t")??e.searchParams.get("start");if(o){let e=/^(?:(\d+)m)?(\d+)s?$/.exec(o)??/^(\d+)$/.exec(o);if(e){let t=60*(3===e.length&&e[1]?Number(e[1]):0)+Number(e[e.length-1]);Number.isFinite(t)&&t>0&&n.set("start",String(t))}}return{provider:"youtube",embedUrl:`https://www.youtube.com/embed/${a}?${n.toString()}`,aspectRatio:16/9,allow:t,allowFullScreen:!0,isVideo:!0}}return r&&/^[\w-]+$/.test(r)?{provider:"youtube",embedUrl:`https://www.youtube.com/embed/videoseries?feature=oembed&list=${r}`,aspectRatio:16/9,allow:t,allowFullScreen:!0,isVideo:!0}:null},function(e){let n=e.hostname.replace(/^www\./,"");if("vimeo.com"!==n&&"player.vimeo.com"!==n)return null;let a=e.pathname.split("/").filter(Boolean).find(e=>/^\d+$/.test(e));return a?{provider:"vimeo",embedUrl:`https://player.vimeo.com/video/${a}`,aspectRatio:16/9,allow:t,allowFullScreen:!0,isVideo:!0}:null},function(e){if("loom.com"!==e.hostname.replace(/^www\./,""))return null;
1let n=e.pathname.split("/").filter(Boolean);if("share"!==n[0]&&"embed"!==n[0])return null;let a=n[1];return a&&/^[0-9a-f]{16,}$/i.test(a)?{provider:"loom",embedUrl:`https://www.loom.com/embed/${a}`,aspectRatio:16/9,allow:t,allowFullScreen:!0,isVideo:!0}:null},function(e){if("open.spotify.com"!==e.hostname.replace(/^www\./,""))return null;let t=e.pathname.split("/").filter(Boolean),n=+!!t[0]?.startsWith("intl-"),a=t[n],r=t[n+1],i=new Set(["track","album","playlist","episode","show","artist"]);if(!a||!r||!i.has(a))return null;let o="track"===a?600/152:600/352;return{provider:"spotify",embedUrl:`https://open.spotify.com/embed/${a}/${r}`,aspectRatio:o,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture",freeAspect:!0}},function(e){let t=e.hostname.replace(/^www\./,"");return"soundcloud.com"!==t&&"m.soundcloud.com"!==t?null:{provider:"soundcloud",embedUrl:`https://w.soundcloud.com/player/?url=${encodeURIComponent(e.toString())}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true`,aspectRatio:600/166,allow:"autoplay"}},function(e){return"figma.com"===e.hostname.replace(/^www\./,"")&&["file","design","proto","board","deck","slides"].includes(e.pathname.split("/").filter(Boolean)[0]??"")?{provider:"figma",embedUrl:`https://www.figma.com/embed?embed_host=arg&url=${encodeURIComponent(e.toString())}`,aspectRatio:4/3,allow:"fullscreen",allowFullScreen:!0}:null},function(e){if("codepen.io"!==e.hostname.replace(/^www\./,""))return null;let t=e.pathname.split("/").filter(Boolean);if(t.length<3)return null;let[n,a,r]=t;return["pen","full","details","embed"].includes(a)?{provider:"codepen",embedUrl:`https://codepen.io/${n}/embed/${r}?default-tab=result`,aspectRatio:16/9,allow:"fullscreen",allowFullScreen:!0}:null},function(e){if("codesandbox.io"!==e.hostname.replace(/^www\./,""))return null;let t=e.pathname.split("/").filter(Boolean),n=null;return("s"===t[0]&&t[1]?n=t[1]:"p"===t[0]&&("sandbox"===t[1]||"devbox"===t[1])&&t[2]?n=t[2]:"embed"===t[0]&&t[1]&&(n=t[1]),n)?{provider:"codesandbox",embedUrl:`https://codesandbox.io/embed/${n}?view=preview`,aspectRatio:16/9,allow:"clipboard-write; encrypted-media; fullscreen",allowFullScreen:!0}:null},function(e){let t=e.hostname.replace(/^www\./,"");if("tiktok.com"!==t&&"m.tiktok.com"!==t)return null;let n=e.pathname.split("/").filter(Boolean),a=null,r=n.indexOf("video");return(r>=0&&n[r+1]?a=n[r+1]:"embed"===n[0]&&n[n.length-1]&&(a=n[n.length-1]),a&&/^\d+$/.test(a))?{provider:"tiktok",embedUrl:`https://www.tiktok.com/embed/v2/${a}`,aspectRatio:9/16,allow:"encrypted-media; picture-in-picture",allowFullScreen:!0,isVideo:!0}:null},function(e){if("gist.github.com"!==e.hostname.replace(/^www\./,""))return null;let t=e.pathname.split("/").filter(Boolean);return t.length<2?null:{provider:"gist",embedUrl:`https://gist.githack.com/${t[0]}/${t[1]}`,aspectRatio:4/3}},function(e){let t=e.hostname.replace(/^www\./,"");if("twitter.com"!==t&&"x.com"!==t&&"mobile.twitter.com"!==t)return null;let n=e.pathname.split("/").filter(Boolean),a=n.indexOf("status");if(a<0)return null;let r=n[a+1];return r&&/^\d+$/.test(r)?{provider:"twitter",embedUrl:e.toString(),aspectRatio:3/4,useOembedHtml:!0,freeAspect:!0}:null},function(e){let t=e.hostname.replace(/^www\./,"");if("reddit.com"!==t&&"old.reddit.com"!==t&&"new.reddit.com"!==t)return null;let n=e.pathname.split("/").filter(Boolean);if("r"!==n[0]||"comments"!==n[2]||!n[3])return null;let a=e.pathname.replace(/\/?$/,"/");return{provider:"reddit",embedUrl:`https://embed.reddit.com${a}?embed=true&context=3`,aspectRatio:3/4}},function(e){if("instagram.com"!==e.hostname.replace(/^www\./,""))return null;let t=e.pathname.split("/").filter(Boolean);if(!["p","reel","tv"].includes(t[0]??""))return null;let n=t[1];if(!n)return null;let a="reel"===t[0];return{provider:"instagram",embedUrl:`https://www.instagram.com/${t[0]}/${n}/embed/`,aspectRatio:a?9/16:.8}},function(e){let n=e.hostname.replace(/^www\./,"");if("facebook.com"!==n&&"m.facebook.com"!==n&&"fb.watch"!==n)return null;
1let a=e.pathname.split("/").filter(Boolean),r="fb.watch"===n||a.includes("videos")||"watch"===a[0]||"reel"===a[0];return{provider:"facebook",embedUrl:`https://www.facebook.com/plugins/${r?"video":"post"}.php?href=${encodeURIComponent(e.toString())}&show_text=true`,aspectRatio:r?16/9:3/4,isVideo:r||void 0,allow:r?t:void 0,allowFullScreen:r}},function(e){if("linkedin.com"!==e.hostname.replace(/^www\./,""))return null;let t=e.pathname.match(/(?:activity|update)[-_:](\d{15,})/),n=t?.[1];return n?{provider:"linkedin",embedUrl:`https://www.linkedin.com/embed/feed/update/urn:li:share:${n}`,aspectRatio:3/4}:null},function(e){let t=e.hostname.replace(/^www\./,"");if("pinterest.com"!==t&&!t.endsWith(".pinterest.com"))return null;let n=e.pathname.split("/").filter(Boolean);if("pin"!==n[0]||!n[1])return null;let a=n[1];return/^\d+$/.test(a)?{provider:"pinterest",embedUrl:`https://assets.pinterest.com/ext/embed.html?id=${a}`,aspectRatio:2/3}:null},function(e){let t=e.hostname.replace(/^www\./,"");if("giphy.com"!==t&&"media.giphy.com"!==t)return null;let n=e.pathname.split("/").filter(Boolean),a=null;return("embed"===n[0]&&n[1]?a=n[1]:"gifs"===n[0]&&n[1]?a=n[1].split("-").pop()??null:"clips"===n[0]&&n[1]&&(a=n[1].split("-").pop()??null),a&&/^[A-Za-z0-9]+$/.test(a))?{provider:"giphy",embedUrl:`https://media.giphy.com/media/${a}/giphy.gif`,embedMode:"image",aspectRatio:1,freeAspect:!0}:null},function(e){let t=e.hostname.replace(/^www\./,"");if("google.com"!==t&&"maps.google.com"!==t&&!t.endsWith(".google.com")&&"goo.gl"!==t||!e.pathname.startsWith("/maps")&&"maps.google.com"!==t)return null;let n=e.searchParams.get("q");if(n){let e=new URLSearchParams({q:n,output:"embed"});return{provider:"googleMaps",embedUrl:`https://maps.google.com/maps?${e.toString()}`,aspectRatio:16/9}}let a=e.pathname.match(/\/maps\/(?:place|search)\/([^/]+)/);if(a){let e=new URLSearchParams({q:decodeURIComponent(a[1]).replace(/\+/g," "),output:"embed"});return{provider:"googleMaps",embedUrl:`https://maps.google.com/maps?${e.toString()}`,aspectRatio:16/9}}return null},function(e){let t=e.hostname.replace(/^www\./,"");if("canva.com"!==t&&!t.endsWith(".canva.com"))return null;let n=e.pathname.split("/").filter(Boolean);return"design"===n[0]&&n[1]?{provider:"canva",embedUrl:`https://www.canva.com/design/${n[1]}/view?embed`,aspectRatio:16/9,allowFullScreen:!0}:null},function(e){if("miro.com"!==e.hostname.replace(/^www\./,""))return null;let t=e.pathname.split("/").filter(Boolean);return"app"===t[0]&&"board"===t[1]&&t[2]?{provider:"miro",embedUrl:`https://miro.com/app/live-embed/${t[2]}/`,aspectRatio:16/9,allowFullScreen:!0}:null},function(e){let t=e.hostname.replace(/^www\./,"");if(!t.endsWith(".typeform.com")&&"typeform.com"!==t)return null;let n=e.pathname.split("/").filter(Boolean);return"to"===n[0]&&n[1]?{provider:"typeform",embedUrl:e.toString(),aspectRatio:3/4}:null},function(e){if("tally.so"!==e.hostname.replace(/^www\./,""))return null;let t=e.pathname.split("/").filter(Boolean),n=null;return("r"===t[0]&&t[1]?n=t[1]:"embed"===t[0]&&t[1]&&(n=t[1]),n)?{provider:"tally",embedUrl:`https://tally.so/embed/${n}?hideTitle=0&transparentBackground=0`,aspectRatio:3/4}:null},function(e){let t=e.hostname.replace(/^www\./,"");if("replit.com"!==t&&"repl.it"!==t)return null;let n=e.pathname.split("/").filter(Boolean);return n.length<2||!n[0].startsWith("@")?null:{provider:"replit",embedUrl:`https://replit.com/${n[0]}/${n[1]}?embed=true`,aspectRatio:4/3,allow:"clipboard-write",allowFullScreen:!0}},function(e){let t=e.hostname.replace(/^www\./,"");if(!t.endsWith(".streamlit.app")&&"share.streamlit.io"!==t)return null;let n=new URL(e.toString());return n.searchParams.set("embed","true"),{provider:"streamlit",embedUrl:n.toString(),aspectRatio:4/3}},function(e){let t=e.hostname.replace(/^www\./,"");return"excalidraw.com"!==t&&"link.excalidraw.com"!==t?null:{provider:"excalidraw",embedUrl:e.toString(),aspectRatio:4/3,allowFullScreen:!0}},function(e){let t=e.hostname.replace(/^www\./,"");return t.endsWith(".framer.app")||t.endsWith(".framer.website")||"framer.com"===t?{provider:"framer",embedUrl:e.toString(),aspectRatio:16/9,allowFullScreen:!0}:null},function(e){let t=e.hostname.replace(/^www\./,"");if("public.tableau.com"!==t&&!t.endsWith(".tableau.com"))return null;
1let n=e.pathname.split("/").filter(Boolean),a=n.indexOf("views");if(a<0||!n[a+2])return null;let r=`/${n.slice(a).join("/")}`;return{provider:"tableau",embedUrl:`https://public.tableau.com${r}?:embed=y&:showVizHome=no&:display_count=no&:tabs=no&:toolbar=no`,aspectRatio:4/3}},function(e){let t=e.hostname.replace(/^www\./,"");if("projects.invisionapp.com"!==t&&"invis.io"!==t)return null;if("projects.invisionapp.com"===t){let t=e.pathname.split("/").filter(Boolean);if("share"!==t[0]||!t[1])return null}return{provider:"invision",embedUrl:e.toString(),aspectRatio:16/9}}];function r(e){let t=n(e);if(!t)return null;for(let e of a){let n=e(t);if(n)return n}return null}let i=new Set(["youtube","vimeo","loom","tiktok"]);e.s(["getEmbedForUrl",0,r,"hostnameOf",0,function(e){let t=n(e);return t?t.hostname.replace(/^www\./,""):e},"isChatVideoEmbedUrl",0,function(e){let t=r(e);return null!=t&&i.has(t.provider)},"safeUrl",0,n])},539364,e=>{"use strict";var t=e.i(539919),n=e.i(150095);let a=[1,3,7,10,16],r=["celsius","fahrenheit"],i=["temperature","precipitation","wind","none"],o={temperature:"Temperature",precipitation:"Precipitation",wind:"Wind",none:"No chart"};function l(e){let t="number"==typeof e?e:"string"==typeof e?Number(e):NaN;return a.includes(t)?t:7}function s(e){return r.includes(e??"")?e:"celsius"}class u extends Error{httpStatus;serverMessage;constructor(e,t=null){super(t??`Weather request failed (${e})`),this.httpStatus=e,this.serverMessage=t,this.name="WeatherRequestError"}}let c=new Map;function p(e,t,n){let a=c.get(e);if(a&&Date.now()-a.at<t)return a.promise;let r=n().catch(t=>{throw c.delete(e),t});return c.set(e,{at:Date.now(),promise:r}),r}async function m(e){let t=await (0,n.apiFetch)(e);if(!t.ok){let e=null;try{let n=await t.json();"string"==typeof n.message&&(e=n.message)}catch{}throw new u(t.status,e)}return await t.json()}let d={0:"Clear",1:"Mainly clear",2:"Partly cloudy",3:"Overcast",45:"Fog",48:"Rime fog",51:"Light drizzle",53:"Drizzle",55:"Heavy drizzle",56:"Freezing drizzle",57:"Freezing drizzle",61:"Light rain",63:"Rain",65:"Heavy rain",66:"Freezing rain",67:"Freezing rain",71:"Light snow",73:"Snow",75:"Heavy snow",77:"Snow grains",80:"Rain showers",81:"Rain showers",82:"Heavy showers",85:"Snow showers",86:"Heavy snow showers",95:"Thunderstorm",96:"Thunderstorm with hail",99:"Thunderstorm with hail"};function f(e,t){if("number"!=typeof e||!Number.isFinite(e))return null;let n=new Date(t+1e3*e);return new Intl.DateTimeFormat(void 0,{weekday:"short",hour:"numeric",minute:"2-digit",timeZone:"UTC"}).format(n)}function h(e,t,n,a=4){if(0===e.length||t<=0||n<=0)return[];let r=1/0,i=-1/0;for(let t of e)r=Math.min(r,t),i=Math.max(i,t);r===i&&(r-=1,i+=1);let o=e.length;return e.map((e,l)=>({x:o<=1?t/2:l/(o-1)*t,y:n-a-(e-r)/(i-r)*(n-2*a)}))}e.s(["WEATHER_CHART_OPTIONS",0,i,"WEATHER_DAY_OPTIONS",0,a,"WEATHER_UNITS",0,r,"WeatherRequestError",0,u,"buildWeatherSparklinePath",0,function(e,t,n,a=4){return h(e,t,n,a).map((e,t)=>`${0===t?"M":"L"}${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ")},"buildWeatherSparklinePoints",0,h,"fetchWeatherForecast",0,function(e){let t=l(e.days),n=s(e.unit??void 0),a=new URLSearchParams;return a.set("days",String(t)),a.set("unit",n),e.location&&a.set("location",e.location),"number"==typeof e.latitude&&Number.isFinite(e.latitude)&&a.set("latitude",String(e.latitude)),"number"==typeof e.longitude&&Number.isFinite(e.longitude)&&a.set("longitude",String(e.longitude)),e.timezone&&a.set("timezone",e.timezone),p(`forecast:${a.toString()}`,6e5,()=>m(`/api/weather/forecast?${a.toString()}`))},"formatWeatherDate",0,function(e,t="short"){let n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!n)return e;let a=new Date(Date.UTC(Number(n[1]),Number(n[2])-1,Number(n[3])));return new Intl.DateTimeFormat(void 0,{weekday:t}).format(a)},"formatWeatherHour",0,function(e){let t=/T(\d{2}):/.exec(e);if(!t)return"";let n=Number(t[1]);return new Intl.DateTimeFormat(void 0,{hour:"numeric"}).format(new Date(Date.UTC(2e3,0,1,n)))},"formatWeatherLocalTime",0,f,"formatWeatherNumber",0,function(e,t=0){return"number"==typeof e&&Number.isFinite(e)?new Intl.NumberFormat(void 0,{minimumFractionDigits:t,maximumFractionDigits:t}).format(e):"--"},"formatWeatherPercent",0,function(e){return"number"==typeof e&&Number.isFinite(e)?`${Math.round(e)}%`:"--"},"formatWeatherTemperature",0,function(e,t){if("number"!=typeof e||!Number.isFinite(e))return"--";let n=t?.includes("F")?"°F":"°C";return`${Math.round(e)}${n}`},"formatWeatherWind",0,function(e,t){return"number"==typeof e&&Number.isFinite(e)?`${Math.round(e)} ${t||"km/h"}`:"--"},"normalizeWeatherChart",0,function(e){return i.includes(e??"")?e:"temperature"},"normalizeWeatherDays",0,l,"normalizeWeatherUnit",0,s,"searchWeatherLocations",0,function(e){return p(`search:${e.trim().toLowerCase()}`,36e5,()=>m(`/api/weather/search?q=${encodeURIComponent(e)}`))},"useWeatherClock",0,function(e){let[n,a]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let e=null,t=()=>{null!==e&&(clearInterval(e),e=null)},n=()=>{null===e&&(e=setInterval(()=>a(Date.now()),3e4))},r=()=>{"visible"===document.visibilityState?(a(Date.now()),n()):t()};return a(Date.now()),"visible"===document.visibilityState&&n(),document.addEventListener("visibilitychange",r),()=>{t(),document.removeEventListener("visibilitychange",r)}},[]),null===n?null:f(e,n)},"weatherChartLabel",0,function(e){return o[e]},"weatherCodeLabel",0,function(e){return"number"!=typeof e?"Weather":d[e]??"Weather"},"weatherDaysLabel",0,function(e){return 1===e?"Today":`${e} days`},"weatherErrorMessage",0,function(e,t){if(e instanceof u){if(404===e.httpStatus)return`No weather data found for "${t}".`;if(429===e.httpStatus)return"Weather data is rate limited - try again shortly.";if(400===e.httpStatus)return e.serverMessage??"Invalid weather location.";if(e.serverMessage)return e.serverMessage}return"Couldn't load weather data."},"weatherIconKind",0,function(e,t=!0){return"number"!=typeof e?t?"partly-cloudy":"cloud":0===e||1===e?"sun":2===e?"partly-cloudy":3===e?"cloud":45===e||48===e?"fog":e>=51&&e<=57?"drizzle":e>=61&&e<=67||e>=80&&e<=82?"rain":e>=71&&e<=77||85===e||86===e?"snow":e>=95?"storm":"partly-cloudy"},"weatherLocationLabel",0,function(e){if("displayName"in e&&e.displayName)return e.displayName;let t=[];for(let n of[e.name,e.admin1,e.country])n&&!t.includes(n)&&t.push(n);return t.join(", ")}])},161610,189517,321137,e=>{"use strict";function t(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function n(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function a(){}e.s(["default",0,t,"extend",0,n],189517);var r="\\s*([+-]?\\d+)\\s*",i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,s=RegExp(`^rgb\\(${r},${r},${r}\\)$`),u=RegExp(`^rgb\\(${o},${o},${o}\\)$`),c=RegExp(`^rgba\\(${r},${r},${r},${i}\\)$`),p=RegExp(`^rgba\\(${o},${o},${o},${i}\\)$`),m=RegExp(`^hsl\\(${i},${o},${o}\\)$`),d=RegExp(`^hsla\\(${i},${o},${o},${i}\\)$`),f={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function h(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function g(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?b(t):3===n?
1new U(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=s.exec(e))?new U(t[1],t[2],t[3],1):(t=u.exec(e))?new U(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?w(t[1],t[2],t[3],t[4]):(t=p.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?_(t[1],t[2]/100,t[3]/100,1):(t=d.exec(e))?_(t[1],t[2]/100,t[3]/100,t[4]):f.hasOwnProperty(e)?b(f[e]):"transparent"===e?new U(NaN,NaN,NaN,0):null}function b(e){return new U(e>>16&255,e>>8&255,255&e,1)}function w(e,t,n,a){return a<=0&&(e=t=n=NaN),new U(e,t,n,a)}function v(e){return(e instanceof a||(e=g(e)),e)?new U((e=e.rgb()).r,e.g,e.b,e.opacity):new U}function S(e,t,n,a){return 1==arguments.length?v(e):new U(e,t,n,null==a?1:a)}function U(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function x(){return`#${k(this.r)}${k(this.g)}${k(this.b)}`}function C(){let e=T(this.opacity);return`${1===e?"rgb(":"rgba("}${E(this.r)}, ${E(this.g)}, ${E(this.b)}${1===e?")":`, ${e})`}`}function T(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function k(e){return((e=E(e))<16?"0":"")+e.toString(16)}function _(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new B(e,t,n,a)}function D(e){if(e instanceof B)return new B(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=g(e)),!e)return new B;if(e instanceof B)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,s=o-i,u=(o+i)/2;return s?(l=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,l*=60):s=u>0&&u<1?0:l,new B(l,s,u,e.opacity)}function B(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function A(e){return(e=(e||0)%360)<0?e+360:e}function N(e){return Math.max(0,Math.min(1,e||0))}function $(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}t(a,g,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:h,formatHex:h,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return D(this).formatHsl()},formatRgb:y,toString:y}),t(U,S,n(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(E(this.r),E(this.g),E(this.b),T(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:x,formatHex:x,formatHex8:function(){return`#${k(this.r)}${k(this.g)}${k(this.b)}${k((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:C,toString:C})),t(B,function(e,t,n,a){return 1==arguments.length?D(e):new B(e,t,n,null==a?1:a)},n(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new B(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new B(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*t,r=2*n-a;return new U($(e>=240?e-240:e+120,r,a),$(e,r,a),$(e<120?e+240:e-120,r,a),this.opacity)},clamp(){return new B(A(this.h),N(this.s),N(this.l),T(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=T(this.opacity);return`${1===e?"hsl(":"hsla("}${A(this.h)}, ${100*N(this.s)}%, ${100*N(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["Color",0,a,"Rgb",0,U,"default",0,g,"rgb",0,S,"rgbConvert",0,v],321137),e.s(["color",0,g],161610)},819505,238816,97376,e=>{"use strict";e.s(["genericArray",()=>n],819505);var t=e.i(213570);function n(e,n){var a,r=n?n.length:0,i=e?Math.min(r,e.length):0,o=Array(i),l=Array(r);for(a=0;a<i;++a)o[a]=(0,t.default)(e[a],n[a]);for(;a<r;++a)l[a]=n[a];return function(e){for(a=0;a<i;++a)l[a]=o[a](e);return l}}e.s(["default",0,function(e,t){t||(t=[]);var n,a=e?Math.min(t.length,e.length):0,r=t.slice();return function(i){for(n=0;n<a;++n)r[n]=e[n]*(1-i)+t[n]*i;return r}},"isNumberArray",0,function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}],238816),e.s(["default",0,function(e,t){var n=new Date;return e*=1,t*=1,function(a){return n.setTime(e*(1-a)+t*a),n}}],97376)},842541,e=>{"use strict";e.s(["default",0,function(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}])},77075,e=>{"use strict";var t=e.i(842541);e.s(["interpolateNumber",()=>t.default])},905660,e=>{"use strict";e.s(["default",()=>n]);var t=e.i(213570);function n(e,n){var a,r={},i={};for(a in(null===e||"object"!=typeof e)&&(e={}),(null===n||"object"!=typeof n)&&(n={}),n)a in e?r[a]=(0,t.default)(e[a],n[a]):i[a]=n[a];return function(e){for(a in r)i[a]=r[a](e);return i}}},145665,181503,425902,e=>{"use strict";var t=e.i(321137);function n(e,t,n,a,r){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*a+o*r)/6}let a=e=>()=>e;function r(e,t){return function(n){return e+n*t}}function i(e){return 1==(e*=1)?o:function(t,n){var r,i,o;return n-t?(r=t,i=n,r=Math.pow(r,o=e),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):a(isNaN(t)?n:t)}}function o(e,t){var n=t-e;return n?r(e,n):a(isNaN(e)?t:e)}e.s(["default",0,a],181503),e.s(["default",0,o,"gamma",0,i,"hue",0,function(e,t){var n=t-e;return n?r(e,n>180||n<-180?n-360*Math.round(n/360):n):a(isNaN(e)?t:e)}],425902);let l=function e(n){var a=i(n);function r(e,n){var r=a((e=(0,t.rgb)(e)).r,(n=(0,t.rgb)(n)).r),i=a(e.g,n.g),l=a(e.b,n.b),s=o(e.opacity,n.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=l(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function s(e){return function(n){var a,r,i=n.length,o=Array(i),l=Array(i),s=Array(i);for(a=0;a<i;++a)r=(0,t.rgb)(n[a]),o[a]=r.r||0,l[a]=r.g||0,s[a]=r.b||0;return o=e(o),l=e(l),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=l(e),r.b=s(e),r+""}}}s(function(e){var t=e.length-1;return function(a){var r=a<=0?a=0:a>=1?(a=1,t-1):Math.floor(a*t),i=e[r],o=e[r+1],l=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return n((a-r/t)*t,l,i,o,s)}}),s(function(e){var t=e.length;return function(a){var r=Math.floor(((a%=1)<0?++a:a)*t),i=e[(r+t-1)%t],o=e[r%t],l=e[(r+1)%t],s=e[(r+2)%t];return n((a-r/t)*t,i,o,l,s)}}),e.s(["default",0,l],145665)},647483,e=>{"use strict";var t=e.i(842541),n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=RegExp(n.source,"g");e.s(["default",0,function(e,r){var i,o,l,s,u,c=n.lastIndex=a.lastIndex=0,p=-1,m=[],d=[];for(e+="",r+="";(l=n.exec(e))&&(s=a.exec(r));)(u=s.index)>c&&(u=r.slice(c,u),m[p]?m[p]+=u:m[++p]=u),(l=l[0])===(s=s[0])?m[p]?m[p]+=s:m[++p]=s:(m[++p]=null,d.push({i:p,x:(0,t.default)(l,s)})),c=a.lastIndex;return c<r.length&&(u=r.slice(c),m[p]?m[p]+=u:m[++p]=u),m.length<2?d[0]?(i=d[0].x,function(e){return i(e)+""}):(o=r,function(){return o}
1):(r=d.length,function(e){for(var t,n=0;n<r;++n)m[(t=d[n]).i]=t.x(e);return m.join("")})}])},678152,213570,e=>{"use strict";e.s(["default",()=>c],213570);var t=e.i(161610),n=e.i(145665),a=e.i(819505),r=e.i(97376),i=e.i(842541),o=e.i(905660),l=e.i(647483),s=e.i(181503),u=e.i(238816);function c(e,c){var p,m=typeof c;return null==c||"boolean"===m?(0,s.default)(c):("number"===m?i.default:"string"===m?(p=(0,t.color)(c))?(c=p,n.default):l.default:c instanceof t.color?n.default:c instanceof Date?r.default:(0,u.isNumberArray)(c)?u.default:Array.isArray(c)?a.genericArray:"function"!=typeof c.valueOf&&"function"!=typeof c.toString||isNaN(c)?o.default:i.default)(e,c)}e.s(["interpolate",0,c],678152)},824579,(e,t,n)=>{var a=function(){var e={0xa45dfa3:{name:"EBML",type:"Container"},646:{name:"EBMLVersion",type:"Uint"},759:{name:"EBMLReadVersion",type:"Uint"},754:{name:"EBMLMaxIDLength",type:"Uint"},755:{name:"EBMLMaxSizeLength",type:"Uint"},642:{name:"DocType",type:"String"},647:{name:"DocTypeVersion",type:"Uint"},645:{name:"DocTypeReadVersion",type:"Uint"},108:{name:"Void",type:"Binary"},63:{name:"CRC-32",type:"Binary"},0xb538667:{name:"SignatureSlot",type:"Container"},16010:{name:"SignatureAlgo",type:"Uint"},16026:{name:"SignatureHash",type:"Uint"},16037:{name:"SignaturePublicKey",type:"Binary"},16053:{name:"Signature",type:"Binary"},15963:{name:"SignatureElements",type:"Container"},15995:{name:"SignatureElementList",type:"Container"},9522:{name:"SignedElement",type:"Binary"},0x8538067:{name:"Segment",type:"Container"},0x14d9b74:{name:"SeekHead",type:"Container"},3515:{name:"Seek",type:"Container"},5035:{name:"SeekID",type:"Binary"},5036:{name:"SeekPosition",type:"Uint"},0x549a966:{name:"Info",type:"Container"},13220:{name:"SegmentUID",type:"Binary"},13188:{name:"SegmentFilename",type:"String"},1882403:{name:"PrevUID",type:"Binary"},1868715:{name:"PrevFilename",type:"String"},2013475:{name:"NextUID",type:"Binary"},1999803:{name:"NextFilename",type:"String"},1092:{name:"SegmentFamily",type:"Binary"},10532:{name:"ChapterTranslate",type:"Container"},10748:{name:"ChapterTranslateEditionUID",type:"Uint"},10687:{name:"ChapterTranslateCodec",type:"Uint"},10661:{name:"ChapterTranslateID",type:"Binary"},710577:{name:"TimecodeScale",type:"Uint"},1161:{name:"Duration",type:"Float"},1121:{name:"DateUTC",type:"Date"},15273:{name:"Title",type:"String"},3456:{name:"MuxingApp",type:"String"},5953:{name:"WritingApp",type:"String"},103:{name:"Timecode",type:"Uint"},6228:{name:"SilentTracks",type:"Container"},6359:{name:"SilentTrackNumber",type:"Uint"},39:{name:"Position",type:"Uint"},43:{name:"PrevSize",type:"Uint"},35:{name:"SimpleBlock",type:"Binary"},32:{name:"BlockGroup",type:"Container"},33:{name:"Block",type:"Binary"},34:{name:"BlockVirtual",type:"Binary"},13729:{name:"BlockAdditions",type:"Container"},38:{name:"BlockMore",type:"Container"},110:{name:"BlockAddID",type:"Uint"},37:{name:"BlockAdditional",type:"Binary"},27:{name:"BlockDuration",type:"Uint"},122:{name:"ReferencePriority",type:"Uint"},123:{name:"ReferenceBlock",type:"Int"},125:{name:"ReferenceVirtual",type:"Int"},36:{name:"CodecState",type:"Binary"},13730:{name:"DiscardPadding",type:"Int"},14:{name:"Slices",type:"Container"},104:{name:"TimeSlice",type:"Container"},76:{name:"LaceNumber",type:"Uint"},77:{name:"FrameNumber",type:"Uint"},75:{name:"BlockAdditionID",type:"Uint"},78:{name:"Delay",type:"Uint"},79:{name:"SliceDuration",type:"Uint"},72:{name:"ReferenceFrame",type:"Container"},73:{name:"ReferenceOffset",type:"Uint"},74:{name:"ReferenceTimeCode",type:"Uint"},47:{name:"EncryptedBlock",type:"Binary"},0x654ae6b:{name:"Tracks",type:"Container"},46:{name:"TrackEntry",type:"Container"},87:{name:"TrackNumber",type:"Uint"},13253:{name:"TrackUID",type:"Uint"},3:{name:"TrackType",type:"Uint"},57:{name:"FlagEnabled",type:"Uint"},8:{name:"FlagDefault",type:"Uint"},5546:{name:"FlagForced",type:"Uint"},28:{name:"FlagLacing",type:"Uint"},11751:{name:"MinCache",type:"Uint"},11768:{name:"MaxCache",type:"Uint"},254851:{name:"DefaultDuration",type:"Uint"},216698:{name:"DefaultDecodedFieldDuration",type:"Uint"}
1,209231:{name:"TrackTimecodeScale",type:"Float"},4991:{name:"TrackOffset",type:"Int"},5614:{name:"MaxBlockAdditionID",type:"Uint"},4974:{name:"Name",type:"String"},177564:{name:"Language",type:"String"},6:{name:"CodecID",type:"String"},9122:{name:"CodecPrivate",type:"Binary"},362120:{name:"CodecName",type:"String"},13382:{name:"AttachmentLink",type:"Uint"},1742487:{name:"CodecSettings",type:"String"},1785920:{name:"CodecInfoURL",type:"String"},438848:{name:"CodecDownloadURL",type:"String"},42:{name:"CodecDecodeAll",type:"Uint"},12203:{name:"TrackOverlay",type:"Uint"},5802:{name:"CodecDelay",type:"Uint"},5819:{name:"SeekPreRoll",type:"Uint"},9764:{name:"TrackTranslate",type:"Container"},9980:{name:"TrackTranslateEditionUID",type:"Uint"},9919:{name:"TrackTranslateCodec",type:"Uint"},9893:{name:"TrackTranslateTrackID",type:"Binary"},96:{name:"Video",type:"Container"},26:{name:"FlagInterlaced",type:"Uint"},5048:{name:"StereoMode",type:"Uint"},5056:{name:"AlphaMode",type:"Uint"},5049:{name:"OldStereoMode",type:"Uint"},48:{name:"PixelWidth",type:"Uint"},58:{name:"PixelHeight",type:"Uint"},5290:{name:"PixelCropBottom",type:"Uint"},5307:{name:"PixelCropTop",type:"Uint"},5324:{name:"PixelCropLeft",type:"Uint"},5341:{name:"PixelCropRight",type:"Uint"},5296:{name:"DisplayWidth",type:"Uint"},5306:{name:"DisplayHeight",type:"Uint"},5298:{name:"DisplayUnit",type:"Uint"},5299:{name:"AspectRatioType",type:"Uint"},963876:{name:"ColourSpace",type:"Binary"},1029411:{name:"GammaValue",type:"Float"},230371:{name:"FrameRate",type:"Float"},97:{name:"Audio",type:"Container"},53:{name:"SamplingFrequency",type:"Float"},14517:{name:"OutputSamplingFrequency",type:"Float"},31:{name:"Channels",type:"Uint"},15739:{name:"ChannelPositions",type:"Binary"},8804:{name:"BitDepth",type:"Uint"},98:{name:"TrackOperation",type:"Container"},99:{name:"TrackCombinePlanes",type:"Container"},100:{name:"TrackPlane",type:"Container"},101:{name:"TrackPlaneUID",type:"Uint"},102:{name:"TrackPlaneType",type:"Uint"},105:{name:"TrackJoinBlocks",type:"Container"},109:{name:"TrackJoinUID",type:"Uint"},64:{name:"TrickTrackUID",type:"Uint"},65:{name:"TrickTrackSegmentUID",type:"Binary"},70:{name:"TrickTrackFlag",type:"Uint"},71:{name:"TrickMasterTrackUID",type:"Uint"},68:{name:"TrickMasterTrackSegmentUID",type:"Binary"},11648:{name:"ContentEncodings",type:"Container"},8768:{name:"ContentEncoding",type:"Container"},4145:{name:"ContentEncodingOrder",type:"Uint"},4146:{name:"ContentEncodingScope",type:"Uint"},4147:{name:"ContentEncodingType",type:"Uint"},4148:{name:"ContentCompression",type:"Container"},596:{name:"ContentCompAlgo",type:"Uint"},597:{name:"ContentCompSettings",type:"Binary"},4149:{name:"ContentEncryption",type:"Container"},2017:{name:"ContentEncAlgo",type:"Uint"},2018:{name:"ContentEncKeyID",type:"Binary"},2019:{name:"ContentSignature",type:"Binary"},2020:{name:"ContentSigKeyID",type:"Binary"},2021:{name:"ContentSigAlgo",type:"Uint"},2022:{name:"ContentSigHashAlgo",type:"Uint"},0xc53bb6b:{name:"Cues",type:"Container"},59:{name:"CuePoint",type:"Container"},51:{name:"CueTime",type:"Uint"},55:{name:"CueTrackPositions",type:"Container"},119:{name:"CueTrack",type:"Uint"},113:{name:"CueClusterPosition",type:"Uint"},112:{name:"CueRelativePosition",type:"Uint"},50:{name:"CueDuration",type:"Uint"},4984:{name:"CueBlockNumber",type:"Uint"},106:{name:"CueCodecState",type:"Uint"},91:{name:"CueReference",type:"Container"},22:{name:"CueRefTime",type:"Uint"},23:{name:"CueRefCluster",type:"Uint"},4959:{name:"CueRefNumber",type:"Uint"},107:{name:"CueRefCodecState",type:"Uint"},0x941a469:{name:"Attachments",type:"Container"},8615:{name:"AttachedFile",type:"Container"},1662:{name:"FileDescription",type:"String"},1646:{name:"FileName",type:"String"},1632:{name:"FileMimeType",type:"String"},1628:{name:"FileData",type:"Binary"},1710:{name:"FileUID",type:"Uint"},1653:{name:"FileReferral",type:"Binary"},1633:{name:"FileUsedStartTime",type:"Uint"},1634:{name:"FileUsedEndTime",type:"Uint"},4433776:{name:"Chapters",type:"Container"},1465:{name:"EditionEntry",type:"Container"},1468:{name:"EditionUID",type:"Uint"},1469:{name:"EditionFlagHidden",type:"Uint"},1499:{name:"EditionFlagDefault",type:"Uint"},1501:{name:"EditionFlagOrdered",type:"Uint"},54:{name:"ChapterAtom",type:"Container"},13252:{name:"ChapterUID",type:"Uint"},5716:{name:"ChapterStringUID",type:"String"},17:{name:"ChapterTimeStart",type:"Uint"},18:{name:"ChapterTimeEnd",type:"Uint"},24:{name:"ChapterFlagHidden",type:"Uint"},1432:{name:"ChapterFlagEnabled",type:"Uint"},11879:{name:"ChapterSegmentUID",type:"Binary"},11964:{name:"ChapterSegmentEditionUID",type:"Uint"}
1,9155:{name:"ChapterPhysicalEquiv",type:"Uint"},15:{name:"ChapterTrack",type:"Container"},9:{name:"ChapterTrackNumber",type:"Uint"},0:{name:"ChapterDisplay",type:"Container"},5:{name:"ChapString",type:"String"},892:{name:"ChapLanguage",type:"String"},894:{name:"ChapCountry",type:"String"},10564:{name:"ChapProcess",type:"Container"},10581:{name:"ChapProcessCodecID",type:"Uint"},1293:{name:"ChapProcessPrivate",type:"Binary"},10513:{name:"ChapProcessCommand",type:"Container"},10530:{name:"ChapProcessTime",type:"Uint"},10547:{name:"ChapProcessData",type:"Binary"},0x254c367:{name:"Tags",type:"Container"},13171:{name:"Tag",type:"Container"},9152:{name:"Targets",type:"Container"},10442:{name:"TargetTypeValue",type:"Uint"},9162:{name:"TargetType",type:"String"},9157:{name:"TagTrackUID",type:"Uint"},9161:{name:"TagEditionUID",type:"Uint"},9156:{name:"TagChapterUID",type:"Uint"},9158:{name:"TagAttachmentUID",type:"Uint"},10184:{name:"SimpleTag",type:"Container"},1443:{name:"TagName",type:"String"},1146:{name:"TagLanguage",type:"String"},1156:{name:"TagDefault",type:"Uint"},1159:{name:"TagString",type:"String"},1157:{name:"TagBinary",type:"Binary"}};function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e}function n(e,t){this.name=e||"Unknown",this.type=t||"Unknown"}function a(e,t){n.call(this,e,t||"Uint")}function r(e){return e.length%2==1?"0"+e:e}function i(e,t){n.call(this,e,t||"Float")}function o(e,t){n.call(this,e,t||"Container")}function l(e){o.call(this,"File","File"),this.setSource(e)}function s(e,t,n,a){if("object"==typeof n&&(a=n,n=void 0),!n)return new Promise(function(n){s(e,t,n,a)});try{var r=new FileReader;r.onloadend=function(){try{var i=new l(new Uint8Array(r.result));i.fixDuration(t,a)&&(e=i.toBlob(e.type))}catch(e){}n(e)},r.readAsArrayBuffer(e)}catch(t){n(e)}}return n.prototype.updateBySource=function(){},n.prototype.setSource=function(e){this.source=e,this.updateBySource()},n.prototype.updateByData=function(){},n.prototype.setData=function(e){this.data=e,this.updateByData()},t(a,n),a.prototype.updateBySource=function(){this.data="";for(var e=0;e<this.source.length;e++){var t=this.source[e].toString(16);this.data+=r(t)}},a.prototype.updateByData=function(){var e=this.data.length/2;this.source=new Uint8Array(e);for(var t=0;t<e;t++){var n=this.data.substr(2*t,2);this.source[t]=parseInt(n,16)}},a.prototype.getValue=function(){return parseInt(this.data,16)},a.prototype.setValue=function(e){this.setData(r(e.toString(16)))},t(i,n),i.prototype.getFloatArrayType=function(){return this.source&&4===this.source.length?Float32Array:Float64Array},i.prototype.updateBySource=function(){var e=this.source.reverse(),t=new(this.getFloatArrayType())(e.buffer);this.data=t[0]},i.prototype.updateByData=function(){var e=new Uint8Array(new(this.getFloatArrayType())([this.data]).buffer);this.source=e.reverse()},i.prototype.getValue=function(){return this.data},i.prototype.setValue=function(e){this.setData(e)},t(o,n),o.prototype.readByte=function(){return this.source[this.offset++]},o.prototype.readUint=function(){for(var e=this.readByte(),t=8-e.toString(2).length,n=e-(1<<7-t),a=0;a<t;a++)n*=256,n+=this.readByte();return n},o.prototype.updateBySource=function(){for(this.data=[],this.offset=0;this.offset<this.source.length;this.offset=l){var t=this.readUint(),r=this.readUint(),l=Math.min(this.offset+r,this.source.length),s=this.source.slice(this.offset,l),u=e[t]||{name:"Unknown",type:"Unknown"},c=n;switch(u.type){case"Container":c=o;break;case"Uint":c=a;break;case"Float":c=i}var p=new c(u.name,u.type);p.setSource(s),this.data.push({id:t,idHex:t.toString(16),data:p})}},o.prototype.writeUint=function(e,t){for(var n=1,a=128;e>=a&&n<8;n++,a*=128);if(!t)for(var r=a+e,i=n-1;i>=0;i--){var o=r%256;this.source[this.offset+i]=o,r=(r-o)/256}this.offset+=n},o.prototype.writeSections=function(e){this.offset=0;for(var t=0;t<this.data.length;t++){var n=this.data[t],a=n.data.source,r=a.length;this.writeUint(n.id,e),this.writeUint(r,e),e||this.source.set(a,this.offset),this.offset+=r}return this.offset},o.prototype.updateByData=function(){var e=this.writeSections("draft");this.source=new Uint8Array(e),this.writeSections()},o.prototype.getSectionById=function(e){for(var t=0;t<this.data.length;t++){var n=this.data[t];if(n.id===e)return n.data}return null},t(l,o),l.prototype.fixDuration=function(e,t){var n=t&&t.logger;void 0===n?n=function(e){console.log(e)}:n||(n=function(){});var a=this.getSectionById(0x8538067);if(!a)return n("[fix-webm-duration] Segment section is missing"),!1;var r=a.getSectionById(0x549a966);if(!r)return n("[fix-webm-duration] Info section is missing"),!1;var o=r.getSectionById(710577);if(!o)return n("[fix-webm-duration] TimecodeScale section is missing"),!1;var l=r.getSectionById(1161);if(l)if(!(0>=l.getValue()))return n(`[fix-webm-duration] Duration section is present, and the value is ${l.getValue()}`),!1;else n(`[fix-webm-duration] Duration section is present, but the value is ${l.getValue()}`),l.setValue(e);else n("[fix-webm-duration] Duration section is missing"),(l=new i("Duration","Float")).setValue(e),r.data.push({id:1161,data:l});return o.setValue(1e6),r.updateByData(),a.updateByData(),this.updateByData(),!0},l.prototype.toBlob=function(e){return new Blob([this.source.buffer],{type:e||"video/webm"})},s.default=s,s};if("function"==typeof define&&define.amd){let t;void 0!==(t=a(e.r))&&e.v(t)}
1else t.exports?t.exports=a():window.ysFixWebmDuration=a()}]); 2 3//# chunkId=01a0ef58-5d45-7d32-93d8-5f03387c80c6
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.