@gjsify/adwaita-core 0.64.12-next.280 → 0.64.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/conformance/gobject.js +1 -1
- package/lib/esm/conformance/index.js +1 -1
- package/lib/esm/conformance/list.js +1 -1
- package/lib/esm/conformance/rows.js +1 -1
- package/lib/esm/gobject.js +1 -1
- package/lib/esm/gtk-platform.js +1 -1
- package/lib/esm/gtk-string-list.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/list.js +1 -1
- package/lib/esm/markup.js +1 -1
- package/lib/esm/option-list.js +1 -0
- package/lib/esm/rows.js +1 -1
- package/lib/types/conformance/gobject.d.ts +23 -1
- package/lib/types/conformance/index.d.ts +4 -4
- package/lib/types/conformance/list.d.ts +46 -39
- package/lib/types/conformance/rows.d.ts +62 -2
- package/lib/types/engine.d.ts +50 -6
- package/lib/types/gobject.d.ts +75 -4
- package/lib/types/gtk-platform.d.ts +9 -0
- package/lib/types/gtk-string-list.d.ts +89 -44
- package/lib/types/index.d.ts +9 -7
- package/lib/types/list-view.d.ts +4 -4
- package/lib/types/list.d.ts +33 -19
- package/lib/types/option-list.d.ts +128 -0
- package/lib/types/option-list.spec.d.ts +2 -0
- package/lib/types/rows.d.ts +162 -56
- package/package.json +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";const e=[`registerClass`,`field-form`,`ParamSpec`,`Signals`,`instance API`,`type_ensure`,`vfunc`,`binding engine`,`template`];function attempt(e){try{return e(),null}catch(e){return e instanceof Error?e.message:String(e)}}function count(e,t){let n={n:0};return e.connect(t,()=>{n.n++}),n}function boxTemplate(e,t=`onClicked`){return{className:e,tree:{tag:`GtkBox`,children:[{tag:`GtkSwitch`,id:`sw`,bindings:{active:{source:`template`,property:`enabled`,flags:[`bidirectional`]}}},{tag:`GtkButton`,id:`btn`,signals:[{name:`clicked`,handler:t}]}]},xml:`<interface><template class="${e}" parent="GtkBox"><child><object class="GtkSwitch" id="sw"><property name="active" bind-source="${e}" bind-property="enabled" bind-flags="bidirectional|sync-create"/></object></child><child><object class="GtkButton" id="btn"><signal name="clicked" handler="${t}"/></object></child></template></interface>`}}const t=[{row:`ParamSpec`,rule:`a generated accessor notifies once per change and not on an equal value (_generateAccessors)`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecNotify`,Properties:{code:n.string(`code`,``,``,r.READWRITE,``)}},class extends t.Object{})),a=count(i,`notify::code`),o=[];return i.code=`x`,o.push(a.n),i.code=`x`,o.push(a.n),i.code=`y`,o.push(a.n),o},shows:[1,1,2]},{row:`ParamSpec`,rule:`a property reads as its ParamSpec default until it is set, for all five kinds`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecDefaults`,Properties:{s:n.string(`s`,``,``,r.READWRITE,``),b:n.boolean(`b`,``,``,r.READWRITE,!0),n:n.int(`n`,``,``,r.READWRITE,0,10,3),d:n.double(`d`,``,``,r.READWRITE,0,1,.5),u:n.uint(`u`,``,``,r.READWRITE,0,10,2)}},class extends t.Object{}));return{s:i.s,b:i.b,n:i.n,d:i.d,u:i.u}},shows:{s:``,b:!0,n:3,d:.5,u:2}},{row:`ParamSpec`,rule:`an accessor the class defines is kept: its setter runs per assignment and decides when to notify`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=0,a=new(t.registerClass({GTypeName:`GoVecOwnAccessor`,Properties:{label:n.string(`label`,``,``,r.READWRITE,``)}},class extends t.Object{constructor(...e){super(...e),this.stored=`initial`}get label(){return this.stored}set label(e){i++,this.stored=e,this.notify(`label`)}})),o=count(a,`notify::label`);return a.label=`a`,a.label=`a`,{setterCalls:i,notifies:o.n,value:a.label}},shows:{setterCalls:2,notifies:2,value:`a`}},{row:`ParamSpec`,rule:`a dashed name is reachable as dash-name, dash_name and dashName, and one notify::dash-name serves all three`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecAliases`,Properties:{"dash-name":n.string(`dash-name`,``,``,r.READWRITE,`d`)}},class extends t.Object{})),a=[i[`dash-name`],i.dash_name,i.dashName],o=count(i,`notify::dash-name`);return i.dashName=`q`,i.dash_name=`q`,{read:a,notifies:o.n,value:i[`dash-name`]}},shows:{read:[`d`,`d`,`d`],notifies:1,value:`q`}},{row:`ParamSpec`,rule:`a CONSTRUCT_ONLY property gets no accessor on the class and keeps the value it was built with`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecConstructOnly`,Properties:{co:n.int(`co`,``,``,r.READWRITE|r.CONSTRUCT_ONLY,0,10,3)}},class extends t.Object{});return{given:new i({co:7}).co,dflt:new i().co,onPrototype:Object.getOwnPropertyDescriptor(i.prototype,`co`)!==void 0}},shows:{given:7,dflt:3,onPrototype:!1}},{row:`ParamSpec`,rule:`a CONSTRUCT property runs its own setter once at construction: with the default, or the given value`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=[],a=t.registerClass({GTypeName:`GoVecConstructSetter`,Properties:{size:n.int(`size`,``,``,r.READWRITE|r.CONSTRUCT,0,100,32)}},class extends t.Object{get size(){return this._size}set size(e){i.push(e),this._size=e,this.notify(`size`)}}),o=new a,s=i.splice(0),c=new a({size:5});return{dfltCalls:s,givenCalls:i,read:[o.size,c.size]}},shows:{dfltCalls:[32],givenCalls:[5],read:[32,5]}},{row:`ParamSpec`,rule:`construction sets a CONSTRUCT property, so writing its default afterwards is no change and notifies nothing`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecConstructDefault`,Properties:{c:n.int(`c`,``,``,r.READWRITE|r.CONSTRUCT,0,10,7),p:n.int(`p`,``,``,r.READWRITE,0,10,4)}},class extends t.Object{}),a=new i,o=[];return a.connect(`notify::c`,()=>o.push(`c`)),a.connect(`notify::p`,()=>o.push(`p`)),a.c=7,a.p=4,{read:[a.c,new i({c:3}).c],notified:o}},shows:{read:[7,3],notified:[`p`]}},{row:`Signals`,rule:`emit reaches a handler as (emitter, ...params); disconnect stops it; an undeclared name or wrong arity throws`,holds:`oracle`,observe(e){let{GObject:t}=e,n=new(t.registerClass({GTypeName:`GoVecSignals`,Signals:{changed:{param_types:[t.TYPE_STRING,t.TYPE_INT]}}},class extends t.Object{})),r=[],i=0,a=n.connect(`changed`,(...e)=>{i++,r=e});n.emit(`changed`,`s`,3);let o={argc:r.length,emitter:r[0]===n,s:r[1],n:r[2]};return n.disconnect(a),n.emit(`changed`,`t`,4),{...o,callsAfterDisconnect:i,undeclaredThrows:attempt(()=>n.emit(`nope`))!==null,shortThrows:attempt(()=>n.emit(`changed`,`s`))!==null}},shows:{argc:3,emitter:!0,s:`s`,n:3,callsAfterDisconnect:1,undeclaredThrows:!0,shortThrows:!0}},{row:`instance API`,rule:`signal_stop_emission_by_name stops the emission in progress: later handlers do not run, the next emission runs all`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecStopEmission`,Properties:{code:n.string(`code`,``,``,r.READWRITE,``)},Signals:{ping:{param_types:[]}}},class extends t.Object{})),a=[],o=!0;i.connect(`ping`,()=>{a.push(`a`),o&&t.signal_stop_emission_by_name(i,`ping`)}),i.connect(`ping`,()=>a.push(`b`)),i.emit(`ping`);let s=a.join(``);a.length=0,o=!1,i.emit(`ping`);let c=a.join(``),l=[];return i.connect(`notify::code`,()=>{l.push(`a`),t.signal_stop_emission_by_name(i,`notify::code`)}),i.connect(`notify::code`,()=>l.push(`b`)),i.code=`x`,{stopped:s,next:c,notified:l.join(``)}},shows:{stopped:`a`,next:`ab`,notified:`a`}},{row:`instance API`,rule:`signal_stop_emission_by_name stops only the innermost emission of ITS signal; with none in progress it does nothing and leaves nothing behind`,holds:`oracle`,observe(e){let{GObject:t}=e,n=new(t.registerClass({GTypeName:`GoVecStopNested`,Signals:{ping:{param_types:[]},pong:{param_types:[]}}},class extends t.Object{})),r=attempt(()=>t.signal_stop_emission_by_name(n,`ping`)),i=[],a=0;n.connect(`ping`,()=>{i.push(`a${a}`),a===0?(a=1,n.emit(`ping`),a=0):t.signal_stop_emission_by_name(n,`ping`)}),n.connect(`ping`,()=>i.push(`b${a}`)),n.emit(`ping`);let o=i.join(`,`);return i.length=0,n.connect(`pong`,()=>{i.push(`p`),t.signal_stop_emission_by_name(n,`ping`)}),n.connect(`pong`,()=>i.push(`q`)),n.emit(`pong`),{idleThrows:r!==null,nested:o,otherSignal:i.join(``)}},shows:{idleThrows:!1,nested:`a0,a1,b0`,otherSignal:`pq`}},{row:`field-form`,rule:`meta given as static symbol fields registers like the meta object (GJS only copies the object onto them)`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t;class Field extends t.Object{}Object.assign(Field,{[t.GTypeName]:`GoVecFieldForm`,[t.properties]:{code:n.string(`code`,``,``,r.READWRITE,``)},[t.signals]:{ping:{param_types:[]}}});let i=t.registerClass(Field),a=new i,o=count(a,`notify::code`),s=count(a,`ping`);return a.code=`x`,a.emit(`ping`),{typeName:i.$gtype.name,notifies:o.n,pings:s.n}},shows:{typeName:`GoVecFieldForm`,notifies:1,pings:1}},{row:`type_ensure`,rule:`$gtype is a token and type_ensure accepts it`,holds:`oracle`,observe(e){let{GObject:t}=e,n=t.registerClass({GTypeName:`GoVecToken`},class extends t.Object{}).$gtype;return{hasGtype:n!==void 0,ensured:attempt(()=>t.type_ensure(n))===null}},shows:{hasGtype:!0,ensured:!0}},{row:`binding engine`,rule:`SYNC_CREATE transfers once at bind time; without it the target keeps its own value`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecBindSync`,Properties:{on:n.boolean(`on`,``,``,r.READWRITE,!1)}},class extends t.Object{}),[a,o,s,c]=[new i,new i,new i,new i];return a.on=!0,s.on=!0,e.bind(a,`on`,o,`on`,[`sync-create`]),e.bind(s,`on`,c,`on`,[]),{withSync:o.on,withoutSync:c.on}},shows:{withSync:!0,withoutSync:!1}},{row:`binding engine`,rule:`the target follows every change of the source`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecBindFollow`,Properties:{on:n.boolean(`on`,``,``,r.READWRITE,!1)}},class extends t.Object{}),[a,o]=[new i,new i];e.bind(a,`on`,o,`on`,[`sync-create`]),a.on=!0;let s=o.on;return a.on=!1,{afterOn:s,afterOff:o.on}},shows:{afterOn:!0,afterOff:!1}},{row:`binding engine`,rule:`BIDIRECTIONAL makes the source follow the target back, without echoing`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecBindBoth`,Properties:{on:n.boolean(`on`,``,``,r.READWRITE,!1)}},class extends t.Object{}),[a,o]=[new i,new i];e.bind(a,`on`,o,`on`,[`bidirectional`,`sync-create`]),o.on=!0;let s=a.on;return a.on=!1,{back:s,forward:o.on}},shows:{back:!0,forward:!1}},{row:`binding engine`,rule:`INVERT_BOOLEAN negates what crosses, at creation and after`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecBindInvert`,Properties:{on:n.boolean(`on`,``,``,r.READWRITE,!1),off:n.boolean(`off`,``,``,r.READWRITE,!0)}},class extends t.Object{}),[a,o]=[new i,new i];a.on=!0,e.bind(a,`on`,o,`off`,[`sync-create`,`invert-boolean`]);let s=o.off;return a.on=!1,{created:s,after:o.off}},shows:{created:!1,after:!0}},{row:`template`,rule:`construction order: the template is built, construct properties are set (this._x is undefined inside a setter), then this._x is installed`,holds:`oracle`,widget:!0,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=[],a=new(t.registerClass({GTypeName:`GoVecOrder`,Template:e.template(boxTemplate(`GoVecOrder`)),InternalChildren:[`sw`,`btn`],Properties:{code:n.string(`code`,``,``,r.READWRITE,``),enabled:n.boolean(`enabled`,``,``,r.READWRITE,!1)}},class extends e.Widget{get code(){return this.stored}set code(e){i.push(`setter:${typeof this._sw}`),this.stored=e}onClicked(){}constructor(e){super(e),i.push(`after super:${typeof this._sw}`)}}))({code:`k`});return{log:i,code:a.code,child:typeof a._btn}},shows:{log:[`setter:undefined`,`after super:object`],code:`k`,child:`object`}},{row:`template`,rule:"a `bind template.x bidirectional` follows both ways between the template instance and its child",holds:`oracle`,widget:!0,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecTemplateBind`,Template:e.template(boxTemplate(`GoVecTemplateBind`)),InternalChildren:[`sw`,`btn`],Properties:{enabled:n.boolean(`enabled`,``,``,r.READWRITE,!1)}},class extends e.Widget{onClicked(){}})),a=i._sw.active;i.enabled=!0;let o=i._sw.active;return i._sw.active=!1,{initial:a,toChild:o,back:i.enabled}},shows:{initial:!1,toChild:!0,back:!1}},{row:`template`,rule:`a handler on the template instance runs bound to that instance and receives the emitter`,holds:`oracle`,widget:!0,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=[],a,o=new(t.registerClass({GTypeName:`GoVecHandler`,Template:e.template(boxTemplate(`GoVecHandler`)),InternalChildren:[`sw`,`btn`],Properties:{enabled:n.boolean(`enabled`,``,``,r.READWRITE,!1)}},class extends e.Widget{onClicked(e){i.push([this===a,e===this._btn])}}));return a=o,o._btn.emit(`clicked`),i},shows:[[!0,!0]]},{row:`template`,rule:"a handler the instance does not have throws `A handler called <name> was not defined` (GJS logs it as a Gtk-CRITICAL instead)",holds:`subset`,widget:!0,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecNoHandler`,Template:e.template(boxTemplate(`GoVecNoHandler`,`nope`)),InternalChildren:[`sw`,`btn`],Properties:{enabled:n.boolean(`enabled`,``,``,r.READWRITE,!1)}},class extends e.Widget{});return(attempt(()=>new i)??``).includes(`A handler called nope was not defined`)},shows:!0},...[`Children`,`Implements`,`Requires`,`GTypeFlags`].map(e=>({row:`registerClass`,rule:`the meta key ${e} is refused at registration, by name`,holds:`subset`,observe(t){let{GObject:n}=t;return(attempt(()=>n.registerClass({GTypeName:`GoVecRefuse${e}`,[e]:[]},class extends n.Object{}))??``).includes(e)},shows:!0})),{row:`vfunc`,rule:`a vfunc_* method is refused at registration, naming the method`,holds:`subset`,observe(e){let{GObject:t}=e;return(attempt(()=>t.registerClass({GTypeName:`GoVecVfunc`},class extends t.Object{vfunc_constructed(){}}))??``).includes(`vfunc_constructed`)},shows:!0},{row:`Signals`,rule:`a param type outside STRING, BOOLEAN, INT, UINT and DOUBLE is refused at registration, naming the signal`,holds:`subset`,observe(e){let{GObject:t}=e,n={name:`gint64`};return(attempt(()=>t.registerClass({GTypeName:`GoVecWideSignal`,Signals:{wide:{param_types:[n]}}},class extends t.Object{}))??``).includes(`Signals.wide.param_types`)},shows:!0}];async function driveGObjectVectors(e,n,r=t){let{describe:i,it:a,expect:o}=n;await i(`${e.name}: GObject subset (ADR 0096)`,async()=>{for(let t of r)t.holds===`subset`&&e.isOracle||t.widget&&e.Widget===void 0||await a(`${t.row}: ${t.rule}`,()=>{o(JSON.stringify(t.observe(e))).toBe(JSON.stringify(t.shows))})})}export{e as GOBJECT_ROWS,t as GOBJECT_VECTORS,driveGObjectVectors};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";const e=[`registerClass`,`field-form`,`ParamSpec`,`Signals`,`instance API`,`type_ensure`,`vfunc`,`binding engine`,`template`,`interface`,`object property`];function attempt(e){try{return e(),null}catch(e){return e instanceof Error?e.message:String(e)}}function count(e,t){let n={n:0};return e.connect(t,()=>{n.n++}),n}function boxTemplate(e,t=`onClicked`){return{className:e,tree:{tag:`GtkBox`,children:[{tag:`GtkSwitch`,id:`sw`,bindings:{active:{source:`template`,property:`enabled`,flags:[`bidirectional`]}}},{tag:`GtkButton`,id:`btn`,signals:[{name:`clicked`,handler:t}]}]},xml:`<interface><template class="${e}" parent="GtkBox"><child><object class="GtkSwitch" id="sw"><property name="active" bind-source="${e}" bind-property="enabled" bind-flags="bidirectional|sync-create"/></object></child><child><object class="GtkButton" id="btn"><signal name="clicked" handler="${t}"/></object></child></template></interface>`}}function listModelClass(e,t){let{GObject:n}=e;return n.registerClass({GTypeName:t,Implements:[e.ListModel]},class extends n.Object{vfunc_get_item_type(){return n.TYPE_OBJECT}vfunc_get_n_items(){return 3}vfunc_get_item(e){return e<3?this:null}})}function read(e){return e.model??null}function write(e,t){e.model=t}const t=[{row:`ParamSpec`,rule:`a generated accessor notifies once per change and not on an equal value (_generateAccessors)`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecNotify`,Properties:{code:n.string(`code`,``,``,r.READWRITE,``)}},class extends t.Object{})),a=count(i,`notify::code`),o=[];return i.code=`x`,o.push(a.n),i.code=`x`,o.push(a.n),i.code=`y`,o.push(a.n),o},shows:[1,1,2]},{row:`ParamSpec`,rule:`a property reads as its ParamSpec default until it is set, for all five kinds`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecDefaults`,Properties:{s:n.string(`s`,``,``,r.READWRITE,``),b:n.boolean(`b`,``,``,r.READWRITE,!0),n:n.int(`n`,``,``,r.READWRITE,0,10,3),d:n.double(`d`,``,``,r.READWRITE,0,1,.5),u:n.uint(`u`,``,``,r.READWRITE,0,10,2)}},class extends t.Object{}));return{s:i.s,b:i.b,n:i.n,d:i.d,u:i.u}},shows:{s:``,b:!0,n:3,d:.5,u:2}},{row:`ParamSpec`,rule:`an accessor the class defines is kept: its setter runs per assignment and decides when to notify`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=0,a=new(t.registerClass({GTypeName:`GoVecOwnAccessor`,Properties:{label:n.string(`label`,``,``,r.READWRITE,``)}},class extends t.Object{constructor(...e){super(...e),this.stored=`initial`}get label(){return this.stored}set label(e){i++,this.stored=e,this.notify(`label`)}})),o=count(a,`notify::label`);return a.label=`a`,a.label=`a`,{setterCalls:i,notifies:o.n,value:a.label}},shows:{setterCalls:2,notifies:2,value:`a`}},{row:`ParamSpec`,rule:`a dashed name is reachable as dash-name, dash_name and dashName, and one notify::dash-name serves all three`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecAliases`,Properties:{"dash-name":n.string(`dash-name`,``,``,r.READWRITE,`d`)}},class extends t.Object{})),a=[i[`dash-name`],i.dash_name,i.dashName],o=count(i,`notify::dash-name`);return i.dashName=`q`,i.dash_name=`q`,{read:a,notifies:o.n,value:i[`dash-name`]}},shows:{read:[`d`,`d`,`d`],notifies:1,value:`q`}},{row:`ParamSpec`,rule:`a CONSTRUCT_ONLY property gets no accessor on the class and keeps the value it was built with`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecConstructOnly`,Properties:{co:n.int(`co`,``,``,r.READWRITE|r.CONSTRUCT_ONLY,0,10,3)}},class extends t.Object{});return{given:new i({co:7}).co,dflt:new i().co,onPrototype:Object.getOwnPropertyDescriptor(i.prototype,`co`)!==void 0}},shows:{given:7,dflt:3,onPrototype:!1}},{row:`ParamSpec`,rule:`a CONSTRUCT property runs its own setter once at construction: with the default, or the given value`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=[],a=t.registerClass({GTypeName:`GoVecConstructSetter`,Properties:{size:n.int(`size`,``,``,r.READWRITE|r.CONSTRUCT,0,100,32)}},class extends t.Object{get size(){return this._size}set size(e){i.push(e),this._size=e,this.notify(`size`)}}),o=new a,s=i.splice(0),c=new a({size:5});return{dfltCalls:s,givenCalls:i,read:[o.size,c.size]}},shows:{dfltCalls:[32],givenCalls:[5],read:[32,5]}},{row:`ParamSpec`,rule:`construction sets a CONSTRUCT property, so writing its default afterwards is no change and notifies nothing`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecConstructDefault`,Properties:{c:n.int(`c`,``,``,r.READWRITE|r.CONSTRUCT,0,10,7),p:n.int(`p`,``,``,r.READWRITE,0,10,4)}},class extends t.Object{}),a=new i,o=[];return a.connect(`notify::c`,()=>o.push(`c`)),a.connect(`notify::p`,()=>o.push(`p`)),a.c=7,a.p=4,{read:[a.c,new i({c:3}).c],notified:o}},shows:{read:[7,3],notified:[`p`]}},{row:`Signals`,rule:`emit reaches a handler as (emitter, ...params); disconnect stops it; an undeclared name or wrong arity throws`,holds:`oracle`,observe(e){let{GObject:t}=e,n=new(t.registerClass({GTypeName:`GoVecSignals`,Signals:{changed:{param_types:[t.TYPE_STRING,t.TYPE_INT]}}},class extends t.Object{})),r=[],i=0,a=n.connect(`changed`,(...e)=>{i++,r=e});n.emit(`changed`,`s`,3);let o={argc:r.length,emitter:r[0]===n,s:r[1],n:r[2]};return n.disconnect(a),n.emit(`changed`,`t`,4),{...o,callsAfterDisconnect:i,undeclaredThrows:attempt(()=>n.emit(`nope`))!==null,shortThrows:attempt(()=>n.emit(`changed`,`s`))!==null}},shows:{argc:3,emitter:!0,s:`s`,n:3,callsAfterDisconnect:1,undeclaredThrows:!0,shortThrows:!0}},{row:`instance API`,rule:`signal_stop_emission_by_name stops the emission in progress: later handlers do not run, the next emission runs all`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecStopEmission`,Properties:{code:n.string(`code`,``,``,r.READWRITE,``)},Signals:{ping:{param_types:[]}}},class extends t.Object{})),a=[],o=!0;i.connect(`ping`,()=>{a.push(`a`),o&&t.signal_stop_emission_by_name(i,`ping`)}),i.connect(`ping`,()=>a.push(`b`)),i.emit(`ping`);let s=a.join(``);a.length=0,o=!1,i.emit(`ping`);let c=a.join(``),l=[];return i.connect(`notify::code`,()=>{l.push(`a`),t.signal_stop_emission_by_name(i,`notify::code`)}),i.connect(`notify::code`,()=>l.push(`b`)),i.code=`x`,{stopped:s,next:c,notified:l.join(``)}},shows:{stopped:`a`,next:`ab`,notified:`a`}},{row:`instance API`,rule:`signal_stop_emission_by_name stops only the innermost emission of ITS signal; with none in progress it does nothing and leaves nothing behind`,holds:`oracle`,observe(e){let{GObject:t}=e,n=new(t.registerClass({GTypeName:`GoVecStopNested`,Signals:{ping:{param_types:[]},pong:{param_types:[]}}},class extends t.Object{})),r=attempt(()=>t.signal_stop_emission_by_name(n,`ping`)),i=[],a=0;n.connect(`ping`,()=>{i.push(`a${a}`),a===0?(a=1,n.emit(`ping`),a=0):t.signal_stop_emission_by_name(n,`ping`)}),n.connect(`ping`,()=>i.push(`b${a}`)),n.emit(`ping`);let o=i.join(`,`);return i.length=0,n.connect(`pong`,()=>{i.push(`p`),t.signal_stop_emission_by_name(n,`ping`)}),n.connect(`pong`,()=>i.push(`q`)),n.emit(`pong`),{idleThrows:r!==null,nested:o,otherSignal:i.join(``)}},shows:{idleThrows:!1,nested:`a0,a1,b0`,otherSignal:`pq`}},{row:`field-form`,rule:`meta given as static symbol fields registers like the meta object (GJS only copies the object onto them)`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t;class Field extends t.Object{}Object.assign(Field,{[t.GTypeName]:`GoVecFieldForm`,[t.properties]:{code:n.string(`code`,``,``,r.READWRITE,``)},[t.signals]:{ping:{param_types:[]}}});let i=t.registerClass(Field),a=new i,o=count(a,`notify::code`),s=count(a,`ping`);return a.code=`x`,a.emit(`ping`),{typeName:i.$gtype.name,notifies:o.n,pings:s.n}},shows:{typeName:`GoVecFieldForm`,notifies:1,pings:1}},{row:`type_ensure`,rule:`$gtype is a token and type_ensure accepts it`,holds:`oracle`,observe(e){let{GObject:t}=e,n=t.registerClass({GTypeName:`GoVecToken`},class extends t.Object{}).$gtype;return{hasGtype:n!==void 0,ensured:attempt(()=>t.type_ensure(n))===null}},shows:{hasGtype:!0,ensured:!0}},{row:`binding engine`,rule:`SYNC_CREATE transfers once at bind time; without it the target keeps its own value`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecBindSync`,Properties:{on:n.boolean(`on`,``,``,r.READWRITE,!1)}},class extends t.Object{}),[a,o,s,c]=[new i,new i,new i,new i];return a.on=!0,s.on=!0,e.bind(a,`on`,o,`on`,[`sync-create`]),e.bind(s,`on`,c,`on`,[]),{withSync:o.on,withoutSync:c.on}},shows:{withSync:!0,withoutSync:!1}},{row:`binding engine`,rule:`the target follows every change of the source`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecBindFollow`,Properties:{on:n.boolean(`on`,``,``,r.READWRITE,!1)}},class extends t.Object{}),[a,o]=[new i,new i];e.bind(a,`on`,o,`on`,[`sync-create`]),a.on=!0;let s=o.on;return a.on=!1,{afterOn:s,afterOff:o.on}},shows:{afterOn:!0,afterOff:!1}},{row:`binding engine`,rule:`BIDIRECTIONAL makes the source follow the target back, without echoing`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecBindBoth`,Properties:{on:n.boolean(`on`,``,``,r.READWRITE,!1)}},class extends t.Object{}),[a,o]=[new i,new i];e.bind(a,`on`,o,`on`,[`bidirectional`,`sync-create`]),o.on=!0;let s=a.on;return a.on=!1,{back:s,forward:o.on}},shows:{back:!0,forward:!1}},{row:`binding engine`,rule:`INVERT_BOOLEAN negates what crosses, at creation and after`,holds:`oracle`,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecBindInvert`,Properties:{on:n.boolean(`on`,``,``,r.READWRITE,!1),off:n.boolean(`off`,``,``,r.READWRITE,!0)}},class extends t.Object{}),[a,o]=[new i,new i];a.on=!0,e.bind(a,`on`,o,`off`,[`sync-create`,`invert-boolean`]);let s=o.off;return a.on=!1,{created:s,after:o.off}},shows:{created:!1,after:!0}},{row:`template`,rule:`construction order: the template is built, construct properties are set (this._x is undefined inside a setter), then this._x is installed`,holds:`oracle`,widget:!0,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=[],a=new(t.registerClass({GTypeName:`GoVecOrder`,Template:e.template(boxTemplate(`GoVecOrder`)),InternalChildren:[`sw`,`btn`],Properties:{code:n.string(`code`,``,``,r.READWRITE,``),enabled:n.boolean(`enabled`,``,``,r.READWRITE,!1)}},class extends e.Widget{get code(){return this.stored}set code(e){i.push(`setter:${typeof this._sw}`),this.stored=e}onClicked(){}constructor(e){super(e),i.push(`after super:${typeof this._sw}`)}}))({code:`k`});return{log:i,code:a.code,child:typeof a._btn}},shows:{log:[`setter:undefined`,`after super:object`],code:`k`,child:`object`}},{row:`template`,rule:"a `bind template.x bidirectional` follows both ways between the template instance and its child",holds:`oracle`,widget:!0,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=new(t.registerClass({GTypeName:`GoVecTemplateBind`,Template:e.template(boxTemplate(`GoVecTemplateBind`)),InternalChildren:[`sw`,`btn`],Properties:{enabled:n.boolean(`enabled`,``,``,r.READWRITE,!1)}},class extends e.Widget{onClicked(){}})),a=i._sw.active;i.enabled=!0;let o=i._sw.active;return i._sw.active=!1,{initial:a,toChild:o,back:i.enabled}},shows:{initial:!1,toChild:!0,back:!1}},{row:`template`,rule:`a handler on the template instance runs bound to that instance and receives the emitter`,holds:`oracle`,widget:!0,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=[],a,o=new(t.registerClass({GTypeName:`GoVecHandler`,Template:e.template(boxTemplate(`GoVecHandler`)),InternalChildren:[`sw`,`btn`],Properties:{enabled:n.boolean(`enabled`,``,``,r.READWRITE,!1)}},class extends e.Widget{onClicked(e){i.push([this===a,e===this._btn])}}));return a=o,o._btn.emit(`clicked`),i},shows:[[!0,!0]]},{row:`template`,rule:"a handler the instance does not have throws `A handler called <name> was not defined` (GJS logs it as a Gtk-CRITICAL instead)",holds:`subset`,widget:!0,observe(e){let{GObject:t}=e,{ParamSpec:n,ParamFlags:r}=t,i=t.registerClass({GTypeName:`GoVecNoHandler`,Template:e.template(boxTemplate(`GoVecNoHandler`,`nope`)),InternalChildren:[`sw`,`btn`],Properties:{enabled:n.boolean(`enabled`,``,``,r.READWRITE,!1)}},class extends e.Widget{});return(attempt(()=>new i)??``).includes(`A handler called nope was not defined`)},shows:!0},...[`Children`,`Requires`,`GTypeFlags`].map(e=>({row:`registerClass`,rule:`the meta key ${e} is refused at registration, by name`,holds:`subset`,observe(t){let{GObject:n}=t;return(attempt(()=>n.registerClass({GTypeName:`GoVecRefuse${e}`,[e]:[]},class extends n.Object{}))??``).includes(e)},shows:!0})),{row:`vfunc`,rule:`a vfunc_* method is refused at registration, naming the method`,holds:`subset`,observe(e){let{GObject:t}=e;return(attempt(()=>t.registerClass({GTypeName:`GoVecVfunc`},class extends t.Object{vfunc_constructed(){}}))??``).includes(`vfunc_constructed`)},shows:!0},{row:`Signals`,rule:`a param type outside STRING, BOOLEAN, INT, UINT and DOUBLE is refused at registration, naming the signal`,holds:`subset`,observe(e){let{GObject:t}=e,n={name:`gint64`};return(attempt(()=>t.registerClass({GTypeName:`GoVecWideSignal`,Signals:{wide:{param_types:[n]}}},class extends t.Object{}))??``).includes(`Signals.wide.param_types`)},shows:!0},{row:`interface`,rule:`Implements installs the interface methods and the emitter on the prototype`,holds:`oracle`,iface:!0,observe(e){let t=new(listModelClass(e,`GoVecIfaceInstall`));return[`get_item`,`get_n_items`,`get_item_type`,`items_changed`].map(e=>typeof t[e])},shows:[`function`,`function`,`function`,`function`]},{row:`interface`,rule:`an implementor passes instanceof the interface, and a class without it does not`,holds:`oracle`,iface:!0,observe(e){let{GObject:t}=e,n=t.registerClass({GTypeName:`GoVecIfacePlain`},class extends t.Object{}),r=e.ListModel;return[new(listModelClass(e,`GoVecIfaceInstanceof`))instanceof r,new n instanceof r]},shows:[!0,!1]},{row:`interface`,rule:`the installed methods call through to the class’s own vfunc_*`,holds:`oracle`,iface:!0,observe(e){let t=new(listModelClass(e,`GoVecIfaceRoute`));return[t.get_n_items(),t.get_item(0)===t,t.get_item(9)]},shows:[3,!0,null]},{row:`interface`,rule:`the interface’s PROPERTIES are NOT installed — a JS implementor has no n_items`,holds:`oracle`,iface:!0,observe(e){let t=new(listModelClass(e,`GoVecIfaceNoProps`));return[t.n_items,t.item_type]},shows:[void 0,void 0]},{row:`interface`,rule:`an implementor is not iterable — a list model is read by position, not by spread`,holds:`oracle`,iface:!0,observe(e){let t=new(listModelClass(e,`GoVecIfaceSpread`));return attempt(()=>void[...t])!==null},shows:!0},{row:`interface`,rule:`items_changed emits the interface’s signal, which an implementor can connect to`,holds:`oracle`,iface:!0,observe(e){let t=new(listModelClass(e,`GoVecIfaceEmit`)),n=[];return t.connect(`items-changed`,(e,...t)=>void n.push(t)),t.items_changed(1,2,3),n},shows:[[1,2,3]]},{row:`interface`,rule:`a short items_changed call names the interface method and the arity it wanted`,holds:`oracle`,iface:!0,observe(e){let t=new(listModelClass(e,`GoVecIfaceArity`));return(attempt(()=>t.items_changed(0,0))??``).includes(`method Gio.ListModel.items_changed: At least 3 arguments required, but only 2 passed`)},shows:!0},{row:`interface`,rule:`an implementor that does not define every vfunc is refused, naming it and the interface`,holds:`subset`,iface:!0,observe(e){let{GObject:t}=e,n=attempt(()=>t.registerClass({GTypeName:`GoVecIfaceNoVfunc`,Implements:[e.ListModel]},class extends t.Object{vfunc_get_item_type(){return t.TYPE_OBJECT}vfunc_get_item(){return null}}));return[(n??``).includes(`vfunc_get_n_items`),(n??``).includes(`Gio.ListModel`)]},shows:[!0,!0]},{row:`interface`,rule:`an interface outside the subset is refused at registration, by name`,holds:`subset`,observe(e){let{GObject:t}=e,n={name:`Gtk.Buildable`},r=attempt(()=>t.registerClass({GTypeName:`GoVecIfaceOutside`,Implements:[n]},class extends t.Object{}));return[(r??``).includes(`Gtk.Buildable`),(r??``).includes(`Gio.ListModel`)]},shows:[!0,!0]},{row:`interface`,rule:`an Implements that is not an array is refused, naming the key`,holds:`subset`,observe(e){let{GObject:t}=e;return(attempt(()=>t.registerClass({GTypeName:`GoVecIfaceNotArray`,Implements:`Gio.ListModel`},class extends t.Object{}))??``).includes(`Implements`)},shows:!0},{row:`object property`,rule:`the default is null, which is the only default g_param_spec_object has`,holds:`oracle`,objectProperty:!0,observe(e){return read(e.objectProperty().instance)},shows:null},{row:`object property`,rule:`a model is stored and notified once; writing the SAME one again notifies nothing`,holds:`oracle`,objectProperty:!0,observe(e){let{instance:t,accepted:n}=e.objectProperty(),r=count(t,`notify::model`);write(t,n);let i=r.n;return write(t,n),[i,r.n,read(t)===n]},shows:[1,1,!0]},{row:`object property`,rule:`null clears it and notifies, because null is a value the property takes`,holds:`oracle`,objectProperty:!0,observe(e){let{instance:t,accepted:n}=e.objectProperty();write(t,n);let r=count(t,`notify::model`);return write(t,null),[r.n,read(t)]},shows:[1,null]},...[[`an array`,[`Blue`,`Teal`],`is not a subclass of GObject_Object, it's a Array`],[`a plain object`,{},`is not a subclass of GObject_Object, it's a Object`],[`a function`,()=>void 0,`is not a subclass of GObject_Object, it's a Function`],[`a string`,`abc`,`Wrong type string; object GListModel expected`],[`a number`,7,`Wrong type number; object GListModel expected`],[`a boolean`,!0,`Wrong type boolean; object GListModel expected`],[`undefined`,void 0,`Wrong type undefined; object GListModel expected`]].map(([e,t,n])=>({row:`object property`,rule:`${e} is refused, and the value stays what it was`,holds:`oracle`,objectProperty:!0,observe(e){let{instance:r,accepted:i}=e.objectProperty();return write(r,i),[(attempt(()=>write(r,t))??``).includes(n),read(r)===i]},shows:[!0,!0]})),{row:`object property`,rule:`a GObject that is not a list model is refused by the interface it does not implement`,holds:`oracle`,objectProperty:!0,observe(e){let{GObject:t}=e,n=t.registerClass({GTypeName:`GoVecObjPlain`},class extends t.Object{}),{instance:r}=e.objectProperty(),i=attempt(()=>write(r,new n));return[(i??``).startsWith(`Object is of type `),(i??``).includes(`cannot convert to GListModel`)]},shows:[!0,!0]}];async function driveGObjectVectors(e,n,r=t){let{describe:i,it:a,expect:o}=n;await i(`${e.name}: GObject subset (ADR 0096)`,async()=>{for(let t of r)t.holds===`subset`&&e.isOracle||t.widget&&e.Widget===void 0||t.iface&&e.ListModel===void 0||t.objectProperty&&e.objectProperty===void 0||await a(`${t.row}: ${t.rule}`,()=>{o(JSON.stringify(t.observe(e))).toBe(JSON.stringify(t.shows))})})}export{e as GOBJECT_ROWS,t as GOBJECT_VECTORS,driveGObjectVectors};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ABOUT_DIALOG_DOOR_VECTORS as e,RELEASE_NOTES_VECTORS as t,driveAboutDialogDoorVectors as n,driveReleaseNotesVectors as r}from"./about-dialog-doors.js";import{ABOUT_DIALOG_CREDITS_LEGAL_VECTORS as i,ABOUT_DIALOG_DETAILS_VECTORS as a,ABOUT_DIALOG_HEADER_VECTORS as o,ABOUT_DIALOG_LABEL_VECTORS as s,ABOUT_DIALOG_SUPPORT_VECTORS as c,ACKNOWLEDGEMENT_SECTIONS_VECTORS as l,CREDITS_SECTIONS_VECTORS as u,CREDIT_PERSON_VECTORS as d,LEGAL_SECTIONS_VECTORS as f,LEGAL_SECTION_VECTORS as p,LICENSE_INFO_VECTORS as m,LICENSE_SETTER_VECTORS as h,LICENSE_SPDX_VECTORS as g,LICENSE_TEXT_VECTORS as _,TRANSLATOR_CREDITS_VECTORS as v}from"./about-dialog.js";import{ACCENT_COLOR_VECTORS as y,NEAREST_ACCENT_VECTORS as b}from"./accent.js";import{ACTION_ROW_ACTIVATION_VECTORS as x,BUTTON_ROW_ACTIVATABLE_VECTORS as S,BUTTON_ROW_ICON_VECTORS as C,LABEL_VISIBILITY_VECTORS as w,SWITCH_ROW_NOTIFY_VECTORS as T,WINDOW_TITLE_VECTORS as E}from"./action-row.js";import{ADJUSTMENT_AUTHORED_VECTORS as D,ADJUSTMENT_PARSE_VECTORS as O,ADJUSTMENT_SNAP_VECTORS as k}from"./adjustment.js";import{APPEARANCE_HANDOFF_VECTORS as A}from"./appearance.js";import{APPLICATION_ROWS as j,APPLICATION_VECTORS as M,driveApplicationVectors as N,unlockedVfuncNames as P,unprovenVfuncs as F}from"./application.js";import{AVATAR_COLOR_VECTORS as I,AVATAR_FONT_SIZE_VECTORS as L,AVATAR_ICON_SIZE_VECTORS as R,AVATAR_INITIALS_VECTORS as z,AVATAR_MODE_VECTORS as B}from"./avatar.js";import{BANNER_BUTTON_STYLE_PARSE_VECTORS as V,BANNER_BUTTON_STYLE_VECTORS as H,BANNER_BUTTON_TEXT_VECTORS as U,BANNER_BUTTON_VISIBLE_VECTORS as W,BANNER_DEFAULT_VECTORS as G}from"./banner.js";import{BOX_ALL_VECTORS as K,BOX_ROW_VECTORS as q,BOX_SELECT_VECTORS as J}from"./box-selection.js";import{BOX_ORIENTATION_VECTORS as Y,BOX_SPACING_VECTORS as X}from"./box.js";import{BREAKPOINT_PICK_VECTORS as Z,BREAKPOINT_TRANSITION_VECTORS as Q}from"./breakpoint-bin.js";import{BUTTON_CONTENT_DEFAULT_VECTORS as $,BUTTON_CONTENT_ELLIPSIZE_VECTORS as ee,BUTTON_CONTENT_ICON_VECTORS as te,BUTTON_CONTENT_LABEL_VECTORS as ne,BUTTON_CONTENT_STYLE_TARGET_VECTORS as re,BUTTON_CONTENT_TEXT_VECTORS as ie}from"./button-content.js";import{BUTTON_STYLE_CLASS_VECTORS as ae}from"./button.js";import{CALENDAR_DAYS_VECTORS as oe,CALENDAR_MARK_VECTORS as se,CALENDAR_NAVIGATION_VECTORS as ce,CALENDAR_SELECT_VECTORS as le,CALENDAR_STEP_VECTORS as ue,CALENDAR_WEEK_VECTORS as de}from"./calendar.js";import{CAROUSEL_DOOR_VECTORS as fe,driveCarouselDoorVectors as pe}from"./carousel-doors.js";import{CAROUSEL_CLAMP_VECTORS as me,CAROUSEL_NAVIGATE_VECTORS as he,CAROUSEL_PAGE_ALLOCATION_VECTORS as ge,CAROUSEL_PAGE_AT_POSITION_VECTORS as _e,CAROUSEL_PAGE_LIST_VECTORS as ve,CAROUSEL_PROPERTY_DEFAULT_VECTORS as ye,CAROUSEL_RANGE_VECTORS as be,CAROUSEL_REORDER_SHIFT_VECTORS as xe,CAROUSEL_REVEAL_VECTORS as Se,CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS as Ce,CAROUSEL_SNAP_POINT_VECTORS as we,CAROUSEL_WHEEL_LOCKOUT_VECTORS as Te,CAROUSEL_WHEEL_VECTORS as Ee}from"./carousel.js";import{CHECK_GROUP_VECTORS as De,driveCheckGroupVectors as Oe}from"./check-group.js";import{RADIO_GROUP_VECTORS as ke}from"./checks.js";import{CLAMP_ALLOCATE_VECTORS as Ae,CLAMP_CHILD_SIZE_VECTORS as je,CLAMP_PROPERTY_VECTORS as Me,CLAMP_SIZE_FROM_CHILD_VECTORS as Ne,CLAMP_THRESHOLD_VECTORS as Pe,SPINNER_GEOMETRY_VECTORS as Fe,SPINNER_SIZE_VECTORS as Ie,TOOLBAR_VIEW_ALLOCATE_VECTORS as Le,TOOLBAR_VIEW_CLASS_VECTORS as Re,TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS as ze,TOOLBAR_VIEW_MEASURE_VECTORS as Be}from"./chrome.js";import{ENTRY_MAX_LENGTH_VECTORS as Ve,ENTRY_ROW_ACTIVATION_VECTORS as He,ENTRY_ROW_GUARD_VECTORS as Ue,ENTRY_ROW_STATE_VECTORS as We,ENTRY_TEXT_LENGTH_VECTORS as Ge,PASSWORD_ENTRY_ROW_VECTORS as Ke,PASSWORD_REVEAL_GUARD_VECTORS as qe}from"./entry-row.js";import{SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS as Je,SHARED_TREE_TABLES as Ye,authoredNodes as Xe,authoredTags as Ze,reachedTables as Qe,sharedTreeExpectations as $e,sharedTreePlacements as et,subjectIndexOf as tt,withoutPlacements as nt}from"./shared-trees.js";import{BREAKPOINT_VECTOR_SIZES as rt,CONSTRUCT_KINDS as it,CONSTRUCT_VECTORS as at,EXTERN_VECTOR_CLASS as ot,UnsupportedConstructError as st,assertTreeConstructs as ct,constructUsesOf as lt,driveConstructVectors as ut}from"./constructs.js";import{DATA_GRID_CELL_TEXT_VECTORS as dt,DATA_GRID_COLUMN_CLASS_VECTORS as ft,DATA_GRID_COLUMN_NORMALIZE_VECTORS as pt,DATA_GRID_INTERACTIVE_VECTORS as mt,DATA_GRID_TRACK_VECTORS as ht,DATA_GRID_VARIANT_VECTORS as gt}from"./data-grid.js";import{BOTTOM_SHEET_BOTTOM_BAR_VECTORS as _t,BOTTOM_SHEET_CLOSE_VECTORS as vt,BOTTOM_SHEET_OPEN_VECTORS as yt,BOTTOM_SHEET_PRESENTATION_VECTORS as bt,BOTTOM_SHEET_SWIPE_TRACKER_VECTORS as xt,runBottomSheetBottomBarSteps as St,runBottomSheetSteps as Ct}from"./dialog.js";import{FILE_CHOOSER_ROWS as wt,FILE_CHOOSER_VECTORS as Tt,driveFileChooserVectors as Et,promisifyFileChooser as Dt}from"./file-chooser.js";import{GDK_CLIPBOARD_ROWS as Ot,GDK_CLIPBOARD_VECTORS as kt,driveGdkClipboardVectors as At}from"./gdk-clipboard.js";import{GIO_APP_INFO_ROWS as jt,GIO_APP_INFO_VECTORS as Mt,driveGioAppInfoVectors as Nt}from"./gio-app-info.js";import{GIO_RESOURCE_ROWS as Pt,GIO_RESOURCE_VECTORS as Ft,driveGioResourceVectors as It,gioResourceFixtures as Lt}from"./gio-resource.js";import{GLIB_LANGUAGE_ROWS as Rt,GLIB_LANGUAGE_TAG_ROWS as zt,GLIB_LANGUAGE_TAG_VECTORS as Bt,GLIB_LANGUAGE_VECTORS as Vt,driveGLibLanguageTagVectors as Ht,driveGLibLanguageVectors as Ut}from"./glib-language.js";import{GLIB_PATH_ROWS as Wt,GLIB_PATH_VECTORS as Gt,driveGLibPathVectors as Kt}from"./glib-paths.js";import{GLIB_TIMER_ROWS as qt,GLIB_TIMER_VECTORS as Jt,driveGLibTimerVectors as Yt}from"./glib-timers.js";import{GLIB_UNICHAR_ROWS as Xt,GLIB_UNICHAR_VECTORS as Zt,driveGLibUnicharVectors as Qt}from"./glib-unichar.js";import{GLIB_URI_ROWS as $t,GLIB_URI_VECTORS as en,driveGLibUriVectors as tn}from"./glib-uri.js";import{GLIB_VARIANT_ROWS as nn,GLIB_VARIANT_VECTORS as rn,driveGLibVariantVectors as an}from"./glib-variant.js";import{GOBJECT_ROWS as on,GOBJECT_VECTORS as sn,driveGObjectVectors as cn}from"./gobject.js";import{GRID_NAVIGATION_GEOMETRY as ln,GRID_NAVIGATION_VECTORS as un}from"./grid-navigation.js";import{GTK_CSS_PIXEL_TOLERANCE as dn,GTK_CSS_ROWS as fn,GTK_CSS_VECTORS as pn,driveGtkCssVectors as mn}from"./gtk-css.js";import{GTK_PLATFORM_ROWS as hn,GTK_PLATFORM_VECTORS as gn,driveGtkPlatformVectors as _n}from"./gtk-platform.js";import{HEADER_BAR_PACK_VECTORS as vn,HEADER_BAR_TITLE_SOURCE_VECTORS as yn,HEADER_BAR_TITLE_WIDGET_VECTORS as bn}from"./header-bar.js";import{ICON_FIXTURE_PATH as xn,ICON_THEME_RESOURCE_ROWS as Sn,ICON_THEME_RESOURCE_VECTORS as Cn,driveIconThemeResourceVectors as wn}from"./icon-theme-resources.js";import{ROW_ACCESSOR_VECTORS as Tn,driveRowAccessorVectors as En}from"./row-accessors.js";import{COMBO_CHOOSER_VECTORS as Dn,COMBO_SELECTION_VECTORS as On,TOGGLE_ACTIVE_NAME_VECTORS as kn}from"./rows.js";import{VIEW_STACK_ICON_NAME_VECTORS as An,VIEW_STACK_PAGE_VECTORS as jn,VIEW_STACK_VECTORS as Mn}from"./view-stack.js";import{NAVIGATION_VIEW_VECTORS as Nn,collectNavigationState as Pn,navigationEventLog as Fn,runNavigationSteps as In}from"./navigation-view.js";import{SIDEBAR_ACTIVATION_VECTORS as Ln,SIDEBAR_CLAMP_VECTORS as Rn,SIDEBAR_FILTER_VECTORS as zn,SIDEBAR_ITEMS_CHANGED_VECTORS as Bn,SIDEBAR_ITEM_FLAG_VECTORS as Vn,SIDEBAR_MODEL_VECTORS as Hn,SIDEBAR_MODE_VECTORS as Un}from"./sidebar.js";import{ADW_LENGTH_UNIT_VECTORS as Wn,GLIB_CLAMP_VECTORS as Gn,NATURAL_SIDEBAR_WIDTH_VECTORS as Kn,NAVIGATION_ACTION_VECTORS as qn,NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS as Jn,NAVIGATION_STACK_VECTORS as Yn,OVERLAY_COLLAPSE_VECTORS as Xn,OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS as Zn,OVERLAY_SWIPE_AREA_VECTORS as Qn,OVERLAY_SWIPE_CANCEL_VECTORS as $n,OVERLAY_SWIPE_RELEASE_VECTORS as er,OVERLAY_SWIPE_SNAP_POINT_VECTORS as tr,OVERLAY_SWIPE_START_VECTORS as nr,SIDEBAR_BOUNDS_VECTORS as rr,SIDEBAR_WIDTH_VECTORS as ir,SPLIT_VIEW_MEASURE_VECTORS as ar,TAGS_CONFLICT_VECTORS as or}from"./split-view.js";import{MENU_BUTTON_DIRECTION_VECTORS as sr,SPLIT_BUTTON_CONTENT_VECTORS as cr,SPLIT_BUTTON_DIRECTION_VECTORS as lr,SPLIT_BUTTON_DROPDOWN_VECTORS as ur,SPLIT_BUTTON_MENU_ACTIVATION_VECTORS as dr,SPLIT_BUTTON_ROOT_STATE_VECTORS as fr,SPLIT_BUTTON_STYLE_CLASS_VECTORS as pr,SPLIT_BUTTON_TOOLTIP_VECTORS as mr}from"./split-button.js";import{LIST_ITEMS_CHANGED_VECTORS as hr,LIST_MODEL_OWNERSHIP_VECTORS as gr,LIST_NORMALIZE_VECTORS as _r,LIST_PARSE_VECTORS as vr,LIST_SELECTION_CLAMP_VECTORS as yr,TAB_PAGES_ITEMS_CHANGED_VECTORS as br,applyListReadback as xr,replayTabPagesAsSplices as Sr}from"./list.js";import{COLUMN_VIEW_SORT_VECTORS as Cr,GRID_VIEW_COLUMN_VECTORS as wr,LIST_VIEW_SELECT_VECTORS as Tr}from"./list-view.js";import{TREE_EXPANDER_LAYOUT_VECTORS as Er,TREE_EXPANDER_SHORTCUT_VECTORS as Dr}from"./tree-expander.js";import{MENU_DETAILED_ACTION_VECTORS as Or,MENU_FLATTEN_VECTORS as kr,MENU_ITEM_STATE_VECTORS as Ar,MENU_LABEL_TEXT_VECTORS as jr,MENU_NORMALIZE_VECTORS as Mr,MENU_PARSE_VECTORS as Nr,MENU_REFUSAL_VECTORS as Pr}from"./menu.js";import{INLINE_TOGGLE_VECTORS as Fr,INLINE_TOOLTIP_VECTORS as Ir,VIEW_SWITCHER_BADGE_VECTORS as Lr,VIEW_SWITCHER_BAR_REVEAL_VECTORS as Rr,VIEW_SWITCHER_BAR_VECTORS as zr,VIEW_SWITCHER_BUTTON_VECTORS as Br,VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS as Vr,VIEW_SWITCHER_DRAG_VECTORS as Hr,VIEW_SWITCHER_ICON_VECTORS as Ur,VIEW_SWITCHER_MNEMONIC_VECTORS as Wr,VIEW_SWITCHER_REBUILD_VECTORS as Gr,VIEW_SWITCHER_SELECTION_VECTORS as Kr,VIEW_SWITCHER_SIDEBAR_SECTION_VECTORS as qr,createViewSwitcherClock as Jr}from"./view-switcher.js";import{TABS_REVEALED_VECTORS as Yr,TAB_CLOSE_VISIBLE_VECTORS as Xr,TAB_DESCENDANT_VECTORS as Zr,TAB_ICON_STATE_VECTORS as Qr,TAB_PAGE_DESCRIPTOR_VECTORS as $r,TAB_SEARCH_VECTORS as ei,TAB_SUCCESSOR_VECTORS as ti,TAB_TOOLTIP_VECTORS as ni,TAB_VIEW_VECTORS as ri,applyTabViewOp as ii,seedTabViewPages as ai,tabViewClosing as oi,tabViewOrder as si}from"./tab-view.js";import{CASE_FOLD_VECTORS as ci,MAKE_COMPARABLE_VECTORS as li,PREFERENCES_GROUP_HEADER_VECTORS as ui,PREFERENCES_SEARCH_PAGES as di,PREFERENCES_SEARCH_VECTORS as fi,ROW_MATCH_VECTORS as pi,SEARCH_CORPUS_VECTORS as mi,SEARCH_ROW_SUBTITLE_VECTORS as hi,STRIP_MARKUP_VECTORS as gi,STRIP_MNEMONIC_VECTORS as _i}from"./preferences.js";import{POPOVER_KEY_VECTORS as vi,POPOVER_SURFACE_VECTORS as yi}from"./popover.js";import{SHORTCUT_LABEL_VECTORS as bi,formatShortcutLabelNodes as xi}from"./shortcut-label.js";import{SPINNER_ARC_ENVELOPE as Si,SPINNER_ARC_PHASE_VECTORS as Ci,SPINNER_ARC_TOLERANCE as wi,SPINNER_CONSTANT_VECTORS as Ti}from"./spinner.js";import{LABEL_CHAR_COUNT_VECTORS as Ei,LABEL_DISPLAY_TEXT_VECTORS as Di,LABEL_EFFECTIVE_LINES_VECTORS as Oi,LABEL_ELLIPSIZE_OVERFLOW_VECTORS as ki,LABEL_ELLIPSIZE_VECTORS as Ai,LABEL_JUSTIFY_VECTORS as ji,LABEL_WIDTH_CHARS_EXTENT_VECTORS as Mi,LABEL_WRAP_MODE_VECTORS as Ni,LABEL_XALIGN_VECTORS as Pi,LABEL_YALIGN_ALIGN_ITEMS_VECTORS as Fi,LABEL_YALIGN_VECTORS as Ii}from"./label.js";import{WRAP_BOX_CHILD_ORDER_VECTORS as Li,WRAP_BOX_LENGTH_VECTORS as Ri,WRAP_BOX_LINE_VECTORS as zi,WRAP_BOX_NATURAL_LENGTH_VECTORS as Bi,WRAP_BOX_NOTIFY_PROPERTIES as Vi,WRAP_BOX_POLICY_VECTORS as Hi,WRAP_BOX_SPACING_NOTIFY_VECTORS as Ui,WRAP_BOX_SPACING_VECTORS as Wi}from"./wrap-box.js";import{ATTRIBUTE_OF_VECTORS as Gi,HOST_TAG_VECTORS as Ki,PROPERTY_OF_VECTORS as qi}from"./tags.js";import{VALUE_LIST_VECTORS as Ji}from"./value-lists.js";import{POPUP_MENU_PLAN_VECTORS as Yi,popupMenuOutline as Xi}from"./popup-menu-plan.js";import{MENU_ACTION_VECTORS as Zi,driveMenuActionVectors as Qi,registryMenuActionScene as $i}from"./menu-actions.js";import{MENU_TREE_VECTORS as ea}from"./menu-tree.js";import{RGBA_ROWS as ta,RGBA_VECTORS as na,driveRGBAVectors as ra}from"./rgba.js";import{STYLE_MANAGER_ROWS as ia,STYLE_MANAGER_VECTORS as aa,driveStyleManagerVectors as oa}from"./style-manager.js";import{SIMPLE_ACTION_GROUP_ROWS as sa,SIMPLE_ACTION_GROUP_VECTORS as ca,driveSimpleActionGroupVectors as la}from"./simple-action-group.js";import{WINDOW_ROWS as ua,WINDOW_VECTORS as da,driveWindowVectors as fa}from"./window-members.js";import{WIDGET_MAP_ROWS as pa,WIDGET_MAP_VECTORS as ma,driveWidgetMapVectors as ha}from"./widget-map.js";export{i as ABOUT_DIALOG_CREDITS_LEGAL_VECTORS,a as ABOUT_DIALOG_DETAILS_VECTORS,e as ABOUT_DIALOG_DOOR_VECTORS,o as ABOUT_DIALOG_HEADER_VECTORS,s as ABOUT_DIALOG_LABEL_VECTORS,c as ABOUT_DIALOG_SUPPORT_VECTORS,y as ACCENT_COLOR_VECTORS,l as ACKNOWLEDGEMENT_SECTIONS_VECTORS,x as ACTION_ROW_ACTIVATION_VECTORS,D as ADJUSTMENT_AUTHORED_VECTORS,O as ADJUSTMENT_PARSE_VECTORS,k as ADJUSTMENT_SNAP_VECTORS,Wn as ADW_LENGTH_UNIT_VECTORS,A as APPEARANCE_HANDOFF_VECTORS,j as APPLICATION_ROWS,M as APPLICATION_VECTORS,Gi as ATTRIBUTE_OF_VECTORS,I as AVATAR_COLOR_VECTORS,L as AVATAR_FONT_SIZE_VECTORS,R as AVATAR_ICON_SIZE_VECTORS,z as AVATAR_INITIALS_VECTORS,B as AVATAR_MODE_VECTORS,V as BANNER_BUTTON_STYLE_PARSE_VECTORS,H as BANNER_BUTTON_STYLE_VECTORS,U as BANNER_BUTTON_TEXT_VECTORS,W as BANNER_BUTTON_VISIBLE_VECTORS,G as BANNER_DEFAULT_VECTORS,_t as BOTTOM_SHEET_BOTTOM_BAR_VECTORS,vt as BOTTOM_SHEET_CLOSE_VECTORS,yt as BOTTOM_SHEET_OPEN_VECTORS,bt as BOTTOM_SHEET_PRESENTATION_VECTORS,xt as BOTTOM_SHEET_SWIPE_TRACKER_VECTORS,K as BOX_ALL_VECTORS,Y as BOX_ORIENTATION_VECTORS,q as BOX_ROW_VECTORS,J as BOX_SELECT_VECTORS,X as BOX_SPACING_VECTORS,Z as BREAKPOINT_PICK_VECTORS,Q as BREAKPOINT_TRANSITION_VECTORS,rt as BREAKPOINT_VECTOR_SIZES,$ as BUTTON_CONTENT_DEFAULT_VECTORS,ee as BUTTON_CONTENT_ELLIPSIZE_VECTORS,te as BUTTON_CONTENT_ICON_VECTORS,ne as BUTTON_CONTENT_LABEL_VECTORS,re as BUTTON_CONTENT_STYLE_TARGET_VECTORS,ie as BUTTON_CONTENT_TEXT_VECTORS,S as BUTTON_ROW_ACTIVATABLE_VECTORS,C as BUTTON_ROW_ICON_VECTORS,ae as BUTTON_STYLE_CLASS_VECTORS,oe as CALENDAR_DAYS_VECTORS,se as CALENDAR_MARK_VECTORS,ce as CALENDAR_NAVIGATION_VECTORS,le as CALENDAR_SELECT_VECTORS,ue as CALENDAR_STEP_VECTORS,de as CALENDAR_WEEK_VECTORS,me as CAROUSEL_CLAMP_VECTORS,fe as CAROUSEL_DOOR_VECTORS,he as CAROUSEL_NAVIGATE_VECTORS,ge as CAROUSEL_PAGE_ALLOCATION_VECTORS,_e as CAROUSEL_PAGE_AT_POSITION_VECTORS,ve as CAROUSEL_PAGE_LIST_VECTORS,ye as CAROUSEL_PROPERTY_DEFAULT_VECTORS,be as CAROUSEL_RANGE_VECTORS,xe as CAROUSEL_REORDER_SHIFT_VECTORS,Se as CAROUSEL_REVEAL_VECTORS,Ce as CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS,we as CAROUSEL_SNAP_POINT_VECTORS,Te as CAROUSEL_WHEEL_LOCKOUT_VECTORS,Ee as CAROUSEL_WHEEL_VECTORS,ci as CASE_FOLD_VECTORS,De as CHECK_GROUP_VECTORS,Ae as CLAMP_ALLOCATE_VECTORS,je as CLAMP_CHILD_SIZE_VECTORS,Me as CLAMP_PROPERTY_VECTORS,Ne as CLAMP_SIZE_FROM_CHILD_VECTORS,Pe as CLAMP_THRESHOLD_VECTORS,Cr as COLUMN_VIEW_SORT_VECTORS,Dn as COMBO_CHOOSER_VECTORS,On as COMBO_SELECTION_VECTORS,it as CONSTRUCT_KINDS,at as CONSTRUCT_VECTORS,u as CREDITS_SECTIONS_VECTORS,d as CREDIT_PERSON_VECTORS,dt as DATA_GRID_CELL_TEXT_VECTORS,ft as DATA_GRID_COLUMN_CLASS_VECTORS,pt as DATA_GRID_COLUMN_NORMALIZE_VECTORS,mt as DATA_GRID_INTERACTIVE_VECTORS,ht as DATA_GRID_TRACK_VECTORS,gt as DATA_GRID_VARIANT_VECTORS,Ve as ENTRY_MAX_LENGTH_VECTORS,He as ENTRY_ROW_ACTIVATION_VECTORS,Ue as ENTRY_ROW_GUARD_VECTORS,We as ENTRY_ROW_STATE_VECTORS,Ge as ENTRY_TEXT_LENGTH_VECTORS,ot as EXTERN_VECTOR_CLASS,wt as FILE_CHOOSER_ROWS,Tt as FILE_CHOOSER_VECTORS,Ot as GDK_CLIPBOARD_ROWS,kt as GDK_CLIPBOARD_VECTORS,jt as GIO_APP_INFO_ROWS,Mt as GIO_APP_INFO_VECTORS,Pt as GIO_RESOURCE_ROWS,Ft as GIO_RESOURCE_VECTORS,Gn as GLIB_CLAMP_VECTORS,Rt as GLIB_LANGUAGE_ROWS,zt as GLIB_LANGUAGE_TAG_ROWS,Bt as GLIB_LANGUAGE_TAG_VECTORS,Vt as GLIB_LANGUAGE_VECTORS,Wt as GLIB_PATH_ROWS,Gt as GLIB_PATH_VECTORS,qt as GLIB_TIMER_ROWS,Jt as GLIB_TIMER_VECTORS,Xt as GLIB_UNICHAR_ROWS,Zt as GLIB_UNICHAR_VECTORS,$t as GLIB_URI_ROWS,en as GLIB_URI_VECTORS,nn as GLIB_VARIANT_ROWS,rn as GLIB_VARIANT_VECTORS,on as GOBJECT_ROWS,sn as GOBJECT_VECTORS,ln as GRID_NAVIGATION_GEOMETRY,un as GRID_NAVIGATION_VECTORS,wr as GRID_VIEW_COLUMN_VECTORS,dn as GTK_CSS_PIXEL_TOLERANCE,fn as GTK_CSS_ROWS,pn as GTK_CSS_VECTORS,hn as GTK_PLATFORM_ROWS,gn as GTK_PLATFORM_VECTORS,vn as HEADER_BAR_PACK_VECTORS,yn as HEADER_BAR_TITLE_SOURCE_VECTORS,bn as HEADER_BAR_TITLE_WIDGET_VECTORS,Ki as HOST_TAG_VECTORS,xn as ICON_FIXTURE_PATH,Sn as ICON_THEME_RESOURCE_ROWS,Cn as ICON_THEME_RESOURCE_VECTORS,Fr as INLINE_TOGGLE_VECTORS,Ir as INLINE_TOOLTIP_VECTORS,Ei as LABEL_CHAR_COUNT_VECTORS,Di as LABEL_DISPLAY_TEXT_VECTORS,Oi as LABEL_EFFECTIVE_LINES_VECTORS,ki as LABEL_ELLIPSIZE_OVERFLOW_VECTORS,Ai as LABEL_ELLIPSIZE_VECTORS,ji as LABEL_JUSTIFY_VECTORS,w as LABEL_VISIBILITY_VECTORS,Mi as LABEL_WIDTH_CHARS_EXTENT_VECTORS,Ni as LABEL_WRAP_MODE_VECTORS,Pi as LABEL_XALIGN_VECTORS,Fi as LABEL_YALIGN_ALIGN_ITEMS_VECTORS,Ii as LABEL_YALIGN_VECTORS,f as LEGAL_SECTIONS_VECTORS,p as LEGAL_SECTION_VECTORS,m as LICENSE_INFO_VECTORS,h as LICENSE_SETTER_VECTORS,g as LICENSE_SPDX_VECTORS,_ as LICENSE_TEXT_VECTORS,hr as LIST_ITEMS_CHANGED_VECTORS,gr as LIST_MODEL_OWNERSHIP_VECTORS,_r as LIST_NORMALIZE_VECTORS,vr as LIST_PARSE_VECTORS,yr as LIST_SELECTION_CLAMP_VECTORS,Tr as LIST_VIEW_SELECT_VECTORS,li as MAKE_COMPARABLE_VECTORS,Zi as MENU_ACTION_VECTORS,sr as MENU_BUTTON_DIRECTION_VECTORS,Or as MENU_DETAILED_ACTION_VECTORS,kr as MENU_FLATTEN_VECTORS,Ar as MENU_ITEM_STATE_VECTORS,jr as MENU_LABEL_TEXT_VECTORS,Mr as MENU_NORMALIZE_VECTORS,Nr as MENU_PARSE_VECTORS,Pr as MENU_REFUSAL_VECTORS,ea as MENU_TREE_VECTORS,Kn as NATURAL_SIDEBAR_WIDTH_VECTORS,qn as NAVIGATION_ACTION_VECTORS,Jn as NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS,Yn as NAVIGATION_STACK_VECTORS,Nn as NAVIGATION_VIEW_VECTORS,b as NEAREST_ACCENT_VECTORS,Xn as OVERLAY_COLLAPSE_VECTORS,Zn as OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS,Qn as OVERLAY_SWIPE_AREA_VECTORS,$n as OVERLAY_SWIPE_CANCEL_VECTORS,er as OVERLAY_SWIPE_RELEASE_VECTORS,tr as OVERLAY_SWIPE_SNAP_POINT_VECTORS,nr as OVERLAY_SWIPE_START_VECTORS,Ke as PASSWORD_ENTRY_ROW_VECTORS,qe as PASSWORD_REVEAL_GUARD_VECTORS,vi as POPOVER_KEY_VECTORS,yi as POPOVER_SURFACE_VECTORS,Yi as POPUP_MENU_PLAN_VECTORS,ui as PREFERENCES_GROUP_HEADER_VECTORS,di as PREFERENCES_SEARCH_PAGES,fi as PREFERENCES_SEARCH_VECTORS,qi as PROPERTY_OF_VECTORS,ke as RADIO_GROUP_VECTORS,t as RELEASE_NOTES_VECTORS,ta as RGBA_ROWS,na as RGBA_VECTORS,Tn as ROW_ACCESSOR_VECTORS,pi as ROW_MATCH_VECTORS,mi as SEARCH_CORPUS_VECTORS,hi as SEARCH_ROW_SUBTITLE_VECTORS,Je as SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS,Ye as SHARED_TREE_TABLES,bi as SHORTCUT_LABEL_VECTORS,Ln as SIDEBAR_ACTIVATION_VECTORS,rr as SIDEBAR_BOUNDS_VECTORS,Rn as SIDEBAR_CLAMP_VECTORS,zn as SIDEBAR_FILTER_VECTORS,Bn as SIDEBAR_ITEMS_CHANGED_VECTORS,Vn as SIDEBAR_ITEM_FLAG_VECTORS,Hn as SIDEBAR_MODEL_VECTORS,Un as SIDEBAR_MODE_VECTORS,ir as SIDEBAR_WIDTH_VECTORS,sa as SIMPLE_ACTION_GROUP_ROWS,ca as SIMPLE_ACTION_GROUP_VECTORS,Si as SPINNER_ARC_ENVELOPE,Ci as SPINNER_ARC_PHASE_VECTORS,wi as SPINNER_ARC_TOLERANCE,Ti as SPINNER_CONSTANT_VECTORS,Fe as SPINNER_GEOMETRY_VECTORS,Ie as SPINNER_SIZE_VECTORS,cr as SPLIT_BUTTON_CONTENT_VECTORS,lr as SPLIT_BUTTON_DIRECTION_VECTORS,ur as SPLIT_BUTTON_DROPDOWN_VECTORS,dr as SPLIT_BUTTON_MENU_ACTIVATION_VECTORS,fr as SPLIT_BUTTON_ROOT_STATE_VECTORS,pr as SPLIT_BUTTON_STYLE_CLASS_VECTORS,mr as SPLIT_BUTTON_TOOLTIP_VECTORS,ar as SPLIT_VIEW_MEASURE_VECTORS,gi as STRIP_MARKUP_VECTORS,_i as STRIP_MNEMONIC_VECTORS,ia as STYLE_MANAGER_ROWS,aa as STYLE_MANAGER_VECTORS,T as SWITCH_ROW_NOTIFY_VECTORS,Yr as TABS_REVEALED_VECTORS,Xr as TAB_CLOSE_VISIBLE_VECTORS,Zr as TAB_DESCENDANT_VECTORS,Qr as TAB_ICON_STATE_VECTORS,br as TAB_PAGES_ITEMS_CHANGED_VECTORS,$r as TAB_PAGE_DESCRIPTOR_VECTORS,ei as TAB_SEARCH_VECTORS,ti as TAB_SUCCESSOR_VECTORS,ni as TAB_TOOLTIP_VECTORS,ri as TAB_VIEW_VECTORS,or as TAGS_CONFLICT_VECTORS,kn as TOGGLE_ACTIVE_NAME_VECTORS,Le as TOOLBAR_VIEW_ALLOCATE_VECTORS,Re as TOOLBAR_VIEW_CLASS_VECTORS,ze as TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS,Be as TOOLBAR_VIEW_MEASURE_VECTORS,v as TRANSLATOR_CREDITS_VECTORS,Er as TREE_EXPANDER_LAYOUT_VECTORS,Dr as TREE_EXPANDER_SHORTCUT_VECTORS,st as UnsupportedConstructError,Ji as VALUE_LIST_VECTORS,An as VIEW_STACK_ICON_NAME_VECTORS,jn as VIEW_STACK_PAGE_VECTORS,Mn as VIEW_STACK_VECTORS,Lr as VIEW_SWITCHER_BADGE_VECTORS,Rr as VIEW_SWITCHER_BAR_REVEAL_VECTORS,zr as VIEW_SWITCHER_BAR_VECTORS,Br as VIEW_SWITCHER_BUTTON_VECTORS,Vr as VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS,Hr as VIEW_SWITCHER_DRAG_VECTORS,Ur as VIEW_SWITCHER_ICON_VECTORS,Wr as VIEW_SWITCHER_MNEMONIC_VECTORS,Gr as VIEW_SWITCHER_REBUILD_VECTORS,Kr as VIEW_SWITCHER_SELECTION_VECTORS,qr as VIEW_SWITCHER_SIDEBAR_SECTION_VECTORS,pa as WIDGET_MAP_ROWS,ma as WIDGET_MAP_VECTORS,ua as WINDOW_ROWS,E as WINDOW_TITLE_VECTORS,da as WINDOW_VECTORS,Li as WRAP_BOX_CHILD_ORDER_VECTORS,Ri as WRAP_BOX_LENGTH_VECTORS,zi as WRAP_BOX_LINE_VECTORS,Bi as WRAP_BOX_NATURAL_LENGTH_VECTORS,Vi as WRAP_BOX_NOTIFY_PROPERTIES,Hi as WRAP_BOX_POLICY_VECTORS,Ui as WRAP_BOX_SPACING_NOTIFY_VECTORS,Wi as WRAP_BOX_SPACING_VECTORS,xr as applyListReadback,ii as applyTabViewOp,ct as assertTreeConstructs,Xe as authoredNodes,Ze as authoredTags,Pn as collectNavigationState,lt as constructUsesOf,Jr as createViewSwitcherClock,n as driveAboutDialogDoorVectors,N as driveApplicationVectors,pe as driveCarouselDoorVectors,Oe as driveCheckGroupVectors,ut as driveConstructVectors,Et as driveFileChooserVectors,Ht as driveGLibLanguageTagVectors,Ut as driveGLibLanguageVectors,Kt as driveGLibPathVectors,Yt as driveGLibTimerVectors,Qt as driveGLibUnicharVectors,tn as driveGLibUriVectors,an as driveGLibVariantVectors,cn as driveGObjectVectors,At as driveGdkClipboardVectors,Nt as driveGioAppInfoVectors,It as driveGioResourceVectors,mn as driveGtkCssVectors,_n as driveGtkPlatformVectors,wn as driveIconThemeResourceVectors,Qi as driveMenuActionVectors,ra as driveRGBAVectors,r as driveReleaseNotesVectors,En as driveRowAccessorVectors,la as driveSimpleActionGroupVectors,oa as driveStyleManagerVectors,ha as driveWidgetMapVectors,fa as driveWindowVectors,xi as formatShortcutLabelNodes,Lt as gioResourceFixtures,Fn as navigationEventLog,Xi as popupMenuOutline,Dt as promisifyFileChooser,Qe as reachedTables,$i as registryMenuActionScene,Sr as replayTabPagesAsSplices,St as runBottomSheetBottomBarSteps,Ct as runBottomSheetSteps,In as runNavigationSteps,ai as seedTabViewPages,$e as sharedTreeExpectations,et as sharedTreePlacements,tt as subjectIndexOf,oi as tabViewClosing,si as tabViewOrder,P as unlockedVfuncNames,F as unprovenVfuncs,nt as withoutPlacements};
|
|
1
|
+
import{ABOUT_DIALOG_DOOR_VECTORS as e,RELEASE_NOTES_VECTORS as t,driveAboutDialogDoorVectors as n,driveReleaseNotesVectors as r}from"./about-dialog-doors.js";import{ABOUT_DIALOG_CREDITS_LEGAL_VECTORS as i,ABOUT_DIALOG_DETAILS_VECTORS as a,ABOUT_DIALOG_HEADER_VECTORS as o,ABOUT_DIALOG_LABEL_VECTORS as s,ABOUT_DIALOG_SUPPORT_VECTORS as c,ACKNOWLEDGEMENT_SECTIONS_VECTORS as l,CREDITS_SECTIONS_VECTORS as u,CREDIT_PERSON_VECTORS as d,LEGAL_SECTIONS_VECTORS as f,LEGAL_SECTION_VECTORS as p,LICENSE_INFO_VECTORS as m,LICENSE_SETTER_VECTORS as h,LICENSE_SPDX_VECTORS as g,LICENSE_TEXT_VECTORS as _,TRANSLATOR_CREDITS_VECTORS as v}from"./about-dialog.js";import{ACCENT_COLOR_VECTORS as y,NEAREST_ACCENT_VECTORS as b}from"./accent.js";import{ACTION_ROW_ACTIVATION_VECTORS as x,BUTTON_ROW_ACTIVATABLE_VECTORS as S,BUTTON_ROW_ICON_VECTORS as C,LABEL_VISIBILITY_VECTORS as w,SWITCH_ROW_NOTIFY_VECTORS as T,WINDOW_TITLE_VECTORS as E}from"./action-row.js";import{ADJUSTMENT_AUTHORED_VECTORS as D,ADJUSTMENT_PARSE_VECTORS as O,ADJUSTMENT_SNAP_VECTORS as k}from"./adjustment.js";import{APPEARANCE_HANDOFF_VECTORS as A}from"./appearance.js";import{APPLICATION_ROWS as j,APPLICATION_VECTORS as M,driveApplicationVectors as N,unlockedVfuncNames as P,unprovenVfuncs as F}from"./application.js";import{AVATAR_COLOR_VECTORS as I,AVATAR_FONT_SIZE_VECTORS as L,AVATAR_ICON_SIZE_VECTORS as R,AVATAR_INITIALS_VECTORS as z,AVATAR_MODE_VECTORS as B}from"./avatar.js";import{BANNER_BUTTON_STYLE_PARSE_VECTORS as V,BANNER_BUTTON_STYLE_VECTORS as H,BANNER_BUTTON_TEXT_VECTORS as U,BANNER_BUTTON_VISIBLE_VECTORS as W,BANNER_DEFAULT_VECTORS as G}from"./banner.js";import{BOX_ALL_VECTORS as K,BOX_ROW_VECTORS as q,BOX_SELECT_VECTORS as J}from"./box-selection.js";import{BOX_ORIENTATION_VECTORS as Y,BOX_SPACING_VECTORS as X}from"./box.js";import{BREAKPOINT_PICK_VECTORS as Z,BREAKPOINT_TRANSITION_VECTORS as Q}from"./breakpoint-bin.js";import{BUTTON_CONTENT_DEFAULT_VECTORS as $,BUTTON_CONTENT_ELLIPSIZE_VECTORS as ee,BUTTON_CONTENT_ICON_VECTORS as te,BUTTON_CONTENT_LABEL_VECTORS as ne,BUTTON_CONTENT_STYLE_TARGET_VECTORS as re,BUTTON_CONTENT_TEXT_VECTORS as ie}from"./button-content.js";import{BUTTON_STYLE_CLASS_VECTORS as ae}from"./button.js";import{CALENDAR_DAYS_VECTORS as oe,CALENDAR_MARK_VECTORS as se,CALENDAR_NAVIGATION_VECTORS as ce,CALENDAR_SELECT_VECTORS as le,CALENDAR_STEP_VECTORS as ue,CALENDAR_WEEK_VECTORS as de}from"./calendar.js";import{CAROUSEL_DOOR_VECTORS as fe,driveCarouselDoorVectors as pe}from"./carousel-doors.js";import{CAROUSEL_CLAMP_VECTORS as me,CAROUSEL_NAVIGATE_VECTORS as he,CAROUSEL_PAGE_ALLOCATION_VECTORS as ge,CAROUSEL_PAGE_AT_POSITION_VECTORS as _e,CAROUSEL_PAGE_LIST_VECTORS as ve,CAROUSEL_PROPERTY_DEFAULT_VECTORS as ye,CAROUSEL_RANGE_VECTORS as be,CAROUSEL_REORDER_SHIFT_VECTORS as xe,CAROUSEL_REVEAL_VECTORS as Se,CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS as Ce,CAROUSEL_SNAP_POINT_VECTORS as we,CAROUSEL_WHEEL_LOCKOUT_VECTORS as Te,CAROUSEL_WHEEL_VECTORS as Ee}from"./carousel.js";import{CHECK_GROUP_VECTORS as De,driveCheckGroupVectors as Oe}from"./check-group.js";import{RADIO_GROUP_VECTORS as ke}from"./checks.js";import{CLAMP_ALLOCATE_VECTORS as Ae,CLAMP_CHILD_SIZE_VECTORS as je,CLAMP_PROPERTY_VECTORS as Me,CLAMP_SIZE_FROM_CHILD_VECTORS as Ne,CLAMP_THRESHOLD_VECTORS as Pe,SPINNER_GEOMETRY_VECTORS as Fe,SPINNER_SIZE_VECTORS as Ie,TOOLBAR_VIEW_ALLOCATE_VECTORS as Le,TOOLBAR_VIEW_CLASS_VECTORS as Re,TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS as ze,TOOLBAR_VIEW_MEASURE_VECTORS as Be}from"./chrome.js";import{ENTRY_MAX_LENGTH_VECTORS as Ve,ENTRY_ROW_ACTIVATION_VECTORS as He,ENTRY_ROW_GUARD_VECTORS as Ue,ENTRY_ROW_STATE_VECTORS as We,ENTRY_TEXT_LENGTH_VECTORS as Ge,PASSWORD_ENTRY_ROW_VECTORS as Ke,PASSWORD_REVEAL_GUARD_VECTORS as qe}from"./entry-row.js";import{SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS as Je,SHARED_TREE_TABLES as Ye,authoredNodes as Xe,authoredTags as Ze,reachedTables as Qe,sharedTreeExpectations as $e,sharedTreePlacements as et,subjectIndexOf as tt,withoutPlacements as nt}from"./shared-trees.js";import{BREAKPOINT_VECTOR_SIZES as rt,CONSTRUCT_KINDS as it,CONSTRUCT_VECTORS as at,EXTERN_VECTOR_CLASS as ot,UnsupportedConstructError as st,assertTreeConstructs as ct,constructUsesOf as lt,driveConstructVectors as ut}from"./constructs.js";import{DATA_GRID_CELL_TEXT_VECTORS as dt,DATA_GRID_COLUMN_CLASS_VECTORS as ft,DATA_GRID_COLUMN_NORMALIZE_VECTORS as pt,DATA_GRID_INTERACTIVE_VECTORS as mt,DATA_GRID_TRACK_VECTORS as ht,DATA_GRID_VARIANT_VECTORS as gt}from"./data-grid.js";import{BOTTOM_SHEET_BOTTOM_BAR_VECTORS as _t,BOTTOM_SHEET_CLOSE_VECTORS as vt,BOTTOM_SHEET_OPEN_VECTORS as yt,BOTTOM_SHEET_PRESENTATION_VECTORS as bt,BOTTOM_SHEET_SWIPE_TRACKER_VECTORS as xt,runBottomSheetBottomBarSteps as St,runBottomSheetSteps as Ct}from"./dialog.js";import{FILE_CHOOSER_ROWS as wt,FILE_CHOOSER_VECTORS as Tt,driveFileChooserVectors as Et,promisifyFileChooser as Dt}from"./file-chooser.js";import{GDK_CLIPBOARD_ROWS as Ot,GDK_CLIPBOARD_VECTORS as kt,driveGdkClipboardVectors as At}from"./gdk-clipboard.js";import{GIO_APP_INFO_ROWS as jt,GIO_APP_INFO_VECTORS as Mt,driveGioAppInfoVectors as Nt}from"./gio-app-info.js";import{GIO_RESOURCE_ROWS as Pt,GIO_RESOURCE_VECTORS as Ft,driveGioResourceVectors as It,gioResourceFixtures as Lt}from"./gio-resource.js";import{GLIB_LANGUAGE_ROWS as Rt,GLIB_LANGUAGE_TAG_ROWS as zt,GLIB_LANGUAGE_TAG_VECTORS as Bt,GLIB_LANGUAGE_VECTORS as Vt,driveGLibLanguageTagVectors as Ht,driveGLibLanguageVectors as Ut}from"./glib-language.js";import{GLIB_PATH_ROWS as Wt,GLIB_PATH_VECTORS as Gt,driveGLibPathVectors as Kt}from"./glib-paths.js";import{GLIB_TIMER_ROWS as qt,GLIB_TIMER_VECTORS as Jt,driveGLibTimerVectors as Yt}from"./glib-timers.js";import{GLIB_UNICHAR_ROWS as Xt,GLIB_UNICHAR_VECTORS as Zt,driveGLibUnicharVectors as Qt}from"./glib-unichar.js";import{GLIB_URI_ROWS as $t,GLIB_URI_VECTORS as en,driveGLibUriVectors as tn}from"./glib-uri.js";import{GLIB_VARIANT_ROWS as nn,GLIB_VARIANT_VECTORS as rn,driveGLibVariantVectors as an}from"./glib-variant.js";import{GOBJECT_ROWS as on,GOBJECT_VECTORS as sn,driveGObjectVectors as cn}from"./gobject.js";import{GRID_NAVIGATION_GEOMETRY as ln,GRID_NAVIGATION_VECTORS as un}from"./grid-navigation.js";import{GTK_CSS_PIXEL_TOLERANCE as dn,GTK_CSS_ROWS as fn,GTK_CSS_VECTORS as pn,driveGtkCssVectors as mn}from"./gtk-css.js";import{GTK_PLATFORM_ROWS as hn,GTK_PLATFORM_VECTORS as gn,driveGtkPlatformVectors as _n}from"./gtk-platform.js";import{HEADER_BAR_PACK_VECTORS as vn,HEADER_BAR_TITLE_SOURCE_VECTORS as yn,HEADER_BAR_TITLE_WIDGET_VECTORS as bn}from"./header-bar.js";import{ICON_FIXTURE_PATH as xn,ICON_THEME_RESOURCE_ROWS as Sn,ICON_THEME_RESOURCE_VECTORS as Cn,driveIconThemeResourceVectors as wn}from"./icon-theme-resources.js";import{ROW_ACCESSOR_VECTORS as Tn,driveRowAccessorVectors as En}from"./row-accessors.js";import{COMBO_CHOOSER_VECTORS as Dn,COMBO_ITEMS_CHANGED_VECTORS as On,COMBO_SELECTION_VECTORS as kn,TOGGLE_ACTIVE_NAME_VECTORS as An}from"./rows.js";import{VIEW_STACK_ICON_NAME_VECTORS as jn,VIEW_STACK_PAGE_VECTORS as Mn,VIEW_STACK_VECTORS as Nn}from"./view-stack.js";import{NAVIGATION_VIEW_VECTORS as Pn,collectNavigationState as Fn,navigationEventLog as In,runNavigationSteps as Ln}from"./navigation-view.js";import{SIDEBAR_ACTIVATION_VECTORS as Rn,SIDEBAR_CLAMP_VECTORS as zn,SIDEBAR_FILTER_VECTORS as Bn,SIDEBAR_ITEMS_CHANGED_VECTORS as Vn,SIDEBAR_ITEM_FLAG_VECTORS as Hn,SIDEBAR_MODEL_VECTORS as Un,SIDEBAR_MODE_VECTORS as Wn}from"./sidebar.js";import{ADW_LENGTH_UNIT_VECTORS as Gn,GLIB_CLAMP_VECTORS as Kn,NATURAL_SIDEBAR_WIDTH_VECTORS as qn,NAVIGATION_ACTION_VECTORS as Jn,NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS as Yn,NAVIGATION_STACK_VECTORS as Xn,OVERLAY_COLLAPSE_VECTORS as Zn,OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS as Qn,OVERLAY_SWIPE_AREA_VECTORS as $n,OVERLAY_SWIPE_CANCEL_VECTORS as er,OVERLAY_SWIPE_RELEASE_VECTORS as tr,OVERLAY_SWIPE_SNAP_POINT_VECTORS as nr,OVERLAY_SWIPE_START_VECTORS as rr,SIDEBAR_BOUNDS_VECTORS as ir,SIDEBAR_WIDTH_VECTORS as ar,SPLIT_VIEW_MEASURE_VECTORS as or,TAGS_CONFLICT_VECTORS as sr}from"./split-view.js";import{MENU_BUTTON_DIRECTION_VECTORS as cr,SPLIT_BUTTON_CONTENT_VECTORS as lr,SPLIT_BUTTON_DIRECTION_VECTORS as ur,SPLIT_BUTTON_DROPDOWN_VECTORS as dr,SPLIT_BUTTON_MENU_ACTIVATION_VECTORS as fr,SPLIT_BUTTON_ROOT_STATE_VECTORS as pr,SPLIT_BUTTON_STYLE_CLASS_VECTORS as mr,SPLIT_BUTTON_TOOLTIP_VECTORS as hr}from"./split-button.js";import{LIST_ITEMS_CHANGED_VECTORS as gr,LIST_MODEL_OWNERSHIP_VECTORS as _r,LIST_NORMALIZE_VECTORS as vr,LIST_PARSE_VECTORS as yr,TAB_PAGES_ITEMS_CHANGED_VECTORS as br,applyListMutation as xr,applyListReadback as Sr,listModelForInput as Cr,replayTabPagesAsSplices as wr}from"./list.js";import{COLUMN_VIEW_SORT_VECTORS as Tr,GRID_VIEW_COLUMN_VECTORS as Er,LIST_VIEW_SELECT_VECTORS as Dr}from"./list-view.js";import{TREE_EXPANDER_LAYOUT_VECTORS as Or,TREE_EXPANDER_SHORTCUT_VECTORS as kr}from"./tree-expander.js";import{MENU_DETAILED_ACTION_VECTORS as Ar,MENU_FLATTEN_VECTORS as jr,MENU_ITEM_STATE_VECTORS as Mr,MENU_LABEL_TEXT_VECTORS as Nr,MENU_NORMALIZE_VECTORS as Pr,MENU_PARSE_VECTORS as Fr,MENU_REFUSAL_VECTORS as Ir}from"./menu.js";import{INLINE_TOGGLE_VECTORS as Lr,INLINE_TOOLTIP_VECTORS as Rr,VIEW_SWITCHER_BADGE_VECTORS as zr,VIEW_SWITCHER_BAR_REVEAL_VECTORS as Br,VIEW_SWITCHER_BAR_VECTORS as Vr,VIEW_SWITCHER_BUTTON_VECTORS as Hr,VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS as Ur,VIEW_SWITCHER_DRAG_VECTORS as Wr,VIEW_SWITCHER_ICON_VECTORS as Gr,VIEW_SWITCHER_MNEMONIC_VECTORS as Kr,VIEW_SWITCHER_REBUILD_VECTORS as qr,VIEW_SWITCHER_SELECTION_VECTORS as Jr,VIEW_SWITCHER_SIDEBAR_SECTION_VECTORS as Yr,createViewSwitcherClock as Xr}from"./view-switcher.js";import{TABS_REVEALED_VECTORS as Zr,TAB_CLOSE_VISIBLE_VECTORS as Qr,TAB_DESCENDANT_VECTORS as $r,TAB_ICON_STATE_VECTORS as ei,TAB_PAGE_DESCRIPTOR_VECTORS as ti,TAB_SEARCH_VECTORS as ni,TAB_SUCCESSOR_VECTORS as ri,TAB_TOOLTIP_VECTORS as ii,TAB_VIEW_VECTORS as ai,applyTabViewOp as oi,seedTabViewPages as si,tabViewClosing as ci,tabViewOrder as li}from"./tab-view.js";import{CASE_FOLD_VECTORS as ui,MAKE_COMPARABLE_VECTORS as di,PREFERENCES_GROUP_HEADER_VECTORS as fi,PREFERENCES_SEARCH_PAGES as pi,PREFERENCES_SEARCH_VECTORS as mi,ROW_MATCH_VECTORS as hi,SEARCH_CORPUS_VECTORS as gi,SEARCH_ROW_SUBTITLE_VECTORS as _i,STRIP_MARKUP_VECTORS as vi,STRIP_MNEMONIC_VECTORS as yi}from"./preferences.js";import{POPOVER_KEY_VECTORS as bi,POPOVER_SURFACE_VECTORS as xi}from"./popover.js";import{SHORTCUT_LABEL_VECTORS as Si,formatShortcutLabelNodes as Ci}from"./shortcut-label.js";import{SPINNER_ARC_ENVELOPE as wi,SPINNER_ARC_PHASE_VECTORS as Ti,SPINNER_ARC_TOLERANCE as Ei,SPINNER_CONSTANT_VECTORS as Di}from"./spinner.js";import{LABEL_CHAR_COUNT_VECTORS as Oi,LABEL_DISPLAY_TEXT_VECTORS as ki,LABEL_EFFECTIVE_LINES_VECTORS as Ai,LABEL_ELLIPSIZE_OVERFLOW_VECTORS as ji,LABEL_ELLIPSIZE_VECTORS as Mi,LABEL_JUSTIFY_VECTORS as Ni,LABEL_WIDTH_CHARS_EXTENT_VECTORS as Pi,LABEL_WRAP_MODE_VECTORS as Fi,LABEL_XALIGN_VECTORS as Ii,LABEL_YALIGN_ALIGN_ITEMS_VECTORS as Li,LABEL_YALIGN_VECTORS as Ri}from"./label.js";import{WRAP_BOX_CHILD_ORDER_VECTORS as zi,WRAP_BOX_LENGTH_VECTORS as Bi,WRAP_BOX_LINE_VECTORS as Vi,WRAP_BOX_NATURAL_LENGTH_VECTORS as Hi,WRAP_BOX_NOTIFY_PROPERTIES as Ui,WRAP_BOX_POLICY_VECTORS as Wi,WRAP_BOX_SPACING_NOTIFY_VECTORS as Gi,WRAP_BOX_SPACING_VECTORS as Ki}from"./wrap-box.js";import{ATTRIBUTE_OF_VECTORS as qi,HOST_TAG_VECTORS as Ji,PROPERTY_OF_VECTORS as Yi}from"./tags.js";import{VALUE_LIST_VECTORS as Xi}from"./value-lists.js";import{POPUP_MENU_PLAN_VECTORS as Zi,popupMenuOutline as Qi}from"./popup-menu-plan.js";import{MENU_ACTION_VECTORS as $i,driveMenuActionVectors as ea,registryMenuActionScene as ta}from"./menu-actions.js";import{MENU_TREE_VECTORS as na}from"./menu-tree.js";import{RGBA_ROWS as ra,RGBA_VECTORS as ia,driveRGBAVectors as aa}from"./rgba.js";import{STYLE_MANAGER_ROWS as oa,STYLE_MANAGER_VECTORS as sa,driveStyleManagerVectors as ca}from"./style-manager.js";import{SIMPLE_ACTION_GROUP_ROWS as la,SIMPLE_ACTION_GROUP_VECTORS as ua,driveSimpleActionGroupVectors as da}from"./simple-action-group.js";import{WINDOW_ROWS as fa,WINDOW_VECTORS as pa,driveWindowVectors as ma}from"./window-members.js";import{WIDGET_MAP_ROWS as ha,WIDGET_MAP_VECTORS as ga,driveWidgetMapVectors as _a}from"./widget-map.js";export{i as ABOUT_DIALOG_CREDITS_LEGAL_VECTORS,a as ABOUT_DIALOG_DETAILS_VECTORS,e as ABOUT_DIALOG_DOOR_VECTORS,o as ABOUT_DIALOG_HEADER_VECTORS,s as ABOUT_DIALOG_LABEL_VECTORS,c as ABOUT_DIALOG_SUPPORT_VECTORS,y as ACCENT_COLOR_VECTORS,l as ACKNOWLEDGEMENT_SECTIONS_VECTORS,x as ACTION_ROW_ACTIVATION_VECTORS,D as ADJUSTMENT_AUTHORED_VECTORS,O as ADJUSTMENT_PARSE_VECTORS,k as ADJUSTMENT_SNAP_VECTORS,Gn as ADW_LENGTH_UNIT_VECTORS,A as APPEARANCE_HANDOFF_VECTORS,j as APPLICATION_ROWS,M as APPLICATION_VECTORS,qi as ATTRIBUTE_OF_VECTORS,I as AVATAR_COLOR_VECTORS,L as AVATAR_FONT_SIZE_VECTORS,R as AVATAR_ICON_SIZE_VECTORS,z as AVATAR_INITIALS_VECTORS,B as AVATAR_MODE_VECTORS,V as BANNER_BUTTON_STYLE_PARSE_VECTORS,H as BANNER_BUTTON_STYLE_VECTORS,U as BANNER_BUTTON_TEXT_VECTORS,W as BANNER_BUTTON_VISIBLE_VECTORS,G as BANNER_DEFAULT_VECTORS,_t as BOTTOM_SHEET_BOTTOM_BAR_VECTORS,vt as BOTTOM_SHEET_CLOSE_VECTORS,yt as BOTTOM_SHEET_OPEN_VECTORS,bt as BOTTOM_SHEET_PRESENTATION_VECTORS,xt as BOTTOM_SHEET_SWIPE_TRACKER_VECTORS,K as BOX_ALL_VECTORS,Y as BOX_ORIENTATION_VECTORS,q as BOX_ROW_VECTORS,J as BOX_SELECT_VECTORS,X as BOX_SPACING_VECTORS,Z as BREAKPOINT_PICK_VECTORS,Q as BREAKPOINT_TRANSITION_VECTORS,rt as BREAKPOINT_VECTOR_SIZES,$ as BUTTON_CONTENT_DEFAULT_VECTORS,ee as BUTTON_CONTENT_ELLIPSIZE_VECTORS,te as BUTTON_CONTENT_ICON_VECTORS,ne as BUTTON_CONTENT_LABEL_VECTORS,re as BUTTON_CONTENT_STYLE_TARGET_VECTORS,ie as BUTTON_CONTENT_TEXT_VECTORS,S as BUTTON_ROW_ACTIVATABLE_VECTORS,C as BUTTON_ROW_ICON_VECTORS,ae as BUTTON_STYLE_CLASS_VECTORS,oe as CALENDAR_DAYS_VECTORS,se as CALENDAR_MARK_VECTORS,ce as CALENDAR_NAVIGATION_VECTORS,le as CALENDAR_SELECT_VECTORS,ue as CALENDAR_STEP_VECTORS,de as CALENDAR_WEEK_VECTORS,me as CAROUSEL_CLAMP_VECTORS,fe as CAROUSEL_DOOR_VECTORS,he as CAROUSEL_NAVIGATE_VECTORS,ge as CAROUSEL_PAGE_ALLOCATION_VECTORS,_e as CAROUSEL_PAGE_AT_POSITION_VECTORS,ve as CAROUSEL_PAGE_LIST_VECTORS,ye as CAROUSEL_PROPERTY_DEFAULT_VECTORS,be as CAROUSEL_RANGE_VECTORS,xe as CAROUSEL_REORDER_SHIFT_VECTORS,Se as CAROUSEL_REVEAL_VECTORS,Ce as CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS,we as CAROUSEL_SNAP_POINT_VECTORS,Te as CAROUSEL_WHEEL_LOCKOUT_VECTORS,Ee as CAROUSEL_WHEEL_VECTORS,ui as CASE_FOLD_VECTORS,De as CHECK_GROUP_VECTORS,Ae as CLAMP_ALLOCATE_VECTORS,je as CLAMP_CHILD_SIZE_VECTORS,Me as CLAMP_PROPERTY_VECTORS,Ne as CLAMP_SIZE_FROM_CHILD_VECTORS,Pe as CLAMP_THRESHOLD_VECTORS,Tr as COLUMN_VIEW_SORT_VECTORS,Dn as COMBO_CHOOSER_VECTORS,On as COMBO_ITEMS_CHANGED_VECTORS,kn as COMBO_SELECTION_VECTORS,it as CONSTRUCT_KINDS,at as CONSTRUCT_VECTORS,u as CREDITS_SECTIONS_VECTORS,d as CREDIT_PERSON_VECTORS,dt as DATA_GRID_CELL_TEXT_VECTORS,ft as DATA_GRID_COLUMN_CLASS_VECTORS,pt as DATA_GRID_COLUMN_NORMALIZE_VECTORS,mt as DATA_GRID_INTERACTIVE_VECTORS,ht as DATA_GRID_TRACK_VECTORS,gt as DATA_GRID_VARIANT_VECTORS,Ve as ENTRY_MAX_LENGTH_VECTORS,He as ENTRY_ROW_ACTIVATION_VECTORS,Ue as ENTRY_ROW_GUARD_VECTORS,We as ENTRY_ROW_STATE_VECTORS,Ge as ENTRY_TEXT_LENGTH_VECTORS,ot as EXTERN_VECTOR_CLASS,wt as FILE_CHOOSER_ROWS,Tt as FILE_CHOOSER_VECTORS,Ot as GDK_CLIPBOARD_ROWS,kt as GDK_CLIPBOARD_VECTORS,jt as GIO_APP_INFO_ROWS,Mt as GIO_APP_INFO_VECTORS,Pt as GIO_RESOURCE_ROWS,Ft as GIO_RESOURCE_VECTORS,Kn as GLIB_CLAMP_VECTORS,Rt as GLIB_LANGUAGE_ROWS,zt as GLIB_LANGUAGE_TAG_ROWS,Bt as GLIB_LANGUAGE_TAG_VECTORS,Vt as GLIB_LANGUAGE_VECTORS,Wt as GLIB_PATH_ROWS,Gt as GLIB_PATH_VECTORS,qt as GLIB_TIMER_ROWS,Jt as GLIB_TIMER_VECTORS,Xt as GLIB_UNICHAR_ROWS,Zt as GLIB_UNICHAR_VECTORS,$t as GLIB_URI_ROWS,en as GLIB_URI_VECTORS,nn as GLIB_VARIANT_ROWS,rn as GLIB_VARIANT_VECTORS,on as GOBJECT_ROWS,sn as GOBJECT_VECTORS,ln as GRID_NAVIGATION_GEOMETRY,un as GRID_NAVIGATION_VECTORS,Er as GRID_VIEW_COLUMN_VECTORS,dn as GTK_CSS_PIXEL_TOLERANCE,fn as GTK_CSS_ROWS,pn as GTK_CSS_VECTORS,hn as GTK_PLATFORM_ROWS,gn as GTK_PLATFORM_VECTORS,vn as HEADER_BAR_PACK_VECTORS,yn as HEADER_BAR_TITLE_SOURCE_VECTORS,bn as HEADER_BAR_TITLE_WIDGET_VECTORS,Ji as HOST_TAG_VECTORS,xn as ICON_FIXTURE_PATH,Sn as ICON_THEME_RESOURCE_ROWS,Cn as ICON_THEME_RESOURCE_VECTORS,Lr as INLINE_TOGGLE_VECTORS,Rr as INLINE_TOOLTIP_VECTORS,Oi as LABEL_CHAR_COUNT_VECTORS,ki as LABEL_DISPLAY_TEXT_VECTORS,Ai as LABEL_EFFECTIVE_LINES_VECTORS,ji as LABEL_ELLIPSIZE_OVERFLOW_VECTORS,Mi as LABEL_ELLIPSIZE_VECTORS,Ni as LABEL_JUSTIFY_VECTORS,w as LABEL_VISIBILITY_VECTORS,Pi as LABEL_WIDTH_CHARS_EXTENT_VECTORS,Fi as LABEL_WRAP_MODE_VECTORS,Ii as LABEL_XALIGN_VECTORS,Li as LABEL_YALIGN_ALIGN_ITEMS_VECTORS,Ri as LABEL_YALIGN_VECTORS,f as LEGAL_SECTIONS_VECTORS,p as LEGAL_SECTION_VECTORS,m as LICENSE_INFO_VECTORS,h as LICENSE_SETTER_VECTORS,g as LICENSE_SPDX_VECTORS,_ as LICENSE_TEXT_VECTORS,gr as LIST_ITEMS_CHANGED_VECTORS,_r as LIST_MODEL_OWNERSHIP_VECTORS,vr as LIST_NORMALIZE_VECTORS,yr as LIST_PARSE_VECTORS,Dr as LIST_VIEW_SELECT_VECTORS,di as MAKE_COMPARABLE_VECTORS,$i as MENU_ACTION_VECTORS,cr as MENU_BUTTON_DIRECTION_VECTORS,Ar as MENU_DETAILED_ACTION_VECTORS,jr as MENU_FLATTEN_VECTORS,Mr as MENU_ITEM_STATE_VECTORS,Nr as MENU_LABEL_TEXT_VECTORS,Pr as MENU_NORMALIZE_VECTORS,Fr as MENU_PARSE_VECTORS,Ir as MENU_REFUSAL_VECTORS,na as MENU_TREE_VECTORS,qn as NATURAL_SIDEBAR_WIDTH_VECTORS,Jn as NAVIGATION_ACTION_VECTORS,Yn as NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS,Xn as NAVIGATION_STACK_VECTORS,Pn as NAVIGATION_VIEW_VECTORS,b as NEAREST_ACCENT_VECTORS,Zn as OVERLAY_COLLAPSE_VECTORS,Qn as OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS,$n as OVERLAY_SWIPE_AREA_VECTORS,er as OVERLAY_SWIPE_CANCEL_VECTORS,tr as OVERLAY_SWIPE_RELEASE_VECTORS,nr as OVERLAY_SWIPE_SNAP_POINT_VECTORS,rr as OVERLAY_SWIPE_START_VECTORS,Ke as PASSWORD_ENTRY_ROW_VECTORS,qe as PASSWORD_REVEAL_GUARD_VECTORS,bi as POPOVER_KEY_VECTORS,xi as POPOVER_SURFACE_VECTORS,Zi as POPUP_MENU_PLAN_VECTORS,fi as PREFERENCES_GROUP_HEADER_VECTORS,pi as PREFERENCES_SEARCH_PAGES,mi as PREFERENCES_SEARCH_VECTORS,Yi as PROPERTY_OF_VECTORS,ke as RADIO_GROUP_VECTORS,t as RELEASE_NOTES_VECTORS,ra as RGBA_ROWS,ia as RGBA_VECTORS,Tn as ROW_ACCESSOR_VECTORS,hi as ROW_MATCH_VECTORS,gi as SEARCH_CORPUS_VECTORS,_i as SEARCH_ROW_SUBTITLE_VECTORS,Je as SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS,Ye as SHARED_TREE_TABLES,Si as SHORTCUT_LABEL_VECTORS,Rn as SIDEBAR_ACTIVATION_VECTORS,ir as SIDEBAR_BOUNDS_VECTORS,zn as SIDEBAR_CLAMP_VECTORS,Bn as SIDEBAR_FILTER_VECTORS,Vn as SIDEBAR_ITEMS_CHANGED_VECTORS,Hn as SIDEBAR_ITEM_FLAG_VECTORS,Un as SIDEBAR_MODEL_VECTORS,Wn as SIDEBAR_MODE_VECTORS,ar as SIDEBAR_WIDTH_VECTORS,la as SIMPLE_ACTION_GROUP_ROWS,ua as SIMPLE_ACTION_GROUP_VECTORS,wi as SPINNER_ARC_ENVELOPE,Ti as SPINNER_ARC_PHASE_VECTORS,Ei as SPINNER_ARC_TOLERANCE,Di as SPINNER_CONSTANT_VECTORS,Fe as SPINNER_GEOMETRY_VECTORS,Ie as SPINNER_SIZE_VECTORS,lr as SPLIT_BUTTON_CONTENT_VECTORS,ur as SPLIT_BUTTON_DIRECTION_VECTORS,dr as SPLIT_BUTTON_DROPDOWN_VECTORS,fr as SPLIT_BUTTON_MENU_ACTIVATION_VECTORS,pr as SPLIT_BUTTON_ROOT_STATE_VECTORS,mr as SPLIT_BUTTON_STYLE_CLASS_VECTORS,hr as SPLIT_BUTTON_TOOLTIP_VECTORS,or as SPLIT_VIEW_MEASURE_VECTORS,vi as STRIP_MARKUP_VECTORS,yi as STRIP_MNEMONIC_VECTORS,oa as STYLE_MANAGER_ROWS,sa as STYLE_MANAGER_VECTORS,T as SWITCH_ROW_NOTIFY_VECTORS,Zr as TABS_REVEALED_VECTORS,Qr as TAB_CLOSE_VISIBLE_VECTORS,$r as TAB_DESCENDANT_VECTORS,ei as TAB_ICON_STATE_VECTORS,br as TAB_PAGES_ITEMS_CHANGED_VECTORS,ti as TAB_PAGE_DESCRIPTOR_VECTORS,ni as TAB_SEARCH_VECTORS,ri as TAB_SUCCESSOR_VECTORS,ii as TAB_TOOLTIP_VECTORS,ai as TAB_VIEW_VECTORS,sr as TAGS_CONFLICT_VECTORS,An as TOGGLE_ACTIVE_NAME_VECTORS,Le as TOOLBAR_VIEW_ALLOCATE_VECTORS,Re as TOOLBAR_VIEW_CLASS_VECTORS,ze as TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS,Be as TOOLBAR_VIEW_MEASURE_VECTORS,v as TRANSLATOR_CREDITS_VECTORS,Or as TREE_EXPANDER_LAYOUT_VECTORS,kr as TREE_EXPANDER_SHORTCUT_VECTORS,st as UnsupportedConstructError,Xi as VALUE_LIST_VECTORS,jn as VIEW_STACK_ICON_NAME_VECTORS,Mn as VIEW_STACK_PAGE_VECTORS,Nn as VIEW_STACK_VECTORS,zr as VIEW_SWITCHER_BADGE_VECTORS,Br as VIEW_SWITCHER_BAR_REVEAL_VECTORS,Vr as VIEW_SWITCHER_BAR_VECTORS,Hr as VIEW_SWITCHER_BUTTON_VECTORS,Ur as VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS,Wr as VIEW_SWITCHER_DRAG_VECTORS,Gr as VIEW_SWITCHER_ICON_VECTORS,Kr as VIEW_SWITCHER_MNEMONIC_VECTORS,qr as VIEW_SWITCHER_REBUILD_VECTORS,Jr as VIEW_SWITCHER_SELECTION_VECTORS,Yr as VIEW_SWITCHER_SIDEBAR_SECTION_VECTORS,ha as WIDGET_MAP_ROWS,ga as WIDGET_MAP_VECTORS,fa as WINDOW_ROWS,E as WINDOW_TITLE_VECTORS,pa as WINDOW_VECTORS,zi as WRAP_BOX_CHILD_ORDER_VECTORS,Bi as WRAP_BOX_LENGTH_VECTORS,Vi as WRAP_BOX_LINE_VECTORS,Hi as WRAP_BOX_NATURAL_LENGTH_VECTORS,Ui as WRAP_BOX_NOTIFY_PROPERTIES,Wi as WRAP_BOX_POLICY_VECTORS,Gi as WRAP_BOX_SPACING_NOTIFY_VECTORS,Ki as WRAP_BOX_SPACING_VECTORS,xr as applyListMutation,Sr as applyListReadback,oi as applyTabViewOp,ct as assertTreeConstructs,Xe as authoredNodes,Ze as authoredTags,Fn as collectNavigationState,lt as constructUsesOf,Xr as createViewSwitcherClock,n as driveAboutDialogDoorVectors,N as driveApplicationVectors,pe as driveCarouselDoorVectors,Oe as driveCheckGroupVectors,ut as driveConstructVectors,Et as driveFileChooserVectors,Ht as driveGLibLanguageTagVectors,Ut as driveGLibLanguageVectors,Kt as driveGLibPathVectors,Yt as driveGLibTimerVectors,Qt as driveGLibUnicharVectors,tn as driveGLibUriVectors,an as driveGLibVariantVectors,cn as driveGObjectVectors,At as driveGdkClipboardVectors,Nt as driveGioAppInfoVectors,It as driveGioResourceVectors,mn as driveGtkCssVectors,_n as driveGtkPlatformVectors,wn as driveIconThemeResourceVectors,ea as driveMenuActionVectors,aa as driveRGBAVectors,r as driveReleaseNotesVectors,En as driveRowAccessorVectors,da as driveSimpleActionGroupVectors,ca as driveStyleManagerVectors,_a as driveWidgetMapVectors,ma as driveWindowVectors,Ci as formatShortcutLabelNodes,Lt as gioResourceFixtures,Cr as listModelForInput,In as navigationEventLog,Qi as popupMenuOutline,Dt as promisifyFileChooser,Qe as reachedTables,ta as registryMenuActionScene,wr as replayTabPagesAsSplices,St as runBottomSheetBottomBarSteps,Ct as runBottomSheetSteps,Ln as runNavigationSteps,si as seedTabViewPages,$e as sharedTreeExpectations,et as sharedTreePlacements,tt as subjectIndexOf,ci as tabViewClosing,li as tabViewOrder,P as unlockedVfuncNames,F as unprovenVfuncs,nt as withoutPlacements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{GjsifyOptionList as e}from"../option-list.js";import{tabViewItemsChanged as t}from"../tab-view.js";function stringItem(e){return{string:e}}function listSource(...e){return{get_n_items:()=>e.length,get_item:t=>e[t]??null}}const n=[{input:[`Cyan`,`Magenta`],model:[{value:`Cyan`,label:`Cyan`},{value:`Magenta`,label:`Magenta`}],rule:"a bare string is both value and label — `Gtk.StringList`, which is what a combo row is fed in the common case"},{input:[{value:`a`,label:`One`}],model:[{value:`a`,label:`One`}],rule:`a full descriptor passes through unchanged`},{input:[{label:`Apple`}],model:[{value:`Apple`,label:`Apple`}],rule:"a label with no value is addressable BY that label — otherwise the item answers to `undefined` and `selectedValue` can never reach it"},{input:[{value:`k`}],model:[{value:`k`,label:`k`}],rule:`a value with no label draws its value, so an item is never blank by omission`},{input:[{value:7,label:42}],model:[{value:`7`,label:`42`}],rule:`both halves are stringified: the model is a string list on GTK, and a number that stayed a number would fail an === against the attribute it round-trips through`},{input:[{value:``,label:`blank`}],model:[{value:``,label:`blank`}],rule:`an EMPTY value is a value — it is not missing, so the label does not stand in for it`},{input:[],model:[],rule:`the empty model normalises to the empty model, which is the state a placeholder is drawn from`},{input:listSource(stringItem(`Cyan`),stringItem(`Magenta`)),model:[{value:`Cyan`,label:`Cyan`},{value:`Magenta`,label:`Magenta`}],rule:"a model of `Gtk.StringObject`s reads as its strings — the same model an array of those strings makes"},{input:listSource(),model:[],rule:`an EMPTY model is the empty model, not a model the normaliser declines to read`},{input:listSource({value:`a`,label:`One`}),model:[{value:`a`,label:`One`}],rule:`an item that is no string object meets the descriptor rule, the one an array entry meets`},{input:listSource({}),model:[{value:``,label:``}],rule:"an item with neither half is the empty descriptor `{}` already is — drawing it would need `expression`, which ADR 0122 leaves out"}];function listModelForInput(t){return Array.isArray(t)?e.new(t):t}const r=[{attribute:`["a","b"]`,model:[{value:`a`,label:`a`},{value:`b`,label:`b`}],rule:`the string-array form, which is what markup writes in the common case`},{attribute:`[{"value":"a","label":"A"}]`,model:[{value:`a`,label:`A`}],rule:`the descriptor form`},{attribute:`[not json`,model:[],rule:`unparseable JSON is an author slip and yields the empty model — it must not stop the element upgrading`},{attribute:`{"a":1}`,model:[],rule:"well-formed JSON that is not an ARRAY is the second, different slip, and it answers the same way rather than throwing on `.map`"},{attribute:``,model:[],rule:`an empty attribute is an empty model, not a parse attempt`}],i={value:`a`,label:`A`},a={value:`b`,label:`B`},o={value:`c`,label:`C`},s=[i,a,o],c=[{previous:[],next:s,change:{position:0,removed:0,added:3},survivors:0,rule:`the first assignment adds everything at 0 — there is nothing to carry over`},{previous:s,next:[...s,{value:`d`,label:`D`}],change:{position:3,removed:0,added:1},survivors:3,rule:`an APPEND touches one position: three views stand, and this is the row a rebuild fails while the model still reads correct`},{previous:s,next:[{value:`z`,label:`Z`},...s],change:{position:0,removed:0,added:1},survivors:3,rule:`a PREPEND is one insertion at 0, not a shift of everything after it — positions move, nodes do not`},{previous:s,next:[i,o],change:{position:1,removed:1,added:0},survivors:2,rule:`a removal from the middle: the shared suffix is what keeps it one item wide`},{previous:s,next:[i,{value:`b`,label:`Renamed`},o],change:{position:1,removed:1,added:1},survivors:2,rule:"a RELABELLED item at an unchanged value is inside the range — comparing by value alone would leave the old text on screen, which is what `selection_item_changed` exists for upstream"},{previous:s,next:s,change:null,survivors:3,rule:`an equal model emits NOTHING, as GTK does — a renderer that rebuilt here would discard three live views for no change at all`},{previous:s,next:[{value:`a`,label:`A`},{value:`b`,label:`B`},{value:`c`,label:`C`}],change:null,survivors:3,rule:`equality is STRUCTURAL, not by array identity: a caller that rebuilds its array every render must not force a rebuild here`},{previous:s,next:[],change:{position:0,removed:3,added:0},survivors:0,rule:`emptying the model removes everything from 0`},{previous:s,next:[o,a,i],change:{position:0,removed:3,added:3},survivors:0,rule:"a REVERSAL is the whole span: `items-changed` has no vocabulary for a move, and neither does `g_list_store_move`, which reports one the same way"}],l=[{initial:[i,a],source:`options`,op:`append`,model:[i,a],itemsChanged:null,survivors:2,rule:`the options read back out of a model are a COPY — pushing onto them moves nothing, because the list holds items and not that array`},{initial:[i,a],source:`options`,op:`relabel-first`,model:[i,a],itemsChanged:null,survivors:2,rule:`and the copy is per ITEM: relabelling a descriptor read back leaves the item it came from alone, so no text moves without an emission`},{initial:[i,a],source:`input`,op:`append`,model:[i,a],itemsChanged:null,survivors:2,rule:`the OTHER array a caller holds — the one they authored and handed over. The list read it once; pushing onto it afterwards reaches nothing`},{initial:[i,a],source:`input`,op:`relabel-first`,model:[i,a],itemsChanged:null,survivors:2,rule:`the same per-item copy on the way IN, which is the door a constructor that stored the caller descriptors would leave open`},{initial:[i,a],source:`model`,op:`append`,model:[i,a,{value:`z`,label:`Z`}],itemsChanged:{position:2,removed:0,added:1},survivors:2,rule:`appending THROUGH the model is one insertion at the end — the only door that moves the list, and it emits the splice for it`},{initial:[i,a],source:`model`,op:`relabel-first`,model:[{value:`a`,label:`Renamed`},a],itemsChanged:{position:0,removed:1,added:1},survivors:1,rule:`relabelling is a REPLACEMENT of the item, because an item is immutable: one out, one in, at the position that changed`},{initial:[i,a,o],source:`model`,op:`remove-first`,model:[a,o],itemsChanged:{position:0,removed:1,added:0},survivors:2,rule:`the shrink direction, where the two survivors are the point: a renderer that rebuilt would report none`}];function applyListReadback(e,t){if(t===`append`)e.push({value:`z`,label:`Z`});else if(t===`relabel-first`){let t=e[0];t&&(t.label=`Renamed`)}else e.shift();return e}function applyListMutation(e,t){t===`append`?e.append({value:`z`,label:`Z`}):t===`relabel-first`?e.splice(0,1,[{value:`a`,label:`Renamed`}]):e.remove(0)}const u=[{change:{kind:`attached`,id:`C`,position:2,previousPosition:-1},itemsChanged:{position:2,removed:0,added:1},before:[`A`,`B`],after:[`A`,`B`,`C`],rule:"attached is one addition at the new position; `previousPosition` is -1 because the page had none"},{change:{kind:`detached`,id:`B`,position:1,previousPosition:1},itemsChanged:{position:1,removed:1,added:0},before:[`A`,`B`,`C`],after:[`A`,`C`],rule:`detached is one removal at the position it was removed FROM`},{change:{kind:`updated`,id:`B`,position:1,previousPosition:1},itemsChanged:{position:1,removed:1,added:1},before:[`A`,`B`,`C`],after:[`A`,`B`,`C`],rule:'a per-page notify is removed-1/added-1 at that position — `GListModel` has no other verb for "this item is different now" — and it moves nothing'},{change:{kind:`reordered`,id:`D`,position:1,previousPosition:3},itemsChanged:{position:1,removed:3,added:3},before:[`A`,`B`,`C`,`D`],after:[`A`,`D`,`B`,`C`],rule:`a move BACKWARDS is the span between the two positions, re-added in the new order`},{change:{kind:`reordered`,id:`A`,position:2,previousPosition:0},itemsChanged:{position:0,removed:3,added:3},before:[`A`,`B`,`C`,`D`],after:[`B`,`C`,`A`,`D`],rule:`a move FORWARDS spans the same way — the position is the LOWER of the two, so the range covers both ends`},{change:{kind:`pinned`,id:`C`,position:0,previousPosition:2},itemsChanged:{position:0,removed:3,added:3},before:[`A`,`B`,`C`],after:[`C`,`A`,`B`],rule:`pinning is a flip AND a re-order, so it reports as the move it is rather than as an update in place`}];function replayTabPagesAsSplices(e,n){let r=[...e];for(let e of n){let{position:n,removed:i,added:a}=t(e),o=r.splice(n,i);if(a===0)continue;if(e.kind===`attached`){r.splice(n,0,e.id);continue}if(e.kind===`updated`){r.splice(n,0,...o);continue}let s=o.filter(t=>t!==e.id);s.splice(e.position-n,0,e.id),r.splice(n,0,...s)}return r}export{c as LIST_ITEMS_CHANGED_VECTORS,l as LIST_MODEL_OWNERSHIP_VECTORS,n as LIST_NORMALIZE_VECTORS,r as LIST_PARSE_VECTORS,u as TAB_PAGES_ITEMS_CHANGED_VECTORS,applyListMutation,applyListReadback,listModelForInput,replayTabPagesAsSplices};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[{label:`One`,value:`a`},{label:`Two`,value:`b`}],t=[{name:`programmatic index set`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:"a changed position reaches the selection, whose notify becomes `notify::selected` (:788 → :154)"},{name:`setting the index already held`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`the setter returns before touching the selection when the position holds (:785-786) — no notify`},{name:`the chooser pick`,steps:[{op:`setModel`,model:e},{op:`select`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!0}],rule:"the popup routes its position through the SAME setter (:209); only the `interactive` tag differs, and that tag is ours"},{name:`picking the option already selected`,steps:[{op:`setModel`,model:e},{op:`select`,index:0}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`the same-position guard (:785-786) applies to the user path too — reopening and re-picking notifies nothing`},{name:`a dismissed chooser`,steps:[{op:`setModel`,model:e},{op:`select`,index:-1}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`no C equivalent: a dismissed native sheet resolves to the cancel label, so the renderer looks up -1 — the guard is the substitution's`},{name:`select by value`,steps:[{op:`setModel`,model:e},{op:`setSelectedValue`,value:`b`}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`a value maps to the FIRST option carrying it; the port addition over the C, whose model is positional`},{name:`select by an unknown value`,steps:[{op:`setModel`,model:e},{op:`setSelectedValue`,value:`zzz`}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`an unknown value is a no-op, never a reset to 0 — a mistyped binding must not silently move the selection`},{name:`the model is replaced at the same index`,steps:[{op:`setModel`,model:[{label:`First`,value:`a`}]},{op:`setModel`,model:[{label:`Renamed`,value:`a`}]}],selected:0,value:`a`,label:`Renamed`,emitted:[{selected:0,value:`a`,label:`First`,interactive:!1},{selected:0,value:`a`,label:`Renamed`,interactive:!1}],rule:"the index did not move but the ITEM did — `selection_item_changed` (:157-185) repaints off the item, not the position"},{name:`the model shrinks past the selection`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:[{label:`Only`,value:`a`}]}],selected:0,value:`a`,label:`Only`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:0,value:`a`,label:`Only`,interactive:!1}],rule:`a selection past the end of the new model falls back to 0 — GtkSingleSelection autoselects upstream, whose C is not vendored here, so this row is the ports' shared answer`},{name:`an index past the end`,steps:[{op:`setModel`,model:[{label:`Only`,value:`a`}]},{op:`setSelectedIndex`,index:5}],selected:5,value:``,label:``,emitted:[{selected:0,value:`a`,label:`Only`,interactive:!1},{selected:5,value:``,label:``,interactive:!1}],rule:`the index is NOT clamped (the C takes any guint); the empty value/label is how "nothing to draw" is expressed here`},{name:`an empty model`,steps:[{op:`setModel`,model:[]}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],rule:`GTK_INVALID_LIST_POSITION (:593-596, :809-810) — an empty model has no index 0 to autoselect`},{name:`picking from an empty model`,steps:[{op:`setModel`,model:[]},{op:`select`,index:0}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],rule:`there is no option 0 to pick — and the renderers never open a chooser over an empty model either`},{name:`emptying a model that had a selection`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:[]}],selected:-1,value:``,label:``,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1}],rule:`the selection does NOT survive as index 0 — there is nothing at 0 any more`},{name:`a model that is emptied and refilled`,steps:[{op:`setModel`,model:e},{op:`setModel`,model:[]},{op:`setModel`,model:e}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1},{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`autoselect runs again, so the sentinel recovers to 0 — it is BELOW the range, which a one-sided >= length check leaves in place`},{name:`a model with an empty first label is still a selection`,steps:[{op:`setModel`,model:[{label:``,value:`blank`}]}],selected:0,value:`blank`,label:``,emitted:[{selected:0,value:`blank`,label:``,interactive:!1}],rule:`the case the sentinel exists to separate: an empty LABEL, not an empty model`}],n=[{count:0,presentsChooser:!1,rule:`an empty model is not a chooser`},{count:1,presentsChooser:!1,rule:`ONE option is not a choice — the arrow goes and the row goes inert`},{count:2,presentsChooser:!0,rule:`two is the smallest real choice — the predicate is > 1, not >= 1`},{count:5,presentsChooser:!0,rule:`and anything above it`}],r=[{names:[`list`,`grid`,`columns`],activeName:`grid`,kept:3,index:1,active:1,rule:`selects the toggle carrying the name`},{names:[`list`,`grid`,`columns`],activeName:`columns`,kept:3,index:2,active:2,rule:`the last toggle is reachable — the name is applied after every toggle is in`},{names:[`list`,`grid`,`list`],activeName:`list`,kept:2,index:0,active:0,rule:`a name already taken is refused WITH its toggle — the group keeps two, and the name means the first`},{names:[null,`grid`],activeName:`grid`,kept:2,index:1,active:1,rule:`an unnamed toggle is kept and takes no part in the lookup`},{names:[`list`,`grid`],activeName:`missing`,kept:2,index:-1,active:0,rule:`a name no toggle carries changes nothing — the first toggle, which add made active, stays`}];export{n as COMBO_CHOOSER_VECTORS,t as COMBO_SELECTION_VECTORS,r as TOGGLE_ACTIVE_NAME_VECTORS};
|
|
1
|
+
const e=[{label:`One`,value:`a`},{label:`Two`,value:`b`}],t=[`selected`,`selected-item`,`model`],n=[`selected`,`selected-item`],r=[{name:`programmatic index set`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],notified:[...t,...n],rule:"a changed position reaches the selection, whose notify becomes `notify::selected` (:788 → :154)"},{name:`setting the index already held`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],notified:[...t,...n],rule:`the setter returns before touching the selection when the position holds (:785-786) — no notify`},{name:`the chooser pick`,steps:[{op:`setModel`,model:e},{op:`select`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!0}],notified:[...t,...n],rule:"the popup routes its position through the SAME setter (:209); only the `interactive` tag differs, and that tag is ours"},{name:`picking the option already selected`,steps:[{op:`setModel`,model:e},{op:`select`,index:0}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],notified:t,rule:`the same-position guard (:785-786) applies to the user path too — reopening and re-picking notifies nothing`},{name:`a dismissed chooser`,steps:[{op:`setModel`,model:e},{op:`select`,index:-1}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],notified:t,rule:`no C equivalent: a dismissed native sheet resolves to the cancel label, so the renderer looks up -1 — the guard is the substitution's`},{name:`select by value`,steps:[{op:`setModel`,model:e},{op:`setSelectedValue`,value:`b`}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],notified:[...t,...n],rule:`a value maps to the FIRST option carrying it; the port addition over the C, whose model is positional`},{name:`select by an unknown value`,steps:[{op:`setModel`,model:e},{op:`setSelectedValue`,value:`zzz`}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],notified:t,rule:`an unknown value is a no-op, never a reset to 0 — a mistyped binding must not silently move the selection`},{name:`the model is replaced at the same index`,steps:[{op:`setModel`,model:[{label:`First`,value:`a`}]},{op:`setModel`,model:[{label:`Renamed`,value:`a`}]}],selected:0,value:`a`,label:`Renamed`,emitted:[{selected:0,value:`a`,label:`First`,interactive:!1},{selected:0,value:`a`,label:`Renamed`,interactive:!1}],notified:[...t,...t],rule:"the index did not move but the ITEM did — `selection_item_changed` (:157-185) repaints off the item, not the position"},{name:`the model shrinks past the selection`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:[{label:`Only`,value:`a`}]}],selected:0,value:`a`,label:`Only`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:0,value:`a`,label:`Only`,interactive:!1}],notified:[...t,...n,...t],rule:`a selection the new model does not have cannot survive — and the row below says it would not have survived even if it did`},{name:`a new model with an equal shape`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:e}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:0,value:`a`,label:`One`,interactive:!1}],notified:[...t,...n,...t],rule:`a model write RESETS the selection to 0, it does not clamp it: index 1 exists in the new model and is given up anyway (measured — GtkSingleSelection autoselects over the model it was just handed, having no memory of the one before it)`},{name:`assigning the model already held`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModelAgain`}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],notified:[...t,...n],rule:"the row above by identity rather than by contents — `model` holds an OBJECT now (ADR 0122 § 4), so assigning the one already held is the no-op `g_object_set` makes it, and the selection survives what an equal-but-distinct model resets"},{name:`an index past the end`,steps:[{op:`setModel`,model:[{label:`Only`,value:`a`}]},{op:`setSelectedIndex`,index:5}],selected:0,value:`a`,label:`Only`,emitted:[{selected:0,value:`a`,label:`Only`,interactive:!1}],notified:t,rule:`an index the model does not have is IGNORED — silently, with no notify and no error, on both widgets (measured; see the module header for the per-renderer answers this replaced)`},{name:`an empty model`,steps:[{op:`setModel`,model:[]}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],notified:t,rule:`GTK_INVALID_LIST_POSITION (:593-596, :809-810) — an empty model has no index 0 to autoselect, and still notifies all three`},{name:`picking from an empty model`,steps:[{op:`setModel`,model:[]},{op:`select`,index:0}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],notified:t,rule:`there is no option 0 to pick — and the renderers never open a chooser over an empty model either`},{name:`emptying a model that had a selection`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:[]}],selected:-1,value:``,label:``,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1}],notified:[...t,...n,...t],rule:"the selection does NOT survive as index 0 — there is nothing at 0 any more. An EMPTY model still notifies all three, because the write is what notifies and not the outcome; only `model = null` notifies `model` alone"},{name:`a model that is emptied and refilled`,steps:[{op:`setModel`,model:e},{op:`setModel`,model:[]},{op:`setModel`,model:e}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1},{selected:0,value:`a`,label:`One`,interactive:!1}],notified:[...t,...t,...t],rule:`autoselect runs again, so the sentinel recovers to 0 — it is BELOW the range, which a one-sided >= length check leaves in place`},{name:`a model with an empty first label is still a selection`,steps:[{op:`setModel`,model:[{label:``,value:`blank`}]}],selected:0,value:`blank`,label:``,emitted:[{selected:0,value:`blank`,label:``,interactive:!1}],notified:t,rule:`the case the sentinel exists to separate: an empty LABEL, not an empty model`}],i=[{label:`One`,value:`a`},{label:`Two`,value:`b`},{label:`Three`,value:`c`}],a=[{name:`a change entirely after the selection`,initial:i,selected:0,splice:{position:2,removed:1,added:[{label:`Gamma`,value:`g`}]},result:0,value:`a`,notified:[],rule:`the selected item neither moved nor changed — GTK emits nothing, and a widget that re-emitted here would re-run every binding on every append`},{name:`a change entirely before the selection`,initial:i,selected:2,splice:{position:0,removed:0,added:[{label:`Zero`,value:`z`}]},result:3,value:`c`,notified:[`selected`],rule:"the index shifts by `added - removed` so it keeps addressing the SAME item — `selected-item` is therefore silent, which is what distinguishes this from every other row"},{name:`the selected item is replaced in place`,initial:i,selected:1,splice:{position:1,removed:1,added:[{label:`Beta`,value:`beta`}]},result:1,value:`beta`,notified:[`selected-item`],rule:"the mirror image: the position held and the item did not, so `selected-item` notifies alone — a widget keyed on `notify::selected` alone draws the old label here"},{name:`the selected item is removed`,initial:i,selected:2,splice:{position:2,removed:1,added:[]},result:1,value:`b`,notified:[`selected-item`,`selected`],rule:"the selection clamps to `min(position, n_items - 1)`, and BOTH notify — `selected-item` first"},{name:`every item is removed`,initial:i,selected:0,splice:{position:0,removed:3,added:[]},result:-1,value:``,notified:[`selected-item`,`selected`],rule:`an emptied model has no position to clamp onto, so the clamp lands on the sentinel — same two notifies, same order`},{name:`the first item arrives in an empty model`,initial:[],selected:-1,splice:{position:0,removed:0,added:[{label:`One`,value:`a`}]},result:0,value:`a`,notified:[`selected-item`,`selected`],rule:`autoselect takes 0 the moment there is a 0 — the sentinel is a state a growing model recovers from, not one it stays in`}],o=[{count:0,presentsChooser:!1,rule:`an empty model is not a chooser`},{count:1,presentsChooser:!1,rule:`ONE option is not a choice — the arrow goes and the row goes inert`},{count:2,presentsChooser:!0,rule:`two is the smallest real choice — the predicate is > 1, not >= 1`},{count:5,presentsChooser:!0,rule:`and anything above it`}],s=[{names:[`list`,`grid`,`columns`],activeName:`grid`,kept:3,index:1,active:1,rule:`selects the toggle carrying the name`},{names:[`list`,`grid`,`columns`],activeName:`columns`,kept:3,index:2,active:2,rule:`the last toggle is reachable — the name is applied after every toggle is in`},{names:[`list`,`grid`,`list`],activeName:`list`,kept:2,index:0,active:0,rule:`a name already taken is refused WITH its toggle — the group keeps two, and the name means the first`},{names:[null,`grid`],activeName:`grid`,kept:2,index:1,active:1,rule:`an unnamed toggle is kept and takes no part in the lookup`},{names:[`list`,`grid`],activeName:`missing`,kept:2,index:-1,active:0,rule:`a name no toggle carries changes nothing — the first toggle, which add made active, stays`}];export{o as COMBO_CHOOSER_VECTORS,a as COMBO_ITEMS_CHANGED_VECTORS,r as COMBO_SELECTION_VECTORS,s as TOGGLE_ACTIVE_NAME_VECTORS};
|
package/lib/esm/gobject.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{registerGObjectEngine as e,registeredEngine as t}from"./engine.js";var UnsupportedGObjectError=class extends Error{constructor(e,t){super(t),this.name=`UnsupportedGObjectError`,this.feature=e}};const n=new WeakSet;function makeType(e){let t=Object.freeze({name:e});return n.add(t),t}const r=makeType(`gchararray`),i=makeType(`gboolean`),a=makeType(`gint`),o=makeType(`guint`),s=makeType(`gdouble`),c=new WeakMap;var Value=class{init(e){if(e!==r)throw new UnsupportedGObjectError(`GObject.Value of ${describeType(e)}`,`GObject.Value holds only TYPE_STRING in this subset (ADR 0096 Amendment 2); '${describeType(e)}' is not supported`);return c.set(this,{type:e,string:null}),this}set_string(e){let t=c.get(this);if(e!==null&&typeof e!=`string`)throw TypeError(`Expected type string for argument 'v_string' but got type ${typeof e}`);t&&(t.string=e)}get_string(){return c.get(this)?.string??null}};function readValue(e){let t=typeof e==`object`&&e?c.get(e):void 0;return t?{...t}:null}const l=[r,i,a,o,s],u={READABLE:1,WRITABLE:2,READWRITE:3,CONSTRUCT:4,CONSTRUCT_ONLY:8};var d=class ParamSpec{constructor(e,t,n,r,i,a,o,s){this.kind=e,this.name=t,this.nick=n,this.blurb=r,this.flags=i,this.defaultValue=a,this.minimum=o,this.maximum=s}static boolean(e,t,n,r,i){return new ParamSpec(`boolean`,e,t,n,r,i)}static string(e,t,n,r,i){return new ParamSpec(`string`,e,t,n,r,i)}static int(e,t,n,r,i,a,o){return new ParamSpec(`int`,e,t,n,r,o,i,a)}static uint(e,t,n,r,i,a,o){return new ParamSpec(`uint`,e,t,n,r,o,i,a)}static double(e,t,n,r,i,a,o){return new ParamSpec(`double`,e,t,n,r,o,i,a)}get_default_value(){return this.defaultValue}};const f={GTypeName:Symbol(`GType name`),GTypeFlags:Symbol(`GType flags`),interfaces:Symbol(`GType interfaces`),properties:Symbol(`GObject properties`),signals:Symbol(`GObject signals`),requires:Symbol(`GObject interface requires`),template:Symbol(`GTK widget template`),cssName:Symbol(`GTK widget CSS name`),children:Symbol(`GTK widget template children`),internalChildren:Symbol(`GTK widget template internal children`)},p={GTypeName:f.GTypeName,Template:f.template,InternalChildren:f.internalChildren,Properties:f.properties,Signals:f.signals,CssName:f.cssName},m={Children:f.children,Implements:f.interfaces,Requires:f.requires,GTypeFlags:f.GTypeFlags},h=new WeakMap;function registeredClassOf(e){return h.get(e)}function chainOf(e){let t=[];for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n)){let e=h.get(n);e&&t.push(e)}return t}function chainOfInstance(e){return chainOf(e.constructor)}function typeNameOf(e,t){return t[0]?.typeName??e.constructor.name}function aliasesOf(e){return[e,e.replace(/-/g,`_`),e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]}function findProperty(e,t){for(let n of e)for(let e of n.properties)if(aliasesOf(e.name).includes(t))return e}function findSignal(e,t){for(let n of e)if(Object.prototype.hasOwnProperty.call(n.signals,t))return n.signals[t]}function parseSignal(e){let t=e.indexOf(`::`);return t===-1?{name:e}:{name:e.slice(0,t),detail:e.slice(t+2)}}const g=new WeakMap;function stateOf(e){let t=g.get(e);return t||(t={values:new Map,handlers:new Map,connections:new Map,emissions:[]},g.set(e,t)),t}function runHandlers(e,t,n){let r=stateOf(e),i={key:t,stopped:!1};r.emissions.push(i);try{for(let{id:a,handler:o}of(r.handlers.get(t)??[]).slice()){if(i.stopped)break;r.connections.has(a)&&o(e,...n)}}finally{r.emissions.pop()}}const _={name:`pure-js`,supportsForeignParentClasses:!1,registerForeignClass(e,t){throw TypeError(`The pure-JS GObject engine cannot register '${t.GTypeName}' (${e.name??`anonymous`}) over a foreign parent class: there is no GType to register it as. Check supportsForeignParentClasses before calling — a caller that reaches this is one that would otherwise have fallen back silently, which is what ADR 0105 refuses.`)},register(){},getValue(e,t){let{values:n}=stateOf(e);return n.has(t.name)||n.set(t.name,t.get_default_value()),n.get(t.name)},setValue(e,t,n){let{values:r}=stateOf(e),i=n!==r.get(t.name);return r.set(t.name,n),i},addHandler(e,t,n,r){let i=stateOf(e),a=i.handlers.get(n)??[];a.push({id:t,handler:r}),i.handlers.set(n,a),i.connections.set(t,()=>{a.splice(a.findIndex(e=>e.id===t),1)})},removeHandler(e,t){let n=stateOf(e),r=n.connections.get(t);return r?(n.connections.delete(t),r(),!0):!1},emit(e,t,n){runHandlers(e,t,n)},notify(e,t){runHandlers(e,`notify::${t.name}`,[t])},stopEmission(e,t){let{emissions:n}=stateOf(e);for(let e=n.length-1;e>=0;e--){let r=n[e];if(r.key===t&&!r.stopped)return r.stopped=!0,!0}return!1},bind(e,t,n,r,i){return bindProperties(e,t,n,r,i)}};function usePureJsGObjectEngine(){return e(_),_}const v=new WeakMap;function engineOf(e){let t=v.get(e);return t||(t=chainOfInstance(e)[0]?.engine??_,v.set(e,t)),t}let y=0;const b=new WeakMap,x=Symbol.for(`@gjsify/adwaita-core/stop-emission`);function isStoppable(e){return typeof e[x]==`function`}function stopEmissionByName(e,t){if(typeof e!=`object`||!e)throw TypeError(`GObject.signal_stop_emission_by_name: not a GObject instance`);if(isStoppable(e)){e[x](t);return}let n=chainOfInstance(e),r=typeNameOf(e,n),{name:i,detail:a}=parseSignal(t),o;if(i===`notify`&&a!==void 0){let e=findProperty(n,a);e&&(o=`notify::${e.name}`)}else a===void 0&&findSignal(n,i)&&(o=i);if(o===void 0){if(!n[0])throw new UnsupportedGObjectError(`signal_stop_emission_by_name`,`'${t}' on '${r}' is not a signal of a registered class; only those can be stopped.`);console.warn(`signal '${t}' is invalid for instance of type '${r}'`);return}engineOf(e).stopEmission(e,o)||console.warn(`no emission of signal "${t}" to stop for instance of type '${r}'`)}function connectInstance(e,t,n){let r=chainOfInstance(e),i=typeNameOf(e,r),{name:a,detail:o}=parseSignal(t),own=t=>{let r=++y;return engineOf(e).addHandler(e,r,t,n),r},foreign=()=>{let a=r[0]?.door;if(!a)throw Error(`No signal '${t}' on object '${i}'`);let o=++y,s=a.listen(e,t,n),c=b.get(e);return c||b.set(e,c=new Map),c.set(o,s),o};if(a===`notify`){if(o===void 0)throw new UnsupportedGObjectError(`connect("notify")`,`connect('notify') without a property is outside the GObject subset; connect 'notify::<property>' on '${i}'.`);let e=findProperty(r,o);return e?own(`notify::${e.name}`):foreign()}if(findSignal(r,a)){if(o!==void 0)throw Error(`Signal '${a}' on object '${i}' has no detail`);return own(a)}return foreign()}function disconnectInstance(e,t){let n=b.get(e)?.get(t);if(n){b.get(e).delete(t),n();return}if(!engineOf(e).removeHandler(e,t))throw Error(`No handler with id ${t} is connected to ${String(e)}`)}function emitInstance(e,t,...n){let r=chainOfInstance(e),i=typeNameOf(e,r),a=findSignal(r,t);if(a){if(n.length!==a.length)throw Error(`Signal '${t}' on ${i} requires ${a.length} args got ${n.length}`);engineOf(e).emit(e,t,n);return}let o=r[0]?.door;if(!o)throw Error(`No signal '${t}' on object '${i}'`);o.dispatch(e,t,n)}function notifyInstance(e,t){let n=chainOfInstance(e),r=findProperty(n,t);if(r){engineOf(e).notify(e,r);return}let i=n[0]?.door;if(!i)throw Error(`No property ${t} on ${typeNameOf(e,n)}`);i.dispatch(e,`notify::${t}`,[])}function generateAccessors(e,t){let{name:n,flags:r}=e,i=r&u.READABLE,a=r&u.WRITABLE,o=t??{configurable:!0,enumerable:!0};return i&&a?!o.get&&!o.set?(o.get=function(){return engineOf(this).getValue(this,e)},o.set=function(t){engineOf(this).setValue(this,e,t)&&this.notify(n)}):o.get?o.set||=function(){throw Error(`getter defined without setter for property ${n}`)}:o.get=function(){throw Error(`setter defined without getter for property ${n}`)}:i&&!o.get?o.get=function(){throw Error(`missing getter for read-only property ${n}`)}:a&&!o.set&&(o.set=function(){throw Error(`missing setter for write-only property ${n}`)}),o}function checkAccessors(e,t){let{name:n,flags:r}=t;if(r&u.CONSTRUCT_ONLY)return;let[,i,a]=aliasesOf(n),own=t=>Object.getOwnPropertyDescriptor(e,t),o=own(n),s=o,c=n.includes(`-`),l,d;c&&(l=own(i),d=own(a),o??=l,o??=d);let f=r&u.READABLE,p=r&u.WRITABLE;(!o||f&&!o.get||p&&!o.set)&&(o=generateAccessors(t,o)),s||Object.defineProperty(e,n,o),c&&(l||Object.defineProperty(e,i,o),d||Object.defineProperty(e,a,o))}function defineConstructOnly(e,t,n){let r=engineOf(e);r.setValue(e,t,n);for(let n of new Set(aliasesOf(t.name)))Object.defineProperty(e,n,{get:()=>r.getValue(e,t),enumerable:!0,configurable:!0})}function bindProperties(e,t,n,r,i=[]){let a=i.includes(`invert-boolean`),o=!1,transfer=(e,t,n,r)=>()=>{if(!o){o=!0;try{let i=e[t];n[r]=a?!i:i}finally{o=!1}}},s=transfer(e,t,n,r),c=[[e,e.connect(`notify::${t}`,s)]];if(i.includes(`bidirectional`)){let i=transfer(n,r,e,t);c.push([n,n.connect(`notify::${r}`,i)])}return i.includes(`sync-create`)&&s(),{unbind(){for(let[e,t]of c.splice(0))e.disconnect(t)}}}function createClosure(e,t,n,r){let i=r??e;if(n)throw new UnsupportedGObjectError(`swapped`,`Unsupported template signal flag "swapped"`);let a=e[t];if(a===void 0)throw Error(`A handler called ${t} was not defined on ${String(e)}`);return a.bind(i)}function scopeOf(e){let t=engineOf(e);return{instance:e,handler:(t,n)=>createClosure(e,t,n?.flags?.includes(`swapped`)??!1,n?.object),bind:(e,n,r,i,a)=>t.bind(e,n,r,i,a??[])}}function constructRegistered(e,t={}){let n=chainOfInstance(e),r={},i=new Map;for(let[e,a]of Object.entries(t)){let t=findProperty(n,e);t?i.set(t,a):r[e]=a}let a=[];for(let t of[...n].reverse())t.template&&a.push([t,t.door.createFromTree(t.template,scopeOf(e),e)]);for(let t of n)for(let n of t.properties)n.flags&u.CONSTRUCT_ONLY&&defineConstructOnly(e,n,i.has(n)?i.get(n):n.get_default_value());for(let t of[...n].reverse())for(let n of t.properties)n.flags&u.CONSTRUCT&&!(n.flags&u.CONSTRUCT_ONLY)&&(e[n.name]=i.has(n)?i.get(n):n.get_default_value());for(let[t,n]of i)t.flags&(u.CONSTRUCT|u.CONSTRUCT_ONLY)||(e[t.name]=n);for(let[t,n]of a){for(let r of t.internalChildren){let i=n.objects[r];if(i===void 0)throw Error(`Template of ${t.typeName} has no child object '${r}' for InternalChildren`);e[`_${r.replace(/-/g,`_`)}`]=i}t.door.attach(e,n)}return r}const own=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),S=Symbol(`GIR type`),C={"Gio.Application":[`vfunc_startup`,`vfunc_activate`],"GtkSource.GutterRenderer":[`vfunc_query_data`]};function unlockedVfuncsOf(e){let t=new Set;for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n)){let e=own(n,S)?n[S]:void 0;if(typeof e==`string`)for(let n of C[e]??[])t.add(n)}return t}function refusal(e,t,n=``){return new UnsupportedGObjectError(t,`GObject.registerClass: ${e} uses '${t}'${n}, which is outside the GObject subset (ADR 0096 § 2).`)}function describeType(e){return e?.name?.toString()??String(e)}let w=0;function registerWith(e,t,n){let r=n.length===2?n[1]:n[0];if(typeof r!=`function`)throw TypeError(`GObject.registerClass() needs a class`);let i=r,a=i.name||`anonymous class`;if(n.length===2){let e=n[0];for(let t of Object.keys(e))if(!own(p,t))throw refusal(a,t);for(let[t,n]of Object.entries(p))t in e&&(i[n]=e[t])}for(let[e,t]of Object.entries(m))if(own(i,t))throw refusal(a,e);let o=unlockedVfuncsOf(i);for(let e of[i,i.prototype])for(let t of Object.getOwnPropertyNames(e))if(t.startsWith(`vfunc_`)&&typeof Object.getOwnPropertyDescriptor(e,t)?.value==`function`&&!o.has(t))throw refusal(a,t,` (a virtual function override that UNLOCKED_VFUNCS does not list, ADR 0098 § 1a)`);let declared=e=>own(i,e)?i[e]:void 0,s=declared(f.GTypeName),c=String(s??`Gjs_${i.name||`anonymous_${++w}`}`).replace(/[^a-z0-9+_-]/gi,`_`),u=Object.values(declared(f.properties)??{}).map(e=>{if(!(e instanceof d))throw TypeError(`GObject.registerClass: ${a} declares a property that is not a ParamSpec`);return e}),g={};for(let[e,t]of Object.entries(declared(f.signals)??{})){for(let n of Object.keys(t))if(n!==`param_types`)throw refusal(a,`Signals.${e}.${n}`);let n=t.param_types??[];for(let t of n)if(!l.includes(t))throw refusal(a,`Signals.${e}.param_types`,` with the type '${describeType(t)}' (only TYPE_STRING, TYPE_BOOLEAN, TYPE_INT, TYPE_UINT and TYPE_DOUBLE)`);g[e]=n}let _=declared(f.template);if(_!==void 0&&(typeof _!=`object`||!_))throw new UnsupportedGObjectError(`Template`,`GObject.registerClass: ${a} has a Template that is not a '?template' value; a string, URI or bytes stay GJS-only (ADR 0096 § 4).`);let v=makeType(c),y={klass:i,typeName:c,gtype:v,properties:u,signals:g,template:_,internalChildren:declared(f.internalChildren)??[],cssName:declared(f.cssName),door:e,engine:t};Object.defineProperty(i,"$gtype",{get:()=>v,enumerable:!1,configurable:!1});for(let e of u)checkAccessors(i.prototype,e);return installInstanceApi(i.prototype),h.set(i,y),t.register(y),e.register(y.klass,y),y.klass}function registerBaseClass(e,t,n,r=[],i=_){let missing=e=>{throw Error(`No signal '${e}' on object '${t}'`)},a=makeType(t);Object.defineProperty(e,"$gtype",{get:()=>a,enumerable:!1,configurable:!1});for(let t of r)checkAccessors(e.prototype,t);let o={klass:e,typeName:t,gtype:a,properties:r,signals:n,internalChildren:[],engine:i,door:{name:t,dispatch:(e,t)=>missing(t),listen:(e,t)=>missing(t),createFromTree:()=>missing(`template`),attach(){},register(){}}};h.set(e,o),i.register(o)}var GObjectObject=class{constructor(e){let t=constructRegistered(this,e),n=Object.keys(t)[0];if(n!==void 0)throw Error(`No property ${n} on ${typeNameOf(this,chainOfInstance(this))}`)}notify(e){notifyInstance(this,e)}connect(e,t){return connectInstance(this,e,t)}disconnect(e){disconnectInstance(this,e)}emit(e,...t){emitInstance(this,e,...t)}};function installInstanceApi(e){for(let t of[`notify`,`connect`,`disconnect`,`emit`])typeof e[t]!=`function`&&Object.defineProperty(e,t,{value:GObjectObject.prototype[t],writable:!0,configurable:!0,enumerable:!1})}function createGObject(e,t=_){return{engineName:t.name,Object:GObjectObject,registerClass:((...n)=>registerWith(e,t,n)),ParamSpec:d,ParamFlags:u,Value,TYPE_STRING:r,TYPE_BOOLEAN:i,TYPE_INT:a,TYPE_UINT:o,TYPE_DOUBLE:s,GTypeName:f.GTypeName,GTypeFlags:f.GTypeFlags,interfaces:f.interfaces,properties:f.properties,signals:f.signals,requires:f.requires,__gtkTemplate__:f.template,__gtkCssName__:f.cssName,__gtkChildren__:f.children,__gtkInternalChildren__:f.internalChildren,type_ensure(e){if(!n.has(e))throw TypeError(`GObject.type_ensure: not a GType of this GObject`)},signal_stop_emission_by_name:stopEmissionByName}}function gobjectEngineName(){return t()?.name??_.name}export{S as GIR_TYPE,GObjectObject,f as META_SYMBOLS,_ as PURE_JS_ENGINE,u as ParamFlags,d as ParamSpec,x as STOP_EMISSION,i as TYPE_BOOLEAN,s as TYPE_DOUBLE,a as TYPE_INT,r as TYPE_STRING,o as TYPE_UINT,C as UNLOCKED_VFUNCS,UnsupportedGObjectError,Value,bindProperties,connectInstance,constructRegistered,createClosure,createGObject,disconnectInstance,emitInstance,gobjectEngineName,notifyInstance,readValue,registerBaseClass,registeredClassOf,stopEmissionByName,usePureJsGObjectEngine};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{registerGObjectEngine as e,registeredEngine as t}from"./engine.js";var UnsupportedGObjectError=class extends Error{constructor(e,t){super(t),this.name=`UnsupportedGObjectError`,this.feature=e}};const n=new WeakSet;function makeType(e){let t=Object.freeze({name:e});return n.add(t),t}const r=makeType(`gchararray`),i=makeType(`gboolean`),a=makeType(`gint`),o=makeType(`guint`),s=makeType(`gdouble`),c=makeType(`GObject`),l=new WeakSet;function makeInterface(e){let token=function(){throw TypeError(`${e.name} is an interface; it cannot be constructed`)};for(let[t,n]of Object.entries(e))Object.defineProperty(token,t,{value:n,enumerable:!0});return Object.defineProperty(token,Symbol.hasInstance,{value:e=>typeof e==`object`&&!!e&&implementsInterface(e,token)}),l.add(token),Object.freeze(token)}function isInterface(e){return typeof e==`function`&&l.has(e)}const u=makeInterface({name:`Gio.ListModel`,gtype:makeType(`GListModel`),vfuncs:[`vfunc_get_item_type`,`vfunc_get_n_items`,`vfunc_get_item`],methods:{get_item_type:`vfunc_get_item_type`,get_n_items:`vfunc_get_n_items`,get_item:`vfunc_get_item`},emitters:{items_changed:`items-changed`},signals:{"items-changed":[o,o,o]}}),d=[u];function implementsInterface(e,t){for(let n of chainOfInstance(e))if(n.interfaces.includes(t))return!0;return!1}function describeInterface(e){if(isInterface(e))return e.name;let t=e?.name;return typeof t==`string`&&t.length>0?t:String(e)}const f=new WeakMap;var Value=class{init(e){if(e!==r)throw new UnsupportedGObjectError(`GObject.Value of ${describeType(e)}`,`GObject.Value holds only TYPE_STRING in this subset (ADR 0096 Amendment 2); '${describeType(e)}' is not supported`);return f.set(this,{type:e,string:null}),this}set_string(e){let t=f.get(this);if(e!==null&&typeof e!=`string`)throw TypeError(`Expected type string for argument 'v_string' but got type ${typeof e}`);t&&(t.string=e)}get_string(){return f.get(this)?.string??null}};function readValue(e){let t=typeof e==`object`&&e?f.get(e):void 0;return t?{...t}:null}const p=[r,i,a,o,s],m={READABLE:1,WRITABLE:2,READWRITE:3,CONSTRUCT:4,CONSTRUCT_ONLY:8};var h=class ParamSpec{constructor(e,t,n,r,i,a,o,s,c){this.kind=e,this.name=t,this.nick=n,this.blurb=r,this.flags=i,this.defaultValue=a,this.minimum=o,this.maximum=s,this.valueType=c}static boolean(e,t,n,r,i){return new ParamSpec(`boolean`,e,t,n,r,i)}static string(e,t,n,r,i){return new ParamSpec(`string`,e,t,n,r,i)}static int(e,t,n,r,i,a,o){return new ParamSpec(`int`,e,t,n,r,o,i,a)}static uint(e,t,n,r,i,a,o){return new ParamSpec(`uint`,e,t,n,r,o,i,a)}static double(e,t,n,r,i,a,o){return new ParamSpec(`double`,e,t,n,r,o,i,a)}static object(e,t,n,r,i){if(i!==c&&!isInterface(i))throw new UnsupportedGObjectError(`ParamSpec.object`,`GObject.ParamSpec.object('${e}'): the value type '${describeInterface(i)}' is outside the GObject subset; an object property takes TYPE_OBJECT or one interface of the subset (ADR 0122 § 2).`);return new ParamSpec(`object`,e,t,n,r,null,void 0,void 0,i)}get_default_value(){return this.defaultValue}};function valueTypeName(e){return isInterface(e)?e.gtype.name:e.name}function checkPropertyValue(e,t){if(e.kind!==`object`||t===null)return;let n=valueTypeName(e.valueType??c);if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Wrong type ${typeof t}; object ${n} expected`);let r=chainOfInstance(t);if(r.length===0){let e=t.constructor?.name??`Object`;throw TypeError(`Object is not a subclass of GObject_Object, it's a ${e}`)}let i=e.valueType??c;if(isInterface(i)&&!implementsInterface(t,i))throw TypeError(`Object is of type ${r[0].typeName} - cannot convert to ${n}`)}const g={GTypeName:Symbol(`GType name`),GTypeFlags:Symbol(`GType flags`),interfaces:Symbol(`GType interfaces`),properties:Symbol(`GObject properties`),signals:Symbol(`GObject signals`),requires:Symbol(`GObject interface requires`),template:Symbol(`GTK widget template`),cssName:Symbol(`GTK widget CSS name`),children:Symbol(`GTK widget template children`),internalChildren:Symbol(`GTK widget template internal children`)},_={GTypeName:g.GTypeName,Template:g.template,InternalChildren:g.internalChildren,Properties:g.properties,Signals:g.signals,CssName:g.cssName,Implements:g.interfaces},v={Children:g.children,Requires:g.requires,GTypeFlags:g.GTypeFlags},y=new WeakMap;function registeredClassOf(e){return y.get(e)}function chainOf(e){let t=[];for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n)){let e=y.get(n);e&&t.push(e)}return t}function chainOfInstance(e){return chainOf(e.constructor)}function typeNameOf(e,t){return t[0]?.typeName??e.constructor.name}function aliasesOf(e){return[e,e.replace(/-/g,`_`),e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]}function findProperty(e,t){for(let n of e)for(let e of n.properties)if(aliasesOf(e.name).includes(t))return e}function findSignal(e,t){for(let n of e)if(Object.prototype.hasOwnProperty.call(n.signals,t))return n.signals[t]}function parseSignal(e){let t=e.indexOf(`::`);return t===-1?{name:e}:{name:e.slice(0,t),detail:e.slice(t+2)}}const b=new WeakMap;function stateOf(e){let t=b.get(e);return t||(t={values:new Map,handlers:new Map,connections:new Map,emissions:[]},b.set(e,t)),t}function runHandlers(e,t,n){let r=stateOf(e),i={key:t,stopped:!1};r.emissions.push(i);try{for(let{id:a,handler:o}of(r.handlers.get(t)??[]).slice()){if(i.stopped)break;r.connections.has(a)&&o(e,...n)}}finally{r.emissions.pop()}}function refuseForeignInterfaces(e){if(e.Implements!==void 0)throw new UnsupportedGObjectError(`Implements`,`GObject.registerClass: ${e.GTypeName} uses 'Implements' over a foreign parent class, which route D does not have (ADR 0122 § 4): there is no GType of its own to add an interface to. A widget that needs a Gio.ListModel takes one as a property instead of implementing it.`)}const x={name:`pure-js`,supportsForeignParentClasses:!1,registerForeignClass(e,t){throw refuseForeignInterfaces(t),TypeError(`The pure-JS GObject engine cannot register '${t.GTypeName}' (${e.name??`anonymous`}) over a foreign parent class: there is no GType to register it as. Check supportsForeignParentClasses before calling — a caller that reaches this is one that would otherwise have fallen back silently, which is what ADR 0105 refuses.`)},register(){},getValue(e,t){let{values:n}=stateOf(e);return n.has(t.name)||n.set(t.name,t.get_default_value()),n.get(t.name)},setValue(e,t,n){let{values:r}=stateOf(e),i=n!==r.get(t.name);return r.set(t.name,n),i},addHandler(e,t,n,r){let i=stateOf(e),a=i.handlers.get(n)??[];a.push({id:t,handler:r}),i.handlers.set(n,a),i.connections.set(t,()=>{a.splice(a.findIndex(e=>e.id===t),1)})},removeHandler(e,t){let n=stateOf(e),r=n.connections.get(t);return r?(n.connections.delete(t),r(),!0):!1},emit(e,t,n){runHandlers(e,t,n)},notify(e,t){runHandlers(e,`notify::${t.name}`,[t])},stopEmission(e,t){let{emissions:n}=stateOf(e);for(let e=n.length-1;e>=0;e--){let r=n[e];if(r.key===t&&!r.stopped)return r.stopped=!0,!0}return!1},bind(e,t,n,r,i){return bindProperties(e,t,n,r,i)}};function usePureJsGObjectEngine(){return e(x),x}const S=new WeakMap;function engineOf(e){let t=S.get(e);return t||(t=chainOfInstance(e)[0]?.engine??x,S.set(e,t)),t}let C=0;const w=new WeakMap,T=Symbol.for(`@gjsify/adwaita-core/stop-emission`);function isStoppable(e){return typeof e[T]==`function`}function stopEmissionByName(e,t){if(typeof e!=`object`||!e)throw TypeError(`GObject.signal_stop_emission_by_name: not a GObject instance`);if(isStoppable(e)){e[T](t);return}let n=chainOfInstance(e),r=typeNameOf(e,n),{name:i,detail:a}=parseSignal(t),o;if(i===`notify`&&a!==void 0){let e=findProperty(n,a);e&&(o=`notify::${e.name}`)}else a===void 0&&findSignal(n,i)&&(o=i);if(o===void 0){if(!n[0])throw new UnsupportedGObjectError(`signal_stop_emission_by_name`,`'${t}' on '${r}' is not a signal of a registered class; only those can be stopped.`);console.warn(`signal '${t}' is invalid for instance of type '${r}'`);return}engineOf(e).stopEmission(e,o)||console.warn(`no emission of signal "${t}" to stop for instance of type '${r}'`)}function connectInstance(e,t,n){let r=chainOfInstance(e),i=typeNameOf(e,r),{name:a,detail:o}=parseSignal(t),own=t=>{let r=++C;return engineOf(e).addHandler(e,r,t,n),r},foreign=()=>{let a=r[0]?.door;if(!a)throw Error(`No signal '${t}' on object '${i}'`);let o=++C,s=a.listen(e,t,n),c=w.get(e);return c||w.set(e,c=new Map),c.set(o,s),o};if(a===`notify`){if(o===void 0)throw new UnsupportedGObjectError(`connect("notify")`,`connect('notify') without a property is outside the GObject subset; connect 'notify::<property>' on '${i}'.`);let e=findProperty(r,o);return e?own(`notify::${e.name}`):foreign()}if(findSignal(r,a)){if(o!==void 0)throw Error(`Signal '${a}' on object '${i}' has no detail`);return own(a)}return foreign()}function disconnectInstance(e,t){let n=w.get(e)?.get(t);if(n){w.get(e).delete(t),n();return}if(!engineOf(e).removeHandler(e,t))throw Error(`No handler with id ${t} is connected to ${String(e)}`)}function emitInstance(e,t,...n){let r=chainOfInstance(e),i=typeNameOf(e,r),a=findSignal(r,t);if(a){if(n.length!==a.length)throw Error(`Signal '${t}' on ${i} requires ${a.length} args got ${n.length}`);engineOf(e).emit(e,t,n);return}let o=r[0]?.door;if(!o)throw Error(`No signal '${t}' on object '${i}'`);o.dispatch(e,t,n)}function notifyInstance(e,t){let n=chainOfInstance(e),r=findProperty(n,t);if(r){engineOf(e).notify(e,r);return}let i=n[0]?.door;if(!i)throw Error(`No property ${t} on ${typeNameOf(e,n)}`);i.dispatch(e,`notify::${t}`,[])}function generateAccessors(e,t){let{name:n,flags:r}=e,i=r&m.READABLE,a=r&m.WRITABLE,o=t??{configurable:!0,enumerable:!0};return i&&a?!o.get&&!o.set?(o.get=function(){return engineOf(this).getValue(this,e)},o.set=function(t){checkPropertyValue(e,t),engineOf(this).setValue(this,e,t)&&this.notify(n)}):o.get?o.set||=function(){throw Error(`getter defined without setter for property ${n}`)}:o.get=function(){throw Error(`setter defined without getter for property ${n}`)}:i&&!o.get?o.get=function(){throw Error(`missing getter for read-only property ${n}`)}:a&&!o.set&&(o.set=function(){throw Error(`missing setter for write-only property ${n}`)}),o}function checkAccessors(e,t){let{name:n,flags:r}=t;if(r&m.CONSTRUCT_ONLY)return;let[,i,a]=aliasesOf(n),own=t=>Object.getOwnPropertyDescriptor(e,t),o=own(n),s=o,c=n.includes(`-`),l,u;c&&(l=own(i),u=own(a),o??=l,o??=u);let d=r&m.READABLE,f=r&m.WRITABLE;(!o||d&&!o.get||f&&!o.set)&&(o=generateAccessors(t,o)),s||Object.defineProperty(e,n,o),c&&(l||Object.defineProperty(e,i,o),u||Object.defineProperty(e,a,o))}function defineConstructOnly(e,t,n){let r=engineOf(e);checkPropertyValue(t,n),r.setValue(e,t,n);for(let n of new Set(aliasesOf(t.name)))Object.defineProperty(e,n,{get:()=>r.getValue(e,t),enumerable:!0,configurable:!0})}function bindProperties(e,t,n,r,i=[]){let a=i.includes(`invert-boolean`),o=!1,transfer=(e,t,n,r)=>()=>{if(!o){o=!0;try{let i=e[t];n[r]=a?!i:i}finally{o=!1}}},s=transfer(e,t,n,r),c=[[e,e.connect(`notify::${t}`,s)]];if(i.includes(`bidirectional`)){let i=transfer(n,r,e,t);c.push([n,n.connect(`notify::${r}`,i)])}return i.includes(`sync-create`)&&s(),{unbind(){for(let[e,t]of c.splice(0))e.disconnect(t)}}}function createClosure(e,t,n,r){let i=r??e;if(n)throw new UnsupportedGObjectError(`swapped`,`Unsupported template signal flag "swapped"`);let a=e[t];if(a===void 0)throw Error(`A handler called ${t} was not defined on ${String(e)}`);return a.bind(i)}function scopeOf(e){let t=engineOf(e);return{instance:e,handler:(t,n)=>createClosure(e,t,n?.flags?.includes(`swapped`)??!1,n?.object),bind:(e,n,r,i,a)=>t.bind(e,n,r,i,a??[])}}function constructRegistered(e,t={}){let n=chainOfInstance(e),r={},i=new Map;for(let[e,a]of Object.entries(t)){let t=findProperty(n,e);t?i.set(t,a):r[e]=a}let a=[];for(let t of[...n].reverse())t.template&&a.push([t,t.door.createFromTree(t.template,scopeOf(e),e)]);for(let t of n)for(let n of t.properties)n.flags&m.CONSTRUCT_ONLY&&defineConstructOnly(e,n,i.has(n)?i.get(n):n.get_default_value());for(let t of[...n].reverse())for(let n of t.properties)n.flags&m.CONSTRUCT&&!(n.flags&m.CONSTRUCT_ONLY)&&(e[n.name]=i.has(n)?i.get(n):n.get_default_value());for(let[t,n]of i)t.flags&(m.CONSTRUCT|m.CONSTRUCT_ONLY)||(e[t.name]=n);for(let[t,n]of a){for(let r of t.internalChildren){let i=n.objects[r];if(i===void 0)throw Error(`Template of ${t.typeName} has no child object '${r}' for InternalChildren`);e[`_${r.replace(/-/g,`_`)}`]=i}t.door.attach(e,n)}return r}const own=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),E=Symbol(`GIR type`),D={"Gio.Application":[`vfunc_startup`,`vfunc_activate`],"GtkSource.GutterRenderer":[`vfunc_query_data`]};function unlockedVfuncsOf(e){let t=new Set;for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n)){let e=own(n,E)?n[E]:void 0;if(typeof e==`string`)for(let n of D[e]??[])t.add(n)}return t}function refusal(e,t,n=``){return new UnsupportedGObjectError(t,`GObject.registerClass: ${e} uses '${t}'${n}, which is outside the GObject subset (ADR 0096 § 2).`)}function describeType(e){return e?.name?.toString()??String(e)}function readInterfaces(e,t){if(t===void 0)return[];if(!Array.isArray(t))throw refusal(e,`Implements`,` with a value that is not an array of interfaces`);let n=d.map(e=>e.name).join(`, `);return t.map(t=>{if(!d.includes(t))throw refusal(e,`Implements`,` with the interface '${describeInterface(t)}' (only ${n})`);return t})}function requireInterfaceVfuncs(e,t,n){for(let r of n)for(let n of r.vfuncs)if(typeof t[n]!=`function`)throw TypeError(`GObject.registerClass: ${e} implements ${r.name} without defining ${n}; every vfunc of an implemented interface must be defined (ADR 0122 § 2).`)}function installInterfaces(e,t){let define=(t,n)=>{own(e,t)||Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0,enumerable:!1})};for(let e of t){for(let[t,n]of Object.entries(e.methods))define(t,function(...e){return this[n].apply(this,e)});for(let[t,n]of Object.entries(e.emitters)){let r=e.signals[n]?.length??0;define(t,function(...i){if(i.length<r)throw Error(`method ${e.name}.${t}: At least ${r} arguments required, but only ${i.length} passed`);this.emit(n,...i.slice(0,r))})}}}let O=0;function registerWith(e,t,n){let r=n.length===2?n[1]:n[0];if(typeof r!=`function`)throw TypeError(`GObject.registerClass() needs a class`);let i=r,a=i.name||`anonymous class`;if(n.length===2){let e=n[0];for(let t of Object.keys(e))if(!own(_,t))throw refusal(a,t);for(let[t,n]of Object.entries(_))t in e&&(i[n]=e[t])}for(let[e,t]of Object.entries(v))if(own(i,t))throw refusal(a,e);let o=readInterfaces(a,own(i,g.interfaces)?i[g.interfaces]:void 0),s=unlockedVfuncsOf(i);for(let e of o)for(let t of e.vfuncs)s.add(t);for(let e of[i,i.prototype])for(let t of Object.getOwnPropertyNames(e))if(t.startsWith(`vfunc_`)&&typeof Object.getOwnPropertyDescriptor(e,t)?.value==`function`&&!s.has(t))throw refusal(a,t,` (a virtual function override that UNLOCKED_VFUNCS does not list, ADR 0098 § 1a)`);requireInterfaceVfuncs(a,i.prototype,o);let declared=e=>own(i,e)?i[e]:void 0,c=declared(g.GTypeName),l=String(c??`Gjs_${i.name||`anonymous_${++O}`}`).replace(/[^a-z0-9+_-]/gi,`_`),u=Object.values(declared(g.properties)??{}).map(e=>{if(!(e instanceof h))throw TypeError(`GObject.registerClass: ${a} declares a property that is not a ParamSpec`);return e}),d={};for(let e of o)Object.assign(d,e.signals);for(let[e,t]of Object.entries(declared(g.signals)??{})){for(let n of Object.keys(t))if(n!==`param_types`)throw refusal(a,`Signals.${e}.${n}`);let n=t.param_types??[];for(let t of n)if(!p.includes(t))throw refusal(a,`Signals.${e}.param_types`,` with the type '${describeType(t)}' (only TYPE_STRING, TYPE_BOOLEAN, TYPE_INT, TYPE_UINT and TYPE_DOUBLE)`);d[e]=n}let f=declared(g.template);if(f!==void 0&&(typeof f!=`object`||!f))throw new UnsupportedGObjectError(`Template`,`GObject.registerClass: ${a} has a Template that is not a '?template' value; a string, URI or bytes stay GJS-only (ADR 0096 § 4).`);let m=makeType(l),b={klass:i,typeName:l,gtype:m,properties:u,signals:d,interfaces:o,template:f,internalChildren:declared(g.internalChildren)??[],cssName:declared(g.cssName),door:e,engine:t};Object.defineProperty(i,"$gtype",{get:()=>m,enumerable:!1,configurable:!1});for(let e of u)checkAccessors(i.prototype,e);return installInstanceApi(i.prototype),installInterfaces(i.prototype,o),y.set(i,b),t.register(b),e.register(b.klass,b),b.klass}function registerBaseClass(e,t,n,r=[],i=[],a=x){let missing=e=>{throw Error(`No signal '${e}' on object '${t}'`)},o=makeType(t);Object.defineProperty(e,"$gtype",{get:()=>o,enumerable:!1,configurable:!1});let s=readInterfaces(t,i.length>0?i:void 0);requireInterfaceVfuncs(t,e.prototype,s);let c={};for(let e of s)Object.assign(c,e.signals);Object.assign(c,n);for(let t of r)checkAccessors(e.prototype,t);installInterfaces(e.prototype,s);let l={klass:e,typeName:t,gtype:o,properties:r,signals:c,interfaces:s,internalChildren:[],engine:a,door:{name:t,dispatch:(e,t)=>missing(t),listen:(e,t)=>missing(t),createFromTree:()=>missing(`template`),attach(){},register(){}}};y.set(e,l),a.register(l)}var GObjectObject=class{constructor(e){let t=constructRegistered(this,e),n=Object.keys(t)[0];if(n!==void 0)throw Error(`No property ${n} on ${typeNameOf(this,chainOfInstance(this))}`)}notify(e){notifyInstance(this,e)}connect(e,t){return connectInstance(this,e,t)}disconnect(e){disconnectInstance(this,e)}emit(e,...t){emitInstance(this,e,...t)}};function installInstanceApi(e){for(let t of[`notify`,`connect`,`disconnect`,`emit`])typeof e[t]!=`function`&&Object.defineProperty(e,t,{value:GObjectObject.prototype[t],writable:!0,configurable:!0,enumerable:!1})}function createGObject(e,t=x){return{engineName:t.name,Object:GObjectObject,registerClass:((...n)=>registerWith(e,t,n)),ParamSpec:h,ParamFlags:m,Value,TYPE_STRING:r,TYPE_BOOLEAN:i,TYPE_INT:a,TYPE_UINT:o,TYPE_DOUBLE:s,TYPE_OBJECT:c,GTypeName:g.GTypeName,GTypeFlags:g.GTypeFlags,interfaces:g.interfaces,properties:g.properties,signals:g.signals,requires:g.requires,__gtkTemplate__:g.template,__gtkCssName__:g.cssName,__gtkChildren__:g.children,__gtkInternalChildren__:g.internalChildren,type_ensure(e){if(!n.has(e))throw TypeError(`GObject.type_ensure: not a GType of this GObject`)},signal_stop_emission_by_name:stopEmissionByName}}function gobjectEngineName(){return t()?.name??x.name}export{E as GIR_TYPE,GObjectObject,u as ListModel,g as META_SYMBOLS,x as PURE_JS_ENGINE,m as ParamFlags,h as ParamSpec,T as STOP_EMISSION,i as TYPE_BOOLEAN,s as TYPE_DOUBLE,a as TYPE_INT,c as TYPE_OBJECT,r as TYPE_STRING,o as TYPE_UINT,D as UNLOCKED_VFUNCS,UnsupportedGObjectError,Value,bindProperties,checkPropertyValue,connectInstance,constructRegistered,createClosure,createGObject,disconnectInstance,emitInstance,gobjectEngineName,implementsInterface,notifyInstance,readValue,refuseForeignInterfaces,registerBaseClass,registeredClassOf,stopEmissionByName,usePureJsGObjectEngine};
|
package/lib/esm/gtk-platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";const e=1,t=200,n=400,r=600,i=800,a=0,o=Object.freeze({KEY_space:32,KEY_a:97,KEY_d:100,KEY_e:101,KEY_q:113,KEY_s:115,KEY_w:119,KEY_Return:65293,KEY_Escape:65307,KEY_Left:65361,KEY_Up:65362,KEY_Right:65363,KEY_Down:65364}),s={" ":o.KEY_space,Enter:o.KEY_Return,Escape:o.KEY_Escape,ArrowLeft:o.KEY_Left,ArrowUp:o.KEY_Up,ArrowRight:o.KEY_Right,ArrowDown:o.KEY_Down};function keyvalOfKey(e){let t=s[e];if(t!==void 0)return t;let[n]=Array.from(e);if(n===void 0||e.length>2)return 0;let r=n.toLowerCase().codePointAt(0)??0;return r>=32&&r<=255?r:16777216+r}var CssProvider=class{#e=``;#t=null;load_from_string(e){this.#e=String(e),this.#t?.()}to_string(){return this.#e}static bind(e,t){e.#t=t}},StyleBook=class{#e;#t=[];constructor(e){this.#e=e}add(e,t){this.remove(e,!1),this.#t.push({provider:e,priority:t}),CssProvider.bind(e,()=>this.#n()),this.#n()}remove(e,t=!0){let n=this.#t.findIndex(t=>t.provider===e);n<0||(this.#t.splice(n,1),CssProvider.bind(e,null),t&&this.#n())}#n(){let e=this.#t.map((e,t)=>({entry:e,order:t})).sort((e,t)=>e.entry.priority-t.entry.priority||e.order-t.order);this.#e.setStyles(e.map(({entry:e})=>({owner:e.provider,css:e.provider.to_string(),priority:e.priority})))}},GtkSettings=class{#e;#t;constructor(e){this.#e=e}get gtk_font_name(){return this.#t===void 0?this.#e.fontName():this.#t}set gtk_font_name(e){this.#t=e}},IconTheme=class{#e=[`/org/gtk/libgtk/icons/`];#t=!1;#n=0;#r=!1;#i=new Map;#a=1;set_resource_path(e){this.#e=e===null?null:[...e],this.#t&&(this.#t=!1,this.#n++,this.#o())}add_resource_path(e){if(typeof e!=`string`)throw TypeError(`Gtk.IconTheme.add_resource_path: path must not be null`);this.set_resource_path([...this.#e??[],e])}get_resource_path(){return this.#e===null?null:[...this.#e]}connect(e,t){if(e!==`changed`)throw Error(`No signal '${e}' on object 'GtkIconTheme'`);let n=this.#a++;return this.#i.set(n,t),n}disconnect(e){if(!this.#i.delete(e))throw Error(`No handler with id ${e} is connected to ${String(this)}`)}#o(){this.#r||(this.#r=!0,setTimeout(()=>{this.#r=!1;for(let e of Array.from(this.#i.values()))e(this)},0))}static scan(e){return e.#t=!0,e.#n}},EventControllerKey=class{#e=new Map;#t=1;#n=null;connect(e,t){if(e!==`key-pressed`&&e!==`key-released`)throw Error(`No signal '${e}' on object 'GtkEventControllerKey'`);let n=this.#t++;return this.#e.set(n,{signal:e,handler:t}),n}disconnect(e){if(!this.#e.delete(e))throw Error(`No handler with id ${e} is connected to ${String(this)}`)}static attach(e,t){e.#n?.(),e.#n=t}static dispatch(e,t){let n=t.pressed?`key-pressed`:`key-released`,r=keyvalOfKey(t.key),i=!1;for(let{signal:a,handler:o}of Array.from(e.#e.values()))if(a===n&&o(e,r,t.keycode,t.state)===!0){i=!0;break}return i}};function createGtkPlatform(e){let t=new StyleBook(e),n=new GtkSettings(e),r=new IconTheme;return{CssProvider,StyleContext:{add_provider_for_display:(e,n,r)=>t.add(n,r),remove_provider_for_display:(e,n)=>t.remove(n)},Settings:{get_default:()=>n},IconTheme:{get_for_display:()=>r},EventControllerKey,show_uri:(t,n)=>e.openUri(n)}}function widgetControllerMembers(e){return{add_controller(t){EventControllerKey.attach(t,e.listenKeys(this,e=>EventControllerKey.dispatch(t,e)))},remove_controller(e){EventControllerKey.attach(e,null)}}}export{a as CURRENT_TIME,CssProvider,EventControllerKey,o as GDK_KEYS,GtkSettings,IconTheme,r as STYLE_PROVIDER_PRIORITY_APPLICATION,e as STYLE_PROVIDER_PRIORITY_FALLBACK,n as STYLE_PROVIDER_PRIORITY_SETTINGS,t as STYLE_PROVIDER_PRIORITY_THEME,i as STYLE_PROVIDER_PRIORITY_USER,createGtkPlatform,keyvalOfKey,widgetControllerMembers};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";const e=1,t=200,n=400,r=600,i=800,a=0,o=Object.freeze({KEY_space:32,KEY_a:97,KEY_d:100,KEY_e:101,KEY_q:113,KEY_s:115,KEY_w:119,KEY_Return:65293,KEY_Escape:65307,KEY_Left:65361,KEY_Up:65362,KEY_Right:65363,KEY_Down:65364,KEY_Back:269025062}),s={" ":o.KEY_space,Enter:o.KEY_Return,Escape:o.KEY_Escape,ArrowLeft:o.KEY_Left,ArrowUp:o.KEY_Up,ArrowRight:o.KEY_Right,ArrowDown:o.KEY_Down,BrowserBack:o.KEY_Back};function keyvalOfKey(e){let t=s[e];if(t!==void 0)return t;let[n]=Array.from(e);if(n===void 0||e.length>2)return 0;let r=n.toLowerCase().codePointAt(0)??0;return r>=32&&r<=255?r:16777216+r}var CssProvider=class{#e=``;#t=null;load_from_string(e){this.#e=String(e),this.#t?.()}to_string(){return this.#e}static bind(e,t){e.#t=t}},StyleBook=class{#e;#t=[];constructor(e){this.#e=e}add(e,t){this.remove(e,!1),this.#t.push({provider:e,priority:t}),CssProvider.bind(e,()=>this.#n()),this.#n()}remove(e,t=!0){let n=this.#t.findIndex(t=>t.provider===e);n<0||(this.#t.splice(n,1),CssProvider.bind(e,null),t&&this.#n())}#n(){let e=this.#t.map((e,t)=>({entry:e,order:t})).sort((e,t)=>e.entry.priority-t.entry.priority||e.order-t.order);this.#e.setStyles(e.map(({entry:e})=>({owner:e.provider,css:e.provider.to_string(),priority:e.priority})))}},GtkSettings=class{#e;#t;constructor(e){this.#e=e}get gtk_font_name(){return this.#t===void 0?this.#e.fontName():this.#t}set gtk_font_name(e){this.#t=e}},IconTheme=class{#e=[`/org/gtk/libgtk/icons/`];#t=!1;#n=0;#r=!1;#i=new Map;#a=1;set_resource_path(e){this.#e=e===null?null:[...e],this.#t&&(this.#t=!1,this.#n++,this.#o())}add_resource_path(e){if(typeof e!=`string`)throw TypeError(`Gtk.IconTheme.add_resource_path: path must not be null`);this.set_resource_path([...this.#e??[],e])}get_resource_path(){return this.#e===null?null:[...this.#e]}connect(e,t){if(e!==`changed`)throw Error(`No signal '${e}' on object 'GtkIconTheme'`);let n=this.#a++;return this.#i.set(n,t),n}disconnect(e){if(!this.#i.delete(e))throw Error(`No handler with id ${e} is connected to ${String(this)}`)}#o(){this.#r||(this.#r=!0,setTimeout(()=>{this.#r=!1;for(let e of Array.from(this.#i.values()))e(this)},0))}static scan(e){return e.#t=!0,e.#n}},EventControllerKey=class{#e=new Map;#t=1;#n=null;connect(e,t){if(e!==`key-pressed`&&e!==`key-released`)throw Error(`No signal '${e}' on object 'GtkEventControllerKey'`);let n=this.#t++;return this.#e.set(n,{signal:e,handler:t}),n}disconnect(e){if(!this.#e.delete(e))throw Error(`No handler with id ${e} is connected to ${String(this)}`)}static attach(e,t){e.#n?.(),e.#n=t}static dispatch(e,t){let n=t.pressed?`key-pressed`:`key-released`,r=keyvalOfKey(t.key),i=!1;for(let{signal:a,handler:o}of Array.from(e.#e.values()))if(a===n&&o(e,r,t.keycode,t.state)===!0){i=!0;break}return i}};function createGtkPlatform(e){let t=new StyleBook(e),n=new GtkSettings(e),r=new IconTheme;return{CssProvider,StyleContext:{add_provider_for_display:(e,n,r)=>t.add(n,r),remove_provider_for_display:(e,n)=>t.remove(n)},Settings:{get_default:()=>n},IconTheme:{get_for_display:()=>r},EventControllerKey,show_uri:(t,n)=>e.openUri(n)}}const c=new WeakMap,l=new WeakMap;function forget(e){let t=l.get(e);t&&c.get(t)?.delete(e),l.delete(e)}function deliverKeyToControllers(e,t){for(let n of Array.from(c.get(e)??[]))if(EventControllerKey.dispatch(n,t))return!0;return!1}function widgetControllerMembers(e){return{add_controller(t){forget(t),EventControllerKey.attach(t,e.listenKeys(this,e=>EventControllerKey.dispatch(t,e)));let n=c.get(this);n||c.set(this,n=new Set),n.add(t),l.set(t,this)},remove_controller(e){forget(e),EventControllerKey.attach(e,null)}}}export{a as CURRENT_TIME,CssProvider,EventControllerKey,o as GDK_KEYS,GtkSettings,IconTheme,r as STYLE_PROVIDER_PRIORITY_APPLICATION,e as STYLE_PROVIDER_PRIORITY_FALLBACK,n as STYLE_PROVIDER_PRIORITY_SETTINGS,t as STYLE_PROVIDER_PRIORITY_THEME,i as STYLE_PROVIDER_PRIORITY_USER,createGtkPlatform,deliverKeyToControllers,keyvalOfKey,widgetControllerMembers};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{GIR_TYPE as e,GObjectObject as t,ListModel as n,ParamFlags as r,ParamSpec as i,TYPE_OBJECT as a,registerBaseClass as o}from"./gobject.js";import{MAXUINT32 as s}from"./glib-paths.js";const c=4294967295,l=new WeakMap,u=new WeakMap;function requireString(e){if(e==null)throw TypeError(`Argument string may not be null`);if(typeof e!=`string`)throw TypeError(`Expected type string for argument 'string' but got type ${typeof e}`);return e}function readStrv(e){let t=[];for(let n of e??[]){if(n==null)break;if(typeof n!=`string`)throw TypeError(`Invalid element in string array`);t.push(n)}return t}function notWritable(e,t){throw Error(`Property ${e}.${t} is not writable`)}var d=class GtkStringObject extends t{static{this[e]=`Gtk.StringObject`}constructor(e){super(e??void 0),l.has(this)||l.set(this,null)}static new(e){let t=new GtkStringObject;return l.set(t,requireString(e)),t}get string(){return l.get(this)??null}set string(e){notWritable(`GtkStringObject`,`string`)}get_string(){return this.string}};o(d,`GtkStringObject`,{},[i.string(`string`,``,``,r.READABLE,null)]);var f=class GtkStringList extends t{static{this[e]=`Gtk.StringList`}constructor(e){let t={...e};delete t.strings,super(t),u.set(this,readStrv(e?.strings??null).map(e=>d.new(e)))}static new(e){return new GtkStringList({strings:e})}get strings(){}set strings(e){console.warn(`GLib-GObject-CRITICAL: g_object_set_is_valid_property: construct property "strings" for object 'GtkStringList' can't be set after construction`)}get item_type(){return a}set item_type(e){notWritable(`GtkStringList`,`item-type`)}get itemType(){return this.item_type}set itemType(e){notWritable(`GtkStringList`,`item-type`)}get n_items(){return u.get(this).length}set n_items(e){notWritable(`GtkStringList`,`n-items`)}vfunc_get_item_type(){return a}vfunc_get_n_items(){return this.n_items}vfunc_get_item(e){return u.get(this)[e]??null}append(e){this.spliceItems(this.n_items,0,[d.new(requireString(e))])}take(e){this.append(e)}remove(e){this.spliceItems(e,1,[])}splice(e,t,n){let r=arguments.length;if(r<3)throw Error(`method Gtk.StringList.splice: At least 3 arguments required, but only ${r} passed`);if(typeof n==`string`)throw TypeError(`Cannot convert string to array of 'utf8'`);if(n===void 0)throw TypeError(`Expected type utf8 for Argument 'additions' but got type 'undefined'`);this.spliceItems(e,t,readStrv(n).map(e=>d.new(e)))}get_string(e){return u.get(this)[e]?.string??null}find(e){let t=requireString(e),n=u.get(this).findIndex(e=>e.string===t);return n===-1?c:n}spliceItems(e,t,n){let r=u.get(this);if(e+t>r.length){console.warn(`Gtk-CRITICAL: gtk_string_list_splice: assertion 'position + n_removals <= objects_get_size (&self->items)' failed`);return}t===0&&n.length===0||(r.splice(e,t,...n),this.items_changed(e,t,n.length),t!==n.length&&this.notify(`n-items`))}};o(f,`GtkStringList`,{},[i.uint(`n-items`,``,``,r.READABLE,0,s,0)],[n]);export{f as GtkStringList,d as GtkStringObject,c as INVALID_LIST_POSITION};
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gStrStrip as e,glibClamp as t,stringIsNotEmpty as n,stripMnemonic as r}from"./glib.js";import{engineForTarget as i,registerGObjectEngine as a,registeredEngine as o,resetRegisteredEngine as s}from"./engine.js";import{GIR_TYPE as c,GObjectObject as l,META_SYMBOLS as u,PURE_JS_ENGINE as d,ParamFlags as f,ParamSpec as p,STOP_EMISSION as m,TYPE_BOOLEAN as h,TYPE_DOUBLE as g,TYPE_INT as _,TYPE_STRING as v,TYPE_UINT as y,UNLOCKED_VFUNCS as b,UnsupportedGObjectError as x,Value as S,bindProperties as C,connectInstance as w,constructRegistered as T,createClosure as E,createGObject as D,disconnectInstance as O,emitInstance as k,gobjectEngineName as A,notifyInstance as j,registerBaseClass as M,registeredClassOf as N,usePureJsGObjectEngine as P}from"./gobject.js";import{PANGO_MARKUP_TAGS as F,escapeMarkup as I,parsePangoMarkup as L,stripMarkup as R}from"./pango-markup.js";import{ADW_ABOUT_DIALOG_LABELS as z,ADW_CREDITS_SECTION_TITLES as B,ADW_LEGAL_DEFAULT_TITLE as V,ADW_LICENSES as H,ADW_LICENSE_ALIASES as U,ADW_LICENSE_DEFAULTS as W,ADW_LICENSE_WARRANTY_TEMPLATE as G,ADW_LINK_ROW_ICON_NAME as K,ADW_LINK_ROW_MAIL_ICON_NAME as q,ADW_TRANSLATOR_CREDITS_SENTINELS as J,GTK_LICENSE as Y,aboutDialogVisibility as X,acknowledgementSections as Z,creditsSections as Q,flatCardShowsWebsite as $,isLicenseType as ee,legalMarkupText as te,legalSectionVisible as ne,legalSections as re,legalVisible as ie,licenseText as ae,licenseTypeForNick as oe,licenseTypeForSpdxId as se,linkRowIconName as ce,linkRowTooltip as le,parseCreditPerson as ue,refuseNewFromAppdata as de,setLicense as fe,setLicenseType as pe,translatorCreditsPeople as me}from"./about-dialog.js";import{AcceleratorMap as he,ModifierMask as ge,acceleratorName as _e,parseAcceleratorKeyval as ve}from"./accelerators.js";import{ADW_ACCENT_BG_COLORS as ye,ADW_ACCENT_COLOR_NAMES as be,ADW_ACCENT_FG_COLOR as xe,ADW_DEFAULT_ACCENT_COLOR as Se,adwaitaAccent as Ce,adwaitaAccentBgColor as we,adwaitaAccentColor as Te,adwaitaStandaloneColor as Ee,formatAdwRgb as De,isAdwAccentColorName as Oe,nearestAccent as ke,onAdwaitaAccentChanged as Ae,parseAdwRgb as je,setAdwaitaAccent as Me}from"./accent.js";import{ActionRowState as Ne,BUTTON_ROW_ACTIVATABLE as Pe,ButtonRowState as Fe,SwitchRowState as Ie,WindowTitleState as Le,deriveRowLabels as Re}from"./action-row.js";import{ADW_ADJUSTMENT_DEFAULTS as ze,SpinState as Be,adjustmentRange as Ve,clampAdjustmentValue as He,normalizeAdjustment as Ue,parseAdjustment as We,snapAdjustmentValue as Ge}from"./adjustment.js";import{ADW_ACCENT_META as Ke,ADW_ACCENT_META_SYSTEM as qe,ADW_COLOR_SCHEME_META as Je,ADW_SYSTEM_COLOR_SCHEMES as Ye,appearanceFromMeta as Xe,isAdwSystemColorScheme as Ze,parseDesktopAppearance as Qe,renderAppearanceMeta as $e}from"./appearance.js";import{APPLE_ACCENT_COLORS as et,APPLE_MULTICOLOR_ACCENT as tt,adwAccentFromAppleAccentColor as nt}from"./apple-accent.js";import{ActionRegistry as rt,SimpleAction as it,SimpleActionGroup as at,actionRegistryOf as ot,activateWidgetAction as st,applicationOfWindow as ct,findActionGroup as lt,insertActionGroup as ut,installActionMap as dt,linkWindow as ft}from"./gio-actions.js";import{Bytes as pt}from"./glib-bytes.js";import{DialogError as mt,GLibError as ht,IOErrorEnum as gt,ResourceError as _t,asGLibError as vt}from"./glib-error.js";import{Resource as yt,ResourceLookupFlags as bt,resources_enumerate_children as xt,resources_get_info as St,resources_lookup_data as Ct,resources_register as wt,resources_unregister as Tt}from"./gio-resource.js";import{CURRENT_TIME as Et,CssProvider as Dt,EventControllerKey as Ot,GDK_KEYS as kt,GtkSettings as At,IconTheme as jt,STYLE_PROVIDER_PRIORITY_APPLICATION as Mt,STYLE_PROVIDER_PRIORITY_FALLBACK as Nt,STYLE_PROVIDER_PRIORITY_SETTINGS as Pt,STYLE_PROVIDER_PRIORITY_THEME as Ft,STYLE_PROVIDER_PRIORITY_USER as It,createGtkPlatform as Lt,keyvalOfKey as Rt,widgetControllerMembers as zt}from"./gtk-platform.js";import{ADW_MENU_SURFACE_NATIVESCRIPT as Bt,ADW_MENU_SURFACE_WEB as Vt,assertMenuRenderable as Ht,flattenMenu as Ut,menuItemAt as Wt,menuLabelText as Gt,menuNodeAt as Kt,menuRefusals as qt,normalizeMenuModel as Jt,parseDetailedAction as Yt,parseMenuModel as Xt,resolveMenuItemState as Zt}from"./menu.js";import{ApplicationFlags as Qt,ApplicationInhibitFlags as $t,GioApplicationBase as en,GtkApplicationBase as tn,defineWindowApplicationMembers as nn,dispatchAccelerator as rn,isValidApplicationId as an,withGtkApplication as on}from"./application.js";import{AVATAR_COLORS as sn,AVATAR_COLOR_COUNT as cn,avatarColor as ln,avatarColorClass as un,avatarFontSize as dn,avatarIconSize as fn,avatarInitials as pn,avatarMaxFontSize as mn,avatarMode as hn,flattenAvatarGradient as gn,gStrHash as _n,randomAvatarColorClass as vn}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as yn,ADW_BANNER_BUTTON_STYLE_CLASSES as bn,ADW_BANNER_DEFAULTS as xn,bannerButtonStyleClasses as Sn,bannerButtonText as Cn,bannerButtonVisible as wn,bannerRenderState as Tn,isBannerButtonStyle as En,parseBannerButtonStyle as Dn}from"./banner.js";import{listBoxSelect as On,listBoxSelectAll as kn,listBoxSelectRow as An,listBoxUnselectAll as jn,listBoxUnselectRow as Mn,normalizeBoxSelectionMode as Nn}from"./box-selection.js";import{DEFAULT_BOX_SPACING as Pn,normalizeBoxOrientation as Fn,normalizeBoxSpacing as In}from"./box.js";import{AdwBreakpoint as Ln,evaluateBreakpointCondition as Rn,parseBreakpointCondition as zn}from"./breakpoint.js";import{BreakpointBinState as Bn}from"./breakpoint-bin.js";import{createBreakpointDriver as Vn}from"./breakpoint-driver.js";import{ADW_BUTTON_CONTENT_DEFAULTS as Hn,BUTTON_CONTENT_BOX_SPACING as Un,BUTTON_CONTENT_FALLBACK_ICON as Wn,BUTTON_CONTENT_STYLE_CLASS as Gn,buttonContentEllipsize as Kn,buttonContentIconExpands as qn,buttonContentIconIsEmpty as Jn,buttonContentIconName as Yn,buttonContentLabelText as Xn,buttonContentLabelVisible as Zn,buttonContentRenderState as Qn,buttonContentStyleTargetIndex as $n}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as er,ADW_BUTTON_STYLE_CLASSES as tr,buttonStyleClass as nr,buttonStyleClasses as rr}from"./button.js";import{CALENDAR_MARK_MAX as ir,CALENDAR_MARK_MIN as ar,CALENDAR_YEAR_MAX as or,CALENDAR_YEAR_MIN as sr,calendarClearMarks as cr,calendarDayIsMarked as lr,calendarDays as ur,calendarDaysInMonth as dr,calendarIsLeapYear as fr,calendarMarkDay as pr,calendarNavigationButtons as mr,calendarSelectDay as hr,calendarStep as gr,calendarWeekNumber as _r,calendarWeekStart as vr}from"./calendar.js";import{ADW_SWIPE_DECELERATION_TOUCH as yr,ADW_SWIPE_DECELERATION_TOUCHPAD as br,ADW_SWIPE_DRAG_THRESHOLD as xr,ADW_SWIPE_EPSILON as Sr,ADW_SWIPE_HISTORY_THRESHOLD_MS as Cr,ADW_SWIPE_PARABOLA_MULTIPLIER as wr,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as Tr,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as Er,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as Dr,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as Or,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as kr,SwipeTracker as Ar,swipeBounds as jr,swipeClosestPointIndex as Mr,swipeEndProgress as Nr,swipeNextPointIndex as Pr,swipePreviousPointIndex as Fr,swipeProjectedPointIndex as Ir,swipeSlope as Lr,swipeVelocityThreshold as Rr}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as zr,CAROUSEL_SETTLE_EPSILON as Br,CarouselState as Vr,carouselClampPosition as Hr,carouselClosestSnapPoint as Ur,carouselNavigateTarget as Wr,carouselPageAllocation as Gr,carouselPageAtPosition as Kr,carouselRange as qr,carouselReorderShift as Jr,carouselSizesFromSnapPoints as Yr,carouselSnapPoints as Xr,carouselWheelStep as Zr}from"./carousel.js";import{checkActivationFlips as Qr,checkGroupNeighbours as $r,isRadioCheck as ei,setCheckGroup as ti}from"./check-group.js";import{RadioGroupState as ni,resolveCheckState as ri}from"./checks.js";import{adwLerp as ii,easeInOutSine as ai,easeOutCubic as oi,inverseLerp as si}from"./easing.js";import{ADW_CLAMP_DEFAULTS as ci,ADW_CLAMP_SIZE_CLASSES as li,ADW_SPINNER_MAX_SIZE as ui,ADW_SPINNER_MIN_SIZE as di,ADW_TOOLBAR_BAR_CLASSES as fi,ADW_TOOLBAR_VIEW_CLASSES as pi,ADW_TOOLBAR_VIEW_DEFAULTS as mi,clampAllocate as hi,clampChildSize as gi,clampSizeFromChild as _i,clampThresholds as vi,normalizeClampSize as yi,parseToolbarStyle as bi,resolveSpinnerSize as xi,spinnerGeometry as Si,toolbarBarStyleClasses as Ci,toolbarViewAllocate as wi,toolbarViewClasses as Ti,toolbarViewContentForSize as Ei,toolbarViewMeasure as Di}from"./chrome.js";import{DEFAULT_ICON_COLOR as Oi,DEFAULT_ICON_COLOR_DARK as ki,adwaitaColorScheme as Ai,isThemeIconColor as ji,onAdwaitaColorSchemeChanged as Mi,setAdwaitaColorScheme as Ni,themeIconColor as Pi,toggleAdwaitaColorScheme as Fi}from"./color-scheme.js";import{ViewStackState as Ii,normalizeIconName as Li,resolvePageTitle as Ri}from"./view-stack.js";import{DEFAULT_TAB_AUTOHIDE as zi,TabViewState as Bi,isDescendantOfPage as Vi,successorAfterClose as Hi,tabCloseVisible as Ui,tabIconState as Wi,tabSearchMatches as Gi,tabTooltip as Ki,tabTooltipIsMarkup as qi,tabViewItemsChanged as Ji,tabsRevealed as Yi}from"./tab-view.js";import{activateMenuItem as Xi,menuActionsFor as Zi}from"./menu-actions.js";import{ADW_DATA_GRID_ROW_VARIANTS as Qi,DATA_GRID_CELL_CLASS as $i,DATA_GRID_ROW_CLASS as ea,dataGridCellText as ta,dataGridColumnAlign as na,dataGridColumnClasses as ra,dataGridRowInteractive as ia,dataGridTrackTemplate as aa,dataGridTracks as oa,normalizeDataGridColumns as sa,normalizeDataGridVariant as ca}from"./data-grid.js";import{AdwAlertResponses as la,BottomSheetPresentation as ua,resolveBottomSheetChrome as da,resolveBottomSheetClose as fa,resolveBottomSheetOpen as pa,resolveBottomSheetSwipeTracker as ma}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as ha,CAPS_LOCK_TOOLTIP as ga,EMPTY_ANIMATION_DURATION_MS as _a,ENTRY_ROW_APPLY_ICON_NAME as va,ENTRY_ROW_APPLY_TOOLTIP as ya,ENTRY_ROW_EDIT_ICON_NAME as ba,ENTRY_ROW_MAX_LENGTH_LIMIT as xa,ENTRY_ROW_TITLE_SPACING as Sa,EntryRowState as Ca,PASSWORD_CONCEAL_ICON_NAME as wa,PASSWORD_CONCEAL_LABEL as Ta,PASSWORD_REVEAL_ICON_NAME as Ea,PASSWORD_REVEAL_LABEL as Da,PasswordEntryRowState as Oa,clampEntryMaxLength as ka,clampEntryText as Aa,deriveEntryRowState as ja,entryRowLatches as Ma,entryTextLength as Na,resolveEntryRowActivation as Pa}from"./entry-row.js";import{FileCreateFlags as Fa,FileDialog as Ia,FileFilter as La,FileOutputStream as Ra,GioFile as za,GioListStore as Ba,OutputStream as Va,dialogFailedError as Ha,dismissedError as Ua,fileFilterAccepts as Wa,fileFilterSpec as Ga,fileForHandle as Ka,promisify as qa,registerFileChooserDriver as Ja}from"./file-chooser.js";import{AppLaunchContext as Ya,createAppInfo as Xa,uriPeekScheme as Za}from"./gio-app-info.js";import{AppLaunchContext as Qa,Clipboard as $a,ContentFormats as eo,ContentProvider as to,Display as no,createGdk as ro,widgetDisplayMembers as io}from"./gdk.js";import{GioMenu as ao,GioMenuItem as oo}from"./gio-menu.js";import{computeLanguageNames as so,languageNamesFromTags as co,localeFromLanguageTag as lo}from"./glib-language.js";import{MAXUINT32 as uo,buildFilenamev as fo,getCurrentDir as po,getSystemDataDirs as mo}from"./glib-paths.js";import{createGLibTimers as ho}from"./glib-timers.js";import{GLIB_UNICHAR_UNICODE_VERSION as go}from"./glib-unichar.generated.js";import{unicharIsalpha as _o}from"./glib-unichar.js";import{uriEscapeString as vo}from"./glib-uri.js";import{Variant as yo}from"./glib-variant.js";import{Point as bo,computePoint as xo}from"./graphene.js";import{gridColumns as So,gridNavigate as Co}from"./grid-navigation.js";import{GtkAdjustment as wo}from"./gtk-adjustment.js";import{GtkStringList as To}from"./gtk-string-list.js";import{HeaderBarState as Eo,resolveHeaderBarTitle as Do}from"./header-bar.js";import{iconLookupNames as Oo,lookupResourceIcon as ko}from"./icon-theme-resources.js";import{RELEASE_NOTES_LABELS as Ao,releaseNotesBuffer as jo}from"./release-notes.js";import{AdwToast as Mo,AdwToastQueue as No,DEFAULT_TOAST_TIMEOUT as Po}from"./toast.js";import{Toast as Fo,ToastOverlayQueue as Io,ToastPriority as Lo}from"./toast-object.js";import{ADW_COMBO_NO_SELECTION as Ro,clampListSelection as zo,listItemsChanged as Bo,normalizeComboOptions as Vo,parseListModel as Ho}from"./list.js";import{ADW_COLUMN_VIEW_NO_FIXED_WIDTH as Uo,ADW_GRID_VIEW_MAX_COLUMNS as Wo,ADW_GRID_VIEW_MIN_COLUMNS as Go,ListViewState as Ko,columnViewSort as qo,columnViewTracks as Jo,gridViewColumns as Yo,listItemField as Xo,listViewSelect as Zo,listViewSelectAll as Qo,normalizeColumnViewColumns as $o,normalizeListSelectionMode as es,parseColumnViewColumns as ts}from"./list-view.js";import{treeExpanderAction as ns,treeExpanderExpanded as rs,treeExpanderLayout as is}from"./tree-expander.js";import{ComboState as as,ExpanderState as os,ToggleGroupState as ss,keptToggles as cs,toggleIndexOfName as ls}from"./rows.js";import{DEFAULT_LABEL_ELLIPSIZE as us,DEFAULT_LABEL_LINES as ds,DEFAULT_LABEL_MAX_WIDTH_CHARS as fs,DEFAULT_LABEL_WIDTH_CHARS as ps,DEFAULT_LABEL_WRAP_MODE as ms,DEFAULT_LABEL_XALIGN as hs,DEFAULT_LABEL_YALIGN as gs,LABEL_ELLIPSIZE_MODES as _s,LABEL_JUSTIFICATIONS as vs,LABEL_WRAP_MODES as ys,labelDisplayText as bs,labelEffectiveLines as xs,labelEllipsizeOverflowValue as Ss,labelMarkupIsUnparseable as Cs,labelWidthCharsExtent as ws,labelYalignAlignItems as Ts,normalizeLabelEllipsize as Es,normalizeLabelJustify as Ds,normalizeLabelLines as Os,normalizeLabelMaxWidthChars as ks,normalizeLabelWidthChars as As,normalizeLabelWrapMode as js,normalizeLabelXalign as Ms,normalizeLabelYalign as Ns}from"./label.js";import{syncDirection as Ps,widgetTreeMembers as Fs}from"./widget-members.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as Is,NavigationViewState as Ls,describeNavigationDiagnostic as Rs}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as zs,SidebarState as Bs,adjustSidebarSelection as Vs,clampSidebarSelection as Hs,flattenSidebarItems as Us,sidebarHeaders as Ws}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as Gs,ADW_SPINNER_CYCLES_PER_LOOP as Ks,ADW_SPINNER_CYCLE_LENGTH as qs,ADW_SPINNER_EXTEND_DISTANCE as Js,ADW_SPINNER_IDLE_DISTANCE as Ys,ADW_SPINNER_MAX_ARC_LENGTH as Xs,ADW_SPINNER_MIN_ARC_LENGTH as Zs,ADW_SPINNER_N_CYCLES as Qs,ADW_SPINNER_OVERLAP_DISTANCE as $s,ADW_SPINNER_SPIN_DURATION_MS as ec,ADW_SPINNER_START_ANGLE as tc,ADW_SPINNER_STILL_PROGRESS as nc,ADW_SPINNER_TRACK_OPACITY as rc,normalizeSpinnerAngle as ic,spinnerArc as ac,spinnerArcEnd as oc,spinnerArcStart as sc,spinnerProgressAt as cc}from"./spinner.js";import{parseAccelerator as lc,parseShortcutLabel as uc,shortcutKeycaps as dc}from"./shortcut-label.js";import{formatAcceleratorLabel as fc,formatManifestShortcut as pc}from"./shortcut-format.js";import{ADW_LENGTH_UNITS as mc,DEFAULT_DPI as hc,adwLengthToPx as gc,normalizeLengthUnit as _c}from"./length-unit.js";import{ADW_SWIPE_BORDER as vc,DEFAULT_MAX_SIDEBAR_WIDTH as yc,DEFAULT_MIN_SIDEBAR_WIDTH as bc,DEFAULT_SIDEBAR_WIDTH_FRACTION as xc,DEFAULT_SIDEBAR_WIDTH_UNIT as Sc,INSTANT_SPLIT_VIEW_ANIMATOR as Cc,NAVIGATION_SPLIT_VIEW_CRITICALS as wc,NavigationSplitViewState as Tc,OverlaySplitViewState as Ec,isSidebarAtVisualStart as Dc,layoutNavigationSplitView as Oc,layoutOverlaySplitView as kc,measureSplitViewHorizontal as Ac,resolveNaturalSidebarWidth as jc,resolveNavigationAction as Mc,resolveNavigationSidebarWidth as Nc,resolveNavigationStack as Pc,resolveOverlaySidebarWidth as Fc,resolveSidebarBounds as Ic,resolveSwipeArea as Lc,resolveSwipeRelease as Rc,resolveSwipeSnapPoints as zc,resolveSwipeStart as Bc,swipeCancelProgress as Vc,tagsConflict as Hc}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as Uc,SPLIT_BUTTON_DISABLED_OPACITY as Wc,SplitButtonState as Gc,isSplitButtonDirection as Kc,menuButtonArrowIcon as qc,menuButtonPopupDirection as Jc,resolveDropdownTooltip as Yc,splitButtonArrowIcon as Xc,splitButtonPopupDirection as Zc,splitButtonRootState as Qc,splitButtonStyleClasses as $c}from"./split-button.js";import{assertPopupMenuPlan as el,planPopupMenu as tl}from"./popup-menu-plan.js";import{menuAssignments as nl}from"./menu-tree.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as rl,INLINE_VIEW_SWITCHER_DISPLAY_MODES as il,VIEW_SWITCHER_BADGE_LIMIT as al,VIEW_SWITCHER_DRAG_SWITCH_DELAY as ol,VIEW_SWITCHER_FALLBACK_ICON as sl,VIEW_SWITCHER_NO_SELECTION as cl,VIEW_SWITCHER_POLICIES as ll,ViewSwitcherBarState as ul,ViewSwitcherDragSwitch as dl,ViewSwitcherState as fl,buildInlineToggles as pl,buildViewSwitcherButtons as ml,createViewSwitcherPage as hl,inlineToggleTooltip as gl,isInlineViewSwitcherDisplayMode as _l,isViewSwitcherButtonVisible as vl,isViewSwitcherPolicy as yl,pageIndexForToggle as bl,shouldRevealViewSwitcherBar as xl,toggleIndexForPage as Sl,viewSwitcherBadgeLabel as Cl,viewSwitcherButtonOrientation as wl,viewSwitcherIconName as Tl,viewSwitcherIndicatorDescription as El,viewSwitcherLabel as Dl,viewSwitcherPageFromStackPage as Ol,viewSwitcherPagesFromStack as kl,viewSwitcherSidebarSections as Al}from"./view-switcher.js";import{UNTITLED_PAGE_LABEL as jl,collectSearchRows as Ml,countVisiblePages as Nl,createSearchRowSubtitle as Pl,defaultCaseFolder as Fl,derivePreferencesGroupHeader as Il,makeComparable as Ll,rowMatchesQuery as Rl,searchPreferences as zl}from"./preferences.js";import{ADW_MAX_OVERSHOOT_DISTANCE as Bl,ADW_OVERSHOOT_SETTLE_MS as Vl,ADW_UNDERSHOOT_CLASSES as Hl,ADW_UNDERSHOOT_SIZE as Ul,accumulateOvershoot as Wl,isScrolledFromEnd as Gl,isScrolledFromStart as Kl,overshootDistance as ql,scrollMaxValue as Jl,scrollUndershootClasses as Yl}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as Xl,POPOVER_MENU_PADDING as Zl,POPOVER_PADDING as Ql,POPOVER_RADIUS as $l,PopoverState as eu,resolvePopoverKey as tu}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as nu,ADW_WRAP_BOX_DEFAULT_JUSTIFY as ru,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as iu,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as au,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as ou,ADW_WRAP_BOX_DEFAULT_SPACING as su,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as cu,ADW_WRAP_BOX_JUSTIFY_MODES as lu,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as uu,ADW_WRAP_BOX_PACK_DIRECTIONS as du,ADW_WRAP_POLICIES as fu,normalizeNaturalLineLength as pu,normalizeWrapBoxAlign as mu,normalizeWrapBoxJustify as hu,normalizeWrapBoxLengthUnit as gu,normalizeWrapBoxPackDirection as _u,normalizeWrapBoxSpacing as vu,normalizeWrapPolicy as yu,resolveWrapBoxChildOrder as bu,resolveWrapBoxLine as xu,wrapBoxChildFlex as Su,wrapBoxFlexStyle as Cu,wrapBoxLengthToPx as wu,wrapPolicyFlexShrink as Tu}from"./wrap-box.js";import{ADW_SOURCE_6502_DIRECTIVES as Eu,ADW_SOURCE_6502_LINE_COMMENT as Du,ADW_SOURCE_6502_OPCODES as Ou,ADW_SOURCE_6502_REGISTERS as ku,ADW_SOURCE_6502_TOKEN_ROLES as Au,ADW_SOURCE_HEX_STRIDE as ju,ADW_SOURCE_PALETTE_DARK as Mu,ADW_SOURCE_PALETTE_LIGHT as Nu,ADW_SOURCE_SYNTAX_ROLES as Pu,classifyAsm6502Word as Fu,formatHexAddress as Iu,formatLineNumber as Lu,stripSourceWhitespace as Ru,tokenizeAsm6502 as zu}from"./source.js";import{CloseRequestState as Bu,HandledAccumulator as Vu,WindowMemberState as Hu,stepDefaultSize as Uu}from"./window-members.js";import{RGBA as Wu}from"./rgba.js";import{AccentColor as Gu,ColorScheme as Ku,StyleManagerBase as qu}from"./style-manager.js";export{z as ADW_ABOUT_DIALOG_LABELS,ye as ADW_ACCENT_BG_COLORS,be as ADW_ACCENT_COLOR_NAMES,xe as ADW_ACCENT_FG_COLOR,Ke as ADW_ACCENT_META,qe as ADW_ACCENT_META_SYSTEM,ze as ADW_ADJUSTMENT_DEFAULTS,yn as ADW_BANNER_BUTTON_STYLES,bn as ADW_BANNER_BUTTON_STYLE_CLASSES,xn as ADW_BANNER_DEFAULTS,Hn as ADW_BUTTON_CONTENT_DEFAULTS,er as ADW_BUTTON_STYLE_ALIASES,tr as ADW_BUTTON_STYLE_CLASSES,ci as ADW_CLAMP_DEFAULTS,li as ADW_CLAMP_SIZE_CLASSES,Je as ADW_COLOR_SCHEME_META,Uo as ADW_COLUMN_VIEW_NO_FIXED_WIDTH,Ro as ADW_COMBO_NO_SELECTION,B as ADW_CREDITS_SECTION_TITLES,Qi as ADW_DATA_GRID_ROW_VARIANTS,Se as ADW_DEFAULT_ACCENT_COLOR,Wo as ADW_GRID_VIEW_MAX_COLUMNS,Go as ADW_GRID_VIEW_MIN_COLUMNS,V as ADW_LEGAL_DEFAULT_TITLE,mc as ADW_LENGTH_UNITS,H as ADW_LICENSES,U as ADW_LICENSE_ALIASES,W as ADW_LICENSE_DEFAULTS,G as ADW_LICENSE_WARRANTY_TEMPLATE,K as ADW_LINK_ROW_ICON_NAME,q as ADW_LINK_ROW_MAIL_ICON_NAME,Bl as ADW_MAX_OVERSHOOT_DISTANCE,Bt as ADW_MENU_SURFACE_NATIVESCRIPT,Vt as ADW_MENU_SURFACE_WEB,Vl as ADW_OVERSHOOT_SETTLE_MS,zs as ADW_SIDEBAR_NO_SELECTION,Eu as ADW_SOURCE_6502_DIRECTIVES,Du as ADW_SOURCE_6502_LINE_COMMENT,Ou as ADW_SOURCE_6502_OPCODES,ku as ADW_SOURCE_6502_REGISTERS,Au as ADW_SOURCE_6502_TOKEN_ROLES,ju as ADW_SOURCE_HEX_STRIDE,Mu as ADW_SOURCE_PALETTE_DARK,Nu as ADW_SOURCE_PALETTE_LIGHT,Pu as ADW_SOURCE_SYNTAX_ROLES,Gs as ADW_SPINNER_CONTRACT_DISTANCE,Ks as ADW_SPINNER_CYCLES_PER_LOOP,qs as ADW_SPINNER_CYCLE_LENGTH,Js as ADW_SPINNER_EXTEND_DISTANCE,Ys as ADW_SPINNER_IDLE_DISTANCE,Xs as ADW_SPINNER_MAX_ARC_LENGTH,ui as ADW_SPINNER_MAX_SIZE,Zs as ADW_SPINNER_MIN_ARC_LENGTH,di as ADW_SPINNER_MIN_SIZE,Qs as ADW_SPINNER_N_CYCLES,$s as ADW_SPINNER_OVERLAP_DISTANCE,ec as ADW_SPINNER_SPIN_DURATION_MS,tc as ADW_SPINNER_START_ANGLE,nc as ADW_SPINNER_STILL_PROGRESS,rc as ADW_SPINNER_TRACK_OPACITY,vc as ADW_SWIPE_BORDER,yr as ADW_SWIPE_DECELERATION_TOUCH,br as ADW_SWIPE_DECELERATION_TOUCHPAD,xr as ADW_SWIPE_DRAG_THRESHOLD,Sr as ADW_SWIPE_EPSILON,Cr as ADW_SWIPE_HISTORY_THRESHOLD_MS,wr as ADW_SWIPE_PARABOLA_MULTIPLIER,Tr as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,Er as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,Dr as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,Or as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,kr as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,Ye as ADW_SYSTEM_COLOR_SCHEMES,fi as ADW_TOOLBAR_BAR_CLASSES,pi as ADW_TOOLBAR_VIEW_CLASSES,mi as ADW_TOOLBAR_VIEW_DEFAULTS,J as ADW_TRANSLATOR_CREDITS_SENTINELS,Hl as ADW_UNDERSHOOT_CLASSES,Ul as ADW_UNDERSHOOT_SIZE,nu as ADW_WRAP_BOX_DEFAULT_ALIGN,ru as ADW_WRAP_BOX_DEFAULT_JUSTIFY,iu as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,au as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,ou as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,su as ADW_WRAP_BOX_DEFAULT_SPACING,cu as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,lu as ADW_WRAP_BOX_JUSTIFY_MODES,uu as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,du as ADW_WRAP_BOX_PACK_DIRECTIONS,fu as ADW_WRAP_POLICIES,et as APPLE_ACCENT_COLORS,tt as APPLE_MULTICOLOR_ACCENT,sn as AVATAR_COLORS,cn as AVATAR_COLOR_COUNT,he as AcceleratorMap,Gu as AccentColor,rt as ActionRegistry,Ne as ActionRowState,la as AdwAlertResponses,Ln as AdwBreakpoint,Mo as AdwToast,No as AdwToastQueue,Qt as ApplicationFlags,$t as ApplicationInhibitFlags,Is as BACK_BUTTON_FALLBACK_TOOLTIP,Un as BUTTON_CONTENT_BOX_SPACING,Wn as BUTTON_CONTENT_FALLBACK_ICON,Gn as BUTTON_CONTENT_STYLE_CLASS,Pe as BUTTON_ROW_ACTIVATABLE,ua as BottomSheetPresentation,Bn as BreakpointBinState,Fe as ButtonRowState,ir as CALENDAR_MARK_MAX,ar as CALENDAR_MARK_MIN,or as CALENDAR_YEAR_MAX,sr as CALENDAR_YEAR_MIN,ha as CAPS_LOCK_ICON_NAME,ga as CAPS_LOCK_TOOLTIP,zr as CAROUSEL_SCROLL_TIMEOUT_MS,Br as CAROUSEL_SETTLE_EPSILON,Et as CURRENT_TIME,Vr as CarouselState,$a as Clipboard,Bu as CloseRequestState,Ku as ColorScheme,as as ComboState,eo as ContentFormats,to as ContentProvider,Dt as CssProvider,$i as DATA_GRID_CELL_CLASS,ea as DATA_GRID_ROW_CLASS,Pn as DEFAULT_BOX_SPACING,hc as DEFAULT_DPI,Uc as DEFAULT_DROPDOWN_TOOLTIP,Oi as DEFAULT_ICON_COLOR,ki as DEFAULT_ICON_COLOR_DARK,rl as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,us as DEFAULT_LABEL_ELLIPSIZE,ds as DEFAULT_LABEL_LINES,fs as DEFAULT_LABEL_MAX_WIDTH_CHARS,ps as DEFAULT_LABEL_WIDTH_CHARS,ms as DEFAULT_LABEL_WRAP_MODE,hs as DEFAULT_LABEL_XALIGN,gs as DEFAULT_LABEL_YALIGN,yc as DEFAULT_MAX_SIDEBAR_WIDTH,bc as DEFAULT_MIN_SIDEBAR_WIDTH,xc as DEFAULT_SIDEBAR_WIDTH_FRACTION,Sc as DEFAULT_SIDEBAR_WIDTH_UNIT,zi as DEFAULT_TAB_AUTOHIDE,Po as DEFAULT_TOAST_TIMEOUT,mt as DialogError,no as Display,_a as EMPTY_ANIMATION_DURATION_MS,va as ENTRY_ROW_APPLY_ICON_NAME,ya as ENTRY_ROW_APPLY_TOOLTIP,ba as ENTRY_ROW_EDIT_ICON_NAME,xa as ENTRY_ROW_MAX_LENGTH_LIMIT,Sa as ENTRY_ROW_TITLE_SPACING,Ca as EntryRowState,Ot as EventControllerKey,os as ExpanderState,Fa as FileCreateFlags,kt as GDK_KEYS,c as GIR_TYPE,go as GLIB_UNICHAR_UNICODE_VERSION,pt as GLibBytes,ht as GLibError,yo as GLibVariant,l as GObjectObject,Y as GTK_LICENSE,Qa as GdkAppLaunchContext,Ya as GioAppLaunchContext,en as GioApplicationBase,za as GioFile,Ra as GioFileOutputStream,Ba as GioListStore,ao as GioMenu,oo as GioMenuItem,Va as GioOutputStream,yt as GioResource,wo as GtkAdjustment,tn as GtkApplicationBase,Ia as GtkFileDialog,La as GtkFileFilter,At as GtkSettings,To as GtkStringList,Vu as HandledAccumulator,Eo as HeaderBarState,il as INLINE_VIEW_SWITCHER_DISPLAY_MODES,Cc as INSTANT_SPLIT_VIEW_ANIMATOR,gt as IOErrorEnum,jt as IconTheme,_s as LABEL_ELLIPSIZE_MODES,vs as LABEL_JUSTIFICATIONS,ys as LABEL_WRAP_MODES,Ko as ListViewState,uo as MAXUINT32,u as META_SYMBOLS,ge as ModifierMask,wc as NAVIGATION_SPLIT_VIEW_CRITICALS,Tc as NavigationSplitViewState,Ls as NavigationViewState,Ec as OverlaySplitViewState,F as PANGO_MARKUP_TAGS,wa as PASSWORD_CONCEAL_ICON_NAME,Ta as PASSWORD_CONCEAL_LABEL,Ea as PASSWORD_REVEAL_ICON_NAME,Da as PASSWORD_REVEAL_LABEL,Xl as POPOVER_ITEM_RADIUS,Zl as POPOVER_MENU_PADDING,Ql as POPOVER_PADDING,$l as POPOVER_RADIUS,d as PURE_JS_ENGINE,f as ParamFlags,p as ParamSpec,Oa as PasswordEntryRowState,bo as Point,eu as PopoverState,Ao as RELEASE_NOTES_LABELS,Wu as RGBA,ni as RadioGroupState,_t as ResourceError,bt as ResourceLookupFlags,Wc as SPLIT_BUTTON_DISABLED_OPACITY,m as STOP_EMISSION,Mt as STYLE_PROVIDER_PRIORITY_APPLICATION,Nt as STYLE_PROVIDER_PRIORITY_FALLBACK,Pt as STYLE_PROVIDER_PRIORITY_SETTINGS,Ft as STYLE_PROVIDER_PRIORITY_THEME,It as STYLE_PROVIDER_PRIORITY_USER,Bs as SidebarState,it as SimpleAction,at as SimpleActionGroup,Be as SpinState,Gc as SplitButtonState,qu as StyleManagerBase,Ar as SwipeTracker,Ie as SwitchRowState,h as TYPE_BOOLEAN,g as TYPE_DOUBLE,_ as TYPE_INT,v as TYPE_STRING,y as TYPE_UINT,Bi as TabViewState,Fo as Toast,Io as ToastOverlayQueue,Lo as ToastPriority,ss as ToggleGroupState,b as UNLOCKED_VFUNCS,jl as UNTITLED_PAGE_LABEL,x as UnsupportedGObjectError,al as VIEW_SWITCHER_BADGE_LIMIT,ol as VIEW_SWITCHER_DRAG_SWITCH_DELAY,sl as VIEW_SWITCHER_FALLBACK_ICON,cl as VIEW_SWITCHER_NO_SELECTION,ll as VIEW_SWITCHER_POLICIES,S as Value,Ii as ViewStackState,ul as ViewSwitcherBarState,dl as ViewSwitcherDragSwitch,fl as ViewSwitcherState,Hu as WindowMemberState,Le as WindowTitleState,X as aboutDialogVisibility,_e as acceleratorName,Wl as accumulateOvershoot,Z as acknowledgementSections,ot as actionRegistryOf,Xi as activateMenuItem,st as activateWidgetAction,Vs as adjustSidebarSelection,Ve as adjustmentRange,nt as adwAccentFromAppleAccentColor,gc as adwLengthToPx,ii as adwLerp,Ce as adwaitaAccent,we as adwaitaAccentBgColor,Te as adwaitaAccentColor,Ai as adwaitaColorScheme,Ee as adwaitaStandaloneColor,Xe as appearanceFromMeta,ct as applicationOfWindow,vt as asGLibError,Ht as assertMenuRenderable,el as assertPopupMenuPlan,ln as avatarColor,un as avatarColorClass,dn as avatarFontSize,fn as avatarIconSize,pn as avatarInitials,mn as avatarMaxFontSize,hn as avatarMode,Sn as bannerButtonStyleClasses,Cn as bannerButtonText,wn as bannerButtonVisible,Tn as bannerRenderState,C as bindProperties,fo as buildFilenamev,pl as buildInlineToggles,ml as buildViewSwitcherButtons,Kn as buttonContentEllipsize,qn as buttonContentIconExpands,Jn as buttonContentIconIsEmpty,Yn as buttonContentIconName,Xn as buttonContentLabelText,Zn as buttonContentLabelVisible,Qn as buttonContentRenderState,$n as buttonContentStyleTargetIndex,nr as buttonStyleClass,rr as buttonStyleClasses,cr as calendarClearMarks,lr as calendarDayIsMarked,ur as calendarDays,dr as calendarDaysInMonth,fr as calendarIsLeapYear,pr as calendarMarkDay,mr as calendarNavigationButtons,hr as calendarSelectDay,gr as calendarStep,_r as calendarWeekNumber,vr as calendarWeekStart,Hr as carouselClampPosition,Ur as carouselClosestSnapPoint,Wr as carouselNavigateTarget,Gr as carouselPageAllocation,Kr as carouselPageAtPosition,qr as carouselRange,Jr as carouselReorderShift,Yr as carouselSizesFromSnapPoints,Xr as carouselSnapPoints,Zr as carouselWheelStep,Qr as checkActivationFlips,$r as checkGroupNeighbours,He as clampAdjustmentValue,hi as clampAllocate,gi as clampChildSize,ka as clampEntryMaxLength,Aa as clampEntryText,zo as clampListSelection,Hs as clampSidebarSelection,_i as clampSizeFromChild,vi as clampThresholds,Fu as classifyAsm6502Word,Ml as collectSearchRows,qo as columnViewSort,Jo as columnViewTracks,so as computeLanguageNames,xo as computePoint,w as connectInstance,T as constructRegistered,Nl as countVisiblePages,Xa as createAppInfo,Vn as createBreakpointDriver,E as createClosure,ho as createGLibTimers,D as createGObject,ro as createGdk,Lt as createGtkPlatform,Pl as createSearchRowSubtitle,hl as createViewSwitcherPage,Q as creditsSections,ta as dataGridCellText,na as dataGridColumnAlign,ra as dataGridColumnClasses,ia as dataGridRowInteractive,aa as dataGridTrackTemplate,oa as dataGridTracks,Fl as defaultCaseFolder,nn as defineWindowApplicationMembers,ja as deriveEntryRowState,Il as derivePreferencesGroupHeader,Re as deriveRowLabels,Rs as describeNavigationDiagnostic,Ha as dialogFailedError,O as disconnectInstance,Ua as dismissedError,rn as dispatchAccelerator,ai as easeInOutSine,oi as easeOutCubic,k as emitInstance,i as engineForTarget,Ma as entryRowLatches,Na as entryTextLength,I as escapeMarkup,Rn as evaluateBreakpointCondition,Wa as fileFilterAccepts,Ga as fileFilterSpec,Ka as fileForHandle,lt as findActionGroup,$ as flatCardShowsWebsite,gn as flattenAvatarGradient,Ut as flattenMenu,Us as flattenSidebarItems,fc as formatAcceleratorLabel,De as formatAdwRgb,Iu as formatHexAddress,Lu as formatLineNumber,pc as formatManifestShortcut,_n as gStrHash,e as gStrStrip,po as getCurrentDir,mo as getSystemDataDirs,t as glibClamp,A as gobjectEngineName,So as gridColumns,Co as gridNavigate,Yo as gridViewColumns,Oo as iconLookupNames,gl as inlineToggleTooltip,ut as insertActionGroup,dt as installActionMap,si as inverseLerp,Oe as isAdwAccentColorName,Ze as isAdwSystemColorScheme,En as isBannerButtonStyle,Vi as isDescendantOfPage,_l as isInlineViewSwitcherDisplayMode,ee as isLicenseType,ei as isRadioCheck,Gl as isScrolledFromEnd,Kl as isScrolledFromStart,Dc as isSidebarAtVisualStart,Kc as isSplitButtonDirection,ji as isThemeIconColor,an as isValidApplicationId,vl as isViewSwitcherButtonVisible,yl as isViewSwitcherPolicy,cs as keptToggles,Rt as keyvalOfKey,bs as labelDisplayText,xs as labelEffectiveLines,Ss as labelEllipsizeOverflowValue,Cs as labelMarkupIsUnparseable,ws as labelWidthCharsExtent,Ts as labelYalignAlignItems,co as languageNamesFromTags,Oc as layoutNavigationSplitView,kc as layoutOverlaySplitView,te as legalMarkupText,ne as legalSectionVisible,re as legalSections,ie as legalVisible,ae as licenseText,oe as licenseTypeForNick,se as licenseTypeForSpdxId,ce as linkRowIconName,le as linkRowTooltip,ft as linkWindow,On as listBoxSelect,kn as listBoxSelectAll,An as listBoxSelectRow,jn as listBoxUnselectAll,Mn as listBoxUnselectRow,Xo as listItemField,Bo as listItemsChanged,Zo as listViewSelect,Qo as listViewSelectAll,lo as localeFromLanguageTag,ko as lookupResourceIcon,Ll as makeComparable,Ac as measureSplitViewHorizontal,Zi as menuActionsFor,nl as menuAssignments,qc as menuButtonArrowIcon,Jc as menuButtonPopupDirection,Wt as menuItemAt,Gt as menuLabelText,Kt as menuNodeAt,qt as menuRefusals,ke as nearestAccent,Ue as normalizeAdjustment,Fn as normalizeBoxOrientation,Nn as normalizeBoxSelectionMode,In as normalizeBoxSpacing,yi as normalizeClampSize,$o as normalizeColumnViewColumns,Vo as normalizeComboOptions,sa as normalizeDataGridColumns,ca as normalizeDataGridVariant,Li as normalizeIconName,Es as normalizeLabelEllipsize,Ds as normalizeLabelJustify,Os as normalizeLabelLines,ks as normalizeLabelMaxWidthChars,As as normalizeLabelWidthChars,js as normalizeLabelWrapMode,Ms as normalizeLabelXalign,Ns as normalizeLabelYalign,_c as normalizeLengthUnit,es as normalizeListSelectionMode,Jt as normalizeMenuModel,pu as normalizeNaturalLineLength,ic as normalizeSpinnerAngle,mu as normalizeWrapBoxAlign,hu as normalizeWrapBoxJustify,gu as normalizeWrapBoxLengthUnit,_u as normalizeWrapBoxPackDirection,vu as normalizeWrapBoxSpacing,yu as normalizeWrapPolicy,j as notifyInstance,Ae as onAdwaitaAccentChanged,Mi as onAdwaitaColorSchemeChanged,ql as overshootDistance,bl as pageIndexForToggle,lc as parseAccelerator,ve as parseAcceleratorKeyval,We as parseAdjustment,je as parseAdwRgb,Dn as parseBannerButtonStyle,zn as parseBreakpointCondition,ts as parseColumnViewColumns,ue as parseCreditPerson,Qe as parseDesktopAppearance,Yt as parseDetailedAction,Ho as parseListModel,Xt as parseMenuModel,L as parsePangoMarkup,uc as parseShortcutLabel,bi as parseToolbarStyle,tl as planPopupMenu,qa as promisify,vn as randomAvatarColorClass,de as refuseNewFromAppdata,M as registerBaseClass,Ja as registerFileChooserDriver,a as registerGObjectEngine,N as registeredClassOf,o as registeredEngine,jo as releaseNotesBuffer,$e as renderAppearanceMeta,s as resetRegisteredEngine,da as resolveBottomSheetChrome,fa as resolveBottomSheetClose,pa as resolveBottomSheetOpen,ma as resolveBottomSheetSwipeTracker,ri as resolveCheckState,Yc as resolveDropdownTooltip,Pa as resolveEntryRowActivation,Do as resolveHeaderBarTitle,Zt as resolveMenuItemState,jc as resolveNaturalSidebarWidth,Mc as resolveNavigationAction,Nc as resolveNavigationSidebarWidth,Pc as resolveNavigationStack,Fc as resolveOverlaySidebarWidth,Ri as resolvePageTitle,tu as resolvePopoverKey,Ic as resolveSidebarBounds,xi as resolveSpinnerSize,Lc as resolveSwipeArea,Rc as resolveSwipeRelease,zc as resolveSwipeSnapPoints,Bc as resolveSwipeStart,bu as resolveWrapBoxChildOrder,xu as resolveWrapBoxLine,xt as resources_enumerate_children,St as resources_get_info,Ct as resources_lookup_data,wt as resources_register,Tt as resources_unregister,Rl as rowMatchesQuery,Jl as scrollMaxValue,Yl as scrollUndershootClasses,zl as searchPreferences,Me as setAdwaitaAccent,Ni as setAdwaitaColorScheme,ti as setCheckGroup,fe as setLicense,pe as setLicenseType,dc as shortcutKeycaps,xl as shouldRevealViewSwitcherBar,Ws as sidebarHeaders,Ge as snapAdjustmentValue,ac as spinnerArc,oc as spinnerArcEnd,sc as spinnerArcStart,Si as spinnerGeometry,cc as spinnerProgressAt,Xc as splitButtonArrowIcon,Zc as splitButtonPopupDirection,Qc as splitButtonRootState,$c as splitButtonStyleClasses,Uu as stepDefaultSize,n as stringIsNotEmpty,R as stripMarkup,r as stripMnemonic,Ru as stripSourceWhitespace,Hi as successorAfterClose,jr as swipeBounds,Vc as swipeCancelProgress,Mr as swipeClosestPointIndex,Nr as swipeEndProgress,Pr as swipeNextPointIndex,Fr as swipePreviousPointIndex,Ir as swipeProjectedPointIndex,Lr as swipeSlope,Rr as swipeVelocityThreshold,Ps as syncDirection,Ui as tabCloseVisible,Wi as tabIconState,Gi as tabSearchMatches,Ki as tabTooltip,qi as tabTooltipIsMarkup,Ji as tabViewItemsChanged,Yi as tabsRevealed,Hc as tagsConflict,Pi as themeIconColor,Fi as toggleAdwaitaColorScheme,Sl as toggleIndexForPage,ls as toggleIndexOfName,zu as tokenizeAsm6502,Ci as toolbarBarStyleClasses,wi as toolbarViewAllocate,Ti as toolbarViewClasses,Ei as toolbarViewContentForSize,Di as toolbarViewMeasure,me as translatorCreditsPeople,ns as treeExpanderAction,rs as treeExpanderExpanded,is as treeExpanderLayout,_o as unicharIsalpha,vo as uriEscapeString,Za as uriPeekScheme,P as usePureJsGObjectEngine,Cl as viewSwitcherBadgeLabel,wl as viewSwitcherButtonOrientation,Tl as viewSwitcherIconName,El as viewSwitcherIndicatorDescription,Dl as viewSwitcherLabel,Ol as viewSwitcherPageFromStackPage,kl as viewSwitcherPagesFromStack,Al as viewSwitcherSidebarSections,zt as widgetControllerMembers,io as widgetDisplayMembers,Fs as widgetTreeMembers,on as withGtkApplication,Su as wrapBoxChildFlex,Cu as wrapBoxFlexStyle,wu as wrapBoxLengthToPx,Tu as wrapPolicyFlexShrink};
|
|
1
|
+
import{gStrStrip as e,glibClamp as t,stringIsNotEmpty as n,stripMnemonic as r}from"./glib.js";import{engineForTarget as i,registerGObjectEngine as a,registeredEngine as o,resetRegisteredEngine as s}from"./engine.js";import{GIR_TYPE as c,GObjectObject as l,ListModel as u,META_SYMBOLS as d,PURE_JS_ENGINE as f,ParamFlags as p,ParamSpec as m,STOP_EMISSION as h,TYPE_BOOLEAN as g,TYPE_DOUBLE as _,TYPE_INT as v,TYPE_OBJECT as y,TYPE_STRING as b,TYPE_UINT as x,UNLOCKED_VFUNCS as S,UnsupportedGObjectError as C,Value as w,bindProperties as T,connectInstance as E,constructRegistered as D,createClosure as O,createGObject as k,disconnectInstance as A,emitInstance as j,gobjectEngineName as M,notifyInstance as N,refuseForeignInterfaces as P,registerBaseClass as F,registeredClassOf as I,usePureJsGObjectEngine as L}from"./gobject.js";import{PANGO_MARKUP_TAGS as R,escapeMarkup as z,parsePangoMarkup as B,stripMarkup as V}from"./pango-markup.js";import{ADW_ABOUT_DIALOG_LABELS as H,ADW_CREDITS_SECTION_TITLES as U,ADW_LEGAL_DEFAULT_TITLE as W,ADW_LICENSES as G,ADW_LICENSE_ALIASES as K,ADW_LICENSE_DEFAULTS as q,ADW_LICENSE_WARRANTY_TEMPLATE as J,ADW_LINK_ROW_ICON_NAME as Y,ADW_LINK_ROW_MAIL_ICON_NAME as X,ADW_TRANSLATOR_CREDITS_SENTINELS as Z,GTK_LICENSE as Q,aboutDialogVisibility as $,acknowledgementSections as ee,creditsSections as te,flatCardShowsWebsite as ne,isLicenseType as re,legalMarkupText as ie,legalSectionVisible as ae,legalSections as oe,legalVisible as se,licenseText as ce,licenseTypeForNick as le,licenseTypeForSpdxId as ue,linkRowIconName as de,linkRowTooltip as fe,parseCreditPerson as pe,refuseNewFromAppdata as me,setLicense as he,setLicenseType as ge,translatorCreditsPeople as _e}from"./about-dialog.js";import{AcceleratorMap as ve,ModifierMask as ye,acceleratorName as be,parseAcceleratorKeyval as xe}from"./accelerators.js";import{ADW_ACCENT_BG_COLORS as Se,ADW_ACCENT_COLOR_NAMES as Ce,ADW_ACCENT_FG_COLOR as we,ADW_DEFAULT_ACCENT_COLOR as Te,adwaitaAccent as Ee,adwaitaAccentBgColor as De,adwaitaAccentColor as Oe,adwaitaStandaloneColor as ke,formatAdwRgb as Ae,isAdwAccentColorName as je,nearestAccent as Me,onAdwaitaAccentChanged as Ne,parseAdwRgb as Pe,setAdwaitaAccent as Fe}from"./accent.js";import{ActionRowState as Ie,BUTTON_ROW_ACTIVATABLE as Le,ButtonRowState as Re,SwitchRowState as ze,WindowTitleState as Be,deriveRowLabels as Ve}from"./action-row.js";import{ADW_ADJUSTMENT_DEFAULTS as He,SpinState as Ue,adjustmentRange as We,clampAdjustmentValue as Ge,normalizeAdjustment as Ke,parseAdjustment as qe,snapAdjustmentValue as Je}from"./adjustment.js";import{ADW_ACCENT_META as Ye,ADW_ACCENT_META_SYSTEM as Xe,ADW_COLOR_SCHEME_META as Ze,ADW_SYSTEM_COLOR_SCHEMES as Qe,appearanceFromMeta as $e,isAdwSystemColorScheme as et,parseDesktopAppearance as tt,renderAppearanceMeta as nt}from"./appearance.js";import{APPLE_ACCENT_COLORS as rt,APPLE_MULTICOLOR_ACCENT as it,adwAccentFromAppleAccentColor as at}from"./apple-accent.js";import{ActionRegistry as ot,SimpleAction as st,SimpleActionGroup as ct,actionRegistryOf as lt,activateWidgetAction as ut,applicationOfWindow as dt,findActionGroup as ft,insertActionGroup as pt,installActionMap as mt,linkWindow as ht}from"./gio-actions.js";import{Bytes as gt}from"./glib-bytes.js";import{DialogError as _t,GLibError as vt,IOErrorEnum as yt,ResourceError as bt,asGLibError as xt}from"./glib-error.js";import{Resource as St,ResourceLookupFlags as Ct,resources_enumerate_children as wt,resources_get_info as Tt,resources_lookup_data as Et,resources_register as Dt,resources_unregister as Ot}from"./gio-resource.js";import{CURRENT_TIME as kt,CssProvider as At,EventControllerKey as jt,GDK_KEYS as Mt,GtkSettings as Nt,IconTheme as Pt,STYLE_PROVIDER_PRIORITY_APPLICATION as Ft,STYLE_PROVIDER_PRIORITY_FALLBACK as It,STYLE_PROVIDER_PRIORITY_SETTINGS as Lt,STYLE_PROVIDER_PRIORITY_THEME as Rt,STYLE_PROVIDER_PRIORITY_USER as zt,createGtkPlatform as Bt,deliverKeyToControllers as Vt,keyvalOfKey as Ht,widgetControllerMembers as Ut}from"./gtk-platform.js";import{ADW_MENU_SURFACE_NATIVESCRIPT as Wt,ADW_MENU_SURFACE_WEB as Gt,assertMenuRenderable as Kt,flattenMenu as qt,menuItemAt as Jt,menuLabelText as Yt,menuNodeAt as Xt,menuRefusals as Zt,normalizeMenuModel as Qt,parseDetailedAction as $t,parseMenuModel as en,resolveMenuItemState as tn}from"./menu.js";import{ApplicationFlags as nn,ApplicationInhibitFlags as rn,GioApplicationBase as an,GtkApplicationBase as on,defineWindowApplicationMembers as sn,dispatchAccelerator as cn,isValidApplicationId as ln,withGtkApplication as un}from"./application.js";import{AVATAR_COLORS as dn,AVATAR_COLOR_COUNT as fn,avatarColor as pn,avatarColorClass as mn,avatarFontSize as hn,avatarIconSize as gn,avatarInitials as _n,avatarMaxFontSize as vn,avatarMode as yn,flattenAvatarGradient as bn,gStrHash as xn,randomAvatarColorClass as Sn}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as Cn,ADW_BANNER_BUTTON_STYLE_CLASSES as wn,ADW_BANNER_DEFAULTS as Tn,bannerButtonStyleClasses as En,bannerButtonText as Dn,bannerButtonVisible as On,bannerRenderState as kn,isBannerButtonStyle as An,parseBannerButtonStyle as jn}from"./banner.js";import{listBoxSelect as Mn,listBoxSelectAll as Nn,listBoxSelectRow as Pn,listBoxUnselectAll as Fn,listBoxUnselectRow as In,normalizeBoxSelectionMode as Ln}from"./box-selection.js";import{DEFAULT_BOX_SPACING as Rn,normalizeBoxOrientation as zn,normalizeBoxSpacing as Bn}from"./box.js";import{AdwBreakpoint as Vn,evaluateBreakpointCondition as Hn,parseBreakpointCondition as Un}from"./breakpoint.js";import{BreakpointBinState as Wn}from"./breakpoint-bin.js";import{createBreakpointDriver as Gn}from"./breakpoint-driver.js";import{ADW_BUTTON_CONTENT_DEFAULTS as Kn,BUTTON_CONTENT_BOX_SPACING as qn,BUTTON_CONTENT_FALLBACK_ICON as Jn,BUTTON_CONTENT_STYLE_CLASS as Yn,buttonContentEllipsize as Xn,buttonContentIconExpands as Zn,buttonContentIconIsEmpty as Qn,buttonContentIconName as $n,buttonContentLabelText as er,buttonContentLabelVisible as tr,buttonContentRenderState as nr,buttonContentStyleTargetIndex as rr}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as ir,ADW_BUTTON_STYLE_CLASSES as ar,buttonStyleClass as or,buttonStyleClasses as sr}from"./button.js";import{CALENDAR_MARK_MAX as cr,CALENDAR_MARK_MIN as lr,CALENDAR_YEAR_MAX as ur,CALENDAR_YEAR_MIN as dr,calendarClearMarks as fr,calendarDayIsMarked as pr,calendarDays as mr,calendarDaysInMonth as hr,calendarIsLeapYear as gr,calendarMarkDay as _r,calendarNavigationButtons as vr,calendarSelectDay as yr,calendarStep as br,calendarWeekNumber as xr,calendarWeekStart as Sr}from"./calendar.js";import{ADW_SWIPE_DECELERATION_TOUCH as Cr,ADW_SWIPE_DECELERATION_TOUCHPAD as wr,ADW_SWIPE_DRAG_THRESHOLD as Tr,ADW_SWIPE_EPSILON as Er,ADW_SWIPE_HISTORY_THRESHOLD_MS as Dr,ADW_SWIPE_PARABOLA_MULTIPLIER as Or,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as kr,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as Ar,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as jr,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as Mr,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as Nr,SwipeTracker as Pr,swipeBounds as Fr,swipeClosestPointIndex as Ir,swipeEndProgress as Lr,swipeNextPointIndex as Rr,swipePreviousPointIndex as zr,swipeProjectedPointIndex as Br,swipeSlope as Vr,swipeVelocityThreshold as Hr}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as Ur,CAROUSEL_SETTLE_EPSILON as Wr,CarouselState as Gr,carouselClampPosition as Kr,carouselClosestSnapPoint as qr,carouselNavigateTarget as Jr,carouselPageAllocation as Yr,carouselPageAtPosition as Xr,carouselRange as Zr,carouselReorderShift as Qr,carouselSizesFromSnapPoints as $r,carouselSnapPoints as ei,carouselWheelStep as ti}from"./carousel.js";import{checkActivationFlips as ni,checkGroupNeighbours as ri,isRadioCheck as ii,setCheckGroup as ai}from"./check-group.js";import{RadioGroupState as oi,resolveCheckState as si}from"./checks.js";import{adwLerp as ci,easeInOutSine as li,easeOutCubic as ui,inverseLerp as di}from"./easing.js";import{ADW_CLAMP_DEFAULTS as fi,ADW_CLAMP_SIZE_CLASSES as pi,ADW_SPINNER_MAX_SIZE as mi,ADW_SPINNER_MIN_SIZE as hi,ADW_TOOLBAR_BAR_CLASSES as gi,ADW_TOOLBAR_VIEW_CLASSES as _i,ADW_TOOLBAR_VIEW_DEFAULTS as vi,clampAllocate as yi,clampChildSize as bi,clampSizeFromChild as xi,clampThresholds as Si,normalizeClampSize as Ci,parseToolbarStyle as wi,resolveSpinnerSize as Ti,spinnerGeometry as Ei,toolbarBarStyleClasses as Di,toolbarViewAllocate as Oi,toolbarViewClasses as ki,toolbarViewContentForSize as Ai,toolbarViewMeasure as ji}from"./chrome.js";import{DEFAULT_ICON_COLOR as Mi,DEFAULT_ICON_COLOR_DARK as Ni,adwaitaColorScheme as Pi,isThemeIconColor as Fi,onAdwaitaColorSchemeChanged as Ii,setAdwaitaColorScheme as Li,themeIconColor as Ri,toggleAdwaitaColorScheme as zi}from"./color-scheme.js";import{MAXUINT32 as Bi,buildFilenamev as Vi,getCurrentDir as Hi,getSystemDataDirs as Ui}from"./glib-paths.js";import{GtkStringList as Wi,GtkStringObject as Gi,INVALID_LIST_POSITION as Ki}from"./gtk-string-list.js";import{ADW_COMBO_NO_SELECTION as qi,listItemsChanged as Ji,normalizeComboOptions as Yi,parseListModel as Xi}from"./list.js";import{GjsifyOptionList as Zi,GjsifyOptionObject as Qi,readModelWrite as $i}from"./option-list.js";import{ViewStackState as ea,normalizeIconName as ta,resolvePageTitle as na}from"./view-stack.js";import{DEFAULT_TAB_AUTOHIDE as ra,TabViewState as ia,isDescendantOfPage as aa,successorAfterClose as oa,tabCloseVisible as sa,tabIconState as ca,tabSearchMatches as la,tabTooltip as ua,tabTooltipIsMarkup as da,tabViewItemsChanged as fa,tabsRevealed as pa}from"./tab-view.js";import{activateMenuItem as ma,menuActionsFor as ha}from"./menu-actions.js";import{ADW_DATA_GRID_ROW_VARIANTS as ga,DATA_GRID_CELL_CLASS as _a,DATA_GRID_ROW_CLASS as va,dataGridCellText as ya,dataGridColumnAlign as ba,dataGridColumnClasses as xa,dataGridRowInteractive as Sa,dataGridTrackTemplate as Ca,dataGridTracks as wa,normalizeDataGridColumns as Ta,normalizeDataGridVariant as Ea}from"./data-grid.js";import{AdwAlertResponses as Da,BottomSheetPresentation as Oa,resolveBottomSheetChrome as ka,resolveBottomSheetClose as Aa,resolveBottomSheetOpen as ja,resolveBottomSheetSwipeTracker as Ma}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as Na,CAPS_LOCK_TOOLTIP as Pa,EMPTY_ANIMATION_DURATION_MS as Fa,ENTRY_ROW_APPLY_ICON_NAME as Ia,ENTRY_ROW_APPLY_TOOLTIP as La,ENTRY_ROW_EDIT_ICON_NAME as Ra,ENTRY_ROW_MAX_LENGTH_LIMIT as za,ENTRY_ROW_TITLE_SPACING as Ba,EntryRowState as Va,PASSWORD_CONCEAL_ICON_NAME as Ha,PASSWORD_CONCEAL_LABEL as Ua,PASSWORD_REVEAL_ICON_NAME as Wa,PASSWORD_REVEAL_LABEL as Ga,PasswordEntryRowState as Ka,clampEntryMaxLength as qa,clampEntryText as Ja,deriveEntryRowState as Ya,entryRowLatches as Xa,entryTextLength as Za,resolveEntryRowActivation as Qa}from"./entry-row.js";import{FileCreateFlags as $a,FileDialog as eo,FileFilter as to,FileOutputStream as no,GioFile as ro,GioListStore as io,OutputStream as ao,dialogFailedError as oo,dismissedError as so,fileFilterAccepts as co,fileFilterSpec as lo,fileForHandle as uo,promisify as fo,registerFileChooserDriver as po}from"./file-chooser.js";import{AppLaunchContext as mo,createAppInfo as ho,uriPeekScheme as go}from"./gio-app-info.js";import{AppLaunchContext as _o,Clipboard as vo,ContentFormats as yo,ContentProvider as bo,Display as xo,createGdk as So,widgetDisplayMembers as Co}from"./gdk.js";import{GioMenu as wo,GioMenuItem as To}from"./gio-menu.js";import{computeLanguageNames as Eo,languageNamesFromTags as Do,localeFromLanguageTag as Oo}from"./glib-language.js";import{createGLibTimers as ko}from"./glib-timers.js";import{GLIB_UNICHAR_UNICODE_VERSION as Ao}from"./glib-unichar.generated.js";import{unicharIsalpha as jo}from"./glib-unichar.js";import{uriEscapeString as Mo}from"./glib-uri.js";import{Variant as No}from"./glib-variant.js";import{Point as Po,computePoint as Fo}from"./graphene.js";import{gridColumns as Io,gridNavigate as Lo}from"./grid-navigation.js";import{GtkAdjustment as Ro}from"./gtk-adjustment.js";import{HeaderBarState as zo,resolveHeaderBarTitle as Bo}from"./header-bar.js";import{iconLookupNames as Vo,lookupResourceIcon as Ho}from"./icon-theme-resources.js";import{RELEASE_NOTES_LABELS as Uo,releaseNotesBuffer as Wo}from"./release-notes.js";import{AdwToast as Go,AdwToastQueue as Ko,DEFAULT_TOAST_TIMEOUT as qo}from"./toast.js";import{Toast as Jo,ToastOverlayQueue as Yo,ToastPriority as Xo}from"./toast-object.js";import{ADW_COLUMN_VIEW_NO_FIXED_WIDTH as Zo,ADW_GRID_VIEW_MAX_COLUMNS as Qo,ADW_GRID_VIEW_MIN_COLUMNS as $o,ListViewState as es,columnViewSort as ts,columnViewTracks as ns,gridViewColumns as rs,listItemField as is,listViewSelect as as,listViewSelectAll as os,normalizeColumnViewColumns as ss,normalizeListSelectionMode as cs,parseColumnViewColumns as ls}from"./list-view.js";import{treeExpanderAction as us,treeExpanderExpanded as ds,treeExpanderLayout as fs}from"./tree-expander.js";import{ComboState as ps,ExpanderState as ms,ToggleGroupState as hs,keptToggles as gs,toggleIndexOfName as _s}from"./rows.js";import{DEFAULT_LABEL_ELLIPSIZE as vs,DEFAULT_LABEL_LINES as ys,DEFAULT_LABEL_MAX_WIDTH_CHARS as bs,DEFAULT_LABEL_WIDTH_CHARS as xs,DEFAULT_LABEL_WRAP_MODE as Ss,DEFAULT_LABEL_XALIGN as Cs,DEFAULT_LABEL_YALIGN as ws,LABEL_ELLIPSIZE_MODES as Ts,LABEL_JUSTIFICATIONS as Es,LABEL_WRAP_MODES as Ds,labelDisplayText as Os,labelEffectiveLines as ks,labelEllipsizeOverflowValue as As,labelMarkupIsUnparseable as js,labelWidthCharsExtent as Ms,labelYalignAlignItems as Ns,normalizeLabelEllipsize as Ps,normalizeLabelJustify as Fs,normalizeLabelLines as Is,normalizeLabelMaxWidthChars as Ls,normalizeLabelWidthChars as Rs,normalizeLabelWrapMode as zs,normalizeLabelXalign as Bs,normalizeLabelYalign as Vs}from"./label.js";import{syncDirection as Hs,widgetTreeMembers as Us}from"./widget-members.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as Ws,NavigationViewState as Gs,describeNavigationDiagnostic as Ks}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as qs,SidebarState as Js,adjustSidebarSelection as Ys,clampSidebarSelection as Xs,flattenSidebarItems as Zs,sidebarHeaders as Qs}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as $s,ADW_SPINNER_CYCLES_PER_LOOP as ec,ADW_SPINNER_CYCLE_LENGTH as tc,ADW_SPINNER_EXTEND_DISTANCE as nc,ADW_SPINNER_IDLE_DISTANCE as rc,ADW_SPINNER_MAX_ARC_LENGTH as ic,ADW_SPINNER_MIN_ARC_LENGTH as ac,ADW_SPINNER_N_CYCLES as oc,ADW_SPINNER_OVERLAP_DISTANCE as sc,ADW_SPINNER_SPIN_DURATION_MS as cc,ADW_SPINNER_START_ANGLE as lc,ADW_SPINNER_STILL_PROGRESS as uc,ADW_SPINNER_TRACK_OPACITY as dc,normalizeSpinnerAngle as fc,spinnerArc as pc,spinnerArcEnd as mc,spinnerArcStart as hc,spinnerProgressAt as gc}from"./spinner.js";import{parseAccelerator as _c,parseShortcutLabel as vc,shortcutKeycaps as yc}from"./shortcut-label.js";import{formatAcceleratorLabel as bc,formatManifestShortcut as xc}from"./shortcut-format.js";import{ADW_LENGTH_UNITS as Sc,DEFAULT_DPI as Cc,adwLengthToPx as wc,normalizeLengthUnit as Tc}from"./length-unit.js";import{ADW_SWIPE_BORDER as Ec,DEFAULT_MAX_SIDEBAR_WIDTH as Dc,DEFAULT_MIN_SIDEBAR_WIDTH as Oc,DEFAULT_SIDEBAR_WIDTH_FRACTION as kc,DEFAULT_SIDEBAR_WIDTH_UNIT as Ac,INSTANT_SPLIT_VIEW_ANIMATOR as jc,NAVIGATION_SPLIT_VIEW_CRITICALS as Mc,NavigationSplitViewState as Nc,OverlaySplitViewState as Pc,isSidebarAtVisualStart as Fc,layoutNavigationSplitView as Ic,layoutOverlaySplitView as Lc,measureSplitViewHorizontal as Rc,resolveNaturalSidebarWidth as zc,resolveNavigationAction as Bc,resolveNavigationSidebarWidth as Vc,resolveNavigationStack as Hc,resolveOverlaySidebarWidth as Uc,resolveSidebarBounds as Wc,resolveSwipeArea as Gc,resolveSwipeRelease as Kc,resolveSwipeSnapPoints as qc,resolveSwipeStart as Jc,swipeCancelProgress as Yc,tagsConflict as Xc}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as Zc,SPLIT_BUTTON_DISABLED_OPACITY as Qc,SplitButtonState as $c,isSplitButtonDirection as el,menuButtonArrowIcon as tl,menuButtonPopupDirection as nl,resolveDropdownTooltip as rl,splitButtonArrowIcon as il,splitButtonPopupDirection as al,splitButtonRootState as ol,splitButtonStyleClasses as sl}from"./split-button.js";import{assertPopupMenuPlan as cl,planPopupMenu as ll}from"./popup-menu-plan.js";import{menuAssignments as ul}from"./menu-tree.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as dl,INLINE_VIEW_SWITCHER_DISPLAY_MODES as fl,VIEW_SWITCHER_BADGE_LIMIT as pl,VIEW_SWITCHER_DRAG_SWITCH_DELAY as ml,VIEW_SWITCHER_FALLBACK_ICON as hl,VIEW_SWITCHER_NO_SELECTION as gl,VIEW_SWITCHER_POLICIES as _l,ViewSwitcherBarState as vl,ViewSwitcherDragSwitch as yl,ViewSwitcherState as bl,buildInlineToggles as xl,buildViewSwitcherButtons as Sl,createViewSwitcherPage as Cl,inlineToggleTooltip as wl,isInlineViewSwitcherDisplayMode as Tl,isViewSwitcherButtonVisible as El,isViewSwitcherPolicy as Dl,pageIndexForToggle as Ol,shouldRevealViewSwitcherBar as kl,toggleIndexForPage as Al,viewSwitcherBadgeLabel as jl,viewSwitcherButtonOrientation as Ml,viewSwitcherIconName as Nl,viewSwitcherIndicatorDescription as Pl,viewSwitcherLabel as Fl,viewSwitcherPageFromStackPage as Il,viewSwitcherPagesFromStack as Ll,viewSwitcherSidebarSections as Rl}from"./view-switcher.js";import{UNTITLED_PAGE_LABEL as zl,collectSearchRows as Bl,countVisiblePages as Vl,createSearchRowSubtitle as Hl,defaultCaseFolder as Ul,derivePreferencesGroupHeader as Wl,makeComparable as Gl,rowMatchesQuery as Kl,searchPreferences as ql}from"./preferences.js";import{ADW_MAX_OVERSHOOT_DISTANCE as Jl,ADW_OVERSHOOT_SETTLE_MS as Yl,ADW_UNDERSHOOT_CLASSES as Xl,ADW_UNDERSHOOT_SIZE as Zl,accumulateOvershoot as Ql,isScrolledFromEnd as $l,isScrolledFromStart as eu,overshootDistance as tu,scrollMaxValue as nu,scrollUndershootClasses as ru}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as iu,POPOVER_MENU_PADDING as au,POPOVER_PADDING as ou,POPOVER_RADIUS as su,PopoverState as cu,resolvePopoverKey as lu}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as uu,ADW_WRAP_BOX_DEFAULT_JUSTIFY as du,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as fu,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as pu,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as mu,ADW_WRAP_BOX_DEFAULT_SPACING as hu,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as gu,ADW_WRAP_BOX_JUSTIFY_MODES as _u,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as vu,ADW_WRAP_BOX_PACK_DIRECTIONS as yu,ADW_WRAP_POLICIES as bu,normalizeNaturalLineLength as xu,normalizeWrapBoxAlign as Su,normalizeWrapBoxJustify as Cu,normalizeWrapBoxLengthUnit as wu,normalizeWrapBoxPackDirection as Tu,normalizeWrapBoxSpacing as Eu,normalizeWrapPolicy as Du,resolveWrapBoxChildOrder as Ou,resolveWrapBoxLine as ku,wrapBoxChildFlex as Au,wrapBoxFlexStyle as ju,wrapBoxLengthToPx as Mu,wrapPolicyFlexShrink as Nu}from"./wrap-box.js";import{ADW_SOURCE_6502_DIRECTIVES as Pu,ADW_SOURCE_6502_LINE_COMMENT as Fu,ADW_SOURCE_6502_OPCODES as Iu,ADW_SOURCE_6502_REGISTERS as Lu,ADW_SOURCE_6502_TOKEN_ROLES as Ru,ADW_SOURCE_HEX_STRIDE as zu,ADW_SOURCE_PALETTE_DARK as Bu,ADW_SOURCE_PALETTE_LIGHT as Vu,ADW_SOURCE_SYNTAX_ROLES as Hu,classifyAsm6502Word as Uu,formatHexAddress as Wu,formatLineNumber as Gu,stripSourceWhitespace as Ku,tokenizeAsm6502 as qu}from"./source.js";import{CloseRequestState as Ju,HandledAccumulator as Yu,WindowMemberState as Xu,stepDefaultSize as Zu}from"./window-members.js";import{RGBA as Qu}from"./rgba.js";import{AccentColor as $u,ColorScheme as ed,StyleManagerBase as td}from"./style-manager.js";export{H as ADW_ABOUT_DIALOG_LABELS,Se as ADW_ACCENT_BG_COLORS,Ce as ADW_ACCENT_COLOR_NAMES,we as ADW_ACCENT_FG_COLOR,Ye as ADW_ACCENT_META,Xe as ADW_ACCENT_META_SYSTEM,He as ADW_ADJUSTMENT_DEFAULTS,Cn as ADW_BANNER_BUTTON_STYLES,wn as ADW_BANNER_BUTTON_STYLE_CLASSES,Tn as ADW_BANNER_DEFAULTS,Kn as ADW_BUTTON_CONTENT_DEFAULTS,ir as ADW_BUTTON_STYLE_ALIASES,ar as ADW_BUTTON_STYLE_CLASSES,fi as ADW_CLAMP_DEFAULTS,pi as ADW_CLAMP_SIZE_CLASSES,Ze as ADW_COLOR_SCHEME_META,Zo as ADW_COLUMN_VIEW_NO_FIXED_WIDTH,qi as ADW_COMBO_NO_SELECTION,U as ADW_CREDITS_SECTION_TITLES,ga as ADW_DATA_GRID_ROW_VARIANTS,Te as ADW_DEFAULT_ACCENT_COLOR,Qo as ADW_GRID_VIEW_MAX_COLUMNS,$o as ADW_GRID_VIEW_MIN_COLUMNS,W as ADW_LEGAL_DEFAULT_TITLE,Sc as ADW_LENGTH_UNITS,G as ADW_LICENSES,K as ADW_LICENSE_ALIASES,q as ADW_LICENSE_DEFAULTS,J as ADW_LICENSE_WARRANTY_TEMPLATE,Y as ADW_LINK_ROW_ICON_NAME,X as ADW_LINK_ROW_MAIL_ICON_NAME,Jl as ADW_MAX_OVERSHOOT_DISTANCE,Wt as ADW_MENU_SURFACE_NATIVESCRIPT,Gt as ADW_MENU_SURFACE_WEB,Yl as ADW_OVERSHOOT_SETTLE_MS,qs as ADW_SIDEBAR_NO_SELECTION,Pu as ADW_SOURCE_6502_DIRECTIVES,Fu as ADW_SOURCE_6502_LINE_COMMENT,Iu as ADW_SOURCE_6502_OPCODES,Lu as ADW_SOURCE_6502_REGISTERS,Ru as ADW_SOURCE_6502_TOKEN_ROLES,zu as ADW_SOURCE_HEX_STRIDE,Bu as ADW_SOURCE_PALETTE_DARK,Vu as ADW_SOURCE_PALETTE_LIGHT,Hu as ADW_SOURCE_SYNTAX_ROLES,$s as ADW_SPINNER_CONTRACT_DISTANCE,ec as ADW_SPINNER_CYCLES_PER_LOOP,tc as ADW_SPINNER_CYCLE_LENGTH,nc as ADW_SPINNER_EXTEND_DISTANCE,rc as ADW_SPINNER_IDLE_DISTANCE,ic as ADW_SPINNER_MAX_ARC_LENGTH,mi as ADW_SPINNER_MAX_SIZE,ac as ADW_SPINNER_MIN_ARC_LENGTH,hi as ADW_SPINNER_MIN_SIZE,oc as ADW_SPINNER_N_CYCLES,sc as ADW_SPINNER_OVERLAP_DISTANCE,cc as ADW_SPINNER_SPIN_DURATION_MS,lc as ADW_SPINNER_START_ANGLE,uc as ADW_SPINNER_STILL_PROGRESS,dc as ADW_SPINNER_TRACK_OPACITY,Ec as ADW_SWIPE_BORDER,Cr as ADW_SWIPE_DECELERATION_TOUCH,wr as ADW_SWIPE_DECELERATION_TOUCHPAD,Tr as ADW_SWIPE_DRAG_THRESHOLD,Er as ADW_SWIPE_EPSILON,Dr as ADW_SWIPE_HISTORY_THRESHOLD_MS,Or as ADW_SWIPE_PARABOLA_MULTIPLIER,kr as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,Ar as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,jr as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,Mr as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,Nr as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,Qe as ADW_SYSTEM_COLOR_SCHEMES,gi as ADW_TOOLBAR_BAR_CLASSES,_i as ADW_TOOLBAR_VIEW_CLASSES,vi as ADW_TOOLBAR_VIEW_DEFAULTS,Z as ADW_TRANSLATOR_CREDITS_SENTINELS,Xl as ADW_UNDERSHOOT_CLASSES,Zl as ADW_UNDERSHOOT_SIZE,uu as ADW_WRAP_BOX_DEFAULT_ALIGN,du as ADW_WRAP_BOX_DEFAULT_JUSTIFY,fu as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,pu as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,mu as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,hu as ADW_WRAP_BOX_DEFAULT_SPACING,gu as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,_u as ADW_WRAP_BOX_JUSTIFY_MODES,vu as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,yu as ADW_WRAP_BOX_PACK_DIRECTIONS,bu as ADW_WRAP_POLICIES,rt as APPLE_ACCENT_COLORS,it as APPLE_MULTICOLOR_ACCENT,dn as AVATAR_COLORS,fn as AVATAR_COLOR_COUNT,ve as AcceleratorMap,$u as AccentColor,ot as ActionRegistry,Ie as ActionRowState,Da as AdwAlertResponses,Vn as AdwBreakpoint,Go as AdwToast,Ko as AdwToastQueue,nn as ApplicationFlags,rn as ApplicationInhibitFlags,Ws as BACK_BUTTON_FALLBACK_TOOLTIP,qn as BUTTON_CONTENT_BOX_SPACING,Jn as BUTTON_CONTENT_FALLBACK_ICON,Yn as BUTTON_CONTENT_STYLE_CLASS,Le as BUTTON_ROW_ACTIVATABLE,Oa as BottomSheetPresentation,Wn as BreakpointBinState,Re as ButtonRowState,cr as CALENDAR_MARK_MAX,lr as CALENDAR_MARK_MIN,ur as CALENDAR_YEAR_MAX,dr as CALENDAR_YEAR_MIN,Na as CAPS_LOCK_ICON_NAME,Pa as CAPS_LOCK_TOOLTIP,Ur as CAROUSEL_SCROLL_TIMEOUT_MS,Wr as CAROUSEL_SETTLE_EPSILON,kt as CURRENT_TIME,Gr as CarouselState,vo as Clipboard,Ju as CloseRequestState,ed as ColorScheme,ps as ComboState,yo as ContentFormats,bo as ContentProvider,At as CssProvider,_a as DATA_GRID_CELL_CLASS,va as DATA_GRID_ROW_CLASS,Rn as DEFAULT_BOX_SPACING,Cc as DEFAULT_DPI,Zc as DEFAULT_DROPDOWN_TOOLTIP,Mi as DEFAULT_ICON_COLOR,Ni as DEFAULT_ICON_COLOR_DARK,dl as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,vs as DEFAULT_LABEL_ELLIPSIZE,ys as DEFAULT_LABEL_LINES,bs as DEFAULT_LABEL_MAX_WIDTH_CHARS,xs as DEFAULT_LABEL_WIDTH_CHARS,Ss as DEFAULT_LABEL_WRAP_MODE,Cs as DEFAULT_LABEL_XALIGN,ws as DEFAULT_LABEL_YALIGN,Dc as DEFAULT_MAX_SIDEBAR_WIDTH,Oc as DEFAULT_MIN_SIDEBAR_WIDTH,kc as DEFAULT_SIDEBAR_WIDTH_FRACTION,Ac as DEFAULT_SIDEBAR_WIDTH_UNIT,ra as DEFAULT_TAB_AUTOHIDE,qo as DEFAULT_TOAST_TIMEOUT,_t as DialogError,xo as Display,Fa as EMPTY_ANIMATION_DURATION_MS,Ia as ENTRY_ROW_APPLY_ICON_NAME,La as ENTRY_ROW_APPLY_TOOLTIP,Ra as ENTRY_ROW_EDIT_ICON_NAME,za as ENTRY_ROW_MAX_LENGTH_LIMIT,Ba as ENTRY_ROW_TITLE_SPACING,Va as EntryRowState,jt as EventControllerKey,ms as ExpanderState,$a as FileCreateFlags,Mt as GDK_KEYS,c as GIR_TYPE,Ao as GLIB_UNICHAR_UNICODE_VERSION,gt as GLibBytes,vt as GLibError,No as GLibVariant,l as GObjectObject,Q as GTK_LICENSE,_o as GdkAppLaunchContext,mo as GioAppLaunchContext,an as GioApplicationBase,ro as GioFile,no as GioFileOutputStream,io as GioListStore,wo as GioMenu,To as GioMenuItem,ao as GioOutputStream,St as GioResource,Zi as GjsifyOptionList,Qi as GjsifyOptionObject,Ro as GtkAdjustment,on as GtkApplicationBase,eo as GtkFileDialog,to as GtkFileFilter,Nt as GtkSettings,Wi as GtkStringList,Gi as GtkStringObject,Yu as HandledAccumulator,zo as HeaderBarState,fl as INLINE_VIEW_SWITCHER_DISPLAY_MODES,jc as INSTANT_SPLIT_VIEW_ANIMATOR,Ki as INVALID_LIST_POSITION,yt as IOErrorEnum,Pt as IconTheme,Ts as LABEL_ELLIPSIZE_MODES,Es as LABEL_JUSTIFICATIONS,Ds as LABEL_WRAP_MODES,u as ListModel,es as ListViewState,Bi as MAXUINT32,d as META_SYMBOLS,ye as ModifierMask,Mc as NAVIGATION_SPLIT_VIEW_CRITICALS,Nc as NavigationSplitViewState,Gs as NavigationViewState,Pc as OverlaySplitViewState,R as PANGO_MARKUP_TAGS,Ha as PASSWORD_CONCEAL_ICON_NAME,Ua as PASSWORD_CONCEAL_LABEL,Wa as PASSWORD_REVEAL_ICON_NAME,Ga as PASSWORD_REVEAL_LABEL,iu as POPOVER_ITEM_RADIUS,au as POPOVER_MENU_PADDING,ou as POPOVER_PADDING,su as POPOVER_RADIUS,f as PURE_JS_ENGINE,p as ParamFlags,m as ParamSpec,Ka as PasswordEntryRowState,Po as Point,cu as PopoverState,Uo as RELEASE_NOTES_LABELS,Qu as RGBA,oi as RadioGroupState,bt as ResourceError,Ct as ResourceLookupFlags,Qc as SPLIT_BUTTON_DISABLED_OPACITY,h as STOP_EMISSION,Ft as STYLE_PROVIDER_PRIORITY_APPLICATION,It as STYLE_PROVIDER_PRIORITY_FALLBACK,Lt as STYLE_PROVIDER_PRIORITY_SETTINGS,Rt as STYLE_PROVIDER_PRIORITY_THEME,zt as STYLE_PROVIDER_PRIORITY_USER,Js as SidebarState,st as SimpleAction,ct as SimpleActionGroup,Ue as SpinState,$c as SplitButtonState,td as StyleManagerBase,Pr as SwipeTracker,ze as SwitchRowState,g as TYPE_BOOLEAN,_ as TYPE_DOUBLE,v as TYPE_INT,y as TYPE_OBJECT,b as TYPE_STRING,x as TYPE_UINT,ia as TabViewState,Jo as Toast,Yo as ToastOverlayQueue,Xo as ToastPriority,hs as ToggleGroupState,S as UNLOCKED_VFUNCS,zl as UNTITLED_PAGE_LABEL,C as UnsupportedGObjectError,pl as VIEW_SWITCHER_BADGE_LIMIT,ml as VIEW_SWITCHER_DRAG_SWITCH_DELAY,hl as VIEW_SWITCHER_FALLBACK_ICON,gl as VIEW_SWITCHER_NO_SELECTION,_l as VIEW_SWITCHER_POLICIES,w as Value,ea as ViewStackState,vl as ViewSwitcherBarState,yl as ViewSwitcherDragSwitch,bl as ViewSwitcherState,Xu as WindowMemberState,Be as WindowTitleState,$ as aboutDialogVisibility,be as acceleratorName,Ql as accumulateOvershoot,ee as acknowledgementSections,lt as actionRegistryOf,ma as activateMenuItem,ut as activateWidgetAction,Ys as adjustSidebarSelection,We as adjustmentRange,at as adwAccentFromAppleAccentColor,wc as adwLengthToPx,ci as adwLerp,Ee as adwaitaAccent,De as adwaitaAccentBgColor,Oe as adwaitaAccentColor,Pi as adwaitaColorScheme,ke as adwaitaStandaloneColor,$e as appearanceFromMeta,dt as applicationOfWindow,xt as asGLibError,Kt as assertMenuRenderable,cl as assertPopupMenuPlan,pn as avatarColor,mn as avatarColorClass,hn as avatarFontSize,gn as avatarIconSize,_n as avatarInitials,vn as avatarMaxFontSize,yn as avatarMode,En as bannerButtonStyleClasses,Dn as bannerButtonText,On as bannerButtonVisible,kn as bannerRenderState,T as bindProperties,Vi as buildFilenamev,xl as buildInlineToggles,Sl as buildViewSwitcherButtons,Xn as buttonContentEllipsize,Zn as buttonContentIconExpands,Qn as buttonContentIconIsEmpty,$n as buttonContentIconName,er as buttonContentLabelText,tr as buttonContentLabelVisible,nr as buttonContentRenderState,rr as buttonContentStyleTargetIndex,or as buttonStyleClass,sr as buttonStyleClasses,fr as calendarClearMarks,pr as calendarDayIsMarked,mr as calendarDays,hr as calendarDaysInMonth,gr as calendarIsLeapYear,_r as calendarMarkDay,vr as calendarNavigationButtons,yr as calendarSelectDay,br as calendarStep,xr as calendarWeekNumber,Sr as calendarWeekStart,Kr as carouselClampPosition,qr as carouselClosestSnapPoint,Jr as carouselNavigateTarget,Yr as carouselPageAllocation,Xr as carouselPageAtPosition,Zr as carouselRange,Qr as carouselReorderShift,$r as carouselSizesFromSnapPoints,ei as carouselSnapPoints,ti as carouselWheelStep,ni as checkActivationFlips,ri as checkGroupNeighbours,Ge as clampAdjustmentValue,yi as clampAllocate,bi as clampChildSize,qa as clampEntryMaxLength,Ja as clampEntryText,Xs as clampSidebarSelection,xi as clampSizeFromChild,Si as clampThresholds,Uu as classifyAsm6502Word,Bl as collectSearchRows,ts as columnViewSort,ns as columnViewTracks,Eo as computeLanguageNames,Fo as computePoint,E as connectInstance,D as constructRegistered,Vl as countVisiblePages,ho as createAppInfo,Gn as createBreakpointDriver,O as createClosure,ko as createGLibTimers,k as createGObject,So as createGdk,Bt as createGtkPlatform,Hl as createSearchRowSubtitle,Cl as createViewSwitcherPage,te as creditsSections,ya as dataGridCellText,ba as dataGridColumnAlign,xa as dataGridColumnClasses,Sa as dataGridRowInteractive,Ca as dataGridTrackTemplate,wa as dataGridTracks,Ul as defaultCaseFolder,sn as defineWindowApplicationMembers,Vt as deliverKeyToControllers,Ya as deriveEntryRowState,Wl as derivePreferencesGroupHeader,Ve as deriveRowLabels,Ks as describeNavigationDiagnostic,oo as dialogFailedError,A as disconnectInstance,so as dismissedError,cn as dispatchAccelerator,li as easeInOutSine,ui as easeOutCubic,j as emitInstance,i as engineForTarget,Xa as entryRowLatches,Za as entryTextLength,z as escapeMarkup,Hn as evaluateBreakpointCondition,co as fileFilterAccepts,lo as fileFilterSpec,uo as fileForHandle,ft as findActionGroup,ne as flatCardShowsWebsite,bn as flattenAvatarGradient,qt as flattenMenu,Zs as flattenSidebarItems,bc as formatAcceleratorLabel,Ae as formatAdwRgb,Wu as formatHexAddress,Gu as formatLineNumber,xc as formatManifestShortcut,xn as gStrHash,e as gStrStrip,Hi as getCurrentDir,Ui as getSystemDataDirs,t as glibClamp,M as gobjectEngineName,Io as gridColumns,Lo as gridNavigate,rs as gridViewColumns,Vo as iconLookupNames,wl as inlineToggleTooltip,pt as insertActionGroup,mt as installActionMap,di as inverseLerp,je as isAdwAccentColorName,et as isAdwSystemColorScheme,An as isBannerButtonStyle,aa as isDescendantOfPage,Tl as isInlineViewSwitcherDisplayMode,re as isLicenseType,ii as isRadioCheck,$l as isScrolledFromEnd,eu as isScrolledFromStart,Fc as isSidebarAtVisualStart,el as isSplitButtonDirection,Fi as isThemeIconColor,ln as isValidApplicationId,El as isViewSwitcherButtonVisible,Dl as isViewSwitcherPolicy,gs as keptToggles,Ht as keyvalOfKey,Os as labelDisplayText,ks as labelEffectiveLines,As as labelEllipsizeOverflowValue,js as labelMarkupIsUnparseable,Ms as labelWidthCharsExtent,Ns as labelYalignAlignItems,Do as languageNamesFromTags,Ic as layoutNavigationSplitView,Lc as layoutOverlaySplitView,ie as legalMarkupText,ae as legalSectionVisible,oe as legalSections,se as legalVisible,ce as licenseText,le as licenseTypeForNick,ue as licenseTypeForSpdxId,de as linkRowIconName,fe as linkRowTooltip,ht as linkWindow,Mn as listBoxSelect,Nn as listBoxSelectAll,Pn as listBoxSelectRow,Fn as listBoxUnselectAll,In as listBoxUnselectRow,is as listItemField,Ji as listItemsChanged,as as listViewSelect,os as listViewSelectAll,Oo as localeFromLanguageTag,Ho as lookupResourceIcon,Gl as makeComparable,Rc as measureSplitViewHorizontal,ha as menuActionsFor,ul as menuAssignments,tl as menuButtonArrowIcon,nl as menuButtonPopupDirection,Jt as menuItemAt,Yt as menuLabelText,Xt as menuNodeAt,Zt as menuRefusals,Me as nearestAccent,Ke as normalizeAdjustment,zn as normalizeBoxOrientation,Ln as normalizeBoxSelectionMode,Bn as normalizeBoxSpacing,Ci as normalizeClampSize,ss as normalizeColumnViewColumns,Yi as normalizeComboOptions,Ta as normalizeDataGridColumns,Ea as normalizeDataGridVariant,ta as normalizeIconName,Ps as normalizeLabelEllipsize,Fs as normalizeLabelJustify,Is as normalizeLabelLines,Ls as normalizeLabelMaxWidthChars,Rs as normalizeLabelWidthChars,zs as normalizeLabelWrapMode,Bs as normalizeLabelXalign,Vs as normalizeLabelYalign,Tc as normalizeLengthUnit,cs as normalizeListSelectionMode,Qt as normalizeMenuModel,xu as normalizeNaturalLineLength,fc as normalizeSpinnerAngle,Su as normalizeWrapBoxAlign,Cu as normalizeWrapBoxJustify,wu as normalizeWrapBoxLengthUnit,Tu as normalizeWrapBoxPackDirection,Eu as normalizeWrapBoxSpacing,Du as normalizeWrapPolicy,N as notifyInstance,Ne as onAdwaitaAccentChanged,Ii as onAdwaitaColorSchemeChanged,tu as overshootDistance,Ol as pageIndexForToggle,_c as parseAccelerator,xe as parseAcceleratorKeyval,qe as parseAdjustment,Pe as parseAdwRgb,jn as parseBannerButtonStyle,Un as parseBreakpointCondition,ls as parseColumnViewColumns,pe as parseCreditPerson,tt as parseDesktopAppearance,$t as parseDetailedAction,Xi as parseListModel,en as parseMenuModel,B as parsePangoMarkup,vc as parseShortcutLabel,wi as parseToolbarStyle,ll as planPopupMenu,fo as promisify,Sn as randomAvatarColorClass,$i as readModelWrite,P as refuseForeignInterfaces,me as refuseNewFromAppdata,F as registerBaseClass,po as registerFileChooserDriver,a as registerGObjectEngine,I as registeredClassOf,o as registeredEngine,Wo as releaseNotesBuffer,nt as renderAppearanceMeta,s as resetRegisteredEngine,ka as resolveBottomSheetChrome,Aa as resolveBottomSheetClose,ja as resolveBottomSheetOpen,Ma as resolveBottomSheetSwipeTracker,si as resolveCheckState,rl as resolveDropdownTooltip,Qa as resolveEntryRowActivation,Bo as resolveHeaderBarTitle,tn as resolveMenuItemState,zc as resolveNaturalSidebarWidth,Bc as resolveNavigationAction,Vc as resolveNavigationSidebarWidth,Hc as resolveNavigationStack,Uc as resolveOverlaySidebarWidth,na as resolvePageTitle,lu as resolvePopoverKey,Wc as resolveSidebarBounds,Ti as resolveSpinnerSize,Gc as resolveSwipeArea,Kc as resolveSwipeRelease,qc as resolveSwipeSnapPoints,Jc as resolveSwipeStart,Ou as resolveWrapBoxChildOrder,ku as resolveWrapBoxLine,wt as resources_enumerate_children,Tt as resources_get_info,Et as resources_lookup_data,Dt as resources_register,Ot as resources_unregister,Kl as rowMatchesQuery,nu as scrollMaxValue,ru as scrollUndershootClasses,ql as searchPreferences,Fe as setAdwaitaAccent,Li as setAdwaitaColorScheme,ai as setCheckGroup,he as setLicense,ge as setLicenseType,yc as shortcutKeycaps,kl as shouldRevealViewSwitcherBar,Qs as sidebarHeaders,Je as snapAdjustmentValue,pc as spinnerArc,mc as spinnerArcEnd,hc as spinnerArcStart,Ei as spinnerGeometry,gc as spinnerProgressAt,il as splitButtonArrowIcon,al as splitButtonPopupDirection,ol as splitButtonRootState,sl as splitButtonStyleClasses,Zu as stepDefaultSize,n as stringIsNotEmpty,V as stripMarkup,r as stripMnemonic,Ku as stripSourceWhitespace,oa as successorAfterClose,Fr as swipeBounds,Yc as swipeCancelProgress,Ir as swipeClosestPointIndex,Lr as swipeEndProgress,Rr as swipeNextPointIndex,zr as swipePreviousPointIndex,Br as swipeProjectedPointIndex,Vr as swipeSlope,Hr as swipeVelocityThreshold,Hs as syncDirection,sa as tabCloseVisible,ca as tabIconState,la as tabSearchMatches,ua as tabTooltip,da as tabTooltipIsMarkup,fa as tabViewItemsChanged,pa as tabsRevealed,Xc as tagsConflict,Ri as themeIconColor,zi as toggleAdwaitaColorScheme,Al as toggleIndexForPage,_s as toggleIndexOfName,qu as tokenizeAsm6502,Di as toolbarBarStyleClasses,Oi as toolbarViewAllocate,ki as toolbarViewClasses,Ai as toolbarViewContentForSize,ji as toolbarViewMeasure,_e as translatorCreditsPeople,us as treeExpanderAction,ds as treeExpanderExpanded,fs as treeExpanderLayout,jo as unicharIsalpha,Mo as uriEscapeString,go as uriPeekScheme,L as usePureJsGObjectEngine,jl as viewSwitcherBadgeLabel,Ml as viewSwitcherButtonOrientation,Nl as viewSwitcherIconName,Pl as viewSwitcherIndicatorDescription,Fl as viewSwitcherLabel,Il as viewSwitcherPageFromStackPage,Ll as viewSwitcherPagesFromStack,Rl as viewSwitcherSidebarSections,Ut as widgetControllerMembers,Co as widgetDisplayMembers,Us as widgetTreeMembers,un as withGtkApplication,Au as wrapBoxChildFlex,ju as wrapBoxFlexStyle,Mu as wrapBoxLengthToPx,Nu as wrapPolicyFlexShrink};
|