diff --git a/assets/chunk.524.9e90f6fed6070082a8cd.css b/assets/chunk.524.82fbb5a18547aff048fc.css similarity index 100% rename from assets/chunk.524.9e90f6fed6070082a8cd.css rename to assets/chunk.524.82fbb5a18547aff048fc.css diff --git a/assets/chunk.524.82fbb5a18547aff048fc.js b/assets/chunk.524.82fbb5a18547aff048fc.js new file mode 100644 index 00000000..6660a0fd --- /dev/null +++ b/assets/chunk.524.82fbb5a18547aff048fc.js @@ -0,0 +1,78 @@ +var __ember_auto_import__;(()=>{var e,r,t,i={4566:(e,r,t)=>{"use strict" +t.r(r),t.d(r,{default:()=>E}) +var i=t(9553),n=t(2735),o=t.n(n) +const a=require("@ember/object/evented") +var s,c,u,l,m,b,p,d,h,f,g,y,v,x,j=t.n(a),k=t(1223),_=t(473),O=(t(1225),t(1603)) +function q(e){const{classes:r,disabled:t,label:i,secondary:n,text:o,type:a}=e +return a?((0,O.assert)("'type' property must be one of 'back', 'cancel', or 'next'",["back","cancel","next"].includes(a)),{action:(0,k.bind)(this,(function(){this[a]()})),classes:r,disabled:t,label:i,secondary:n,text:o,type:a}):e}function w(e,r,t,i,n){var o={} +return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=t.slice().reverse().reduce((function(t,i){return i(e,r,t)||t}),o),void 0===o.initializer?(Object.defineProperty(e,r,o),null):o}function z(e,r,t,i){t&&Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(i):void 0})}let E=(s=class extends(o().extend(j())){constructor(...e){super(...e),z(this,"classPrefix",c,this),z(this,"confirmCancel",u,this),z(this,"confirmCancelMessage",l,this),z(this,"defaultStepOptions",m,this),z(this,"errorTitle",b,this),z(this,"exitOnEsc",p,this),z(this,"isActive",d,this),z(this,"keyboardNavigation",h,this),z(this,"messageForUser",f,this),z(this,"modal",g,this),z(this,"modalContainer",y,this),z(this,"requiredElements",v,this),z(this,"tourObject",x,this)}addSteps(e){return this._initialize().then((()=>{const r=this.tourObject;(0,i.isEmpty)(e)||(this._requiredElementsPresent()?e.forEach((e=>{e.buttons&&(e.buttons=e.buttons.map(q.bind(this),this)),r.addStep(e)})):r.addStep({buttons:[{text:"Exit",action:r.cancel}],id:"error",title:this.errorTitle,text:this.messageForUser}))}))}back(){this.tourObject.back(),this.trigger("back")}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next(),this.trigger("next")}show(e){this.tourObject.show(e)}start(){const e=this.tourObject +if(null==e)throw new Error("the Promise from addSteps must be in a resolved state before the tour can be started") +this.isActive=!0,e.start()}_onTourStart(){this.trigger("start")}_onTourFinish(e){this.isDestroyed||(this.isActive=!1),this.trigger(e)}_initialize(){const{classPrefix:e,confirmCancel:r,confirmCancelMessage:i,defaultStepOptions:n,exitOnEsc:o,keyboardNavigation:a,modal:s,modalContainer:c,tourName:u}=this +return n.floatingUIOptions=n.floatingUIOptions||{},Promise.resolve().then(t.bind(t,1225)).then((t=>{const l=new t.default.Tour({classPrefix:e,confirmCancel:r,confirmCancelMessage:i,defaultStepOptions:n,exitOnEsc:o,keyboardNavigation:a,modalContainer:c||document.body,tourName:u,useModalOverlay:s}) +l.on("start",(0,k.bind)(this,"_onTourStart")),l.on("complete",(0,k.bind)(this,"_onTourFinish","complete")),l.on("cancel",(0,k.bind)(this,"_onTourFinish","cancel")),this.tourObject=l}))}_requiredElementsPresent(){let e=!0 +const r=this.requiredElements +return(0,i.isPresent)(r)&&r.forEach((r=>{const t=document.querySelector(r.selector) +!e||t&&!function(e){return 0===e.offsetWidth&&0===e.offsetHeight}(t)||(e=!1,this.errorTitle=r.title,this.messageForUser=r.message)})),e}},c=w(s.prototype,"classPrefix",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=w(s.prototype,"confirmCancel",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=w(s.prototype,"confirmCancelMessage",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=w(s.prototype,"defaultStepOptions",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),b=w(s.prototype,"errorTitle",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=w(s.prototype,"exitOnEsc",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=w(s.prototype,"isActive",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=w(s.prototype,"keyboardNavigation",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=w(s.prototype,"messageForUser",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=w(s.prototype,"modal",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=w(s.prototype,"modalContainer",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=w(s.prototype,"requiredElements",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),x=w(s.prototype,"tourObject",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)},4463:e=>{"use strict" +e.exports=require("@ember/-internals/metal")},2294:e=>{"use strict" +e.exports=require("@ember/application")},1389:e=>{"use strict" +e.exports=require("@ember/array")},8410:e=>{"use strict" +e.exports=require("@ember/array/proxy")},2663:e=>{"use strict" +e.exports=require("@ember/component")},336:e=>{"use strict" +e.exports=require("@ember/component/helper")},1603:e=>{"use strict" +e.exports=require("@ember/debug")},1806:e=>{"use strict" +e.exports=require("@ember/debug/data-adapter")},1130:e=>{"use strict" +e.exports=require("@ember/destroyable")},2377:e=>{"use strict" +e.exports=require("@ember/modifier")},4471:e=>{"use strict" +e.exports=require("@ember/object")},394:e=>{"use strict" +e.exports=require("@ember/object/compat")},3991:e=>{"use strict" +e.exports=require("@ember/object/computed")},4666:e=>{"use strict" +e.exports=require("@ember/object/internals")},2181:e=>{"use strict" +e.exports=require("@ember/object/mixin")},123:e=>{"use strict" +e.exports=require("@ember/object/observers")},9280:e=>{"use strict" +e.exports=require("@ember/object/promise-proxy-mixin")},7104:e=>{"use strict" +e.exports=require("@ember/object/proxy")},1223:e=>{"use strict" +e.exports=require("@ember/runloop")},2735:e=>{"use strict" +e.exports=require("@ember/service")},7970:e=>{"use strict" +e.exports=require("@ember/template")},1465:e=>{"use strict" +e.exports=require("@ember/template-factory")},9553:e=>{"use strict" +e.exports=require("@ember/utils")},8855:e=>{"use strict" +e.exports=require("@glimmer/component")},473:e=>{"use strict" +e.exports=require("@glimmer/tracking")},4217:e=>{"use strict" +e.exports=require("@glimmer/tracking/primitives/cache")},5606:e=>{"use strict" +e.exports=require("@glimmer/validator")},8993:e=>{"use strict" +e.exports=require("ember-concurrency")},9338:e=>{"use strict" +e.exports=require("ember-concurrency/-private/async-arrow-runtime")},9070:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r +function i(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@ember-data/adapter",["@ember/object","@ember/service","@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/object/mixin"],(function(){return i(t(6120))})),e("@ember-data/debug/data-adapter",["@ember/array","@ember/debug/data-adapter","@ember/object/observers","@ember/service","@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat"],(function(){return i(t(7153))})),e("@ember-data/model",["@ember/debug","@ember/object","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/array","@ember/array/proxy","@ember/object/computed","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/object/internals","@ember/application"],(function(){return i(t(4446))})),e("@ember-data/request-utils/deprecation-support",["@ember/debug"],(function(){return i(t(3358))})),e("@ember-data/serializer",["@ember/object","@ember/service"],(function(){return i(t(2354))})),e("@ember-data/serializer/transform",["@ember/object"],(function(){return i(t(1158))})),e("@handlebars/parser",[],(function(){return i(t(1487))})),e("clipboard",[],(function(){return i(t(7602))})),e("ember-data/store",["@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/application","@ember/object","@ember/array","@ember/array/proxy","@ember/object/computed","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/object/internals"],(function(){return i(t(6602))})),e("ember-keyboard",["@ember/utils","@ember/service","@ember/destroyable","@ember/debug"],(function(){return i(t(6203))})),e("ember-keyboard/helpers/if-key.js",["@ember/component/helper","@ember/debug","@ember/utils"],(function(){return i(t(9770))})),e("ember-keyboard/helpers/on-key.js",["@ember/component/helper","@ember/debug","@ember/service"],(function(){return i(t(2308))})),e("ember-keyboard/modifiers/on-key.js",["@ember/application","@ember/modifier","@ember/destroyable","@ember/service","@ember/object","@ember/debug","@ember/utils"],(function(){return i(t(2449))})),e("ember-keyboard/services/keyboard.js",["@ember/service","@ember/application","@ember/object","@ember/runloop","@ember/debug","@ember/utils"],(function(){return i(t(7628))})),e("ember-modifier",["@ember/application","@ember/modifier","@ember/destroyable"],(function(){return i(t(2033))})),e("ember-page-title/helpers/page-title",["@ember/service","@ember/component/helper","@ember/object/internals"],(function(){return i(t(6191))})),e("ember-page-title/services/page-title",["@ember/runloop","@ember/service","@ember/utils","@ember/debug"],(function(){return i(t(9944))})),e("ember-shepherd/services/tour",["@ember/utils","@ember/service","@ember/runloop","@glimmer/tracking","@ember/debug"],(function(){return i(t(4566))})),e("ember-shiki/components/code-block",["@ember/application","@ember/service","@glimmer/component","@glimmer/tracking","@ember/template","@ember/component","@ember/template-factory"],(function(){return i(t(2437))})),e("ember-shiki/components/code-group",["@glimmer/component","@glimmer/tracking","@ember/component","@ember/template-factory"],(function(){return i(t(7723))})),e("ember-shiki/components/code-tab",["@glimmer/component","@ember/component","@ember/template-factory"],(function(){return i(t(9195))})),e("ember-shiki/components/copy-button",["ember-concurrency/-private/async-arrow-runtime","@glimmer/component","@glimmer/tracking","ember-concurrency","@ember/component","@ember/template-factory"],(function(){return i(t(6970))})),e("ember-shiki/modifiers/shiki-render",["ember-concurrency/-private/async-arrow-runtime","@ember/application","@ember/modifier","@ember/destroyable","@ember/service","ember-concurrency"],(function(){return i(t(839))})),e("ember-shiki/services/shiki",["ember-concurrency/-private/async-arrow-runtime","@ember/application","@ember/service","ember-concurrency","@glimmer/tracking"],(function(){return i(t(3160))})),e("ember-truth-helpers/helpers/and",["@ember/component/helper","@ember/array"],(function(){return i(t(8680))})),e("ember-truth-helpers/helpers/eq",[],(function(){return i(t(2307))})),e("ember-truth-helpers/helpers/gt",[],(function(){return i(t(6290))})),e("ember-truth-helpers/helpers/gte",[],(function(){return i(t(219))})),e("ember-truth-helpers/helpers/is-array",["@ember/array"],(function(){return i(t(4829))})),e("ember-truth-helpers/helpers/is-empty",["@ember/utils"],(function(){return i(t(1589))})),e("ember-truth-helpers/helpers/is-equal",["@ember/utils"],(function(){return i(t(6488))})),e("ember-truth-helpers/helpers/lt",[],(function(){return i(t(1317))})),e("ember-truth-helpers/helpers/lte",[],(function(){return i(t(6982))})),e("ember-truth-helpers/helpers/not",["@ember/array"],(function(){return i(t(6420))})),e("ember-truth-helpers/helpers/not-eq",[],(function(){return i(t(7431))})),e("ember-truth-helpers/helpers/or",["@ember/array","@ember/component/helper"],(function(){return i(t(876))})),e("ember-truth-helpers/helpers/xor",["@ember/array"],(function(){return i(t(7088))})),e("highlight.js/lib/core",[],(function(){return i(t(738))})),e("highlight.js/lib/languages/css",[],(function(){return i(t(350))})),e("highlight.js/lib/languages/diff",[],(function(){return i(t(5262))})),e("highlight.js/lib/languages/handlebars",[],(function(){return i(t(2213))})),e("highlight.js/lib/languages/javascript",[],(function(){return i(t(4478))})),e("highlight.js/lib/languages/json",[],(function(){return i(t(3055))})),e("highlight.js/lib/languages/shell",[],(function(){return i(t(1735))})),e("highlight.js/lib/languages/typescript",[],(function(){return i(t(9566))})),e("highlight.js/lib/languages/xml",[],(function(){return i(t(4280))})),e("line-column",[],(function(){return i(t(8171))})),e("lodash",[],(function(){return i(t(7359))})),e("lunr",[],(function(){return i(t(3942))})),e("marked",[],(function(){return i(t(1403))})),e("marked-highlight",[],(function(){return i(t(9949))})),e("node-html-parser",[],(function(){return i(t(8077))})),e("prop-types",[],(function(){return i(t(9368))})),e("tether",[],(function(){return i(t(1845))})),e("tracked-toolbox",["@ember/debug","@ember/object","@glimmer/tracking","@glimmer/tracking/primitives/cache"],(function(){return i(t(5451))}))}()},8651:function(e,r){window._eai_r=require,window._eai_d=define}},n={} +function o(e){var r=n[e] +if(void 0!==r)return r.exports +var t=n[e]={id:e,loaded:!1,exports:{}} +return i[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}o.m=i,e=[],o.O=(r,t,i,n)=>{if(!t){var a=1/0 +for(l=0;l=n)&&Object.keys(o.O).every((e=>o.O[e](t[c])))?t.splice(c--,1):(s=!1,n0&&e[l-1][2]>n;l--)e[l]=e[l-1] +e[l]=[t,i,n]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e +return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>"chunk."+e+"."+{341:"2ec740b91959b2c34254",601:"6634fc9a00c7f944ae4f"}[e]+".js",o.miniCssF=e=>{},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="__ember_auto_import__:",o.l=(e,i,n,a)=>{if(r[e])r[e].push(i) +else{var s,c +if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l{s.onerror=s.onload=null,clearTimeout(p) +var n=r[e] +if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(i))),t)return t(i)},p=setTimeout(b.bind(null,void 0,{type:"timeout",target:s}),12e4) +s.onerror=b.bind(null,s.onerror),s.onload=b.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/ember-shepherd/assets/",(()=>{var e={524:0} +o.f.j=(r,t)=>{var i=o.o(e,r)?e[r]:void 0 +if(0!==i)if(i)t.push(i[2]) +else{var n=new Promise(((t,n)=>i=e[r]=[t,n])) +t.push(i[2]=n) +var a=o.p+o.u(r),s=new Error +o.l(a,(t=>{if(o.o(e,r)&&(0!==(i=e[r])&&(e[r]=void 0),i)){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src +s.message="Loading chunk "+r+" failed.\n("+n+": "+a+")",s.name="ChunkLoadError",s.type=n,s.request=a,i[1](s)}}),"chunk-"+r,r)}},o.O.j=r=>0===e[r] +var r=(r,t)=>{var i,n,[a,s,c]=t,u=0 +if(a.some((r=>0!==e[r]))){for(i in s)o.o(s,i)&&(o.m[i]=s[i]) +if(c)var l=c(o)}for(r&&r(t);uo(8651))) +var a=o.O(void 0,[559],(()=>o(9070))) +a=o.O(a),__ember_auto_import__=a})() diff --git a/assets/chunk.524.9e90f6fed6070082a8cd.js b/assets/chunk.524.9e90f6fed6070082a8cd.js deleted file mode 100644 index b9d3a8fa..00000000 --- a/assets/chunk.524.9e90f6fed6070082a8cd.js +++ /dev/null @@ -1,82 +0,0 @@ -var __ember_auto_import__;(()=>{var e,r,t,i={4566:(e,r,t)=>{"use strict" -t.r(r),t.d(r,{default:()=>E}) -var i=t(4471),n=t(9553),o=t(2735),a=t.n(o) -const s=require("@ember/object/evented") -var c,u,m,l,b,p,d,h,f,g,y,v=t.n(s),j=t(1223),x=t(473),k=(t(1225),t(1603)) -function _(e){const{classes:r,disabled:t,label:i,secondary:n,text:o,type:a}=e -return a?((0,k.assert)("'type' property must be one of 'back', 'cancel', or 'next'",["back","cancel","next"].includes(a)),{action:(0,j.bind)(this,(function(){this[a]()})),classes:r,disabled:t,label:i,secondary:n,text:o,type:a}):e}function O(e,r,t,i,n){var o={} -return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=t.slice().reverse().reduce((function(t,i){return i(e,r,t)||t}),o),void 0===o.initializer?(Object.defineProperty(e,r,o),null):o}function q(e,r,t){return(r=function(e){var r=function(e){if("object"!=typeof e||!e)return e -var r=e[Symbol.toPrimitive] -if(void 0!==r){var t=r.call(e,"string") -if("object"!=typeof t)return t -throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e) -return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function w(e,r,t,i){t&&Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(i):void 0})}let E=(c=class extends(a().extend(v())){constructor(...e){super(...e),w(this,"classPrefix",u,this),w(this,"confirmCancel",m,this),w(this,"confirmCancelMessage",l,this),q(this,"defaultStepOptions",{}),w(this,"errorTitle",b,this),w(this,"exitOnEsc",p,this),w(this,"isActive",d,this),w(this,"keyboardNavigation",h,this),w(this,"messageForUser",f,this),w(this,"modal",g,this),w(this,"modalContainer",y,this),q(this,"requiredElements",[]),q(this,"steps",[])}addSteps(e){return this._initialize().then((()=>{const r=this.tourObject;(0,n.isEmpty)(e)||(this._requiredElementsPresent()?e.forEach((e=>{e.buttons&&(e.buttons=e.buttons.map(_.bind(this),this)),r.addStep(e)})):r.addStep({buttons:[{text:"Exit",action:r.cancel}],id:"error",title:this.errorTitle,text:this.messageForUser}))}))}back(){this.tourObject.back(),this.trigger("back")}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next(),this.trigger("next")}show(e){this.tourObject.show(e)}start(){const e=this.tourObject -if(null==e)throw new Error("the Promise from addSteps must be in a resolved state before the tour can be started");(0,i.set)(this,"isActive",!0),e.start()}_onTourStart(){this.trigger("start")}_onTourFinish(e){this.isDestroyed||(0,i.set)(this,"isActive",!1),this.trigger(e)}_initialize(){const{classPrefix:e,confirmCancel:r,confirmCancelMessage:n,defaultStepOptions:o,exitOnEsc:a,keyboardNavigation:s,modal:c,modalContainer:u,tourName:m}=this -return o.floatingUIOptions=o.floatingUIOptions||{},Promise.resolve().then(t.bind(t,1225)).then((t=>{const l=new t.default.Tour({classPrefix:e,confirmCancel:r,confirmCancelMessage:n,defaultStepOptions:o,exitOnEsc:a,keyboardNavigation:s,modalContainer:u||document.body,tourName:m,useModalOverlay:c}) -l.on("start",(0,j.bind)(this,"_onTourStart")),l.on("complete",(0,j.bind)(this,"_onTourFinish","complete")),l.on("cancel",(0,j.bind)(this,"_onTourFinish","cancel")),(0,i.set)(this,"tourObject",l)}))}_requiredElementsPresent(){let e=!0 -const r=this.requiredElements -return(0,n.isPresent)(r)&&r.forEach((r=>{const t=document.querySelector(r.selector) -!e||t&&!function(e){return 0===e.offsetWidth&&0===e.offsetHeight}(t)||(e=!1,(0,i.set)(this,"errorTitle",r.title),(0,i.set)(this,"messageForUser",r.message))})),e}},u=O(c.prototype,"classPrefix",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=O(c.prototype,"confirmCancel",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=O(c.prototype,"confirmCancelMessage",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=O(c.prototype,"errorTitle",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=O(c.prototype,"exitOnEsc",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=O(c.prototype,"isActive",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=O(c.prototype,"keyboardNavigation",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=O(c.prototype,"messageForUser",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=O(c.prototype,"modal",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=O(c.prototype,"modalContainer",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c)},4463:e=>{"use strict" -e.exports=require("@ember/-internals/metal")},2294:e=>{"use strict" -e.exports=require("@ember/application")},1389:e=>{"use strict" -e.exports=require("@ember/array")},8410:e=>{"use strict" -e.exports=require("@ember/array/proxy")},2663:e=>{"use strict" -e.exports=require("@ember/component")},336:e=>{"use strict" -e.exports=require("@ember/component/helper")},1603:e=>{"use strict" -e.exports=require("@ember/debug")},1806:e=>{"use strict" -e.exports=require("@ember/debug/data-adapter")},1130:e=>{"use strict" -e.exports=require("@ember/destroyable")},2377:e=>{"use strict" -e.exports=require("@ember/modifier")},4471:e=>{"use strict" -e.exports=require("@ember/object")},394:e=>{"use strict" -e.exports=require("@ember/object/compat")},3991:e=>{"use strict" -e.exports=require("@ember/object/computed")},4666:e=>{"use strict" -e.exports=require("@ember/object/internals")},2181:e=>{"use strict" -e.exports=require("@ember/object/mixin")},123:e=>{"use strict" -e.exports=require("@ember/object/observers")},9280:e=>{"use strict" -e.exports=require("@ember/object/promise-proxy-mixin")},7104:e=>{"use strict" -e.exports=require("@ember/object/proxy")},1223:e=>{"use strict" -e.exports=require("@ember/runloop")},2735:e=>{"use strict" -e.exports=require("@ember/service")},7970:e=>{"use strict" -e.exports=require("@ember/template")},1465:e=>{"use strict" -e.exports=require("@ember/template-factory")},9553:e=>{"use strict" -e.exports=require("@ember/utils")},8855:e=>{"use strict" -e.exports=require("@glimmer/component")},473:e=>{"use strict" -e.exports=require("@glimmer/tracking")},4217:e=>{"use strict" -e.exports=require("@glimmer/tracking/primitives/cache")},5606:e=>{"use strict" -e.exports=require("@glimmer/validator")},8993:e=>{"use strict" -e.exports=require("ember-concurrency")},9338:e=>{"use strict" -e.exports=require("ember-concurrency/-private/async-arrow-runtime")},1211:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r -function i(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@ember-data/adapter",["@ember/object","@ember/service","@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/object/mixin"],(function(){return i(t(6120))})),e("@ember-data/debug/data-adapter",["@ember/array","@ember/debug/data-adapter","@ember/object/observers","@ember/service","@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat"],(function(){return i(t(7153))})),e("@ember-data/model",["@ember/debug","@ember/object","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/array","@ember/array/proxy","@ember/object/computed","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/object/internals","@ember/application"],(function(){return i(t(4446))})),e("@ember-data/request-utils/deprecation-support",["@ember/debug"],(function(){return i(t(3358))})),e("@ember-data/serializer",["@ember/object","@ember/service"],(function(){return i(t(2354))})),e("@ember-data/serializer/transform",["@ember/object"],(function(){return i(t(1158))})),e("@handlebars/parser",[],(function(){return i(t(1487))})),e("clipboard",[],(function(){return i(t(7602))})),e("ember-data/store",["@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/application","@ember/object","@ember/array","@ember/array/proxy","@ember/object/computed","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/object/internals"],(function(){return i(t(6602))})),e("ember-keyboard",["@ember/utils","@ember/service","@ember/destroyable","@ember/debug"],(function(){return i(t(6203))})),e("ember-keyboard/helpers/if-key.js",["@ember/component/helper","@ember/debug","@ember/utils"],(function(){return i(t(9770))})),e("ember-keyboard/helpers/on-key.js",["@ember/component/helper","@ember/debug","@ember/service"],(function(){return i(t(2308))})),e("ember-keyboard/modifiers/on-key.js",["@ember/application","@ember/modifier","@ember/destroyable","@ember/service","@ember/object","@ember/debug","@ember/utils"],(function(){return i(t(2449))})),e("ember-keyboard/services/keyboard.js",["@ember/service","@ember/application","@ember/object","@ember/runloop","@ember/debug","@ember/utils"],(function(){return i(t(7628))})),e("ember-modifier",["@ember/application","@ember/modifier","@ember/destroyable"],(function(){return i(t(2033))})),e("ember-page-title/helpers/page-title",["@ember/service","@ember/component/helper","@ember/object/internals"],(function(){return i(t(6191))})),e("ember-page-title/services/page-title",["@ember/runloop","@ember/service","@ember/utils","@ember/debug"],(function(){return i(t(9944))})),e("ember-shepherd/services/tour",["@ember/object","@ember/utils","@ember/service","@ember/runloop","@glimmer/tracking","@ember/debug"],(function(){return i(t(4566))})),e("ember-shiki/components/code-block",["@ember/application","@ember/service","@glimmer/component","@glimmer/tracking","@ember/template","@ember/component","@ember/template-factory"],(function(){return i(t(2437))})),e("ember-shiki/components/code-group",["@glimmer/component","@glimmer/tracking","@ember/component","@ember/template-factory"],(function(){return i(t(7723))})),e("ember-shiki/components/code-tab",["@glimmer/component","@ember/component","@ember/template-factory"],(function(){return i(t(9195))})),e("ember-shiki/components/copy-button",["ember-concurrency/-private/async-arrow-runtime","@glimmer/component","@glimmer/tracking","ember-concurrency","@ember/component","@ember/template-factory"],(function(){return i(t(6970))})),e("ember-shiki/modifiers/shiki-render",["ember-concurrency/-private/async-arrow-runtime","@ember/application","@ember/modifier","@ember/destroyable","@ember/service","ember-concurrency"],(function(){return i(t(839))})),e("ember-shiki/services/shiki",["ember-concurrency/-private/async-arrow-runtime","@ember/application","@ember/service","ember-concurrency","@glimmer/tracking"],(function(){return i(t(3160))})),e("ember-truth-helpers/helpers/and",["@ember/component/helper","@ember/array"],(function(){return i(t(8680))})),e("ember-truth-helpers/helpers/eq",[],(function(){return i(t(2307))})),e("ember-truth-helpers/helpers/gt",[],(function(){return i(t(6290))})),e("ember-truth-helpers/helpers/gte",[],(function(){return i(t(219))})),e("ember-truth-helpers/helpers/is-array",["@ember/array"],(function(){return i(t(4829))})),e("ember-truth-helpers/helpers/is-empty",["@ember/utils"],(function(){return i(t(1589))})),e("ember-truth-helpers/helpers/is-equal",["@ember/utils"],(function(){return i(t(6488))})),e("ember-truth-helpers/helpers/lt",[],(function(){return i(t(1317))})),e("ember-truth-helpers/helpers/lte",[],(function(){return i(t(6982))})),e("ember-truth-helpers/helpers/not",["@ember/array"],(function(){return i(t(6420))})),e("ember-truth-helpers/helpers/not-eq",[],(function(){return i(t(7431))})),e("ember-truth-helpers/helpers/or",["@ember/array","@ember/component/helper"],(function(){return i(t(876))})),e("ember-truth-helpers/helpers/xor",["@ember/array"],(function(){return i(t(7088))})),e("highlight.js/lib/core",[],(function(){return i(t(738))})),e("highlight.js/lib/languages/css",[],(function(){return i(t(350))})),e("highlight.js/lib/languages/diff",[],(function(){return i(t(5262))})),e("highlight.js/lib/languages/handlebars",[],(function(){return i(t(2213))})),e("highlight.js/lib/languages/javascript",[],(function(){return i(t(4478))})),e("highlight.js/lib/languages/json",[],(function(){return i(t(3055))})),e("highlight.js/lib/languages/shell",[],(function(){return i(t(1735))})),e("highlight.js/lib/languages/typescript",[],(function(){return i(t(9566))})),e("highlight.js/lib/languages/xml",[],(function(){return i(t(4280))})),e("line-column",[],(function(){return i(t(8171))})),e("lodash",[],(function(){return i(t(7359))})),e("lunr",[],(function(){return i(t(3942))})),e("marked",[],(function(){return i(t(1403))})),e("marked-highlight",[],(function(){return i(t(9949))})),e("node-html-parser",[],(function(){return i(t(8077))})),e("prop-types",[],(function(){return i(t(9368))})),e("tether",[],(function(){return i(t(1845))})),e("tracked-toolbox",["@ember/debug","@ember/object","@glimmer/tracking","@glimmer/tracking/primitives/cache"],(function(){return i(t(5451))}))}()},4582:function(e,r){window._eai_r=require,window._eai_d=define}},n={} -function o(e){var r=n[e] -if(void 0!==r)return r.exports -var t=n[e]={id:e,loaded:!1,exports:{}} -return i[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}o.m=i,e=[],o.O=(r,t,i,n)=>{if(!t){var a=1/0 -for(m=0;m=n)&&Object.keys(o.O).every((e=>o.O[e](t[c])))?t.splice(c--,1):(s=!1,n0&&e[m-1][2]>n;m--)e[m]=e[m-1] -e[m]=[t,i,n]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e -return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>"chunk."+e+"."+{341:"2ec740b91959b2c34254",601:"6634fc9a00c7f944ae4f"}[e]+".js",o.miniCssF=e=>{},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="__ember_auto_import__:",o.l=(e,i,n,a)=>{if(r[e])r[e].push(i) -else{var s,c -if(void 0!==n)for(var u=document.getElementsByTagName("script"),m=0;m{s.onerror=s.onload=null,clearTimeout(p) -var n=r[e] -if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(i))),t)return t(i)},p=setTimeout(b.bind(null,void 0,{type:"timeout",target:s}),12e4) -s.onerror=b.bind(null,s.onerror),s.onload=b.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/ember-shepherd/assets/",(()=>{var e={524:0} -o.f.j=(r,t)=>{var i=o.o(e,r)?e[r]:void 0 -if(0!==i)if(i)t.push(i[2]) -else{var n=new Promise(((t,n)=>i=e[r]=[t,n])) -t.push(i[2]=n) -var a=o.p+o.u(r),s=new Error -o.l(a,(t=>{if(o.o(e,r)&&(0!==(i=e[r])&&(e[r]=void 0),i)){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src -s.message="Loading chunk "+r+" failed.\n("+n+": "+a+")",s.name="ChunkLoadError",s.type=n,s.request=a,i[1](s)}}),"chunk-"+r,r)}},o.O.j=r=>0===e[r] -var r=(r,t)=>{var i,n,[a,s,c]=t,u=0 -if(a.some((r=>0!==e[r]))){for(i in s)o.o(s,i)&&(o.m[i]=s[i]) -if(c)var m=c(o)}for(r&&r(t);uo(4582))) -var a=o.O(void 0,[559],(()=>o(1211))) -a=o.O(a),__ember_auto_import__=a})() diff --git a/assets/chunk.559.b345c26919ffb457e525.js b/assets/chunk.559.640fabbb31b8605739b7.js similarity index 99% rename from assets/chunk.559.b345c26919ffb457e525.js rename to assets/chunk.559.640fabbb31b8605739b7.js index 28bc3073..909e778e 100644 --- a/assets/chunk.559.b345c26919ffb457e525.js +++ b/assets/chunk.559.640fabbb31b8605739b7.js @@ -1,4 +1,4 @@ -/*! For license information please see chunk.559.b345c26919ffb457e525.js.LICENSE.txt */ +/*! For license information please see chunk.559.640fabbb31b8605739b7.js.LICENSE.txt */ (globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[559],{6120:(e,t,r)=>{"use strict" r.r(t),r.d(t,{BuildURLMixin:()=>u,default:()=>k}) var n=r(4471),i=r.n(n),o=r(2735),s=(r(1603),r(2181)),a=r.n(s),l=r(4873) diff --git a/assets/chunk.559.b345c26919ffb457e525.js.LICENSE.txt b/assets/chunk.559.640fabbb31b8605739b7.js.LICENSE.txt similarity index 100% rename from assets/chunk.559.b345c26919ffb457e525.js.LICENSE.txt rename to assets/chunk.559.640fabbb31b8605739b7.js.LICENSE.txt diff --git a/assets/chunk.582.f9f29ac4b0bd72a8233b.css b/assets/chunk.582.4416d51c212f072d14c5.css similarity index 100% rename from assets/chunk.582.f9f29ac4b0bd72a8233b.css rename to assets/chunk.582.4416d51c212f072d14c5.css diff --git a/assets/chunk.582.f9f29ac4b0bd72a8233b.js b/assets/chunk.582.4416d51c212f072d14c5.js similarity index 54% rename from assets/chunk.582.f9f29ac4b0bd72a8233b.js rename to assets/chunk.582.4416d51c212f072d14c5.js index 5d335fb2..1373ae94 100644 --- a/assets/chunk.582.f9f29ac4b0bd72a8233b.js +++ b/assets/chunk.582.4416d51c212f072d14c5.js @@ -1,22 +1,18 @@ var __ember_auto_import__;(()=>{var e,r,t,i={4566:(e,r,t)=>{"use strict" -t.r(r),t.d(r,{default:()=>E}) -var i=t(4471),n=t(9553),o=t(2735),s=t.n(o) -const a=require("@ember/object/evented") -var c,u,l,m,b,p,d,h,f,g,y,v=t.n(a),_=t(1223),j=t(473),x=(t(1225),t(1603)) -function k(e){const{classes:r,disabled:t,label:i,secondary:n,text:o,type:s}=e -return s?((0,x.assert)("'type' property must be one of 'back', 'cancel', or 'next'",["back","cancel","next"].includes(s)),{action:(0,_.bind)(this,(function(){this[s]()})),classes:r,disabled:t,label:i,secondary:n,text:o,type:s}):e}function w(e,r,t,i,n){var o={} -return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=t.slice().reverse().reduce((function(t,i){return i(e,r,t)||t}),o),void 0===o.initializer?(Object.defineProperty(e,r,o),null):o}function O(e,r,t){return(r=function(e){var r=function(e){if("object"!=typeof e||!e)return e -var r=e[Symbol.toPrimitive] -if(void 0!==r){var t=r.call(e,"string") -if("object"!=typeof t)return t -throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e) -return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function q(e,r,t,i){t&&Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(i):void 0})}let E=(c=class extends(s().extend(v())){constructor(...e){super(...e),q(this,"classPrefix",u,this),q(this,"confirmCancel",l,this),q(this,"confirmCancelMessage",m,this),O(this,"defaultStepOptions",{}),q(this,"errorTitle",b,this),q(this,"exitOnEsc",p,this),q(this,"isActive",d,this),q(this,"keyboardNavigation",h,this),q(this,"messageForUser",f,this),q(this,"modal",g,this),q(this,"modalContainer",y,this),O(this,"requiredElements",[]),O(this,"steps",[])}addSteps(e){return this._initialize().then((()=>{const r=this.tourObject;(0,n.isEmpty)(e)||(this._requiredElementsPresent()?e.forEach((e=>{e.buttons&&(e.buttons=e.buttons.map(k.bind(this),this)),r.addStep(e)})):r.addStep({buttons:[{text:"Exit",action:r.cancel}],id:"error",title:this.errorTitle,text:this.messageForUser}))}))}back(){this.tourObject.back(),this.trigger("back")}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next(),this.trigger("next")}show(e){this.tourObject.show(e)}start(){const e=this.tourObject -if(null==e)throw new Error("the Promise from addSteps must be in a resolved state before the tour can be started");(0,i.set)(this,"isActive",!0),e.start()}_onTourStart(){this.trigger("start")}_onTourFinish(e){this.isDestroyed||(0,i.set)(this,"isActive",!1),this.trigger(e)}_initialize(){const{classPrefix:e,confirmCancel:r,confirmCancelMessage:n,defaultStepOptions:o,exitOnEsc:s,keyboardNavigation:a,modal:c,modalContainer:u,tourName:l}=this -return o.floatingUIOptions=o.floatingUIOptions||{},Promise.resolve().then(t.bind(t,1225)).then((t=>{const m=new t.default.Tour({classPrefix:e,confirmCancel:r,confirmCancelMessage:n,defaultStepOptions:o,exitOnEsc:s,keyboardNavigation:a,modalContainer:u||document.body,tourName:l,useModalOverlay:c}) -m.on("start",(0,_.bind)(this,"_onTourStart")),m.on("complete",(0,_.bind)(this,"_onTourFinish","complete")),m.on("cancel",(0,_.bind)(this,"_onTourFinish","cancel")),(0,i.set)(this,"tourObject",m)}))}_requiredElementsPresent(){let e=!0 +t.r(r),t.d(r,{default:()=>z}) +var i=t(9553),n=t(2735),o=t.n(n) +const s=require("@ember/object/evented") +var a,c,u,l,m,b,p,d,h,f,g,y,v,_,j=t.n(s),x=t(1223),k=t(473),O=(t(1225),t(1603)) +function w(e){const{classes:r,disabled:t,label:i,secondary:n,text:o,type:s}=e +return s?((0,O.assert)("'type' property must be one of 'back', 'cancel', or 'next'",["back","cancel","next"].includes(s)),{action:(0,x.bind)(this,(function(){this[s]()})),classes:r,disabled:t,label:i,secondary:n,text:o,type:s}):e}function q(e,r,t,i,n){var o={} +return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=t.slice().reverse().reduce((function(t,i){return i(e,r,t)||t}),o),void 0===o.initializer?(Object.defineProperty(e,r,o),null):o}function E(e,r,t,i){t&&Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(i):void 0})}let z=(a=class extends(o().extend(j())){constructor(...e){super(...e),E(this,"classPrefix",c,this),E(this,"confirmCancel",u,this),E(this,"confirmCancelMessage",l,this),E(this,"defaultStepOptions",m,this),E(this,"errorTitle",b,this),E(this,"exitOnEsc",p,this),E(this,"isActive",d,this),E(this,"keyboardNavigation",h,this),E(this,"messageForUser",f,this),E(this,"modal",g,this),E(this,"modalContainer",y,this),E(this,"requiredElements",v,this),E(this,"tourObject",_,this)}addSteps(e){return this._initialize().then((()=>{const r=this.tourObject;(0,i.isEmpty)(e)||(this._requiredElementsPresent()?e.forEach((e=>{e.buttons&&(e.buttons=e.buttons.map(w.bind(this),this)),r.addStep(e)})):r.addStep({buttons:[{text:"Exit",action:r.cancel}],id:"error",title:this.errorTitle,text:this.messageForUser}))}))}back(){this.tourObject.back(),this.trigger("back")}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next(),this.trigger("next")}show(e){this.tourObject.show(e)}start(){const e=this.tourObject +if(null==e)throw new Error("the Promise from addSteps must be in a resolved state before the tour can be started") +this.isActive=!0,e.start()}_onTourStart(){this.trigger("start")}_onTourFinish(e){this.isDestroyed||(this.isActive=!1),this.trigger(e)}_initialize(){const{classPrefix:e,confirmCancel:r,confirmCancelMessage:i,defaultStepOptions:n,exitOnEsc:o,keyboardNavigation:s,modal:a,modalContainer:c,tourName:u}=this +return n.floatingUIOptions=n.floatingUIOptions||{},Promise.resolve().then(t.bind(t,1225)).then((t=>{const l=new t.default.Tour({classPrefix:e,confirmCancel:r,confirmCancelMessage:i,defaultStepOptions:n,exitOnEsc:o,keyboardNavigation:s,modalContainer:c||document.body,tourName:u,useModalOverlay:a}) +l.on("start",(0,x.bind)(this,"_onTourStart")),l.on("complete",(0,x.bind)(this,"_onTourFinish","complete")),l.on("cancel",(0,x.bind)(this,"_onTourFinish","cancel")),this.tourObject=l}))}_requiredElementsPresent(){let e=!0 const r=this.requiredElements -return(0,n.isPresent)(r)&&r.forEach((r=>{const t=document.querySelector(r.selector) -!e||t&&!function(e){return 0===e.offsetWidth&&0===e.offsetHeight}(t)||(e=!1,(0,i.set)(this,"errorTitle",r.title),(0,i.set)(this,"messageForUser",r.message))})),e}},u=w(c.prototype,"classPrefix",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=w(c.prototype,"confirmCancel",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=w(c.prototype,"confirmCancelMessage",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=w(c.prototype,"errorTitle",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=w(c.prototype,"exitOnEsc",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=w(c.prototype,"isActive",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=w(c.prototype,"keyboardNavigation",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=w(c.prototype,"messageForUser",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=w(c.prototype,"modal",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=w(c.prototype,"modalContainer",[j.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c)},4463:e=>{"use strict" +return(0,i.isPresent)(r)&&r.forEach((r=>{const t=document.querySelector(r.selector) +!e||t&&!function(e){return 0===e.offsetWidth&&0===e.offsetHeight}(t)||(e=!1,this.errorTitle=r.title,this.messageForUser=r.message)})),e}},c=q(a.prototype,"classPrefix",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=q(a.prototype,"confirmCancel",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=q(a.prototype,"confirmCancelMessage",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=q(a.prototype,"defaultStepOptions",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),b=q(a.prototype,"errorTitle",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=q(a.prototype,"exitOnEsc",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=q(a.prototype,"isActive",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=q(a.prototype,"keyboardNavigation",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=q(a.prototype,"messageForUser",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=q(a.prototype,"modal",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=q(a.prototype,"modalContainer",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=q(a.prototype,"requiredElements",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=q(a.prototype,"tourObject",[k.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)},4463:e=>{"use strict" e.exports=require("@ember/-internals/metal")},2294:e=>{"use strict" e.exports=require("@ember/application")},1389:e=>{"use strict" e.exports=require("@ember/array")},8410:e=>{"use strict" @@ -45,10 +41,10 @@ e.exports=require("@glimmer/tracking")},4217:e=>{"use strict" e.exports=require("@glimmer/tracking/primitives/cache")},5606:e=>{"use strict" e.exports=require("@glimmer/validator")},8993:e=>{"use strict" e.exports=require("ember-concurrency")},9338:e=>{"use strict" -e.exports=require("ember-concurrency/-private/async-arrow-runtime")},1211:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r -function i(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@ember-data/adapter",["@ember/object","@ember/service","@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/object/mixin"],(function(){return i(t(6120))})),e("@ember-data/debug/data-adapter",["@ember/array","@ember/debug/data-adapter","@ember/object/observers","@ember/service","@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat"],(function(){return i(t(7153))})),e("@ember-data/model",["@ember/debug","@ember/object","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/array","@ember/array/proxy","@ember/object/computed","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/object/internals","@ember/application"],(function(){return i(t(4446))})),e("@ember-data/request-utils/deprecation-support",["@ember/debug"],(function(){return i(t(3358))})),e("@ember-data/serializer",["@ember/object","@ember/service"],(function(){return i(t(2354))})),e("@ember-data/serializer/transform",["@ember/object"],(function(){return i(t(1158))})),e("@handlebars/parser",[],(function(){return i(t(1487))})),e("clipboard",[],(function(){return i(t(7602))})),e("ember-data/store",["@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/application","@ember/object","@ember/array","@ember/array/proxy","@ember/object/computed","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/object/internals"],(function(){return i(t(6602))})),e("ember-keyboard",["@ember/utils","@ember/service","@ember/destroyable","@ember/debug"],(function(){return i(t(6203))})),e("ember-keyboard/helpers/if-key.js",["@ember/component/helper","@ember/debug","@ember/utils"],(function(){return i(t(9770))})),e("ember-keyboard/helpers/on-key.js",["@ember/component/helper","@ember/debug","@ember/service"],(function(){return i(t(2308))})),e("ember-keyboard/modifiers/on-key.js",["@ember/application","@ember/modifier","@ember/destroyable","@ember/service","@ember/object","@ember/debug","@ember/utils"],(function(){return i(t(2449))})),e("ember-keyboard/services/keyboard.js",["@ember/service","@ember/application","@ember/object","@ember/runloop","@ember/debug","@ember/utils"],(function(){return i(t(7628))})),e("ember-modifier",["@ember/application","@ember/modifier","@ember/destroyable"],(function(){return i(t(2033))})),e("ember-page-title/helpers/page-title",["@ember/service","@ember/component/helper","@ember/object/internals"],(function(){return i(t(6191))})),e("ember-page-title/services/page-title",["@ember/runloop","@ember/service","@ember/utils","@ember/debug"],(function(){return i(t(9944))})),e("ember-shepherd/services/tour",["@ember/object","@ember/utils","@ember/service","@ember/runloop","@glimmer/tracking","@ember/debug"],(function(){return i(t(4566))})),e("ember-shiki/components/code-block",["@ember/application","@ember/service","@glimmer/component","@glimmer/tracking","@ember/template","@ember/component","@ember/template-factory"],(function(){return i(t(2437))})),e("ember-shiki/components/code-group",["@glimmer/component","@glimmer/tracking","@ember/component","@ember/template-factory"],(function(){return i(t(7723))})),e("ember-shiki/components/code-tab",["@glimmer/component","@ember/component","@ember/template-factory"],(function(){return i(t(9195))})),e("ember-shiki/components/copy-button",["ember-concurrency/-private/async-arrow-runtime","@glimmer/component","@glimmer/tracking","ember-concurrency","@ember/component","@ember/template-factory"],(function(){return i(t(6970))})),e("ember-shiki/modifiers/shiki-render",["ember-concurrency/-private/async-arrow-runtime","@ember/application","@ember/modifier","@ember/destroyable","@ember/service","ember-concurrency"],(function(){return i(t(839))})),e("ember-shiki/services/shiki",["ember-concurrency/-private/async-arrow-runtime","@ember/application","@ember/service","ember-concurrency","@glimmer/tracking"],(function(){return i(t(3160))})),e("ember-truth-helpers/helpers/and",["@ember/component/helper","@ember/array"],(function(){return i(t(8680))})),e("ember-truth-helpers/helpers/eq",[],(function(){return i(t(2307))})),e("ember-truth-helpers/helpers/gt",[],(function(){return i(t(6290))})),e("ember-truth-helpers/helpers/gte",[],(function(){return i(t(219))})),e("ember-truth-helpers/helpers/is-array",["@ember/array"],(function(){return i(t(4829))})),e("ember-truth-helpers/helpers/is-empty",["@ember/utils"],(function(){return i(t(1589))})),e("ember-truth-helpers/helpers/is-equal",["@ember/utils"],(function(){return i(t(6488))})),e("ember-truth-helpers/helpers/lt",[],(function(){return i(t(1317))})),e("ember-truth-helpers/helpers/lte",[],(function(){return i(t(6982))})),e("ember-truth-helpers/helpers/not",["@ember/array"],(function(){return i(t(6420))})),e("ember-truth-helpers/helpers/not-eq",[],(function(){return i(t(7431))})),e("ember-truth-helpers/helpers/or",["@ember/array","@ember/component/helper"],(function(){return i(t(876))})),e("ember-truth-helpers/helpers/xor",["@ember/array"],(function(){return i(t(7088))})),e("highlight.js/lib/core",[],(function(){return i(t(738))})),e("highlight.js/lib/languages/css",[],(function(){return i(t(350))})),e("highlight.js/lib/languages/diff",[],(function(){return i(t(5262))})),e("highlight.js/lib/languages/handlebars",[],(function(){return i(t(2213))})),e("highlight.js/lib/languages/javascript",[],(function(){return i(t(4478))})),e("highlight.js/lib/languages/json",[],(function(){return i(t(3055))})),e("highlight.js/lib/languages/shell",[],(function(){return i(t(1735))})),e("highlight.js/lib/languages/typescript",[],(function(){return i(t(9566))})),e("highlight.js/lib/languages/xml",[],(function(){return i(t(4280))})),e("line-column",[],(function(){return i(t(8171))})),e("lodash",[],(function(){return i(t(7359))})),e("lunr",[],(function(){return i(t(3942))})),e("marked",[],(function(){return i(t(1403))})),e("marked-highlight",[],(function(){return i(t(9949))})),e("node-html-parser",[],(function(){return i(t(8077))})),e("prop-types",[],(function(){return i(t(9368))})),e("tether",[],(function(){return i(t(1845))})),e("tracked-toolbox",["@ember/debug","@ember/object","@glimmer/tracking","@glimmer/tracking/primitives/cache"],(function(){return i(t(5451))}))}()},4582:function(e,r){window._eai_r=require,window._eai_d=define},4457:(e,r,t)=>{var i,n +e.exports=require("ember-concurrency/-private/async-arrow-runtime")},9070:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r +function i(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@ember-data/adapter",["@ember/object","@ember/service","@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/object/mixin"],(function(){return i(t(6120))})),e("@ember-data/debug/data-adapter",["@ember/array","@ember/debug/data-adapter","@ember/object/observers","@ember/service","@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat"],(function(){return i(t(7153))})),e("@ember-data/model",["@ember/debug","@ember/object","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/array","@ember/array/proxy","@ember/object/computed","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/object/internals","@ember/application"],(function(){return i(t(4446))})),e("@ember-data/request-utils/deprecation-support",["@ember/debug"],(function(){return i(t(3358))})),e("@ember-data/serializer",["@ember/object","@ember/service"],(function(){return i(t(2354))})),e("@ember-data/serializer/transform",["@ember/object"],(function(){return i(t(1158))})),e("@handlebars/parser",[],(function(){return i(t(1487))})),e("clipboard",[],(function(){return i(t(7602))})),e("ember-data/store",["@ember/debug","@ember/-internals/metal","@glimmer/validator","@ember/runloop","@glimmer/tracking/primitives/cache","@ember/object/compat","@ember/application","@ember/object","@ember/array","@ember/array/proxy","@ember/object/computed","@ember/object/promise-proxy-mixin","@ember/object/proxy","@ember/object/internals"],(function(){return i(t(6602))})),e("ember-keyboard",["@ember/utils","@ember/service","@ember/destroyable","@ember/debug"],(function(){return i(t(6203))})),e("ember-keyboard/helpers/if-key.js",["@ember/component/helper","@ember/debug","@ember/utils"],(function(){return i(t(9770))})),e("ember-keyboard/helpers/on-key.js",["@ember/component/helper","@ember/debug","@ember/service"],(function(){return i(t(2308))})),e("ember-keyboard/modifiers/on-key.js",["@ember/application","@ember/modifier","@ember/destroyable","@ember/service","@ember/object","@ember/debug","@ember/utils"],(function(){return i(t(2449))})),e("ember-keyboard/services/keyboard.js",["@ember/service","@ember/application","@ember/object","@ember/runloop","@ember/debug","@ember/utils"],(function(){return i(t(7628))})),e("ember-modifier",["@ember/application","@ember/modifier","@ember/destroyable"],(function(){return i(t(2033))})),e("ember-page-title/helpers/page-title",["@ember/service","@ember/component/helper","@ember/object/internals"],(function(){return i(t(6191))})),e("ember-page-title/services/page-title",["@ember/runloop","@ember/service","@ember/utils","@ember/debug"],(function(){return i(t(9944))})),e("ember-shepherd/services/tour",["@ember/utils","@ember/service","@ember/runloop","@glimmer/tracking","@ember/debug"],(function(){return i(t(4566))})),e("ember-shiki/components/code-block",["@ember/application","@ember/service","@glimmer/component","@glimmer/tracking","@ember/template","@ember/component","@ember/template-factory"],(function(){return i(t(2437))})),e("ember-shiki/components/code-group",["@glimmer/component","@glimmer/tracking","@ember/component","@ember/template-factory"],(function(){return i(t(7723))})),e("ember-shiki/components/code-tab",["@glimmer/component","@ember/component","@ember/template-factory"],(function(){return i(t(9195))})),e("ember-shiki/components/copy-button",["ember-concurrency/-private/async-arrow-runtime","@glimmer/component","@glimmer/tracking","ember-concurrency","@ember/component","@ember/template-factory"],(function(){return i(t(6970))})),e("ember-shiki/modifiers/shiki-render",["ember-concurrency/-private/async-arrow-runtime","@ember/application","@ember/modifier","@ember/destroyable","@ember/service","ember-concurrency"],(function(){return i(t(839))})),e("ember-shiki/services/shiki",["ember-concurrency/-private/async-arrow-runtime","@ember/application","@ember/service","ember-concurrency","@glimmer/tracking"],(function(){return i(t(3160))})),e("ember-truth-helpers/helpers/and",["@ember/component/helper","@ember/array"],(function(){return i(t(8680))})),e("ember-truth-helpers/helpers/eq",[],(function(){return i(t(2307))})),e("ember-truth-helpers/helpers/gt",[],(function(){return i(t(6290))})),e("ember-truth-helpers/helpers/gte",[],(function(){return i(t(219))})),e("ember-truth-helpers/helpers/is-array",["@ember/array"],(function(){return i(t(4829))})),e("ember-truth-helpers/helpers/is-empty",["@ember/utils"],(function(){return i(t(1589))})),e("ember-truth-helpers/helpers/is-equal",["@ember/utils"],(function(){return i(t(6488))})),e("ember-truth-helpers/helpers/lt",[],(function(){return i(t(1317))})),e("ember-truth-helpers/helpers/lte",[],(function(){return i(t(6982))})),e("ember-truth-helpers/helpers/not",["@ember/array"],(function(){return i(t(6420))})),e("ember-truth-helpers/helpers/not-eq",[],(function(){return i(t(7431))})),e("ember-truth-helpers/helpers/or",["@ember/array","@ember/component/helper"],(function(){return i(t(876))})),e("ember-truth-helpers/helpers/xor",["@ember/array"],(function(){return i(t(7088))})),e("highlight.js/lib/core",[],(function(){return i(t(738))})),e("highlight.js/lib/languages/css",[],(function(){return i(t(350))})),e("highlight.js/lib/languages/diff",[],(function(){return i(t(5262))})),e("highlight.js/lib/languages/handlebars",[],(function(){return i(t(2213))})),e("highlight.js/lib/languages/javascript",[],(function(){return i(t(4478))})),e("highlight.js/lib/languages/json",[],(function(){return i(t(3055))})),e("highlight.js/lib/languages/shell",[],(function(){return i(t(1735))})),e("highlight.js/lib/languages/typescript",[],(function(){return i(t(9566))})),e("highlight.js/lib/languages/xml",[],(function(){return i(t(4280))})),e("line-column",[],(function(){return i(t(8171))})),e("lodash",[],(function(){return i(t(7359))})),e("lunr",[],(function(){return i(t(3942))})),e("marked",[],(function(){return i(t(1403))})),e("marked-highlight",[],(function(){return i(t(9949))})),e("node-html-parser",[],(function(){return i(t(8077))})),e("prop-types",[],(function(){return i(t(9368))})),e("tether",[],(function(){return i(t(1845))})),e("tracked-toolbox",["@ember/debug","@ember/object","@glimmer/tracking","@glimmer/tracking/primitives/cache"],(function(){return i(t(5451))}))}()},8651:function(e,r){window._eai_r=require,window._eai_d=define},1376:(e,r,t)=>{var i,n e.exports=(i=_eai_d,n=_eai_r,window.emberAutoImportDynamic=function(e){return 1===arguments.length?n("_eai_dyn_"+e):n("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return n("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},i("dom-element-descriptors",[],(function(){return(e=t(2578))&&e.__esModule?e:Object.assign({default:e},e) -var e})),void t(1211))},2578:(e,r,t)=>{"use strict" +var e})),void t(9070))},2578:(e,r,t)=>{"use strict" t.r(r),t.d(r,{IS_DESCRIPTOR:()=>i,createDescriptor:()=>m,isDescriptor:()=>n,lookupDescriptorData:()=>a,registerDescriptorData:()=>s,resolveDOMElement:()=>c,resolveDOMElements:()=>u,resolveDescription:()=>l}) const i="__dom_element_descriptor_is_descriptor__" function n(e){return Boolean("object"==typeof e&&e&&i in e)}function o(){const e=window @@ -93,6 +89,6 @@ var r=(r,t)=>{var i,n,[s,a,c]=t,u=0 if(s.some((r=>0!==e[r]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]) if(c)var l=c(o)}for(r&&r(t);uo(4582))) -var s=o.O(void 0,[559],(()=>o(4457))) +t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),o.O(void 0,[559],(()=>o(8651))) +var s=o.O(void 0,[559],(()=>o(1376))) s=o.O(s),__ember_auto_import__=s})() diff --git a/assets/test-app-401a8f612bd28398513467540436b7e3.js b/assets/test-app-4249a92a38fa024fa33951049cc5eccb.js similarity index 99% rename from assets/test-app-401a8f612bd28398513467540436b7e3.js rename to assets/test-app-4249a92a38fa024fa33951049cc5eccb.js index d6ba7207..80de1fbb 100644 --- a/assets/test-app-401a8f612bd28398513467540436b7e3.js +++ b/assets/test-app-4249a92a38fa024fa33951049cc5eccb.js @@ -64,4 +64,4 @@ e.default=(0,t.createTemplateFactory)({id:"n1j83jvn",block:'[[[10,0],[14,0,"docs e.default=(0,t.createTemplateFactory)({id:"egmo/zsk",block:'[[[10,0],[14,0,"docs-container"],[12],[1,"\\n "],[10,"h1"],[12],[1,"Not found"],[13],[1,"\\n "],[10,2],[12],[1,"This page doesn\'t exist. "],[8,[39,3],null,[["@route"],["index"]],[["default"],[[[[1,"Head home?"]],[]]]]],[13],[1,"\\n"],[13]],[],false,["div","h1","p","link-to"]]',moduleName:"test-app/templates/docs/not-found.hbs",isStrictMode:!1})})),define("test-app/templates/docs/usage",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 e.default=(0,t.createTemplateFactory)({id:"hEe76Nks",block:'[[[10,0],[14,0,"docs-md"],[12],[1,"\\n "],[10,"h2"],[14,1,"usage"],[14,0,"docs-md__h2"],[12],[10,3],[14,6,"#usage"],[14,0,"heading-anchor"],[12],[1,"Usage"],[13],[13],[1,"\\n "],[10,2],[12],[1,"The styles are no longer automatically added for Shepherd. You will need to add them to your styles manually. How you do this will vary depending on your app, but one possible way is to add this to your app\'s CSS:"],[13],[1,"\\n"],[10,"pre"],[14,0,"docs-md__code"],[12],[10,"code"],[14,0,"language-css"],[12],[10,1],[14,0,"hljs-keyword"],[12],[1,"@import"],[13],[1," url("],[10,1],[14,0,"hljs-string"],[12],[1,"\\"https://cdn.jsdelivr.net/npm/shepherd.js@14.3.0/dist/css/shepherd.min.css\\""],[13],[1,");\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Most of the usage documentation can be found in the "],[10,3],[14,6,"api/services/tour"],[14,0,"docs-md__a"],[12],[1,"API Reference for the Tour Service"],[13],[1,"."],[13],[1,"\\n\\n "],[10,"h2"],[14,1,"step-options"],[14,0,"docs-md__h2"],[12],[10,3],[14,6,"#step-options"],[14,0,"heading-anchor"],[12],[1,"Step Options"],[13],[13],[1,"\\n "],[10,2],[12],[1,"See the "],[10,3],[14,6,"https://docs.shepherdjs.dev/api/step/interfaces/stepoptions/"],[14,0,"docs-md__a"],[12],[1,"Step docs"],[13],[1," for all available Step options."],[13],[1,"\\n\\n "],[10,"h2"],[14,1,"interacting-with-ember-shepherd"],[14,0,"docs-md__h2"],[12],[10,3],[14,6,"#interacting-with-ember-shepherd"],[14,0,"heading-anchor"],[12],[1,"Interacting with "],[10,"code"],[12],[1,"ember-shepherd"],[13],[13],[13],[1,"\\n "],[10,2],[12],[10,"code"],[12],[1,"ember-shepherd"],[13],[1," uses the "],[10,3],[14,6,"http://emberjs.com/api/classes/Ember.Evented.html"],[14,0,"docs-md__a"],[12],[10,"code"],[12],[1,"Ember.Evented"],[13],[13],[1," mixin to manage events. The API is demonstrated below."],[13],[1,"\\n"],[10,"pre"],[14,0,"docs-md__code"],[12],[10,"code"],[14,0,"language-js"],[12],[10,1],[14,0,"hljs-comment"],[12],[1,"// Start the tour"],[13],[1,"\\n"],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"tour"],[13],[1,"."],[10,1],[14,0,"hljs-title function_"],[12],[1,"start"],[13],[1,"();\\n\\n"],[10,1],[14,0,"hljs-comment"],[12],[1,"//Show a specific step"],[13],[1,"\\n"],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"tour"],[13],[1,"."],[10,1],[14,0,"hljs-title function_"],[12],[1,"show"],[13],[1,"(id);\\n\\n"],[10,1],[14,0,"hljs-comment"],[12],[1,"// Stop the tour"],[13],[1,"\\n"],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"tour"],[13],[1,"."],[10,1],[14,0,"hljs-title function_"],[12],[1,"cancel"],[13],[1,"();\\n\\n"],[10,1],[14,0,"hljs-comment"],[12],[1,"// Go to the next step"],[13],[1,"\\n"],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"tour"],[13],[1,"."],[10,1],[14,0,"hljs-title function_"],[12],[1,"next"],[13],[1,"();\\n\\n"],[10,1],[14,0,"hljs-comment"],[12],[1,"// Go to the previous step"],[13],[1,"\\n"],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"tour"],[13],[1,"."],[10,1],[14,0,"hljs-title function_"],[12],[1,"back"],[13],[1,"();\\n"],[13],[13],[1,"\\n"],[13]],[],false,["div","h2","a","p","pre","code","span"]]',moduleName:"test-app/templates/docs/usage.hbs",isStrictMode:!1})})),define("test-app/templates/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 e.default=(0,t.createTemplateFactory)({id:"bduFneTI",block:'[[[10,"section"],[14,0,"hero docs-flex docs-flex-wrap docs-justify-center"],[12],[1,"\\n "],[10,0],[14,0,"section-content docs-mt-8 docs-mb-8 docs-w-full docs-max-w-4xl"],[12],[1,"\\n "],[10,0],[14,0,"docs-flex docs-flex-wrap docs-items-center docs-flex-col-reverse docs-justify-between lg:docs-flex-row"],[12],[1,"\\n "],[10,0],[14,0,"docs-w-full lg:docs-pr-12 lg:docs-w-1/2"],[12],[1,"\\n "],[10,0],[14,0,"docs-max-w-md"],[12],[1,"\\n "],[10,0],[14,0,"docs-max-w-sm docs-mx-auto"],[12],[1,"\\n "],[10,"h1"],[12],[1,"\\n "],[10,1],[14,0,"docs-max-w-sm"],[12],[1,"\\n "],[1,[28,[35,4],["ember"],[["class","height","width"],["docs-h-full docs-w-auto docs-max-w-full docs-fill-current","auto","125px"]]]],[1,"\\n "],[13],[1,"\\n\\n Shepherd\\n "],[13],[1,"\\n\\n "],[10,2],[14,0,"docs-mt-4 xl:docs-mt-6 docs-mb-2 docs-leading-small docs-mx-auto docs-tracking-tight\\n docs-text-large-1 md:docs-text-large-2 xl:docs-text-large-3"],[12],[1,"\\n An Ember addon for the site tour library Shepherd\\n "],[13],[1,"\\n\\n "],[8,[39,6],[[24,0,"docs-no-underline docs-text-brand docs-text-xs docs-px-3 docs-py-2\\n docs-rounded docs-mt-4 docs-shadow-md hover:docs-shadow-lg\\n docs-transition hover:docs-nudge-t docs-font-bold docs-inline-block docs-uppercase"]],[["@route"],["docs"]],[["default"],[[[[1,"\\n Read the docs →\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"docs-w-full docs-text-center lg:docs-pr-12 lg:docs-w-1/2 lg:docs-p-12"],[12],[1,"\\n "],[1,[28,[35,4],["ember-consulting"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["section","div","h1","span","svg-jar","p","link-to"]]',moduleName:"test-app/templates/index.hbs",isStrictMode:!1})})),define("test-app/transforms/boolean",["exports","@ember/debug","@ember-data/serializer/transform"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.BooleanTransform}})})),define("test-app/transforms/date",["exports","@ember/debug","@ember-data/serializer/transform"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.DateTransform}})})),define("test-app/transforms/number",["exports","@ember/debug","@ember-data/serializer/transform"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.NumberTransform}})})),define("test-app/transforms/string",["exports","@ember/debug","@ember-data/serializer/transform"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.StringTransform}})})),define("test-app/utils/titleize",["exports","ember-cli-string-helpers/utils/titleize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("test-app/config/environment",[],(function(){try{var e="test-app/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))} -return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("test-app/app").default.create({name:"test-app",version:"v17.1.2+6f8eb2dc"}) +return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("test-app/app").default.create({name:"test-app",version:"v17.1.3+4a1eca16"}) diff --git a/docs/ember-shepherd.json b/docs/ember-shepherd.json index 6c65ef3a..49dce4fa 100644 --- a/docs/ember-shepherd.json +++ b/docs/ember-shepherd.json @@ -1 +1 @@ -{"jsonapi":{"version":"1.0"},"data":{"type":"project","id":"ember-shepherd","attributes":{"name":"ember-shepherd","version":"0.0.0","navigationIndex":[{"type":"services","items":[{"id":"ember-shepherd/services/tour","path":"services/tour","name":"Tour"}]},{"type":"modules","items":[{"id":"ember-shepherd/utils/buttons","path":"modules/ember-shepherd/utils/buttons","name":"ember-shepherd/utils/buttons"},{"id":"ember-shepherd/utils/dom","path":"modules/ember-shepherd/utils/dom","name":"ember-shepherd/utils/dom"}]}]},"relationships":{"modules":{"data":[{"type":"module","id":"ember-shepherd/services/tour"},{"type":"module","id":"ember-shepherd/utils/buttons"},{"type":"module","id":"ember-shepherd/utils/dom"}]}}},"included":[{"type":"class","id":"ember-shepherd/services/tour~Tour","attributes":{"name":"Tour","file":"ember-shepherd/services/tour","description":"

Interaction with ember-shepherd is done entirely through the Tour service, which you can access from any object using the service syntax:

\n
import Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class MyCoolComponent extends Component {\n\n  @service tour;\n\n  // OR\n\n  @service('tour') tourService;\n};\n
\n

The following configuration options can be set on the Tour service to control the way that Shepherd is used. The only required option is steps, which is set via addSteps.

\n
","lineNumber":18,"access":"public","tags":[],"isInterface":false,"exportType":"default","decorators":[],"fields":[{"name":"classPrefix","file":"ember-shepherd/services/tour","description":"

The prefix to add to all the shepherd-* class names.

\n
","lineNumber":45,"access":"public","tags":[],"type":"String","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"confirmCancel","file":"ember-shepherd/services/tour","description":"

confirmCancel is a boolean flag, when set to true it will pop up a native browser\nconfirm window on cancel, to ensure you want to cancel.

\n
","lineNumber":54,"access":"public","tags":[],"type":"Boolean","defaultValue":"false","isStatic":false,"decorators":[]},{"name":"confirmCancelMessage","file":"ember-shepherd/services/tour","description":"

confirmCancelMessage is a string to display in the confirm dialog when confirmCancel\nis set to true.

\n
","lineNumber":64,"access":"public","tags":[],"type":"String","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"defaultStepOptions","file":"ember-shepherd/services/tour","description":"

defaultStepOptions is used to set the options that will be applied to each step by default.\nYou can pass in any of the options that you can with Shepherd.

\n

⚠️ You must set defaultStepOptions BEFORE calling addSteps to set the steps.

\n

It will be an object of a form something like:

\n
this.tour.set('defaultStepOptions', {\n  classes: 'custom-class-name-1 custom-class-name-2',\n  scrollTo: true,\n  cancelIcon: {\n    enabled: true\n  },\n});\n
\n

default value: {}

\n
","lineNumber":74,"access":"public","tags":[],"type":"StepOptions","defaultValue":"{}","isStatic":false,"decorators":[]},{"name":"errorTitle","file":"ember-shepherd/services/tour","lineNumber":100,"access":"public","tags":[],"type":"String","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"exitOnEsc","file":"ember-shepherd/services/tour","description":"

Exiting the tour with the escape key will be enabled unless this is explicitly set to false.

\n
","lineNumber":107,"access":"public","tags":[],"type":"Boolean","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"isActive","file":"ember-shepherd/services/tour","lineNumber":116,"access":"public","tags":[],"type":"Boolean","defaultValue":"false","isStatic":false,"decorators":[]},{"name":"keyboardNavigation","file":"ember-shepherd/services/tour","description":"

Navigating the tour via left and right arrow keys will be enabled unless this is explicitly set to false.

\n
","lineNumber":123,"access":"public","tags":[],"type":"Boolean","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"messageForUser","file":"ember-shepherd/services/tour","lineNumber":132,"access":"public","tags":[],"type":"String","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"modal","file":"ember-shepherd/services/tour","description":"

modal is a boolean, that should be set to true, if you would like the rest of the screen, other than the current element, greyed out, and the current element highlighted. If you do not need modal functionality, you can remove this option or set it to false.

\n

default value: false

\n
","lineNumber":139,"access":"public","tags":[],"type":"Boolean","defaultValue":"false","isStatic":false,"decorators":[]},{"name":"modalContainer","file":"ember-shepherd/services/tour","description":"

An optional container element for the modal. If not set, the modal will be appended to document.body.

\n
","lineNumber":150,"access":"public","tags":[],"type":"HTMLElement","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"requiredElements","file":"ember-shepherd/services/tour","description":"

requiredElements is an array of objects that indicate DOM elements that are REQUIRED by your tour and must\nexist and be visible for the tour to start. If any elements are not present, it will keep the tour from starting.

\n

You can also specify a message, which will tell the user what they need to do to make the tour work.

\n

⚠️ You must set requiredElements BEFORE calling addSteps to set the steps.

\n

Example

\n
this.tour.set('requiredElements', [\n  {\n    selector: '.search-result-element',\n    message: 'No search results found. Please execute another search, and try to start the tour again.',\n    title: 'No results'\n  },\n  {\n    selector: '.username-element',\n    message: 'User not logged in, please log in to start this tour.',\n    title: 'Please login'\n  },\n]);\n
\n

default value: []

\n
","lineNumber":158,"access":"public","tags":[],"type":"Array","defaultValue":"[]","isStatic":false,"decorators":[]}],"methods":[{"name":"addSteps","file":"ember-shepherd/services/tour","description":"

Take a set of steps, create a tour object based on the current configuration and load the shepherd.js dependency.\nThis method returns a promise which resolves when the shepherd.js dependency has been loaded and shepherd is ready to use.

\n

You must pass an array of steps to addSteps, something like this:

\n
this.tour.addSteps([\n  {\n    attachTo: {\n      element:'.first-element',\n      on: 'bottom'\n    },\n    beforeShowPromise: function() {\n      return new Promise(function(resolve) {\n        Ember.run.scheduleOnce('afterRender', this, function() {\n          window.scrollTo(0, 0);\n          this.get('documents.firstObject').set('isSelected', true);\n          resolve();\n        });\n      });\n    },\n    buttons: [\n      {\n        classes: 'shepherd-button-secondary',\n        text: 'Exit',\n        type: 'cancel'\n      },\n      {\n        classes: 'shepherd-button-primary',\n        text: 'Back',\n        type: 'back'\n      },\n      {\n        classes: 'shepherd-button-primary',\n        text: 'Next',\n        type: 'next'\n      }\n    ],\n    cancelIcon: {\n      enabled: true\n    },\n    classes: 'custom-class-name-1 custom-class-name-2',\n    highlightClass: 'highlight',\n    id: 'intro',\n    scrollTo: false,\n    title: 'Welcome to Ember-Shepherd!',\n    text: 'Ember-Shepherd is a JavaScript library for guiding users through your Ember app.',\n    when: {\n      show: () => {\n        console.log('show step');\n      },\n      hide: () => {\n        console.log('hide step');\n      }\n    }\n  },\n...\n]);\n
\n
","lineNumber":191,"access":"public","tags":[],"returns":{"type":"Promise","description":"Promise that resolves when everything has been set up and shepherd is ready to use","properties":[]},"params":[{"name":"steps","type":"Array","description":"An array of steps"}],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"back","file":"ember-shepherd/services/tour","description":"

Get the tour object and call back

\n
","lineNumber":291,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"cancel","file":"ember-shepherd/services/tour","description":"

Cancel the tour

\n
","lineNumber":303,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"complete","file":"ember-shepherd/services/tour","description":"

Complete the tour

\n
","lineNumber":313,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"hide","file":"ember-shepherd/services/tour","description":"

Hides the current step

\n
","lineNumber":323,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"next","file":"ember-shepherd/services/tour","description":"

Advance the tour to the next step and trigger next

\n
","lineNumber":333,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"show","file":"ember-shepherd/services/tour","description":"

Show a specific step, by passing its id

\n
","lineNumber":345,"access":"public","tags":[],"returns":null,"params":[{"name":"id","type":"string","description":"The id of the step you want to show"}],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"start","file":"ember-shepherd/services/tour","description":"

Start the tour. The Promise from addSteps() must be in a resolved state prior to starting the tour!

\n
","lineNumber":356,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"_onTourStart","file":"ember-shepherd/services/tour","description":"

When the tour starts, setup the step event listeners

\n
","lineNumber":373,"access":"private","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"_onTourFinish","file":"ember-shepherd/services/tour","description":"

This function is called when a tour is completed or cancelled to initiate cleanup.

\n
","lineNumber":384,"access":"private","tags":[],"returns":null,"params":[{"name":"completeOrCancel","type":"string","description":"'complete' or 'cancel'"}],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"_initialize","file":"ember-shepherd/services/tour","description":"

Initializes the tour, creates a new Shepherd.Tour. sets options, and binds events

\n
","lineNumber":399,"access":"private","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"_requiredElementsPresent","file":"ember-shepherd/services/tour","description":"

Observes the array of requiredElements, which are the elements that must be present at the start of the tour,\nand determines if they exist, and are visible, if either is false, it will stop the tour from executing.

\n
","lineNumber":444,"access":"private","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]}],"accessors":[],"parentClassId":null}},{"type":"module","id":"ember-shepherd/services/tour","attributes":{"file":"ember-shepherd/services/tour","functions":[],"variables":[]},"relationships":{"classes":{"data":[{"type":"class","id":"ember-shepherd/services/tour~Tour"}]},"components":{"data":[]}}},{"type":"module","id":"ember-shepherd/utils/buttons","attributes":{"file":"ember-shepherd/utils/buttons","functions":[{"name":"makeButton","file":"ember-shepherd/utils/buttons","description":"

Creates a button of the specified type, with the given classes and text

\n
","lineNumber":12,"access":"private","tags":[],"returns":{"type":"Action: *, classes: *, text: *","description":"} Description here","properties":[]},"params":[{"name":"button","type":"object","description":"Description here"},{"name":"button.type","type":"string","description":"The type of button cancel, back, or next"},{"name":"button.classes","type":"Classes","description":"Classes to apply to the button"},{"name":"button.text","type":"string","description":"The text for the button"},{"name":"button.action","type":"Action","description":"The action to call"}],"isAsync":false,"isGenerator":false,"exportType":"named"}],"variables":[]},"relationships":{"classes":{"data":[]},"components":{"data":[]}}},{"type":"module","id":"ember-shepherd/utils/dom","attributes":{"file":"ember-shepherd/utils/dom","functions":[{"name":"elementIsHidden","file":"ember-shepherd/utils/dom","description":"

Helper method to check if element is hidden, since we cannot use :visible without jQuery

\n
","lineNumber":1,"access":"private","tags":[],"returns":{"type":"boolean","description":"true if element is hidden","properties":[]},"params":[{"name":"element","type":"HTMLElement","description":"The element to check for visibility"}],"isAsync":false,"isGenerator":false,"exportType":"named"}],"variables":[]},"relationships":{"classes":{"data":[]},"components":{"data":[]}}}]} +{"jsonapi":{"version":"1.0"},"data":{"type":"project","id":"ember-shepherd","attributes":{"name":"ember-shepherd","version":"0.0.0","navigationIndex":[{"type":"services","items":[{"id":"ember-shepherd/services/tour","path":"services/tour","name":"Tour"}]},{"type":"modules","items":[{"id":"ember-shepherd/utils/buttons","path":"modules/ember-shepherd/utils/buttons","name":"ember-shepherd/utils/buttons"},{"id":"ember-shepherd/utils/dom","path":"modules/ember-shepherd/utils/dom","name":"ember-shepherd/utils/dom"}]}]},"relationships":{"modules":{"data":[{"type":"module","id":"ember-shepherd/services/tour"},{"type":"module","id":"ember-shepherd/utils/buttons"},{"type":"module","id":"ember-shepherd/utils/dom"}]}}},"included":[{"type":"class","id":"ember-shepherd/services/tour~Tour","attributes":{"name":"Tour","file":"ember-shepherd/services/tour","description":"

Interaction with ember-shepherd is done entirely through the Tour service, which you can access from any object using the service syntax:

\n
import Component from '@glimmer/component';\nimport { service } from '@ember/service';\n\nexport default class MyCoolComponent extends Component {\n\n  @service tour;\n\n  // OR\n\n  @service('tour') tourService;\n};\n
\n

The following configuration options can be set on the Tour service to control the way that Shepherd is used. The only required option is steps, which is set via addSteps.

\n
","lineNumber":16,"access":"public","tags":[],"isInterface":false,"exportType":"default","decorators":[],"fields":[{"name":"classPrefix","file":"ember-shepherd/services/tour","description":"

The prefix to add to all the shepherd-* class names.

\n
","lineNumber":42,"access":"public","tags":[],"type":"String","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"confirmCancel","file":"ember-shepherd/services/tour","description":"

confirmCancel is a boolean flag, when set to true it will pop up a native browser\nconfirm window on cancel, to ensure you want to cancel.

\n
","lineNumber":51,"access":"public","tags":[],"type":"Boolean","defaultValue":"false","isStatic":false,"decorators":[]},{"name":"confirmCancelMessage","file":"ember-shepherd/services/tour","description":"

confirmCancelMessage is a string to display in the confirm dialog when confirmCancel\nis set to true.

\n
","lineNumber":61,"access":"public","tags":[],"type":"String","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"defaultStepOptions","file":"ember-shepherd/services/tour","description":"

defaultStepOptions is used to set the options that will be applied to each step by default.\nYou can pass in any of the options that you can with Shepherd.

\n

⚠️ You must set defaultStepOptions BEFORE calling addSteps to set the steps.

\n

It will be an object of a form something like:

\n
this.tour.set('defaultStepOptions', {\n  classes: 'custom-class-name-1 custom-class-name-2',\n  scrollTo: true,\n  cancelIcon: {\n    enabled: true\n  },\n});\n
\n

default value: {}

\n
","lineNumber":71,"access":"public","tags":[],"type":"StepOptions","defaultValue":"{}","isStatic":false,"decorators":[]},{"name":"errorTitle","file":"ember-shepherd/services/tour","lineNumber":97,"access":"public","tags":[],"type":"String","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"exitOnEsc","file":"ember-shepherd/services/tour","description":"

Exiting the tour with the escape key will be enabled unless this is explicitly set to false.

\n
","lineNumber":104,"access":"public","tags":[],"type":"Boolean","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"isActive","file":"ember-shepherd/services/tour","lineNumber":113,"access":"public","tags":[],"type":"Boolean","defaultValue":"false","isStatic":false,"decorators":[]},{"name":"keyboardNavigation","file":"ember-shepherd/services/tour","description":"

Navigating the tour via left and right arrow keys will be enabled unless this is explicitly set to false.

\n
","lineNumber":120,"access":"public","tags":[],"type":"Boolean","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"messageForUser","file":"ember-shepherd/services/tour","lineNumber":129,"access":"public","tags":[],"type":"String","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"modal","file":"ember-shepherd/services/tour","description":"

modal is a boolean, that should be set to true, if you would like the rest of the screen, other than the current element, greyed out, and the current element highlighted. If you do not need modal functionality, you can remove this option or set it to false.

\n

default value: false

\n
","lineNumber":136,"access":"public","tags":[],"type":"Boolean","defaultValue":"false","isStatic":false,"decorators":[]},{"name":"modalContainer","file":"ember-shepherd/services/tour","description":"

An optional container element for the modal. If not set, the modal will be appended to document.body.

\n
","lineNumber":147,"access":"public","tags":[],"type":"HTMLElement","defaultValue":"undefined","isStatic":false,"decorators":[]},{"name":"requiredElements","file":"ember-shepherd/services/tour","description":"

requiredElements is an array of objects that indicate DOM elements that are REQUIRED by your tour and must\nexist and be visible for the tour to start. If any elements are not present, it will keep the tour from starting.

\n

You can also specify a message, which will tell the user what they need to do to make the tour work.

\n

⚠️ You must set requiredElements BEFORE calling addSteps to set the steps.

\n

Example

\n
this.tour.requiredElements = [\n  {\n    selector: '.search-result-element',\n    message: 'No search results found. Please execute another search, and try to start the tour again.',\n    title: 'No results'\n  },\n  {\n    selector: '.username-element',\n    message: 'User not logged in, please log in to start this tour.',\n    title: 'Please login'\n  },\n];\n
\n

default value: []

\n
","lineNumber":155,"access":"public","tags":[],"type":"Array","defaultValue":"[]","isStatic":false,"decorators":[]},{"name":"tourObject","file":"ember-shepherd/services/tour","description":"

A reference to the Shepherd Tour instance.

\n
","lineNumber":187,"access":"public","tags":[],"type":"Tour","isStatic":false,"decorators":[]}],"methods":[{"name":"addSteps","file":"ember-shepherd/services/tour","description":"

Take a set of steps, create a tour object based on the current configuration and load the shepherd.js dependency.\nThis method returns a promise which resolves when the shepherd.js dependency has been loaded and shepherd is ready to use.

\n

You must pass an array of steps to addSteps, something like this:

\n
this.tour.addSteps([\n  {\n    attachTo: {\n      element:'.first-element',\n      on: 'bottom'\n    },\n    beforeShowPromise: function() {\n      return new Promise(function(resolve) {\n        Ember.run.scheduleOnce('afterRender', this, function() {\n          window.scrollTo(0, 0);\n          this.get('documents.firstObject').set('isSelected', true);\n          resolve();\n        });\n      });\n    },\n    buttons: [\n      {\n        classes: 'shepherd-button-secondary',\n        text: 'Exit',\n        type: 'cancel'\n      },\n      {\n        classes: 'shepherd-button-primary',\n        text: 'Back',\n        type: 'back'\n      },\n      {\n        classes: 'shepherd-button-primary',\n        text: 'Next',\n        type: 'next'\n      }\n    ],\n    cancelIcon: {\n      enabled: true\n    },\n    classes: 'custom-class-name-1 custom-class-name-2',\n    highlightClass: 'highlight',\n    id: 'intro',\n    scrollTo: false,\n    title: 'Welcome to Ember-Shepherd!',\n    text: 'Ember-Shepherd is a JavaScript library for guiding users through your Ember app.',\n    when: {\n      show: () => {\n        console.log('show step');\n      },\n      hide: () => {\n        console.log('hide step');\n      }\n    }\n  },\n...\n]);\n
\n
","lineNumber":195,"access":"public","tags":[],"returns":{"type":"Promise","description":"Promise that resolves when everything has been set up and shepherd is ready to use","properties":[]},"params":[{"name":"steps","type":"Array","description":"An array of steps"}],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"back","file":"ember-shepherd/services/tour","description":"

Get the tour object and call back

\n
","lineNumber":295,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"cancel","file":"ember-shepherd/services/tour","description":"

Cancel the tour

\n
","lineNumber":307,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"complete","file":"ember-shepherd/services/tour","description":"

Complete the tour

\n
","lineNumber":317,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"hide","file":"ember-shepherd/services/tour","description":"

Hides the current step

\n
","lineNumber":327,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"next","file":"ember-shepherd/services/tour","description":"

Advance the tour to the next step and trigger next

\n
","lineNumber":337,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"show","file":"ember-shepherd/services/tour","description":"

Show a specific step, by passing its id

\n
","lineNumber":349,"access":"public","tags":[],"returns":null,"params":[{"name":"id","type":"string","description":"The id of the step you want to show"}],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"start","file":"ember-shepherd/services/tour","description":"

Start the tour. The Promise from addSteps() must be in a resolved state prior to starting the tour!

\n
","lineNumber":360,"access":"public","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"_onTourStart","file":"ember-shepherd/services/tour","description":"

When the tour starts, setup the step event listeners

\n
","lineNumber":377,"access":"private","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"_onTourFinish","file":"ember-shepherd/services/tour","description":"

This function is called when a tour is completed or cancelled to initiate cleanup.

\n
","lineNumber":388,"access":"private","tags":[],"returns":null,"params":[{"name":"completeOrCancel","type":"string","description":"'complete' or 'cancel'"}],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"_initialize","file":"ember-shepherd/services/tour","description":"

Initializes the tour, creates a new Shepherd.Tour. sets options, and binds events

\n
","lineNumber":403,"access":"private","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]},{"name":"_requiredElementsPresent","file":"ember-shepherd/services/tour","description":"

Observes the array of requiredElements, which are the elements that must be present at the start of the tour,\nand determines if they exist, and are visible, if either is false, it will stop the tour from executing.

\n
","lineNumber":448,"access":"private","tags":[],"returns":null,"params":[],"isAsync":false,"isGenerator":false,"isStatic":false,"decorators":[]}],"accessors":[],"parentClassId":null}},{"type":"module","id":"ember-shepherd/services/tour","attributes":{"file":"ember-shepherd/services/tour","functions":[],"variables":[]},"relationships":{"classes":{"data":[{"type":"class","id":"ember-shepherd/services/tour~Tour"}]},"components":{"data":[]}}},{"type":"module","id":"ember-shepherd/utils/buttons","attributes":{"file":"ember-shepherd/utils/buttons","functions":[{"name":"makeButton","file":"ember-shepherd/utils/buttons","description":"

Creates a button of the specified type, with the given classes and text

\n
","lineNumber":12,"access":"private","tags":[],"returns":{"type":"Action: *, classes: *, text: *","description":"} Description here","properties":[]},"params":[{"name":"button","type":"object","description":"Description here"},{"name":"button.type","type":"string","description":"The type of button cancel, back, or next"},{"name":"button.classes","type":"Classes","description":"Classes to apply to the button"},{"name":"button.text","type":"string","description":"The text for the button"},{"name":"button.action","type":"Action","description":"The action to call"}],"isAsync":false,"isGenerator":false,"exportType":"named"}],"variables":[]},"relationships":{"classes":{"data":[]},"components":{"data":[]}}},{"type":"module","id":"ember-shepherd/utils/dom","attributes":{"file":"ember-shepherd/utils/dom","functions":[{"name":"elementIsHidden","file":"ember-shepherd/utils/dom","description":"

Helper method to check if element is hidden, since we cannot use :visible without jQuery

\n
","lineNumber":1,"access":"private","tags":[],"returns":{"type":"boolean","description":"true if element is hidden","properties":[]},"params":[{"name":"element","type":"HTMLElement","description":"The element to check for visibility"}],"isAsync":false,"isGenerator":false,"exportType":"named"}],"variables":[]},"relationships":{"classes":{"data":[]},"components":{"data":[]}}}]} diff --git a/index.html b/index.html index fb357f9f..143948b8 100644 --- a/index.html +++ b/index.html @@ -6,10 +6,10 @@ - + - + @@ -49,9 +49,9 @@ - - - + + + diff --git a/versions.json b/versions.json index b25e0c61..9f1ee60b 100644 --- a/versions.json +++ b/versions.json @@ -8,8 +8,8 @@ "-latest": { "path": "", "name": "Latest", - "sha": "6f8eb2dcd7dd6a644388f3e8645676cb3ff78676", - "tag": "v17.1.2" + "sha": "4a1eca16c0340e04754b0a03acbeb5e886d35267", + "tag": "v17.1.3" }, "v4.9.0": { "path": "versions/v4.9.0", @@ -154,5 +154,11 @@ "name": "v17.1.2", "sha": "6f8eb2dcd7dd6a644388f3e8645676cb3ff78676", "tag": "v17.1.2" + }, + "v17.1.3": { + "path": "versions/v17.1.3", + "name": "v17.1.3", + "sha": "4a1eca16c0340e04754b0a03acbeb5e886d35267", + "tag": "v17.1.3" } } diff --git a/versions/v17.1.3/assets/chunk.341.2ec740b91959b2c34254.js b/versions/v17.1.3/assets/chunk.341.2ec740b91959b2c34254.js new file mode 100644 index 00000000..cb7420d2 --- /dev/null +++ b/versions/v17.1.3/assets/chunk.341.2ec740b91959b2c34254.js @@ -0,0 +1,849 @@ +(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[341],{9341:(e,t,s)=>{"use strict" +s.r(t),s.d(t,{BUNDLED_LANGUAGES:()=>o,BUNDLED_THEMES:()=>r,FontStyle:()=>p,getHighlighter:()=>te,loadTheme:()=>E,renderToHtml:()=>X,setCDN:()=>x,setOnigasmWASM:()=>se,setWasm:()=>A,toShikiTheme:()=>O}) +var a=s(3616),n=s(6536) +const r=["css-variables","dark-plus","dracula-soft","dracula","github-dark-dimmed","github-dark","github-light","light-plus","material-theme-darker","material-theme-lighter","material-theme-ocean","material-theme-palenight","material-theme","min-dark","min-light","monokai","nord","one-dark-pro","poimandres","rose-pine-dawn","rose-pine-moon","rose-pine","slack-dark","slack-ochin","solarized-dark","solarized-light","vitesse-black","vitesse-dark","vitesse-light"],o=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf",samplePath:"apache.sample"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",samplePath:"apl.sample",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX",samplePath:"bibtex.sample"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",aliases:["c++"],embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"csv",scopeName:"text.csv",path:"csv.tmLanguage.json",displayName:"csv syntax",samplePath:"csv.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker",samplePath:"dream-maker.sample"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin",samplePath:"gherkin.sample"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot",samplePath:"gnuplot.sample"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",samplePath:"graphql.sample",aliases:["gql"],embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy",samplePath:"groovy.sample"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",samplePath:"hack.sample",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",samplePath:"haml.sample",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",samplePath:"handlebars.sample",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",samplePath:"haskell.sample",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL",samplePath:"hlsl.sample"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",samplePath:"ini.sample",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",samplePath:"jinja-html.sample",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON",samplePath:"json.sample"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments",samplePath:"jsonc.sample"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines",samplePath:"jsonl.sample"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet",samplePath:"jsonnet.sample"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX",samplePath:"jsx.sample"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",samplePath:"julia.sample",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample",aliases:["kt","kts"]},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",samplePath:"latex.sample",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",samplePath:"less.sample"},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp",samplePath:"lisp.sample"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo",samplePath:"logo.sample"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",samplePath:"lua.sample",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",samplePath:"make.sample",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",samplePath:"markdown.sample",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB",samplePath:"matlab.sample"},{id:"mdc",scopeName:"text.markdown.mdc",path:"mdc.tmLanguage.json",displayName:"mdc",samplePath:"mdc.sample",embeddedLangs:["markdown","yaml"]},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",samplePath:"mdx.sample",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid",samplePath:"mermaid.sample"},{id:"mojo",scopeName:"source.mojo",path:"mojo.tmLanguage.json",displayName:"MagicPython",samplePath:"mojo.sample"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",samplePath:"nginx.sample",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",samplePath:"nim.sample",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix",samplePath:"nix.sample"},{id:"nushell",scopeName:"source.nushell",path:"nushell.tmLanguage.json",displayName:"nushell",samplePath:"nushell.sample",aliases:["nu"]},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",samplePath:"objective-c.sample",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++",samplePath:"objective-cpp.sample"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml",samplePath:"ocaml.sample"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal",samplePath:"pascal.sample"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",samplePath:"perl.sample",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",samplePath:"php.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL",samplePath:"plsql.sample"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS",samplePath:"postcss.sample"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",samplePath:"powershell.sample",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog",samplePath:"prolog.sample"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",samplePath:"pug.sample",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet",samplePath:"puppet.sample"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript",samplePath:"purescript.sample"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R",samplePath:"r.sample"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Raku",samplePath:"raku.sample",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",samplePath:"razor.sample",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V",samplePath:"riscv.sample"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",samplePath:"rst.sample",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",samplePath:"rust.sample",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",samplePath:"sas.sample",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass",samplePath:"sass.sample"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala",samplePath:"scala.sample"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme",samplePath:"scheme.sample"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",samplePath:"scss.sample",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",samplePath:"shaderlab.sample",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",samplePath:"shellscript.sample",aliases:["bash","sh","shell","zsh"]},{id:"shellsession",scopeName:"text.shell-session",path:"shellsession.tmLanguage.json",displayName:"Shell Session",samplePath:"shellsession.sample",aliases:["console"],embeddedLangs:["shellscript"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk",samplePath:"smalltalk.sample"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity",samplePath:"solidity.sample"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"splunk",scopeName:"source.splunk_search",path:"splunk.tmLanguage.json",displayName:"Splunk Query Language",samplePath:"splunk.sample",aliases:["spl"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL",samplePath:"sql.sample"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config",samplePath:"ssh-config.sample"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",samplePath:"stylus.sample",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",samplePath:"svelte.sample",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift",samplePath:"swift.sample"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog",samplePath:"system-verilog.sample"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl",samplePath:"tcl.sample"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",samplePath:"tex.sample",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML",samplePath:"toml.sample"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",samplePath:"twig.sample",embeddedLangs:["css","javascript","scss","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",samplePath:"typescript.sample",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",samplePath:"vb.sample",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog",samplePath:"verilog.sample"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL",samplePath:"vhdl.sample"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",samplePath:"viml.sample",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",samplePath:"vue-html.sample",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",samplePath:"vue.sample",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly",samplePath:"wasm.sample"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",samplePath:"wenyan.sample",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample",aliases:["wl"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",samplePath:"xml.sample",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",samplePath:"xsl.sample",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",samplePath:"yaml.sample",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"},{id:"zig",scopeName:"source.zig",path:"zig.tmLanguage.json",displayName:"zig",samplePath:"zig.sample"}] +var i,c,l,u,p=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(p||{}) +class h{static toBinaryStr(e){let t=e.toString(2) +for(;t.length<32;)t="0"+t +return t}static printMetadata(e){let t=h.getLanguageId(e),s=h.getTokenType(e),a=h.getFontStyle(e),n=h.getForeground(e),r=h.getBackground(e) +console.log({languageId:t,tokenType:s,fontStyle:a,foreground:n,background:r})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return!!(1024&e)}static set(e,t,s,a,n,r){let o=h.getLanguageId(e),i=h.getTokenType(e),c=h.getFontStyle(e),l=h.getForeground(e),u=h.getBackground(e) +return 0!==t&&(o=t),0!==s&&(i=8===s?0:s),-1!==a&&(c=a),0!==n&&(l=n),0!==r&&(u=r),(o|i<<8|c<<11|(h.containsBalancedBrackets(e)?1:0)<<10|l<<15|u<<24)>>>0}}function m(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function d(e){return e.startsWith("./")?e.slice(2):e}function g(e){const t=e.split(/[\/\\]/g) +return t.slice(0,t.length-1)}function f(...e){return e.map(m).map(d).join("/")}function y(e){return 32===e||9===e}function b(e){return 10===e||13===e}function _(e){return e>=48&&e<=57}!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(i||(i={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(c||(c={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(l||(l={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(u||(u={})) +const N=function(e,t=[],s=c.DEFAULT){let a=null,n=[] +const r=[] +function o(e){Array.isArray(n)?n.push(e):null!==a&&(n[a]=e)}return function(e,t,s=c.DEFAULT){const a=function(e,t=!1){const s=e.length +let a=0,n="",r=0,o=16,i=0,c=0,l=0,u=0,p=0 +function h(t,s){let n=0,r=0 +for(;n=48&&t<=57)r=16*r+t-48 +else if(t>=65&&t<=70)r=16*r+t-65+10 +else{if(!(t>=97&&t<=102))break +r=16*r+t-97+10}a++,n++}return n=s)return r=s,o=17 +let t=e.charCodeAt(a) +if(y(t)){do{a++,n+=String.fromCharCode(t),t=e.charCodeAt(a)}while(y(t)) +return o=15}if(b(t))return a++,n+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,n+="\n"),i++,l=a,o=14 +switch(t){case 123:return a++,o=1 +case 125:return a++,o=2 +case 91:return a++,o=3 +case 93:return a++,o=4 +case 58:return a++,o=6 +case 44:return a++,o=5 +case 34:return a++,n=function(){let t="",n=a +for(;;){if(a>=s){t+=e.substring(n,a),p=2 +break}const r=e.charCodeAt(a) +if(34===r){t+=e.substring(n,a),a++ +break}if(92!==r){if(r>=0&&r<=31){if(b(r)){t+=e.substring(n,a),p=2 +break}p=6}a++}else{if(t+=e.substring(n,a),a++,a>=s){p=2 +break}switch(e.charCodeAt(a++)){case 34:t+='"' +break +case 92:t+="\\" +break +case 47:t+="/" +break +case 98:t+="\b" +break +case 102:t+="\f" +break +case 110:t+="\n" +break +case 114:t+="\r" +break +case 116:t+="\t" +break +case 117:const e=h(4,!0) +e>=0?t+=String.fromCharCode(e):p=4 +break +default:p=5}n=a}}return t}(),o=10 +case 47:const c=a-1 +if(47===e.charCodeAt(a+1)){for(a+=2;aa,scan:t?function(){let e +do{e=m()}while(e>=12&&e<=15) +return e}:m,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>a-r,getTokenStartLine:()=>c,getTokenStartCharacter:()=>r-u,getTokenError:()=>p}}(e,!1),n=[] +function r(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}function i(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter(),(()=>n.slice())):()=>!0}const u=o(t.onObjectBegin),p=l(t.onObjectProperty),h=r(t.onObjectEnd),m=o(t.onArrayBegin),d=r(t.onArrayEnd),g=l(t.onLiteralValue),f=i(t.onSeparator),N=r(t.onComment),k=i(t.onError),L=s&&s.disallowComments,S=s&&s.allowTrailingComma +function P(){for(;;){const e=a.scan() +switch(a.getTokenError()){case 4:v(14) +break +case 5:v(15) +break +case 3:v(13) +break +case 1:L||v(11) +break +case 2:v(12) +break +case 6:v(16)}switch(e){case 12:case 13:L?v(10):N() +break +case 16:v(1) +break +case 15:case 14:break +default:return e}}}function v(e,t=[],s=[]){if(k(e),t.length+s.length>0){let e=a.getToken() +for(;17!==e;){if(-1!==t.indexOf(e)){P() +break}if(-1!==s.indexOf(e))break +e=P()}}}function j(e){const t=a.getTokenValue() +return e?g(t):(p(t),n.push(t)),P(),!0}P(),17===a.getToken()?s.allowEmptyContent||v(4,[],[]):function e(){switch(a.getToken()){case 3:return function(){m(),P() +let t=!0,s=!1 +for(;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(s||v(4,[],[]),f(","),P(),4===a.getToken()&&S)break}else s&&v(6,[],[]) +t?(n.push(0),t=!1):n[n.length-1]++,e()||v(4,[],[4,5]),s=!0}return d(),t||n.pop(),4!==a.getToken()?v(8,[4],[]):P(),!0}() +case 1:return function(){u(),P() +let t=!1 +for(;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(t||v(4,[],[]),f(","),P(),2===a.getToken()&&S)break}else t&&v(6,[],[]);(10!==a.getToken()?(v(3,[],[2,5]),!1):(j(!1),6===a.getToken()?(f(":"),P(),e()||v(4,[],[2,5])):v(5,[],[2,5]),n.pop(),!0))||v(4,[],[2,5]),t=!0}return h(),2!==a.getToken()?v(7,[2],[]):P(),!0}() +case 10:return j(!0) +default:return function(){switch(a.getToken()){case 11:const e=a.getTokenValue() +let t=Number(e) +isNaN(t)&&(v(2),t=0),g(t) +break +case 7:g(null) +break +case 8:g(!0) +break +case 9:g(!1) +break +default:return!1}return P(),!0}()}}()?17!==a.getToken()&&v(9,[],[]):v(4,[],[])}(e,{onObjectBegin:()=>{const e={} +o(e),r.push(n),n=e,a=null},onObjectProperty:e=>{a=e},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const e=[] +o(e),r.push(n),n=e,a=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(e,s,a)=>{t.push({error:e,offset:s,length:a})}},s),n[0]} +var k +!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(k||(k={})) +const L="undefined"!=typeof self&&void 0!==self.WorkerGlobalScope,S="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"node"===process.release.name,P="process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&"bun"===process.release.name,v=L||!S&&!P +let j="",C="" +const w="dist/" +function x(e){j=e.endsWith("/")?e:e+"/"}function A(e){C=e}let T=null +function R(e){if(v)return`${j}${e}` +{const t=s(5979) +return t.isAbsolute(e)?e:t.resolve(__dirname,"..",e)}}async function I(e){const t=[],a=await async function(e){const t=R(e) +if(v)return await fetch(t).then((e=>e.text())) +{const e=s(9727) +return await e.promises.readFile(t,"utf-8")}}(e) +let n +try{n=JSON.parse(a)}catch(e){if(n=N(a,t,{allowTrailingComma:!0}),t.length)throw t[0]}return n}async function E(e){const t=O(await I(e)) +if(t.include){const s=await E(f(...g(e),t.include)) +s.settings&&(t.settings=s.settings.concat(t.settings)),s.bg&&!t.bg&&(t.bg=s.bg),s.colors&&(t.colors={...s.colors,...t.colors}),delete t.include}return t}function O(e){const t=e.type||"dark",s={name:e.name,type:t,...e,...G(e)} +var a +return e.include&&(s.include=e.include),e.tokenColors&&(s.settings=e.tokenColors,delete s.tokenColors),(a=s).settings||(a.settings=[]),a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}}),s}const M={light:"#333333",dark:"#bbbbbb"},B={light:"#fffffe",dark:"#1e1e1e"} +function G(e){let t,s,a=e.settings?e.settings:e.tokenColors +const n=a?a.find((e=>!e.name&&!e.scope)):void 0 +return n?.settings?.foreground&&(t=n.settings.foreground),n?.settings?.background&&(s=n.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!s&&e?.colors?.["editor.background"]&&(s=e.colors["editor.background"]),t||(t="light"===e.type?M.light:M.dark),s||(s="light"===e.type?B.light:B.dark),{fg:t,bg:s}}class F{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e] +if(!t)return null +if(t.grammar)return t.grammar +const s=await async function(e){return await I(e)}(o.includes(t)?`${this.languagesPath}${t.path}`:t.path) +return t.grammar=s,s}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}function D(e,t){let s=[] +for(let a=0,n=t.length;a=0&&r>=0;)$(t[n],a[r])&&n--,r-- +return-1===n}function W(e,t,s){let a=[],n=0 +for(let r=0,o=e.settings.length;re.trim())) +else{if(!Array.isArray(i.scope))continue +o=i.scope}for(let e=0,r=o.length;eNumber.parseInt(e))) +if(3!==t.length||t.some((e=>Number.isNaN(e))))return +return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift() +if(t)return{type:"table",index:Number(t)}}}function K(e){const t=[] +for(;e.length>0;){const s=e.shift() +if(!s)continue +const a=Number.parseInt(s) +if(!Number.isNaN(a))if(0===a)t.push({type:"resetAll"}) +else if(a<=9)H[a]&&t.push({type:"setDecoration",value:H[a]}) +else if(a<=29){const e=H[a-20] +e&&t.push({type:"resetDecoration",value:e})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:q[a-30]}}) +else if(38===a){const s=V(e) +s&&t.push({type:"setForegroundColor",value:s})}else if(39===a)t.push({type:"resetForegroundColor"}) +else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:q[a-40]}}) +else if(48===a){const s=V(e) +s&&t.push({type:"setBackgroundColor",value:s})}else 49===a?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:q[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:q[a-100+8]}})}return t}var J={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"} +const Q={pre:({className:e,style:t,children:s})=>`
${s}
`,code:({children:e})=>`${e}`,line:({className:e,children:t})=>`${t}`,token:({style:e,children:t})=>`${t}`} +function X(e,t={}){const s=t.bg||"#fff",a=function(e){const t=new Map +for(const s of e){const e=s.line +t.has(e)?t.get(e).push(s):t.set(e,[s])}return t}(t.lineOptions??[]),n=t.elements||{} +function r(e="",t={},s){const a=n[e]||Q[e] +return a?(s=s.filter(Boolean),a({...t,children:"code"===e?s.join("\n"):s.join("")})):""}return r("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${s}`},[t.langId?`
${t.langId}
`:"",r("code",{},e.map(((s,n)=>{const o=n+1 +return r("line",{className:function(e){const t=new Set(["line"]) +for(const s of e)for(const e of s.classes??[])t.add(e) +return Array.from(t)}(a.get(o)??[]).join(" "),lines:e,line:s,index:n},s.map(((e,a)=>{const n=[`color: ${e.color||t.fg}`] +return e.fontStyle&p.Italic&&n.push("font-style: italic"),e.fontStyle&p.Bold&&n.push("font-weight: bold"),e.fontStyle&p.Underline&&n.push("text-decoration: underline"),r("token",{style:n.join("; "),tokens:s,token:e,index:a},[(o=e.content,o.replace(/[&<>"']/g,(e=>Y[e])))]) +var o})))})))])}const Y={"&":"&","<":"<",">":">",'"':""","'":"'"} +class Z extends n.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=o.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await E(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=O(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){const t=e.embeddedLangs?.reduce((async(e,t,s)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=s+2,e}),{}),s={embeddedLanguages:t,balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},a=await this.loadGrammarWithConfiguration(e.scopeName,1,s) +this._resolvedGrammars[e.id]=a,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=a}))}async loadLanguages(e){for(const s of e)this.resolveEmbeddedLanguages(s) +const t=Array.from(this._langGraph.values()) +for(const s of t)this._resolver.addLanguage(s) +for(const s of t)await this.loadLanguage(s)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}function ee(e){return"string"==typeof e?o.find((t=>t.id===e||t.aliases?.includes(e))):e}async function te(e){const{_languages:t,_themes:r,_wasmPath:i}=function(e){let t=o,s=e.themes||[],a=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":w +return e.langs&&(t=e.langs.map(ee)),e.theme&&s.unshift(e.theme),s.length||(s=["nord"]),{_languages:t,_themes:s,_wasmPath:a}}(e),c=new F(async function(e){if(!T){let t +if(v)t="string"==typeof C?(0,a.loadWASM)({data:await fetch(R(f(...g(e),"onig.wasm")))}):(0,a.loadWASM)({data:C}) +else{const e=s(5979).join(3616,"../onig.wasm"),n=s(9727).readFileSync(e).buffer +t=(0,a.loadWASM)(n)}T=t.then((()=>({createOnigScanner:e=>(0,a.createOnigScanner)(e),createOnigString:e=>(0,a.createOnigString)(e)})))}return T}(i),"vscode-oniguruma"),l=new Z(c) +e.paths?.themes&&(l.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/") +const u=(await l.loadThemes(r))[0] +let m +await l.loadLanguages(t) +let d=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"} +for(let t=0;t{e.colors[t]=d[s]||s})),t.forEach(((e,s)=>{t[s]=d[e]||e}))}(t,s),{_theme:t,_colorMap:s}}function b(e,t="text",s,a={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))] +const{_grammar:r}=function(e){const t=l.getGrammar(e) +if(!t)throw Error(`No language registration for ${e}`) +return{_grammar:t}}(t),{_theme:o,_colorMap:i}=y(s) +return function(e,t,s,a,r){let o=s.split(/\r\n|\r|\n/),i=n.INITIAL,c=[],l=[] +for(let n=0,u=o.length;nMath.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let a +return{value:function(e){switch(e.type){case"named":return t(e.name) +case"rgb":return s(e.rgb) +case"table":return n=e.index,function(){if(a)return a +a=[] +for(let s=0;s[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),n=function(){let e=null,t=null,s=new Set +return{parse(a){const n=[] +let r=0 +do{const o=z(a,r),i=o.sequence?a.substring(r,o.startPosition):a.substring(r) +if(i.length>0&&n.push({value:i,foreground:e,background:t,decorations:new Set(s)}),o.sequence){const a=K(o.sequence) +for(const n of a)"resetAll"===n.type?(e=null,t=null,s.clear()):"resetForegroundColor"===n.type?e=null:"resetBackgroundColor"===n.type?t=null:"resetDecoration"===n.type&&s.delete(n.value) +for(const n of a)"setForegroundColor"===n.type?e=n.value:"setBackgroundColor"===n.type?t=n.value:"setDecoration"===n.type&&s.add(n.value)}r=o.position}while(rn.parse(t).map((t=>{let s +s=t.decorations.has("reverse")?t.background?a.value(t.background):e.bg:t.foreground?a.value(t.foreground):e.fg,t.decorations.has("dim")&&(s=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/) +if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0") +return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const s=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/) +return s?`var(${s[1]}-dim)`:e}(s)) +let n=p.None +return t.decorations.has("bold")&&(n|=p.Bold),t.decorations.has("italic")&&(n|=p.Italic),t.decorations.has("underline")&&(n|=p.Underline),{content:t.value,color:s,fontStyle:n}}))))}(s,e)}return{codeToThemedTokens:b,codeToHtml:function(e,t="text",s){let a +a="object"==typeof t?t:{lang:t,theme:s} +const n=b(e,a.lang,a.theme,{includeExplanation:!1}),{_theme:r}=y(a.theme) +return X(n,{fg:r.fg,bg:r.bg,lineOptions:a?.lineOptions,themeName:r.name})},ansiToThemedTokens:_,ansiToHtml:function(e,t){const s=_(e,t?.theme),{_theme:a}=y(t?.theme) +return X(s,{fg:a.fg,bg:a.bg,lineOptions:t?.lineOptions,themeName:a.name})},getTheme:e=>y(e)._theme,loadTheme:async function(e){await l.loadTheme(e)},loadLanguage:async function(e){const t=ee(e) +c.addLanguage(t),await l.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=y(e) +return t.bg},getForegroundColor:function(e){const{_theme:t}=y(e) +return t.fg},getLoadedThemes:function(){return l.getLoadedThemes()},getLoadedLanguages:function(){return l.getLoadedLanguages()},setColorReplacements:function(e){d=e}}}function se(e){A(e)}},3616:function(e){var t +t=()=>{return e={770:function(e,t,s){"use strict" +var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} +Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0 +const n=a(s(418)) +let r=null,o=!1 +class i{static _utf8ByteLength(e){let t=0 +for(let s=0,a=e.length;s=55296&&n<=56319&&s+1=56320&&t<=57343&&(r=65536+(n-55296<<10)|t-56320,o=!0)}t+=r<=127?1:r<=2047?2:r<=65535?3:4,o&&s++}return t}constructor(e){const t=e.length,s=i._utf8ByteLength(e),a=s!==t,n=a?new Uint32Array(t+1):null +a&&(n[t]=s) +const r=a?new Uint32Array(s+1):null +a&&(r[s]=t) +const o=new Uint8Array(s) +let c=0 +for(let i=0;i=55296&&s<=56319&&i+1=56320&&t<=57343&&(l=65536+(s-55296<<10)|t-56320,u=!0)}a&&(n[i]=c,u&&(n[i+1]=c),l<=127?r[c+0]=i:l<=2047?(r[c+0]=i,r[c+1]=i):l<=65535?(r[c+0]=i,r[c+1]=i,r[c+2]=i):(r[c+0]=i,r[c+1]=i,r[c+2]=i,r[c+3]=i)),l<=127?o[c++]=l:l<=2047?(o[c++]=192|(1984&l)>>>6,o[c++]=128|(63&l)>>>0):l<=65535?(o[c++]=224|(61440&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0):(o[c++]=240|(1835008&l)>>>18,o[c++]=128|(258048&l)>>>12,o[c++]=128|(4032&l)>>>6,o[c++]=128|(63&l)>>>0),u&&i++}this.utf16Length=t,this.utf8Length=s,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=n,this.utf8OffsetToUtf16=r}createString(e){const t=e._omalloc(this.utf8Length) +return e.HEAPU8.set(this.utf8Value,t),t}}class c{constructor(e){if(this.id=++c.LAST_ID,!r)throw new Error("Must invoke loadWASM first.") +this._onigBinding=r,this.content=e +const t=new i(e) +this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!c._sharedPtrInUse?(c._sharedPtr||(c._sharedPtr=r._omalloc(1e4)),c._sharedPtrInUse=!0,r.HEAPU8.set(t.utf8Value,c._sharedPtr),this.ptr=c._sharedPtr):this.ptr=t.createString(r)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===c._sharedPtr?c._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=c,c.LAST_ID=0,c._sharedPtr=0,c._sharedPtrInUse=!1 +class l{constructor(e){if(!r)throw new Error("Must invoke loadWASM first.") +const t=[],s=[] +for(let c=0,l=e.length;cWebAssembly.instantiateStreaming(e,t)}(a):function(e){return async t=>{const s=await e.arrayBuffer() +return WebAssembly.instantiate(s,t)}}(a):function(e){return t=>WebAssembly.instantiate(e,t)}(a)}return p=new Promise(((e,t)=>{a=e,o=t})),function(e,t,s,a){(0,n.default)({print:t,instantiateWasm:(t,s)=>{if("undefined"==typeof performance){const e=()=>Date.now() +t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>s(e.instance)),a),{}}}).then((e=>{r=e,s()}))}(t,s,a,o),p},t.createOnigString=function(e){return new c(e)},t.createOnigScanner=function(e){return new l(e)},t.setDefaultDebugCall=function(e){o=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,s,a=void 0!==(e=e||{})?e:{} +a.ready=new Promise((function(e,a){t=e,s=a})) +var n,r=Object.assign({},a),o=[] +n=function(e){let t +return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e){e||w(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs?o=scriptArgs:void 0!==arguments&&(o=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print) +var i,c,l=a.print||console.log.bind(console),u=a.printErr||console.warn.bind(console) +Object.assign(a,r),r=null,a.arguments&&(o=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(i=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&w("no native wasm support detected") +var p,h,m,d=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0 +function f(e,t,s){for(var a=t+s,n=t;e[n]&&!(n>=a);)++n +if(n-t>16&&e.buffer&&g)return g.decode(e.subarray(t,n)) +for(var r="";t>10,56320|1023&l)}}else r+=String.fromCharCode((31&o)<<6|i)}else r+=String.fromCharCode(o)}return r}function y(e){p=e,a.HEAP8=new Int8Array(e),a.HEAP16=new Int16Array(e),a.HEAP32=new Int32Array(e),a.HEAPU8=h=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=m=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=new Float64Array(e)}a.INITIAL_MEMORY +var b=[],_=[],N=[] +function k(e){b.unshift(e)}function L(e){N.unshift(e)}var S,P,v=0,j=null,C=null +function w(e){a.onAbort&&a.onAbort(e),u(e="Aborted("+e+")"),d=!0,e+=". Build with -sASSERTIONS for more info." +var t=new WebAssembly.RuntimeError(e) +throw s(t),t}function x(e){return e.startsWith("data:application/octet-stream;base64,")}function A(e){try{if(e==S&&i)return new Uint8Array(i) +if(n)return n(e) +throw"both async and sync fetching of the wasm failed"}catch(e){w(e)}}function T(e){for(;e.length>0;)e.shift()(a)}function R(e){try{return c.grow(e-p.byteLength+65535>>>16),y(c.buffer),1}catch(e){}}x(S="onig.wasm")||(S=function(e){return a.locateFile?a.locateFile(e,""):""+e}(S)),P="undefined"!=typeof dateNow?dateNow:()=>performance.now() +var I=[null,[],[]] +function E(e,t){var s=I[e] +0===t||10===t?((1===e?l:u)(f(s,0)),s.length=0):s.push(t)}var O,M={emscripten_get_now:P,emscripten_memcpy_big:function(e,t,s){h.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=h.length,a=2147483648 +if((e>>>=0)>a)return!1 +for(var n=1;n<=4;n*=2){var r=s*(1+.2/n) +if(r=Math.min(r,e+100663296),R(Math.min(a,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,s,a){for(var n=0,r=0;r>2],i=m[t+4>>2] +t+=8 +for(var c=0;c>2]=n,0}} +function B(e){function s(){O||(O=!0,a.calledRun=!0,d||(T(_),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)L(a.postRun.shift()) +T(N)}()))}e=e||o,v>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)k(a.preRun.shift()) +T(b)}(),v>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),s()}),1)):s()))}if(function(){var e={env:M,wasi_snapshot_preview1:M} +function t(e,t){var s=e.exports +a.asm=s,y((c=a.asm.memory).buffer),a.asm.__indirect_function_table,function(e){_.unshift(e)}(a.asm.__wasm_call_ctors),function(){if(v--,a.monitorRunDependencies&&a.monitorRunDependencies(v),0==v&&(null!==j&&(clearInterval(j),j=null),C)){var e=C +C=null,e()}}()}function n(e){t(e.instance)}function r(t){return Promise.resolve().then((function(){return A(S)})).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),w(e)}))}if(v++,a.monitorRunDependencies&&a.monitorRunDependencies(v),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){u("Module.instantiateWasm callback failed with error: "+e),s(e)}(i||"function"!=typeof WebAssembly.instantiateStreaming||x(S)||"function"!=typeof fetch?r(n):fetch(S,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(s)}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a.___errno_location=function(){return(a.___errno_location=a.asm.__errno_location).apply(null,arguments)},a._omalloc=function(){return(a._omalloc=a.asm.omalloc).apply(null,arguments)},a._ofree=function(){return(a._ofree=a.asm.ofree).apply(null,arguments)},a._getLastOnigError=function(){return(a._getLastOnigError=a.asm.getLastOnigError).apply(null,arguments)},a._createOnigScanner=function(){return(a._createOnigScanner=a.asm.createOnigScanner).apply(null,arguments)},a._freeOnigScanner=function(){return(a._freeOnigScanner=a.asm.freeOnigScanner).apply(null,arguments)},a._findNextOnigScannerMatch=function(){return(a._findNextOnigScannerMatch=a.asm.findNextOnigScannerMatch).apply(null,arguments)},a._findNextOnigScannerMatchDbg=function(){return(a._findNextOnigScannerMatchDbg=a.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},a.stackSave=function(){return(a.stackSave=a.asm.stackSave).apply(null,arguments)},a.stackRestore=function(){return(a.stackRestore=a.asm.stackRestore).apply(null,arguments)},a.stackAlloc=function(){return(a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.UTF8ToString=function(e,t){return e?f(h,e,t):""},C=function e(){O||B(),O||(C=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()() +return B(),e.ready}) +e.exports=t}},t={},function s(a){var n=t[a] +if(void 0!==n)return n.exports +var r=t[a]={exports:{}} +return e[a].call(r.exports,r,r.exports,s),r.exports}(770) +var e,t},e.exports=t()},6536:function(e){e.exports=(()=>{"use strict" +var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var s +Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(s=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2) +for(;t.length<32;)t="0"+t +return t},s.print=function(e){const t=s.getLanguageId(e),a=s.getTokenType(e),n=s.getFontStyle(e),r=s.getForeground(e),o=s.getBackground(e) +console.log({languageId:t,tokenType:a,fontStyle:n,foreground:r,background:o})},s.getLanguageId=function(e){return(255&e)>>>0},s.getTokenType=function(e){return(768&e)>>>8},s.containsBalancedBrackets=function(e){return!!(1024&e)},s.getFontStyle=function(e){return(30720&e)>>>11},s.getForeground=function(e){return(16744448&e)>>>15},s.getBackground=function(e){return(4278190080&e)>>>24},s.set=function(e,t,a,n,r,o,i){let c=s.getLanguageId(e),l=s.getTokenType(e),u=s.containsBalancedBrackets(e)?1:0,p=s.getFontStyle(e),h=s.getForeground(e),m=s.getBackground(e) +return 0!==t&&(c=t),8!==a&&(l=a),null!==n&&(u=n?1:0),-1!==r&&(p=r),0!==o&&(h=o),0!==i&&(m=i),(c|l<<8|u<<10|p<<11|h<<15|m<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0 +const a=s(878) +class n{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=n +class r{constructor(e,t){this._getBasicScopeAttributes=new a.CachedFn((e=>{const t=this._scopeToLanguage(e),s=this._toStandardTokenType(e) +return new n(t,s)})),this._defaultAttributes=new n(e,8),this._embeddedLanguagesMatcher=new o(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?r._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(r.STANDARD_TOKEN_TYPE_REGEXP) +if(!t)return 8 +switch(t[1]){case"comment":return 1 +case"string":return 2 +case"regex":return 3 +case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=r,r._NULL_SCOPE_METADATA=new n(0,0),r.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/ +class o{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null +else{this.values=new Map(e) +const t=e.map((([e,t])=>a.escapeRegExpCharacters(e))) +t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return +const t=e.match(this.scopesRegExp) +return t?this.values.get(t[1]):void 0}}},947:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0 +const a=s(350),n=s(36),r=s(736),o=s(44),i=s(792),c=s(583),l=s(878),u=s(996),p=s(47) +function h(e,t,s,a,n){const o=r.createMatchers(t,m),c=i.RuleFactory.getCompiledRuleId(s,a,n.repository) +for(const r of o)e.push({debugSelector:t,matcher:r.matcher,ruleId:c,grammar:n,priority:r.priority})}function m(e,t){if(t.length{for(let a=s;as&&e.substr(0,s)===t&&"."===e[s]}t.createGrammar=function(e,t,s,a,n,r,o,i){return new g(e,t,s,a,n,r,o,i)} +class g{constructor(e,t,s,a,n,o,i,c){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=c,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(s,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=f(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const l of Object.keys(n)){const e=r.createMatchers(l,m) +for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:n[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,s=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t) +if(s){const a=s.injections +if(a)for(let t in a)h(e,t,a[t],this,s) +const n=this._grammarRepository.injections(t) +n&&n.forEach((t=>{const s=this.getExternalGrammar(t) +if(s){const t=s.injectionSelector +t&&h(e,t,s,this,s)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),a.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`) +for(const e of this._injections)console.log(` - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,s=e(i.ruleIdFromNumber(t)) +return this._ruleId2desc[t]=s,s}getRule(e){return this._ruleId2desc[i.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e] +if(this._grammarRepository){const s=this._grammarRepository.lookup(e) +if(s)return this._includedGrammars[e]=f(s,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,s=0){const a=this._tokenize(e,t,!1,s) +return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,s=0){const a=this._tokenize(e,t,!0,s) +return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,s,a){let r +if(-1===this._rootId&&(this._rootId=i.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==b.NULL)r=!1,t.reset() +else{r=!0 +const e=this._basicScopeAttributesProvider.getDefaultAttributes(),s=this.themeProvider.getDefaults(),a=n.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,s.fontStyle,s.foregroundId,s.backgroundId),o=this.getRule(this._rootId).getName(null,null) +let i +i=o?y.createRootAndLookUpScopeName(o,a,this):y.createRoot("unknown",a),t=new b(null,this._rootId,-1,-1,!1,null,i,i)}e+="\n" +const c=this.createOnigString(e),l=c.content.length,u=new _(s,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=p._tokenizeString(this,c,r,0,t,u,!0,a) +return o.disposeOnigString(c),{lineLength:l,lineTokens:u,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}}function f(e,t){return(e=l.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g +class y{constructor(e,t,s){this.parent=e,this.scopePath=t,this.tokenAttributes=s}static createRoot(e,t){return new y(null,new c.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,s){const a=s.getMetadataForScope(e),n=new c.ScopeStack(null,e),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(t,a,r) +return new y(null,n,o)}get scopeName(){return this.scopePath.scopeName}equals(e){return y._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0 +if(!e&&!t)return!0 +if(!e||!t)return!1 +if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1 +e=e.parent,t=t.parent}}static mergeAttributes(e,t,s){let a=-1,r=0,o=0 +return null!==s&&(a=s.fontStyle,r=s.foregroundId,o=s.backgroundId),n.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,a,r,o)}pushAttributed(e,t){if(null===e)return this +if(-1===e.indexOf(" "))return y._pushAttributed(this,e,t) +const s=e.split(/ /g) +let a=this +for(const n of s)a=y._pushAttributed(a,n,t) +return a}static _pushAttributed(e,t,s){const a=s.getMetadataForScope(t),n=e.scopePath.push(t),r=s.themeProvider.themeMatch(n),o=y.mergeAttributes(e.tokenAttributes,a,r) +return new y(e,n,o)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=y +class b{constructor(e,t,s,a,n,r,o,i){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=n,this.endRule=r,this.nameScopesList=o,this.contentNameScopesList=i,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=s,this._anchorPos=a}equals(e){return null!==e&&b._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0 +if(!e&&!t)return!0 +if(!e||!t)return!1 +if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1 +e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){b._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,s,a,n,r,o){return new b(this,e,t,s,a,n,r,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[] +return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this +for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0 +t=t.parent}return!1}}t.StateStack=b,b.NULL=new b(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):r.createMatchers(e,m).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>r.createMatchers(e,m).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1 +for(const t of this.balancedBracketScopes)if(t(e))return!0 +return this.allowAny}} +class _{constructor(e,t,s,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=s,a.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return +if(this._emitBinaryTokens){let s=e.tokenAttributes,r=!1 +if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames() +for(const e of this._tokenTypeOverrides)e.matcher(t)&&(s=n.EncodedTokenAttributes.set(s,0,n.toOptionalTokenType(e.type),null,-1,0,0)) +this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(s=n.EncodedTokenAttributes.set(s,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s)return void(this._lastTokenEndIndex=t) +if(a.DebugFlags.InDebugMode){const s=e.getScopeNames() +console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|") +for(let e=0;e0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0) +const s=new Uint32Array(this._binaryTokens.length) +for(let a=0,n=this._binaryTokens.length;a{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0 +const a=s(878) +class n{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=n +class r{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=r +class o{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey() +this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function i(e,t,s,a){const r=s.lookup(e.scopeName) +if(!r){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`) +return}const o=s.lookup(t) +e instanceof n?l({baseGrammar:o,selfGrammar:r},a):c(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},a) +const i=s.injections(e.scopeName) +if(i)for(const c of i)a.add(new n(c))}function c(e,t,s){t.repository&&t.repository[e]&&u([t.repository[e]],t,s)}function l(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,s){for(const o of e){if(s.visitedRule.has(o))continue +s.visitedRule.add(o) +const e=o.repository?a.mergeObjects({},t.repository,o.repository):t.repository +Array.isArray(o.patterns)&&u(o.patterns,{...t,repository:e},s) +const i=o.include +if(!i)continue +const p=f(i) +switch(p.kind){case 0:l({...t,selfGrammar:t.baseGrammar},s) +break +case 1:l(t,s) +break +case 2:c(p.ruleName,{...t,repository:e},s) +break +case 3:case 4:const a=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0 +if(a){const n={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e} +4===p.kind?c(p.ruleName,n,s):l(n,s)}else 4===p.kind?s.add(new r(p.scopeName,p.ruleName)):s.add(new n(p.scopeName))}}}t.ExternalReferenceCollector=o,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new n(this.initialScopeName)]}processQueue(){const e=this.Q +this.Q=[] +const t=new o +for(const s of e)i(s,this.initialScopeName,this.repo,t) +for(const s of t.references)if(s instanceof n){if(this.seenFullScopeRequests.has(s.scopeName))continue +this.seenFullScopeRequests.add(s.scopeName),this.Q.push(s)}else{if(this.seenFullScopeRequests.has(s.scopeName))continue +if(this.seenPartialScopeRequests.has(s.toKey()))continue +this.seenPartialScopeRequests.add(s.toKey()),this.Q.push(s)}}} +class p{constructor(){this.kind=0}}t.BaseReference=p +class h{constructor(){this.kind=1}}t.SelfReference=h +class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m +class d{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=d +class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function f(e){if("$base"===e)return new p +if("$self"===e)return new h +const t=e.indexOf("#") +if(-1===t)return new d(e) +if(0===t)return new m(e.substring(1)) +{const s=e.substring(0,t),a=e.substring(t+1) +return new g(s,a)}}t.TopLevelRepositoryReference=g,t.parseInclude=f},391:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)} +Object.defineProperty(t,"__esModule",{value:!0}),n(s(947),t)},47:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0 +const a=s(350),n=s(44),r=s(792),o=s(878) +class i{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function c(e,t,s,n,c,p,m,d){const g=t.content.length +let f=!1,y=-1 +if(m){const o=function(e,t,s,n,o,i){let c=o.beginRuleCapturedEOL?0:-1 +const l=[] +for(let a=o;a;a=a.pop()){const t=a.getRule(e) +t instanceof r.BeginWhileRule&&l.push({rule:t,stack:a})}for(let p=l.pop();p;p=l.pop()){const{ruleScanner:l,findOptions:m}=u(p.rule,e,p.stack.endRule,s,n===c),d=l.findNextMatchSync(t,n,m) +if(a.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(l.toString())),!d){a.DebugFlags.InDebugMode&&console.log(" popping "+p.rule.debugName+" - "+p.rule.debugWhileRegExp),o=p.stack.pop() +break}if(d.ruleId!==r.whileRuleId){o=p.stack.pop() +break}d.captureIndices&&d.captureIndices.length&&(i.produce(p.stack,d.captureIndices[0].start),h(e,t,s,p.stack,i,p.rule.whileCaptures,d.captureIndices),i.produce(p.stack,d.captureIndices[0].end),c=d.captureIndices[0].end,d.captureIndices[0].end>n&&(n=d.captureIndices[0].end,s=!1))}return{stack:o,linePos:n,anchorPosition:c,isFirstLine:s}}(e,t,s,n,c,p) +c=o.stack,n=o.linePos,s=o.isFirstLine,y=o.anchorPosition}const b=Date.now() +for(;!f;){if(0!==d&&Date.now()-b>d)return new i(c,!0) +_()}return new i(c,!1) +function _(){a.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${n}: |${t.content.substr(n).replace(/\n$/,"\\n")}|`)) +const i=function(e,t,s,n,r,i){const c=function(e,t,s,n,r,i){const c=r.getRule(e),{ruleScanner:u,findOptions:p}=l(c,e,r.endRule,s,n===i) +let h=0 +a.DebugFlags.InDebugMode&&(h=o.performanceNow()) +const m=u.findNextMatchSync(t,n,p) +if(a.DebugFlags.InDebugMode){const e=o.performanceNow()-h +e>5&&console.warn(`Rule ${c.debugName} (${c.id}) matching took ${e} against '${t}'`),console.log(` scanning for (linePos: ${n}, anchorPosition: ${i})`),console.log(u.toString()),m&&console.log(`matched rule id: ${m.ruleId} from ${m.captureIndices[0].start} to ${m.captureIndices[0].end}`)}return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}(e,t,s,n,r,i),u=e.getInjections() +if(0===u.length)return c +const p=function(e,t,s,n,r,o,i){let c,u=Number.MAX_VALUE,p=null,h=0 +const m=o.contentNameScopesList.getScopeNames() +for(let d=0,g=e.length;d=u)&&(u=_,p=b.captureIndices,c=b.ruleId,h=o.priority,u===r))break}return p?{priorityMatch:-1===h,captureIndices:p,matchedRuleId:c}:null}(u,e,t,s,n,r,i) +if(!p)return c +if(!c)return p +const h=c.captureIndices[0].start,m=p.captureIndices[0].start +return m0)&&u[0].end>n +if(m===r.endRuleId){const r=c.getRule(e) +a.DebugFlags.InDebugMode&&console.log(" popping "+r.debugName+" - "+r.debugEndRegExp),p.produce(c,u[0].start),c=c.withContentNameScopesList(c.nameScopesList),h(e,t,s,c,p,r.endCaptures,u),p.produce(c,u[0].end) +const o=c +if(c=c.parent,y=o.getAnchorPos(),!d&&o.getEnterPos()===n)return a.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),c=o,p.produce(c,g),void(f=!0)}else{const o=e.getRule(m) +p.produce(c,u[0].start) +const i=c,l=o.getName(t.content,u),b=c.contentNameScopesList.pushAttributed(l,e) +if(c=c.push(m,n,y,u[0].end===g,null,b,b),o instanceof r.BeginEndRule){const n=o +a.DebugFlags.InDebugMode&&console.log(" pushing "+n.debugName+" - "+n.debugBeginRegExp),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end +const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e) +if(c=c.withContentNameScopesList(l),n.endHasBackReferences&&(c=c.withEndRule(n.getEndWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else if(o instanceof r.BeginWhileRule){const n=o +a.DebugFlags.InDebugMode&&console.log(" pushing "+n.debugName),h(e,t,s,c,p,n.beginCaptures,u),p.produce(c,u[0].end),y=u[0].end +const r=n.getContentName(t.content,u),l=b.pushAttributed(r,e) +if(c=c.withContentNameScopesList(l),n.whileHasBackReferences&&(c=c.withEndRule(n.getWhileWithResolvedBackReferences(t.content,u))),!d&&i.hasSameRuleAs(c))return a.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),c=c.pop(),p.produce(c,g),void(f=!0)}else{const n=o +if(a.DebugFlags.InDebugMode&&console.log(" matched "+n.debugName+" - "+n.debugMatchRegExp),h(e,t,s,c,p,n.captures,u),p.produce(c,u[0].end),c=c.pop(),!d)return a.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),c=c.safePop(),p.produce(c,g),void(f=!0)}}u[0].end>n&&(n=u[0].end,s=!1)}}function l(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileAG(t,s,n,r),findOptions:0}}function u(e,t,s,n,r){return a.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,s),findOptions:p(n,r)}:{ruleScanner:e.compileWhileAG(t,s,n,r),findOptions:0}}function p(e,t){let s=0 +return e||(s|=1),t||(s|=4),s}function h(e,t,s,a,r,o,i){if(0===o.length)return +const l=t.content,u=Math.min(o.length,i.length),p=[],h=i[0].end +for(let d=0;dh)break +for(;p.length>0&&p[p.length-1].endPos<=u.start;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop() +if(p.length>0?r.produceFromScopes(p[p.length-1].scopes,u.start):r.produce(a,u.start),t.retokenizeCapturedWithRuleId){const o=t.getName(l,i),p=a.contentNameScopesList.pushAttributed(o,e),h=t.getContentName(l,i),m=p.pushAttributed(h,e),d=a.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,p,m),g=e.createOnigString(l.substring(0,u.end)) +c(e,g,s&&0===u.start,u.start,d,r,!1,0),n.disposeOnigString(g) +continue}const g=t.getName(l,i) +if(null!==g){const t=(p.length>0?p[p.length-1].scopes:a.contentNameScopesList).pushAttributed(g,e) +p.push(new m(t,u.end))}}for(;p.length>0;)r.produceFromScopes(p[p.length-1].scopes,p[p.length-1].endPos),p.pop()}t._tokenizeString=c +class m{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=m},974:(e,t)=>{function s(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,o){let i=new a(e),c=new n,l=0,u=null,p=[],h=[] +function m(){p.push(l),h.push(u)}function d(){l=p.pop(),u=h.pop()}function g(e){s(i,e)}for(;r(i,c);){if(0===l){if(null!==u&&g("too many constructs in root"),3===c.type){u={},o&&(u.$vscodeTextmateLocation=c.toLocation(t)),m(),l=1 +continue}if(2===c.type){u=[],m(),l=4 +continue}g("unexpected token in root")}if(2===l){if(5===c.type){d() +continue}if(7===c.type){l=3 +continue}g("expected , or }")}if(1===l||3===l){if(1===l&&5===c.type){d() +continue}if(1===c.type){let e=c.value +if(r(i,c)&&6===c.type||g("expected colon"),r(i,c)||g("expected value"),l=2,1===c.type){u[e]=c.value +continue}if(8===c.type){u[e]=null +continue}if(9===c.type){u[e]=!0 +continue}if(10===c.type){u[e]=!1 +continue}if(11===c.type){u[e]=parseFloat(c.value) +continue}if(2===c.type){let t=[] +u[e]=t,m(),l=4,u=t +continue}if(3===c.type){let s={} +o&&(s.$vscodeTextmateLocation=c.toLocation(t)),u[e]=s,m(),l=1,u=s +continue}}g("unexpected token in dict")}if(5===l){if(4===c.type){d() +continue}if(7===c.type){l=6 +continue}g("expected , or ]")}if(4===l||6===l){if(4===l&&4===c.type){d() +continue}if(l=5,1===c.type){u.push(c.value) +continue}if(8===c.type){u.push(null) +continue}if(9===c.type){u.push(!0) +continue}if(10===c.type){u.push(!1) +continue}if(11===c.type){u.push(parseFloat(c.value)) +continue}if(2===c.type){let e=[] +u.push(e),m(),l=4,u=e +continue}if(3===c.type){let e={} +o&&(e.$vscodeTextmateLocation=c.toLocation(t)),u.push(e),m(),l=1,u=e +continue}g("unexpected token in array")}g("unknown state")}return 0!==h.length&&g("unclosed constructs"),u} +class a{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class n{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1 +let a,n=e.source,r=e.pos,o=e.len,i=e.line,c=e.char +for(;;){if(r>=o)return!1 +if(a=n.charCodeAt(r),32!==a&&9!==a&&13!==a){if(10!==a)break +r++,i++,c=0}else r++,c++}if(t.offset=r,t.line=i,t.char=c,34===a){for(t.type=1,r++,c++;;){if(r>=o)return!1 +if(a=n.charCodeAt(r),r++,c++,92!==a){if(34===a)break}else r++,c++}t.value=n.substring(t.offset+1,r-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,a)=>{switch(a){case'"':return'"' +case"\\":return"\\" +case"/":return"/" +case"b":return"\b" +case"f":return"\f" +case"n":return"\n" +case"r":return"\r" +case"t":return"\t" +default:s(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===a)t.type=2,r++,c++ +else if(123===a)t.type=3,r++,c++ +else if(93===a)t.type=4,r++,c++ +else if(125===a)t.type=5,r++,c++ +else if(58===a)t.type=6,r++,c++ +else if(44===a)t.type=7,r++,c++ +else if(110===a){if(t.type=8,r++,c++,a=n.charCodeAt(r),117!==a)return!1 +if(r++,c++,a=n.charCodeAt(r),108!==a)return!1 +if(r++,c++,a=n.charCodeAt(r),108!==a)return!1 +r++,c++}else if(116===a){if(t.type=9,r++,c++,a=n.charCodeAt(r),114!==a)return!1 +if(r++,c++,a=n.charCodeAt(r),117!==a)return!1 +if(r++,c++,a=n.charCodeAt(r),101!==a)return!1 +r++,c++}else if(102===a){if(t.type=10,r++,c++,a=n.charCodeAt(r),97!==a)return!1 +if(r++,c++,a=n.charCodeAt(r),108!==a)return!1 +if(r++,c++,a=n.charCodeAt(r),115!==a)return!1 +if(r++,c++,a=n.charCodeAt(r),101!==a)return!1 +r++,c++}else for(t.type=11;;){if(r>=o)return!1 +if(a=n.charCodeAt(r),!(46===a||a>=48&&a<=57||101===a||69===a||45===a||43===a))break +r++,c++}return t.len=r-t.offset,null===t.value&&(t.value=n.substr(t.offset,t.len)),e.pos=r,e.line=i,e.char=c,!0}},787:function(e,t,s){var a=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||a(t,e,s)} +Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0 +const r=s(391),o=s(50),i=s(652),c=s(583),l=s(965) +n(s(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new i.SyncRegistry(c.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(c.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,s){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:s})}loadGrammarWithConfiguration(e,t,s){return this._loadGrammar(e,t,s.embeddedLanguages,s.tokenTypes,new r.BalancedBracketSelectors(s.balancedBracketSelectors||[],s.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,s,a,n){const r=new l.ScopeDependencyProcessor(this._syncRegistry,e) +for(;r.Q.length>0;)await Promise.all(r.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),r.processQueue() +return this._grammarForScopeName(e,t,s,a,n)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e) +if(t){const s="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0 +this._syncRegistry.addGrammar(t,s)}}async addGrammar(e,t=[],s=0,a=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,s,a)}_grammarForScopeName(e,t=0,s=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,s,a,n)}},t.INITIAL=r.StateStack.NULL,t.parseRawGrammar=o.parseRawGrammar},736:(e,t)=>{function s(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const a=[],n=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,s=t.exec(e) +return{next:()=>{if(!s)return null +const a=s[0] +return s=t.exec(e),a}}}(e) +let r=n.next() +for(;null!==r;){let e=0 +if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":e=1 +break +case"L":e=-1 +break +default:console.log(`Unknown priority ${r} in scope selector`)}r=n.next()}let t=i() +if(a.push({matcher:t,priority:e}),","!==r)break +r=n.next()}return a +function o(){if("-"===r){r=n.next() +const e=o() +return t=>!!e&&!e(t)}if("("===r){r=n.next() +const e=function(){const e=[] +let t=i() +for(;t&&(e.push(t),"|"===r||","===r);){do{r=n.next()}while("|"===r||","===r) +t=i()}return t=>e.some((e=>e(t)))}() +return")"===r&&(r=n.next()),e}if(s(r)){const e=[] +do{e.push(r),r=n.next()}while(s(r)) +return s=>t(e,s)}return null}function i(){const e=[] +let t=o() +for(;t;)e.push(t),t=o() +return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0 +const a=s(69),n=s(350),r=s(974) +t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,o=t,n.DebugFlags.InDebugMode?r.parseJSON(s,o,!0):JSON.parse(s)):function(e,t){return n.DebugFlags.InDebugMode?a.parseWithLocation(e,t,"$vscodeTextmateLocation"):a.parsePLIST(e)}(e,t) +var s,o}},69:(e,t)=>{function s(e,t,s){const a=e.length +let n=0,r=1,o=0 +function i(t){if(null===s)n+=t +else for(;t>0;)10===e.charCodeAt(n)?(n++,r++,o=0):(n++,o++),t--}function c(e){null===s?n=e:i(e-n)}function l(){for(;n0&&65279===e.charCodeAt(0)&&(n=1) +let m=0,d=null,g=[],f=[],y=null +function b(e,t){g.push(m),f.push(d),m=e,d=t}function _(){if(0===g.length)return N("illegal state stack") +m=g.pop(),d=f.pop()}function N(t){throw new Error("Near offset "+n+": "+t+" ~~~"+e.substr(n,50)+"~~~")}const k=function(){if(null===y)return N("missing ") +let e={} +null!==s&&(e[s]={filename:t,line:r,char:o}),d[y]=e,y=null,b(1,e)},L=function(){if(null===y)return N("missing ") +let e=[] +d[y]=e,y=null,b(2,e)},S=function(){let e={} +null!==s&&(e[s]={filename:t,line:r,char:o}),d.push(e),b(1,e)},P=function(){let e=[] +d.push(e),b(2,e)} +function v(){if(1!==m)return N("unexpected ") +_()}function j(){return 1===m||2!==m?N("unexpected "):void _()}function C(e){if(1===m){if(null===y)return N("missing ") +d[y]=e,y=null}else 2===m?d.push(e):d=e}function w(e){if(isNaN(e))return N("cannot parse float") +if(1===m){if(null===y)return N("missing ") +d[y]=e,y=null}else 2===m?d.push(e):d=e}function x(e){if(isNaN(e))return N("cannot parse integer") +if(1===m){if(null===y)return N("missing ") +d[y]=e,y=null}else 2===m?d.push(e):d=e}function A(e){if(1===m){if(null===y)return N("missing ") +d[y]=e,y=null}else 2===m?d.push(e):d=e}function T(e){if(1===m){if(null===y)return N("missing ") +d[y]=e,y=null}else 2===m?d.push(e):d=e}function R(e){if(1===m){if(null===y)return N("missing ") +d[y]=e,y=null}else 2===m?d.push(e):d=e}function I(){let e=h(">"),t=!1 +return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function E(e){if(e.isClosed)return"" +let t=h(""),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&" +case"<":return"<" +case">":return">" +case""":return'"' +case"'":return"'"}return e}))}for(;n=a));){const c=e.charCodeAt(n) +if(i(1),60!==c)return N("expected <") +if(n>=a)return N("unexpected end of input") +const h=e.charCodeAt(n) +if(63===h){i(1),p("?>") +continue}if(33===h){if(i(1),u("--")){p("--\x3e") +continue}p(">") +continue}if(47===h){if(i(1),l(),u("plist")){p(">") +continue}if(u("dict")){p(">"),v() +continue}if(u("array")){p(">"),j() +continue}return N("unexpected closed tag")}let g=I() +switch(g.name){case"dict":1===m?k():2===m?S():(d={},null!==s&&(d[s]={filename:t,line:r,char:o}),b(1,d)),g.isClosed&&v() +continue +case"array":1===m?L():2===m?P():(d=[],b(2,d)),g.isClosed&&j() +continue +case"key":O=E(g),1!==m?N("unexpected "):null!==y?N("too many "):y=O +continue +case"string":C(E(g)) +continue +case"real":w(parseFloat(E(g))) +continue +case"integer":x(parseInt(E(g),10)) +continue +case"date":A(new Date(E(g))) +continue +case"data":T(E(g)) +continue +case"true":E(g),R(!0) +continue +case"false":E(g),R(!1) +continue}if(!/^plist/.test(g.name))return N("unexpected opened tag "+g.name)}var O +return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,a){return s(e,t,a)},t.parsePLIST=function(e){return s(e,null,null)}},652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0 +const a=s(391) +t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,s,n,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e) +if(!o)return null +this._grammars.set(e,a.createGrammar(e,o,t,s,n,r,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0 +const a=s(878),n=s(965),r=/\\(\d+)/,o=/\\(\d+)/g +Symbol("RuleId"),t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e} +class i{constructor(e,t,s,n){this.$location=e,this.id=t,this._name=s||null,this._nameIsCapturing=a.RegexSource.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=a.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${a.basename(this.$location.filename)}:${this.$location.line}`:"unknown" +return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?a.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?a.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=i +class c extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,s,a){throw new Error("Not supported!")}}t.CaptureRule=c +class l extends i{constructor(e,t,s,a,n){super(e,t,s,null),this._match=new d(a,this.id),this.captures=n,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=l +class u extends i{constructor(e,t,s,a,n){super(e,t,s,a),this.patterns=n.patterns,this.hasMissingPatterns=n.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const s of this.patterns)e.getRule(s).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u +class p extends i{constructor(e,t,s,a,n,r,o,i,c,l){super(e,t,s,a),this._begin=new d(n,this.id),this.beginCaptures=r,this._end=new d(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,s,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g +for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns) +this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=p +class h extends i{constructor(e,s,a,n,r,o,i,c,l){super(e,s,a,n),this._begin=new d(r,this.id),this.beginCaptures=o,this.whileCaptures=c,this._while=new d(i,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,s,a){return this._getCachedCompiledPatterns(e).compileAG(e,s,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g +for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,s,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,s,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=h +class m{static createCaptureRule(e,t,s,a,n){return e.registerRule((e=>new c(t,e,s,a,n)))}static getCompiledRuleId(e,t,s){return e.id||t.registerRule((n=>{if(e.id=n,e.match)return new l(e.$vscodeTextmateLocation,e.id,e.name,e.match,m._compileCaptures(e.captures,t,s)) +if(void 0===e.begin){e.repository&&(s=a.mergeObjects({},s,e.repository)) +let n=e.patterns +return void 0===n&&e.include&&(n=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,m._compilePatterns(n,t,s))}return e.while?new h(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.while,m._compileCaptures(e.whileCaptures||e.captures,t,s),m._compilePatterns(e.patterns,t,s)):new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,m._compileCaptures(e.beginCaptures||e.captures,t,s),e.end,m._compileCaptures(e.endCaptures||e.captures,t,s),e.applyEndPatternLast,m._compilePatterns(e.patterns,t,s))})),e.id}static _compileCaptures(e,t,s){let a=[] +if(e){let n=0 +for(const t in e){if("$vscodeTextmateLocation"===t)continue +const e=parseInt(t,10) +e>n&&(n=e)}for(let e=0;e<=n;e++)a[e]=null +for(const r in e){if("$vscodeTextmateLocation"===r)continue +const n=parseInt(r,10) +let o=0 +e[r].patterns&&(o=m.getCompiledRuleId(e[r],t,s)),a[n]=m.createCaptureRule(t,e[r].$vscodeTextmateLocation,e[r].name,e[r].contentName,o)}}return a}static _compilePatterns(e,t,s){let a=[] +if(e)for(let r=0,o=e.length;re.substring(t.start,t.end))) +return o.lastIndex=0,this.source.replace(o,((e,t)=>a.escapeRegExpCharacters(s[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,s,a,n=[],r=[],o=[],i=[] +for(e=0,t=this.source.length;ee.source)) +this._cached=new f(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,s){return this._hasAnchors?t?s?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A1_G0):s?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,s)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,s){let a=this._items.map((e=>e.resolveAnchors(t,s))) +return new f(e,a,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g +class f{constructor(e,t,s){this.regExps=t,this.rules=s,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[] +for(let t=0,s=this.rules.length;t{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0 +const a=s(878) +class n{constructor(e,t,s){this._colorMap=e,this._defaults=t,this._root=s,this._cachedMatchRoot=new a.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(c(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let s=a.strcmp(e.scope,t.scope) +return 0!==s?s:(s=a.strArrCmp(e.parentScopes,t.parentScopes),0!==s?s:e.index-t.index)})) +let s=0,r="#000000",o="#ffffff" +for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(s=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let c=new u(t),l=new i(s,c.getId(r),c.getId(o)),m=new h(new p(0,null,-1,0,0),[]) +for(let a=0,n=e.length;afunction(e,t){if(null===t)return!0 +let s=0,a=t[s] +for(;e;){if(o(e.scopeName,a)){if(s++,s===t.length)return!0 +a=t[s]}e=e.parent}return!1}(e.parent,t.parentScopes))) +return s?new i(s.fontStyle,s.foreground,s.background):null}}t.Theme=n +class r{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null +for(let s=0;s1&&(p=a.slice(0,a.length-1),p.reverse()),s[n++]=new l(o,p,r,i,c,u)}}return s}t.StyleAttributes=i,t.parseTheme=c +class l{constructor(e,t,s,a,n,r){this.scope=e,this.parentScopes=t,this.index=s,this.fontStyle=a,this.foreground=n,this.background=r}}t.ParsedThemeRule=l,t.fontStyleToString=function(e){if(-1===e)return"not set" +let t="" +return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()} +class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0 +for(let t=0,s=e.length;te?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==s&&(this.foreground=s),0!==a&&(this.background=a)}}t.ThemeTrieElementRule=p +class h{constructor(e,t=[],s={}){this._mainRule=e,this._children=s,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const s=e.parentScopes,a=t.parentScopes +let n=null===s?0:s.length,r=null===a?0:a.length +if(n===r)for(let e=0;e{function s(e){return Array.isArray(e)?function(e){let t=[] +for(let a=0,n=e.length;a{for(let s in t)e[s]=t[s]})),e},t.basename=function e(t){const s=~t.lastIndexOf("/")||~t.lastIndexOf("\\") +return 0===s?t:~s==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~s)} +let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g +function n(e,t){return et?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(a.lastIndex=0,a.test(e))}static replaceCaptures(e,t,s){return e.replace(a,((e,a,n,r)=>{let o=s[parseInt(a||n,10)] +if(!o)return e +{let e=t.substring(o.start,o.end) +for(;"."===e[0];)e=e.substring(1) +switch(r){case"downcase":return e.toLowerCase() +case"upcase":return e.toUpperCase() +default:return e}}}))}},t.strcmp=n,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0 +if(!e)return-1 +if(!t)return 1 +let s=e.length,a=t.length +if(s===a){for(let a=0;a