(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,123048,e=>{"use strict";var t=e.i(259942);function n(e){e.register(t.default),function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],i=r.pattern.source;function s(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function o(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}e.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};e.hooks.add("after-tokenize",function(t){t.language in l&&function t(n){for(var s=0,l=n.length;s<l;s++){var p=n[s];if("string"!=typeof p){var u=p.content;if(!Array.isArray(u)){"string"!=typeof u&&t([u]);continue}if("template-string"===p.type){var c=u[1];if(3===u.length&&"string"!=typeof c&&"embedded-code"===c.type){var g=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(c),f=c.alias,y=Array.isArray(f)?f[0]:f,d=e.languages[y];if(!d)continue;u[1]=function(t,n,s){var l=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),p=0,u={},c=o(l.map(function(e){if("string"==typeof e)return e;for(var n,r,a=e.content;-1!==t.indexOf((n=p++,r="___"+s.toUpperCase()+"_"+n+"___")););return u[r]=a,r}).join(""),n,s),g=Object.keys(u);return p=0,!function t(n){for(var i=0;i<n.length;i++){if(p>=g.length)return;var s=n[i];if("string"==typeof s||"string"==typeof s.content){var l=g[p],c="string"==typeof s?s:s.content,f=c.indexOf(l);if(-1!==f){++p;var y=c.substring(0,f),d=function(t){var n={};n["interpolation-punctuation"]=a;var i=e.tokenize(t,n);if(3===i.length){var s=[1,1];s.push.apply(s,o(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,s)}return new e.Token("interpolation",i,r.alias,t)}(u[l]),v=c.substring(f+l.length),h=[];if(y&&h.push(y),h.push(d),v){var m=[v];t(m),h.push.apply(h,m)}"string"==typeof s?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):s.content=h}}else{var k=s.content;Array.isArray(k)?t(k):t([k])}}}(c),new e.Token(s,c,"language-"+s,t)}(g,d,y)}}else t(u)}}}(t.tokens)})}(e)}n.displayName="js-templates",n.aliases=[],e.s(["default",0,n])}]);