(?:`)?(?:apple`public`source`license`version`1\.0`\-`march`16,`1999)?(?:`)?(?:`)?(?:please`read`this`license`carefully`before`downloading`this`software\.`by`downloading`and`using`this`software,`you`are`agreeing`to`be`bound`by`the`terms`of`this`license\.`if`you`do`not`or`cannot`agree`to`the`terms`of`this`license,`please`do`not`download`or`use`the`software\.)?(?:`)?(?:`)?(?:.{,20})(?:`)?general;`definitions\.`this`license`applies`to`any`program`or`other`work`which`apple`computer,`inc\.`\(`apple`\)`publicly`announces`as`subject`to`this`apple`public`source`license`and`which`contains`a`notice`placed`by`apple`identifying`such`program`or`work`as`original`code`and`stating`that`it`is`subject`to`the`terms`of`this`apple`public`source`license`version`1\.0`\(or`subsequent`version`thereof\),`as`it`may`be`revised`from`time`to`time`by`apple`\(`license`\)\.`as`used`in`this`license:(?:`)?(?:.{,20})(?:`)?`applicable`patents`mean:`\(a\)`in`the`case`where`apple`is`the`grantor`of`rights,`\(i\)`patents`or`patent`applications`that`are`now`or`hereafter`acquired,`owned`by`or`assigned`to`apple`and`\(ii\)`whose`claims`cover`subject`matter`contained`in`the`original`code,`but`only`to`the`extent`necessary`to`use,`reproduce`and`or`distribute`the`original`code`without`infringement;`and`\(b\)`in`the`case`where`you`are`the`grantor`of`rights,`\(i\)`patents`and`patent`applications`that`are`now`or`hereafter`acquired,`owned`by`or`assigned`to`you`and`\(ii\)`whose`claims`cover`subject`matter`in`your`modifications,`taken`alone`or`in`combination`with`original`code\.(?:`)?(?:.{,20})(?:`)?`covered`code`means`the`original`code,`modifications,`the`combination`of`original`code`and`any`modifications,`and`or`any`respective`portions`thereof\.(?:`)?(?:.{,20})(?:`)?`deploy`means`to`use,`sublicense`or`distribute`covered`code`other`than`for`your`internal`research`and`development`\(r\&d\),`and`includes`without`limitation,`any`and`all`internal`use`or`distribution`of`covered`code`within`your`business`or`organization`except`for`r\&d`use,`as`well`as`direct`or`indirect`sublicensing`or`distribution`of`covered`code`by`you`to`any`third`party`in`any`form`or`manner\.(?:`)?(?:.{,20})(?:`)?`larger`work`means`a`work`which`combines`covered`code`or`portions`thereof`with`code`not`governed`by`the`terms`of`this`license\.(?:`)?(?:.{,20})(?:`)?`modifications`mean`any`addition`to,`deletion`from,`and`or`change`to,`the`substance`and`or`structure`of`covered`code\.`when`code`is`released`as`a`series`of`files,`a`modification`is:`\(a\)`any`addition`to`or`deletion`from`the`contents`of`a`file`containing`covered`code;`and`or`\(b\)`any`new`file`or`other`representation`of`computer`program`statements`that`contains`any`part`of`covered`code\.(?:`)?(?:.{,20})(?:`)?`original`code`means`the`source`code`of`a`program`or`other`work`as`originally`made`available`by`apple`under`this`license,`including`the`source`code`of`any`updates`or`upgrades`to`such`programs`or`works`made`available`by`apple`under`this`license,`and`that`has`been`expressly`identified`by`apple`as`such`in`the`header`file\(s\)`of`such`work\.(?:`)?(?:.{,20})(?:`)?`source`code`means`the`human`readable`form`of`a`program`or`other`work`that`is`suitable`for`making`modifications`to`it,`including`all`modules`it`contains,`plus`any`associated`interface`definition`files,`scripts`used`to`control`compilation`and`installation`of`an`executable`\(object`code\)\.(?:`)?(?:.{,20})(?:`)?`you`or`your`means`an`individual`or`a`legal`entity`exercising`rights`under`this`license\.`for`legal`entities,`you`or`your`includes`any`entity`which`controls,`is`controlled`by,`or`is`under`common`control`with,`you,`where`control`means`\(a\)`the`power,`direct`or`indirect,`to`cause`the`direction`or`management`of`such`entity,`whether`by`contract`or`otherwise,`or`\(b\)`ownership`of`fifty`percent`\(50%\)`or`more`of`the`outstanding`shares`or`beneficial`ownership`of`such`entity\.(?:`)?(?:.{,20})(?:`)?permitted`uses;`conditions`\&`restrictions\.`subject`to`the`terms`and`conditions`of`this`license,`apple`hereby`grants`you,`effective`on`the`date`you`accept`this`license`and`download`the`original`code,`a`world\-`wide,`royalty\-`free,`non\-`exclusive`license,`to`the`extent`of`apple`s`applicable`patents`and`copyrights`covering`the`original`code,`to`do`the`following:(?:`)?(?:.{,20})(?:`)?you`may`use,`copy,`modify`and`distribute`original`code,`with`or`without`modifications,`solely`for`your`internal`research`and`development,`provided`that`you`must`in`each`instance:(?:`)?(?:.{,20})(?:`)?retain`and`reproduce`in`all`copies`of`original`code`the`copyright`and`other`proprietary`notices`and`disclaimers`of`apple`as`they`appear`in`the`original`code,`and`keep`intact`all`notices`in`the`original`code`that`refer`to`this`license;(?:`)?(?:.{,20})(?:`)?include`a`copy`of`this`license`with`every`copy`of`source`code`of`covered`code`and`documentation`you`distribute,`and`you`may`not`offer`or`impose`any`terms`on`such`source`code`that`alter`or`restrict`this`license`or`the`recipients`rights`hereunder,`except`as`permitted`under`section`6;`and(?:`)?(?:.{,20})(?:`)?completely`and`accurately`document`all`modifications`that`you`have`made`and`the`date`of`each`such`modification,`designate`the`version`of`the`original`code`you`used,`prominently`include`a`file`carrying`such`information`with`the`modifications,`and`duplicate`the`notice`in`exhibit`a`in`each`file`of`the`source`code`of`all`such`modifications\.(?:`)?(?:.{,20})(?:`)?you`may`deploy`covered`code,`provided`that`you`must`in`each`instance:(?:`)?(?:.{,20})(?:`)?satisfy`all`the`conditions`of`section`2\.1`with`respect`to`the`source`code`of`the`covered`code;(?:`)?(?:.{,20})(?:`)?make`all`your`deployed`modifications`publicly`available`in`source`code`form`via`electronic`distribution`\(e\.`g\.`download`from`a`web`site\)`under`the`terms`of`this`license`and`subject`to`the`license`grants`set`forth`in`section`3`below,`and`any`additional`terms`you`may`choose`to`offer`under`section`6\.`you`must`continue`to`make`the`source`code`of`your`deployed`modifications`available`for`as`long`as`you`deploy`the`covered`code`or`twelve`\(12\)`months`from`the`date`of`initial`deployment,`whichever`is`longer;(?:`)?(?:.{,20})(?:`)?must`notify`apple`and`other`third`parties`of`how`to`obtain`your`deployed`modifications`by`filling`out`and`submitting`the`required`information`found`at`http:`www\.`apple\.`com`publicsource`modifications\.`html;`and(?:`)?(?:.{,20})(?:`)?if`you`deploy`covered`code`in`object`code,`executable`form`only,`include`a`prominent`notice,`in`the`code`itself`as`well`as`in`related`documentation,`stating`that`source`code`of`the`covered`code`is`available`under`the`terms`of`this`license`with`information`on`how`and`where`to`obtain`such`source`code\.(?:`)?(?:.{,20})(?:`)?your`grants\.`in`consideration`of,`and`as`a`condition`to,`the`licenses`granted`to`you`under`this`license:(?:`)?(?:.{,20})(?:`)?you`hereby`grant`to`apple`and`all`third`parties`a`non\-`exclusive,`royalty\-`free`license,`under`your`applicable`patents`and`other`intellectual`property`rights`owned`or`controlled`by`you,`to`use,`reproduce,`modify,`distribute`and`deploy`your`modifications`of`the`same`scope`and`extent`as`apple`s`licenses`under`sections`2\.1`and`2\.2;`and(?:`)?(?:.{,20})(?:`)?you`hereby`grant`to`apple`and`its`subsidiaries`a`non\-`exclusive,`worldwide,`royalty\-`free,`perpetual`and`irrevocable`license,`under`your`applicable`patents`and`other`intellectual`property`rights`owned`or`controlled`by`you,`to`use,`reproduce,`execute,`compile,`display,`perform,`modify`or`have`modified`\(for`apple`and`or`its`subsidiaries\),`sublicense`and`distribute`your`modifications,`in`any`form,`through`multiple`tiers`of`distribution\.(?:`)?(?:.{,20})(?:`)?larger`works\.`you`may`create`a`larger`work`by`combining`covered`code`with`other`code`not`governed`by`the`terms`of`this`license`and`distribute`the`larger`work`as`a`single`product\.`in`each`such`instance,`you`must`make`sure`the`requirements`of`this`license`are`fulfillled`for`the`covered`code`or`any`portion`thereof\.(?:`)?(?:.{,20})(?:`)?limitations`on`patent`license\.`except`as`expressly`stated`in`section`2,`no`other`patent`rights,`express`or`implied,`are`granted`by`apple`herein\.`modifications`and`or`larger`works`may`require`additional`patent`licenses`from`apple`which`apple`may`grant`in`its`sole`discretion\.(?:`)?(?:.{,20})(?:`)?additional`terms\.`you`may`choose`to`offer,`and`to`charge`a`fee`for,`warranty,`support,`indemnity`or`liability`obligations`and`or`other`rights`consistent`with`the`scope`of`the`license`granted`herein`\(`additional`terms`\)`to`one`or`more`recipients`of`covered`code\.`however,`you`may`do`so`only`on`your`own`behalf`and`as`your`sole`responsibility,`and`not`on`behalf`of`apple\.`you`must`obtain`the`recipient`s`agreement`that`any`such`additional`terms`are`offered`by`you`alone,`and`you`hereby`agree`to`indemnify,`defend`and`hold`apple`harmless`for`any`liability`incurred`by`or`claims`asserted`against`apple`by`reason`of`any`such`additional`terms\.(?:`)?(?:.{,20})(?:`)?versions`of`the`license\.`apple`may`publish`revised`and`or`new`versions`of`this`license`from`time`to`time\.`each`version`will`be`given`a`distinguishing`version`number\.`once`original`code`has`been`published`under`a`particular`version`of`this`license,`you`may`continue`to`use`it`under`the`terms`of`that`version\.`you`may`also`choose`to`use`such`original`code`under`the`terms`of`any`subsequent`version`of`this`license`published`by`apple\.`no`one`other`than`apple`has`the`right`to`modify`the`terms`applicable`to`covered`code`created`under`this`license\.(?:`)?(?:.{,20})(?:`)?no`warranty`or`support\.`the`original`code`may`contain`in`whole`or`in`part`pre\-`release,`untested,`or`not`fully`tested`works\.`the`original`code`may`contain`errors`that`could`cause`failures`or`loss`of`data,`and`may`be`incomplete`or`contain`inaccuracies\.`you`expressly`acknowledge`and`agree`that`use`of`the`original`code,`or`any`portion`thereof,`is`at`your`sole`and`entire`risk\.`the`original`code`is`provided`as`is`and`without`warranty,`upgrades`or`support`of`any`kind`and`apple`and`apple`s`licensor\(s\)`\(for`the`purposes`of`sections`8`and`9,`apple`and`apple`s`licensor\(s\)`are`collectively`referred`to`as`apple`\)`expressly`disclaim`all`warranties`and`or`conditions,`express`or`implied,`including,`but`not`limited`to,`the`implied`warranties`and`or`conditions`of`merchantability`or`satisfactory`quality`and`fitness`for`a`particular`purpose`and`noninfringement`of`third`party`rights\.`apple`does`not`warrant`that`the`functions`contained`in`the`original`code`will`meet`your`requirements,`or`that`the`operation`of`the`original`code`will`be`uninterrupted`or`error\-`free,`or`that`defects`in`the`original`code`will`be`corrected\.`no`oral`or`written`information`or`advice`given`by`apple`or`an`apple`authorized`representative`shall`create`a`warranty`or`in`any`way`increase`the`scope`of`this`warranty\.`you`acknowledge`that`the`original`code`is`not`intended`for`use`in`the`operation`of`nuclear`facilities,`aircraft`navigation,`communication`systems,`or`air`traffic`control`machines`in`which`case`the`failure`of`the`original`code`could`lead`to`death,`personal`injury,`or`severe`physical`or`environmental`damage\.(?:`)?(?:.{,20})(?:`)?liability\.(?:`)?(?:.{,20})(?:`)?infringement\.`if`any`of`the`original`code`becomes`the`subject`ofa`claim`of`infringement`\(`affected`original`code`\),`apple`may,`at`its`sole`discretion`and`option:`\(a\)`attempt`to`procure`the`rights`necessary`for`you`to`continue`using`the`affected`original`code;`\(b\)`modify`the`affected`original`code`so`that`it`is`no`longer`infringing;`or`\(c\)`terminate`your`rights`to`use`the`affected`original`code,`effective`immediately`upon`apple`s`posting`of`a`notice`to`such`effect`on`the`apple`web`site`that`is`used`for`implementation`of`this`license\.(?:`)?(?:.{,20})(?:`)?limitation`of`liability\.`under`no`circumstances`shall`apple`be`liable`for`any`incidental,`special,`indirect`or`consequential`damages`arising`out`of`or`relating`to`this`license`or`your`use`or`inability`to`use`the`original`code,`or`any`portion`thereof,`whether`under`a`theory`of`contract,`warranty,`tort`\(including`negligence\),`products`liability`or`otherwise,`even`if`apple`has`been`advised`of`the`possibility`of`such`damages`and`notwithstanding`the`failure`of`essential`purpose`of`any`remedy\.`in`no`event`shall`apple`s`total`liability`to`you`for`all`damages`under`this`license`exceed`the`amount`of`fifty`dollars`\(\$50\.00\)\.(?:`)?(?:.{,20})(?:`)?trademarks\.`this`license`does`not`grant`any`rights`to`use`the`trademarks`or`trade`names`apple`,`apple`computer`,`mac`os`x`,`mac`os`x`server`or`any`other`trademarks`or`trade`names`belonging`to`apple`\(collectively`apple`marks`\)`and`no`apple`marks`may`be`used`to`endorse`or`promote`products`derived`from`the`original`code`other`than`as`permitted`by`and`in`strict`compliance`at`all`times`with`apple`s`third`party`trademark`usage`guidelines`which`are`posted`at`http:`www\.`apple\.`com`legal`guidelinesfor3rdparties\.`html\.(?:`)?(?:.{,20})(?:`)?ownership\.`apple`retains`all`rights,`title`and`interest`in`and`to`the`original`code`and`any`modifications`made`by`or`on`behalf`of`apple`\(`apple`modifications`\),`and`such`apple`modifications`will`not`be`automatically`subject`to`this`license\.`apple`may,`at`its`sole`discretion,`choose`to`license`such`apple`modifications`under`this`license,`or`on`different`terms`from`those`contained`in`this`license`or`may`choose`not`to`license`them`at`all\.`apple`s`development,`use,`reproduction,`modification,`sublicensing`and`distribution`of`covered`code`will`not`be`subject`to`this`license\.(?:`)?(?:.{,20})(?:`)?termination\.(?:`)?(?:.{,20})(?:`)?termination\.`this`license`and`the`rights`granted`hereunder`will`terminate:(?:`)?(?:.{,20})(?:`)?automatically`without`notice`from`apple`if`you`fail`to`comply`with`any`term\(s\)`of`this`license`and`fail`to`cure`such`breach`within`30`days`of`becoming`aware`of`such`breach;(?:`)?(?:.{,20})(?:`)?immediately`in`the`event`of`the`circumstances`described`in`sections`9\.1`and`or`13\.6\(b\);`or(?:`)?(?:.{,20})(?:`)?automatically`without`notice`from`apple`if`you,`at`any`time`during`the`term`of`this`license,`commence`an`action`for`patent`infringement`against`apple\.(?:`)?(?:.{,20})(?:`)?effect`of`termination\.`upon`termination,`you`agree`to`immediately`stop`any`further`use,`reproduction,`modification`and`distribution`of`the`covered`code,`or`affected`original`code`in`the`case`of`termination`under`section`9\.1,`and`to`destroy`all`copies`of`the`covered`code`or`affected`original`code`\(in`the`case`of`termination`under`section`9\.1\)`that`are`in`your`possession`or`control\.`all`sublicenses`to`the`covered`code`which`have`been`properly`granted`prior`to`termination`shall`survive`any`termination`of`this`license\.`provisions`which,`by`their`nature,`should`remain`in`effect`beyond`the`termination`of`this`license`shall`survive,`including`but`not`limited`to`sections`3,`5,`8,`9,`10,`11,`12\.2`and`13\.`neither`party`will`be`liable`to`the`other`for`compensation,`indemnity`or`damages`of`any`sort`solely`as`a`result`of`terminating`this`license`in`accordance`with`its`terms,`and`termination`of`this`license`will`be`without`prejudice`to`any`other`right`or`remedy`of`either`party\.(?:`)?(?:.{,20})(?:`)?miscellaneous\.(?:`)?(?:.{,20})(?:`)?export`law`assurances\.`you`may`not`use`or`otherwise`export`or`re\-`export`the`original`code`except`as`authorized`by`united`states`law`and`the`laws`of`the`jurisdiction`in`which`the`original`code`was`obtained\.`in`particular,`but`without`limitation,`the`original`code`may`not`be`exported`or`re\-`exported`\(a\)`into`\(or`to`a`national`or`resident`of\)`any`u\.`s\.`embargoed`country`or`\(b\)`to`anyone`on`the`u\.`s\.`treasury`department`s`list`of`specially`designated`nationals`or`the`u\.`s\.`department`of`commerce`s`table`of`denial`orders\.`by`using`the`original`code,`you`represent`and`warrant`that`you`are`not`located`in,`under`control`of,`or`a`national`or`resident`of`any`such`country`or`on`any`such`list\.(?:`)?(?:.{,20})(?:`)?government`end`users\.`the`covered`code`is`a`commercial`item`as`defined`in`far`2\.101\.`government`software`and`technical`data`rights`in`the`covered`code`include`only`those`rights`customarily`provided`to`the`public`as`defined`in`this`license\.`this`customary`commercial`license`in`technical`data`and`software`is`provided`in`accordance`with`far`12\.211`\(technical`data\)`and`12\.212`\(computer`software\)`and,`for`department`of`defense`purchases,`dfar`252\.227\-7015`\(technical`data`\-`commercial`items\)`and`227\.7202\-3`\(rights`in`commercial`computer`software`or`computer`software`documentation\)\.`accordingly,`all`u\.`s\.`government`end`users`acquire`covered`code`with`only`those`rights`set`forth`herein\.(?:`)?(?:.{,20})(?:`)?relationship`of`parties\.`this`license`will`not`be`construed`as`creating`an`agency,`partnership,`joint`venture`or`any`other`form`of`legal`association`between`you`and`apple,`and`you`will`not`represent`to`the`contrary,`whether`expressly,`by`implication,`appearance`or`otherwise\.(?:`)?(?:.{,20})(?:`)?independent`development\.`nothing`in`this`license`will`impair`apple`s`right`to`acquire,`license,`develop,`have`others`develop`for`it,`market`and`or`distribute`technology`or`products`that`perform`the`same`or`similar`functions`as,`or`otherwise`compete`with,`modifications,`larger`works,`technology`or`products`that`you`may`develop,`produce,`market`or`distribute\.(?:`)?(?:.{,20})(?:`)?waiver;`construction\.`failure`by`apple`to`enforce`any`provision`of`this`license`will`not`be`deemed`a`waiver`of`future`enforcement`of`that`or`any`other`provision\.`any`law`or`regulation`which`provides`that`the`language`of`a`contract`shall`be`construed`against`the`drafter`will`not`apply`to`this`license\.(?:`)?(?:.{,20})(?:`)?severability\.`\(a\)`if`for`any`reason`a`court`of`competent`jurisdiction`finds`any`provision`of`this`license,`or`portion`thereof,`to`be`unenforceable,`that`provision`of`the`license`will`be`enforced`to`the`maximum`extent`permissible`so`as`to`effect`the`economic`benefits`and`intent`of`the`parties,`and`the`remainder`of`this`license`will`continue`in`full`force`and`effect\.`\(b\)`notwithstanding`the`foregoing,`if`applicable`law`prohibits`or`restricts`you`from`fully`and`or`specifically`complying`with`sections`2`and`or`3`or`prevents`the`enforceability`of`either`of`those`sections,`this`license`will`immediately`terminate`and`you`must`immediately`discontinue`any`use`of`the`covered`code`and`destroy`all`copies`of`it`that`are`in`your`possession`or`control\.(?:`)?(?:.{,20})(?:`)?dispute`resolution\.`any`litigation`or`other`dispute`resolution`between`you`and`apple`relating`to`this`license`shall`take`place`in`the`northern`district`of`california,`and`you`and`apple`hereby`consent`to`the`personal`jurisdiction`of,`and`venue`in,`the`state`and`federal`courts`within`that`district`with`respect`to`this`license\.`the`application`of`the`united`nations`convention`on`contracts`for`the`international`sale`of`goods`is`expressly`excluded\.(?:`)?(?:.{,20})(?:`)?`entire`agreement;`governing`law\.`this`license`constitutes`the`entire`agreement`between`the`parties`with`respect`to`the`subject`matter`hereof\.`this`license`shall`be`governed`by`the`laws`of`the`united`states`and`the`state`of`california,`except`that`body`of`california`law`concerning`conflicts`of`law\.`where`you`are`located`in`the`province`of`quebec,`canada,`the`following`clause`applies:`the`parties`hereby`confirm`that`they`have`requested`that`this`license`and`all`related`documents`be`drafted`in`english\.`les`parties`ont`exige`que`le`present`contrat`et`tous`les`documents`connexes`soient`rediges`en`anglais\.(?:`)?(?:exhibit`a\.`portions`copyright`\(c\)`1999`apple`computer,`inc\.`all`rights`reserved\.`this`file`contains`original`code`and`or`modifications`of`original`code`as`defined`in`and`that`are`subject`to`the`apple`public`source`license`version`1\.0`\(the`license`\)\.`you`may`not`use`this`file`except`in`compliance`with`the`license\.`please`obtain`a`copy`of`the`license`at`http:`www\.`apple\.`com`publicsource`and`read`it`before`using`this`file\.`the`original`code`and`all`software`distributed`under`the`license`are`distributed`on`an`as`is`basis,`without`warranty`of`any`kind,`either`express`or`implied,`and`apple`hereby`disclaims`all`such`warranties,`including`without`limitation,`any`warranties`of`merchantability,`fitness`for`a`particular`purpose`or`non\-`infringement\.`please`see`the`license`for`the`specific`language`governing`rights`and`limitations`under`the`license\.`)?(?:`)?